In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ pwsh ../apps/builder/build.ps1 } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot)                                                       │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#r 
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r 
@"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"

── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu

╭─[ 641.70ms - stdout ]────────────────────────────────────────────────────────╮
│                                                                              │
│     Directory: C:\Users\i574n\.nuget\packages\argu                           │
│                                                                              │
│ Mode                 LastWriteTime         Length[     │
│ 32;1m Name                                                                 │
│ ----                 -------------         ------ [      │
│ 32;1m----                                                                  │
│ d----          2023-05-17  3:38 PM                6.1.1               │
│ d----          2024-03-12  8:22 PM                6.1.4               │
│ d----          2024-01-29  5:12 PM                6.1.5               │
│ d----          2024-03-12  8:20 PM                6.2.0               │
│ d----          2024-02-23  6:50 PM                6.2.1               │
│ d----          2024-03-12  8:15 PM                6.2.2               │
│ d----          2024-05-14  8:20 PM                6.2.3               │
│ d----          2024-06-06  7:37 PM                6.2.4               │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#if !INTERACTIVE
open Lib
#endif

── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
open SpiralFileSystem.Operators

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test)                                                         │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let inline escapeCell input =
    input
    |> SpiralSm.split "\n"
    |> Array.map (function
        | line when line |> SpiralSm.starts_with "\\#!" || line |> 
SpiralSm.starts_with "\\#r" ->
            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
        | line -> line
    )
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
    $"a{nl}#!magic{nl}b{nl}"
)

╭─[ 124.84ms - stdout ]────────────────────────────────────────────────────────╮
│ "a                                                                           │
│ #!magic                                                                      │
│ b                                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic"
|> run magicMarker
|> _assertEqual (
    Success ("#!", (), Position ("", 2, 1, 3))
)

╭─[ 59.70ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!"                                                                │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"##!magic"
|> run magicMarker
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 109.67ms - stdout ]────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│ ##!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
    magicMarker
    >>. manyTill anyChar newline
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic

a"
|> run magicCommand
|> _assertEqual (
    Success ("magic", (), Position ("", 8, 2, 1))
)

╭─[ 37.40ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "magic"                                                             │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

" #!magic

a"
|> run magicCommand
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 28.15ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│  #!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content                                                                   │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let content =
    (newline >>. magicMarker) <|> (eof >>. preturn "")
    |> attempt
    |> lookAhead
    |> manyTill anyChar
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run content
|> _assertEqual (
    Success ("#!magic


a", (), Position ("", 14, 7, 1))
)

╭─[ 42.71ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: "#!magic                                                            │
│                                                                              │
│                                                                              │
│ a"                                                                           │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
    | Fs
    | Md
    | Spi
    | Spir

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Magic                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Magic =
    | Fsharp
    | Markdown
    | Spiral of Output
    | Magic of string

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## kernelOutputs                                                             │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline kernelOutputs magic =
    match magic with
    | Fsharp -> [[ Fs ]]
    | Markdown -> [[ Md ]]
    | Spiral output -> [[ output ]]
    | _ -> [[]]

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
    {
        magic : Magic
        content : string
    }

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let block =
    pipe2
        magicCommand
        content
        (fun magic content ->
            let magic, content =
                match magic with
                | "fsharp" -> Fsharp, content
                | "markdown" -> Markdown, content
                | "spiral" ->
                    let output = if content |> SpiralSm.contains "//// real\n" 
then Spir else Spi
                    let content =
                        if output = Spi
                        then content
                        else
                            content
                            |> SpiralSm.replace "//// real\n\n" ""
                            |> SpiralSm.replace "//// real\n" ""
                    Spiral output, content
                | magic -> magic |> Magic, content
            {
                magic = magic
                content = content
            })

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run block
|> _assertEqual (
    Success (
        { magic = Magic "magic"; content = "a" },
        (),
        Position ("", 14, 7, 1)
    )
)

╭─[ 58.48ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: { magic = Magic "magic"                                             │
│   content = "a" }                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
    skipMany newline
    >>. sepEndBy block (skipMany1 newline)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test


"#!magic1

a

\#!magic2

b

"
|> escapeCell
|> run blocks
|> _assertEqual (
    Success (
        [[
            { magic = Magic "magic1"; content = "a" }
            { magic = Magic "magic2"; content = "b" }
        ]],
        (),
        Position ("", 26, 9, 1)
    )
)

╭─[ 57.13ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success: [{ magic = Magic "magic1"                                           │
│    content = "a" }; { magic = Magic "magic2"                                 │
│                       content = "b" }]                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
    match output, block with
    | output, { magic = Markdown; content = content } ->
        let markdownComment =
            match output with
            | Spi | Spir -> "/// "
            | Fs -> "/// "
            | _ -> ""
        content
        |> SpiralSm.split "\n"
        |> Array.map (SpiralSm.trim_end [[||]])
        |> Array.filter (SpiralSm.ends_with " (test)" >> not)
        |> Array.map (function
            | "" -> markdownComment
            | line -> System.Text.RegularExpressions.Regex.Replace (line, 
"^\\s*", $"$&{markdownComment}")
        )
        |> SpiralSm.concat "\n"
    | Fs, { magic = Fsharp; content = content } ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else
            content
            |> SpiralSm.split "\n"
            |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
"#r" >> not)
            |> SpiralSm.concat "\n"
    | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
output ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else content
    | _ -> ""

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

    b

c


\#!markdown


c


\#!fsharp


let a = 1"
|> escapeCell
|> run block
|> function
    | Success (block, _, _) -> formatBlock Fs block
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
    /// b
/// 
/// c"

╭─[ 64.72ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│     /// b                                                                    │
│ ///                                                                          │
│ /// c"                                                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
    blocks
    |> List.map (fun block ->
        block, formatBlock output block
    )
    |> List.filter (snd >> (<>) "")
    |> fun list ->
        (list, (None, [[]]))
        ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
            let lineBreak =
                if block.magic = Markdown && lastMagic <> Some Markdown && 
lastMagic <> None
                then ""
                else "\n"
            Some block.magic, $"{content}{lineBreak}" :: acc
        )
    |> snd
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

b


\#!markdown


c


\#!fsharp


let a = 1

\#!markdown

d (test)

\#!fsharp

//// test

let a = 2

\#!markdown

e

\#!fsharp

let a = 3"
|> escapeCell
|> run blocks
|> function
    | Success (blocks, _, _) -> formatBlocks Fs blocks
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
/// b

/// c
let a = 1

/// e
let a = 3
"

╭─[ 89.07ms - stdout ]─────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│ /// b                                                                        │
│                                                                              │
│ /// c                                                                        │
│ let a = 1                                                                    │
│                                                                              │
│ /// e                                                                        │
│ let a = 3                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
    match run blocks input with
    | Success (blocks, _, _) ->
        let blocks =
            blocks
            |> List.filter (fun block ->
                block.magic |> kernelOutputs |> List.contains output || 
block.magic = Markdown
            )

        match blocks with
        | { magic = Markdown; content = content } :: _
            when output = Fs
            && content |> SpiralSm.starts_with "# "
            && content |> SpiralSm.ends_with ")"
            ->
            let inline indentBlock (block : Block) =
                { block with
                    content =
                        block.content
                        |> SpiralSm.split "\n"
                        |> Array.fold
                            (fun (lines, isMultiline) line ->
                                let trimmedLine = line |> SpiralSm.trim
                                if trimmedLine = ""
                                then "" :: lines, isMultiline
                                else
                                    let inline singleQuoteLine () =
                                        trimmedLine |> Seq.sumBy ((=) '"' >> 
System.Convert.ToInt32) = 1
                                        && trimmedLine |> SpiralSm.contains 
@"'""'" |> not
                                        && trimmedLine |> SpiralSm.ends_with "{"
|> not
                                        && trimmedLine |> SpiralSm.ends_with 
"{|" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"}" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"|}" |> not

                                    match isMultiline, trimmedLine |> 
SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
                                    | false, [[| _; _ |]] ->
                                        $"    {line}" :: lines, true

                                    | true, [[| _; _ |]] ->
                                        line :: lines, false

                                    | false, _ when singleQuoteLine () ->
                                        $"    {line}" :: lines, true

                                    | false, _ when line |> SpiralSm.starts_with
"#" && block.magic = Fsharp ->
                                        line :: lines, false

                                    | false, _ ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () && line |>
SpiralSm.starts_with "    " ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () ->
                                        line :: lines, false

                                    | true, _ ->
                                        line :: lines, true
                            )
                            ([[]], false)
                        |> fst
                        |> List.rev
                        |> SpiralSm.concat "\n"
                }

            let moduleName, namespaceName =
                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
\((.*)\)$")
                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value

            let moduleBlock =
                {
                    magic = Fsharp
                    content =
                        $"#if !INTERACTIVE
namespace {namespaceName}
#endif

module {moduleName} ="
                }

            blocks
            |> List.indexed
            |> List.fold
                (fun blocks (index, block) ->
                    match index with
                    | 0 -> blocks
                    | 1 -> indentBlock block :: moduleBlock :: blocks
                    | _ -> indentBlock block :: blocks
                )
                [[]]
            |> List.rev
        | _ -> blocks
        |> Result.Ok
    | Failure (errorMsg, _, _) -> Result.Error errorMsg

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let example1 =
    $"""#!meta

{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}

\#!markdown

# TestModule (TestNamespace)

\#!fsharp

\#!import file.dib

\#!fsharp

\#r "nuget:Expecto"

\#!markdown

## ParserLibrary

\#!fsharp

open System

\#!markdown

## x (test)

\#!fsharp

//// ignore

let x = 1

\#!spiral

//// test

inl x = 1i32

\#!spiral

//// real

inl x = 2i32

\#!spiral

inl x = 3i32

\#!markdown

### TextInput

\#!fsharp

let str1 = "abc
def"

let str2 =
    "abc\
def"

let str3 =
    $"1{{
        1
    }}1"

let str4 =
    $"1{{({{|
        a = 1
    |}}).a}}1"

let str5 =
    "abc \
        def"

let x =
    match '"' with
    | '"' -> true
    | _ -> false

let long1 = {q}{q}{q}a{q}{q}{q}

let long2 =
    {q}{q}{q}
a
{q}{q}{q}

\#!fsharp

type Position =
    {{
#if INTERACTIVE
        line : string
#else
        line : int
#endif
        column : int
    }}"""
    |> escapeCell

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif

module TestModule =

    /// ## ParserLibrary
    open System

    /// ### TextInput
    let str1 = "abc
def"

    let str2 =
        "abc\
def"

    let str3 =
        $"1{{
            1
        }}1"

    let str4 =
        $"1{{({{|
            a = 1
        |}}).a}}1"

    let str5 =
        "abc \
            def"

    let x =
        match '"' with
        | '"' -> true
        | _ -> false

    let long1 = {q}{q}{q}a{q}{q}{q}

    let long2 =
        {q}{q}{q}
a
{q}{q}{q}

    type Position =
        {{
#if INTERACTIVE
            line : string
#else
            line : int
#endif
            column : int
        }}
"""

╭─[ 227.05ms - stdout ]────────────────────────────────────────────────────────╮
│ "#if !INTERACTIVE                                                            │
│ namespace TestNamespace                                                      │
│ #endif                                                                       │
│                                                                              │
│ module TestModule =                                                          │
│                                                                              │
│     /// ## ParserLibrary                                                     │
│     open System                                                              │
│                                                                              │
│     /// ### TextInput                                                        │
│     let str1 = "abc                                                          │
│ def"                                                                         │
│                                                                              │
│     let str2 =                                                               │
│         "abc\                                                                │
│ def"                                                                         │
│                                                                              │
│     let str3 =                                                               │
│         $"1{                                                                 │
│             1                                                                │
│         }1"                                                                  │
│                                                                              │
│     let str4 =                                                               │
│         $"1{({|                                                              │
│             a = 1                                                            │
│         |}).a}1"                                                             │
│                                                                              │
│     let str5 =                                                               │
│         "abc \                                                               │
│             def"                                                             │
│                                                                              │
│     let x =                                                                  │
│         match '"' with                                                       │
│         | '"' -> true                                                        │
│         | _ -> false                                                         │
│                                                                              │
│     let long1 = """a"""                                                      │
│                                                                              │
│     let long2 =                                                              │
│         """                                                                  │
│ a                                                                            │
│ """                                                                          │
│                                                                              │
│     type Position =                                                          │
│         {                                                                    │
│ #if INTERACTIVE                                                              │
│             line : string                                                    │
│ #else                                                                        │
│             line : int                                                       │
│ #endif                                                                       │
│             column : int                                                     │
│         }                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)

## ParserLibrary

### TextInput
"

╭─[ 208.22ms - stdout ]────────────────────────────────────────────────────────╮
│ "# TestModule (TestNamespace)                                                │
│                                                                              │
│ ## ParserLibrary                                                             │
│                                                                              │
│ ### TextInput                                                                │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 3i32

/// ### TextInput
"

╭─[ 189.64ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 3i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spir
|> Result.toOption
|> Option.get
|> (formatBlocks Spir)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 2i32

/// ### TextInput
"

╭─[ 209.01ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 2i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
    trace Debug
        (fun () -> "parseDibCode")
        (fun () -> $"output: {output} / file: {file} / {_locals ()}")
    let! input = file |> SpiralFileSystem.read_all_text_async
    match parse output input with
    | Result.Ok blocks -> return blocks |> formatBlocks output
    | Result.Error msg -> return failwith msg
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
    trace Debug
        (fun () -> "writeDibCode")
        (fun () -> $"output: {output} / path: {path} / {_locals ()}")
    let! result = parseDibCode output path
    let pathDir = path |> System.IO.Path.GetDirectoryName
    let fileNameWithoutExt =
        match output, path |> System.IO.Path.GetFileNameWithoutExtension with
        | Spir, fileNameWithoutExt -> $"{fileNameWithoutExt}_real"
        | _, fileNameWithoutExt -> fileNameWithoutExt
    let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
SpiralSm.to_lower}"
    do! result |> SpiralFileSystem.write_all_text_async outputPath
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments                                                                 │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
        File of file : string * Output

    interface Argu.IArgParserTemplate with
        member s.Usage =
            match s with
            | File _ -> nameof File

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

Argu.ArgumentParser.Create<Arguments>().PrintUsage ()

╭─[ 157.05ms - return value ]──────────────────────────────────────────────────╮
│ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
│                                                                              │
│ FILE:                                                                        │
│                                                                              │
│     <file> <fs|md|spi|spir>                                                  │
│                           File                                               │
│                                                                              │
│ OPTIONS:                                                                     │
│                                                                              │
│     --help                display this list of options.                      │
│ "                                                                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
    let argsMap = args |> Runtime.parseArgsMap<Arguments>

    let files =
        argsMap.[[nameof Arguments.File]]
        |> List.map (function
            | Arguments.File (path, output) -> path, output
        )

    files
    |> List.map (fun (path, output) -> path |> writeDibCode output)
    |> Async.Parallel
    |> Async.Ignore
    |> Async.runWithTimeout 30000
    |> function
        | Some () -> 0
        | None -> 1

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let args =
    System.Environment.GetEnvironmentVariable "ARGS"
    |> SpiralRuntime.split_args
    |> Result.toArray
    |> Array.collect id

match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"

╭─[ 217.63ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0                                            │
│ </pre></div><style>                                                          │
│ .dni-code-hint {                                                             │
│     font-style: italic;                                                      │
│     overflow: hidden;                                                        │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview {                                                              │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview td {                                                           │
│     vertical-align: top;                                                     │
│     text-align: start;                                                       │
│ }                                                                            │
│ details.dni-treeview {                                                       │
│     padding-left: 1em;                                                       │
│ }                                                                            │
│ table td {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ table tr {                                                                   │
│     vertical-align: top;                                                     │
│     margin: 0em 0px;                                                         │
│ }                                                                            │
│ table tr td pre                                                              │
│ {                                                                            │
│     vertical-align: top !important;                                          │
│     margin: 0em 0px !important;                                              │
│ }                                                                            │
│ table th {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ </style>                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

╭─[ 220.24ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:07   debug #1 writeDibCode / output: Fs / path: Builder.dib       │
│ 00:00:07   debug #2 parseDibCode / output: Fs / file: Builder.dib       │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Builder.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/builder/Builder.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/builder/Builder.dib" --output-path "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Builder (Polyglot)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildProject                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildProject runtime outputDir path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     let extension = fullPath |> System.IO.Path.GetExtension
> 
>     trace Debug
>         (fun () -> "buildProject")
>         (fun () -> $"fullPath: {fullPath} / {_locals ()}")
> 
>     match extension with
>     | ".fsproj" -> ()
>     | _ -> failwith "Invalid project file"
> 
>     let runtimes =
>         runtime
>         |> Option.map List.singleton
>         |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
> 
>     let outputDir = outputDir |> Option.defaultValue "dist"
> 
>     return!
>         runtimes
>         |> List.map (fun runtime -> async {
>             let command = $@"dotnet publish ""{path}"" --configuration Release 
> --output ""{outputDir}"" --runtime {runtime}"
>             let! exitCode, _result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = command
>                         l6 = Some fileDir
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
>             return exitCode
>         })
>         |> Async.Sequential
>         |> Async.map Array.sum
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistCodeProject                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCodeProject packages modules name hash code = async {
>     trace Debug
>         (fun () -> "persistCodeProject")
>         (fun () -> $"packages: {packages} / modules: {modules} / name: {name} / 
> hash: {hash} / code.Length: {code |> String.length} / {_locals ()}")
> 
>     let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
>     let targetDir =
>         let targetDir = workspaceRoot </> "target/Builder" </> name
>         match hash with
>         | Some hash -> targetDir </> "packages" </> hash
>         | None -> targetDir
>     targetDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
>     do! code |> SpiralFileSystem.write_all_text_exists filePath
> 
>     let modulesCode =
>         modules
>         |> List.map (fun path -> $"""<Compile Include="{workspaceRoot </> path}"
> />""")
>         |> SpiralSm.concat "\n        "
> 
>     let fsprojPath = targetDir </> $"{name}.fsproj"
>     let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
>     <PropertyGroup>
>         <TargetFramework>net9.0</TargetFramework>
>         <LangVersion>preview</LangVersion>
>         <RollForward>Major</RollForward>
>         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
>         <PublishAot>false</PublishAot>
>         <PublishTrimmed>false</PublishTrimmed>
>         <PublishSingleFile>true</PublishSingleFile>
>         <SelfContained>true</SelfContained>
>         <Version>0.0.1-alpha.1</Version>
>         <OutputType>Exe</OutputType>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('FreeBSD'))">
>         <DefineConstants>_FREEBSD</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Linux'))">
>         <DefineConstants>_LINUX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('OSX'))">
>         <DefineConstants>_OSX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Windows'))">
>         <DefineConstants>_WINDOWS</DefineConstants>
>     </PropertyGroup>
> 
>     <ItemGroup>
>         {modulesCode}
>         <Compile Include="{filePath}" />
>     </ItemGroup>
> 
>     <Import Project="{workspaceRoot}/.paket/Paket.Restore.targets" />
> </Project>
> """
>     do! fsprojCode |> SpiralFileSystem.write_all_text_exists fsprojPath
> 
>     let paketReferencesPath = targetDir </> "paket.references"
>     let paketReferencesCode =
>         "FSharp.Core" :: packages
>         |> SpiralSm.concat "\n"
>     do! paketReferencesCode |> SpiralFileSystem.write_all_text_exists 
> paketReferencesPath
> 
>     return fsprojPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildCode                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildCode runtime packages modules outputDir name code = async {
>     let! fsprojPath = code |> persistCodeProject packages modules name None
>     let! exitCode = fsprojPath |> buildProject runtime outputDir
>     if exitCode <> 0 then
>         let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
>         trace Critical
>             (fun () -> "buildCode")
>             (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / fsprojText:
> {fsprojText} / {_locals ()}")
>     return exitCode
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + 1 |> ignore"
> |> buildCode None [[]] [[]] None "test1"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 0)
> 
> ╭─[ 7.58s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:03   debug #1 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test1 / hash:  / code.Length: 15                                       │
> │ 00:00:03   debug #2 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj                       │
> │ 00:00:07   debug #1 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:07 verbose #2 > MSBuild version                                   │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:08 verbose #3 >   Determining projects to restore...              │
> │ 00:00:09 verbose #4 >   Restored                                        │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 527 ms).          │
> │ 00:00:09 verbose #5 >                                                   │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:10 verbose #6 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\linux-x64\test1 │
> │ .dll                                                                         │
> │ 00:00:11 verbose #7 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:11   debug #8 runtime.execute_with_options_async / { exit_code =  │
> │ 0; output_length = 657 }                                                     │
> │ 00:00:11   debug #9 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:11 verbose #10 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:12 verbose #11 >   Determining projects to restore...             │
> │ 00:00:12 verbose #12 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 398 ms).          │
> │ 00:00:12 verbose #13 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:13 verbose #14 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\win-x64\test1.d │
> │ ll                                                                           │
> │ 00:00:14 verbose #15 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:14   debug #16 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 655 }                                                     │
> │ Some 0                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + a |> ignore"
> |> buildCode None [[]] [[]] None "test2"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 2)
> 
> ╭─[ 7.03s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:11   debug #3 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test2 / hash:  / code.Length: 15                                       │
> │ 00:00:11   debug #4 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj                       │
> │ 00:00:14   debug #17 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:14 verbose #18 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:15 verbose #19 >   Determining projects to restore...             │
> │ 00:00:16 verbose #20 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 393 ms).          │
> │ 00:00:16 verbose #21 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:17 verbose #22 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:18   debug #23 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:18   debug #24 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:18 verbose #25 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:18 verbose #26 >   Determining projects to restore...             │
> │ 00:00:19 verbose #27 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 406 ms).          │
> │ 00:00:19 verbose #28 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:21 verbose #29 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:21   debug #30 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:17 critical #5 buildCode / code: 1 + a |> ignore / fsprojText:    │
> │ <Project Sdk="Microsoft.NET.Sdk">                                            │
> │     <PropertyGroup>                                                          │
> │         <TargetFramework>net9.0</TargetFramework>                            │
> │         <LangVersion>preview</LangVersion>                                   │
> │         <RollForward>Major</RollForward>                                     │
> │         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>            │
> │         <PublishAot>false</PublishAot>                                       │
> │         <PublishTrimmed>false</PublishTrimmed>                               │
> │         <PublishSingleFile>true</PublishSingleFile>                          │
> │         <SelfContained>true</SelfContained>                                  │
> │         <Version>0.0.1-alpha.1</Version>                                     │
> │         <OutputType>Exe</OutputType>                                         │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">        │
> │         <DefineConstants>_FREEBSD</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">          │
> │         <DefineConstants>_LINUX</DefineConstants>                            │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">            │
> │         <DefineConstants>_OSX</DefineConstants>                              │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">        │
> │         <DefineConstants>_WINDOWS</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <ItemGroup>                                                              │
> │                                                                              │
> │         <Compile                                                             │
> │ Include="C:\home\git\polyglot\target\Builder\test2\test2.fs" />              │
> │     </ItemGroup>                                                             │
> │                                                                              │
> │     <Import Project="C:\home\git\polyglot/.paket/Paket.Restore.targets" />   │
> │ </Project>                                                                   │
> │                                                                              │
> │ Some 2                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## readFile                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline readFile path = async {
>     let! code = path |> SpiralFileSystem.read_all_text_async
> 
>     let code = System.Text.RegularExpressions.Regex.Replace (
>         code,
>         @"( *)(let\s+main\s+.*?\s*=)",
>         fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 
> m.Groups.[[1]].Value + m.Groups.[[2]].Value
>     )
> 
>     let codeTrim = code |> SpiralSm.trim_end [[||]]
>     return
>         if codeTrim |> SpiralSm.ends_with "\n()"
>         then codeTrim |> SpiralSm.slice 0 ((codeTrim |> String.length) - 3)
>         else code
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildFile                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile runtime packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let dir = fullPath |> System.IO.Path.GetDirectoryName
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) 
> name
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistFile                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistFile packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> persistCodeProject packages modules name None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 
> Path of path : string
>     | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
>     | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
>     | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
>     | [[<Argu.ArguAttributes.Unique>]] Persist_Only
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Path _ -> nameof Path
>             | Packages _ -> nameof Packages
>             | Modules _ -> nameof Modules
>             | Runtime _ -> nameof Runtime
>             | Persist_Only -> nameof Persist_Only
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 147.94ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--packages [<packages>...]]                    │
> │                    [--modules [<modules>...]] [--runtime <runtime>]          │
> │                    [--persist-only] <path>                                   │
> │                                                                              │
> │ PATH:                                                                        │
> │                                                                              │
> │     <path>                Path                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --packages [<packages>...]                                               │
> │                           Packages                                           │
> │     --modules [<modules>...]                                                 │
> │                           Modules                                            │
> │     --runtime <runtime>   Runtime                                            │
> │     --persist-only        Persist_Only                                       │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let path =
>         match argsMap.[[nameof Arguments.Path]] with
>         | [[ Arguments.Path path ]] -> Some path
>         | _ -> None
>         |> Option.get
> 
>     let packages =
>         match argsMap |> Map.tryFind (nameof Arguments.Packages) with
>         | Some [[ Arguments.Packages packages ]] -> packages
>         | _ -> [[]]
> 
>     let modules =
>         match argsMap |> Map.tryFind (nameof Arguments.Modules) with
>         | Some [[ Arguments.Modules modules ]] -> modules
>         | _ -> [[]]
> 
>     let runtime =
>         match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
>         | Some [[ Arguments.Runtime runtime ]] -> Some runtime
>         | _ -> None
> 
>     let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
> 
>     if persistOnly
>     then path |> persistFile packages modules |> Async.map (fun _ -> 0)
>     else path |> buildFile runtime packages modules
>     |> Async.runWithTimeout (60000 * 60)
>     |> function
>         | Some exitCode -> exitCode
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 29.80s - return value ]────────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 29.80s - stdout ]──────────────────────────────────────────────────────────╮
> │ 00:00:19   debug #6 persistCodeProject / packages: [Argu;               │
> │ FSharp.Control.AsyncSeq; System.Reactive.Linq] / modules: [                  │
> │ lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] /     │
> │ name: Builder / hash:  / code.Length: 8210                                   │
> │ 00:00:19   debug #7 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj                   │
> │ 00:00:22   debug #31 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime          │
> │ linux-x64; cancellation_token = None; environment_variables = [||]; on_line  │
> │ = None; stdin = None; trace = true; working_directory = Some                 │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:23 verbose #32 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:23 verbose #33 >   Determining projects to restore...             │
> │ 00:00:24 verbose #34 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 477 ms).      │
> │ 00:00:24 verbose #35 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:36 verbose #36 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\linux-x64\Bui │
> │ lder.dll                                                                     │
> │ 00:00:37 verbose #37 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:37   debug #38 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 665 }                                                     │
> │ 00:00:37   debug #39 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime win-x64; │
> │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
> │ stdin = None; trace = true; working_directory = Some                         │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:37 verbose #40 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:38 verbose #41 >   Determining projects to restore...             │
> │ 00:00:39 verbose #42 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 433 ms).      │
> │ 00:00:39 verbose #43 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:51 verbose #44 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\win-x64\Build │
> │ er.dll                                                                       │
> │ 00:00:52 verbose #45 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:52   debug #46 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 663 }                                                     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34436 }
00:01:10   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:12 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/builder/Builder.dib.ipynb to html
00:01:12 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:12 verbose #7 !   validate(nb)
00:01:14 verbose #8 ! [NbConvertApp] Writing 335132 bytes to c:\home\git\polyglot\apps\builder\Builder.dib.html
00:01:15 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:01:15   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:01:15   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:15 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:15   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 35144 }
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 -SkipFsx 1 } | Invoke-Block
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1646250
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.20.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @KevinLamb
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 274ms

Started Fable compilation...

Fable compilation finished in 18830ms

.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(145,0): (145,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1391,0): (1391,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1300,0): (1300,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1012,0): (1012,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(414,0): (414,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4639,0): (4639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1333,0): (1333,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(6776,0): (6776,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11018,0): (11018,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 30.68s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-26021c3efad21c2f.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Program Files\\Wasmtime\\bin;C:\\Program Files\\Perforce\\;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\python\\current\\.;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Program Files\\Wasmtime\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo build --release'

In [ ]:
{ pwsh ../apps/parser/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DibParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/parser/DibParser.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/DibParser.dib" --output-path "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # DibParser (Polyglot)                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsec.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsecCS.dll"
> 
> ── pwsh ────────────────────────────────────────────────────────────────────────
> ls ~/.nuget/packages/argu
> 
> ╭─[ 546.23ms - stdout ]────────────────────────────────────────────────────────╮
> │                                                                              │
> │     Directory: C:\Users\i574n\.nuget\packages\argu                           │
> │                                                                              │
> │ Mode                 LastWriteTime         Length[     │
> │ 32;1m Name                                                                 │
> │ ----                 -------------         ------ [      │
> │ 32;1m----                                                                  │
> │ d----          2023-05-17  3:38 PM                6.1.1               │
> │ d----          2024-03-12  8:22 PM                6.1.4               │
> │ d----          2024-01-29  5:12 PM                6.1.5               │
> │ d----          2024-03-12  8:20 PM                6.2.0               │
> │ d----          2024-02-23  6:50 PM                6.2.1               │
> │ d----          2024-03-12  8:15 PM                6.2.2               │
> │ d----          2024-05-14  8:20 PM                6.2.3               │
> │ d----          2024-06-06  7:37 PM                6.2.4               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open FParsec
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## escapeCell (test)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline escapeCell input =
>     input
>     |> SpiralSm.split "\n"
>     |> Array.map (function
>         | line when line |> SpiralSm.starts_with "\\#!" || line |> 
> SpiralSm.starts_with "\\#r" ->
>             System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
>         | line -> line
>     )
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> $"a{nl}\\#!magic{nl}b{nl}"
> |> escapeCell
> |> _assertEqual (
>     $"a{nl}#!magic{nl}b{nl}"
> )
> 
> ╭─[ 71.10ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "a                                                                           │
> │ #!magic                                                                      │
> │ b                                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicMarker                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicMarker : Parser<string, unit> = pstring "#!"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic"
> |> run magicMarker
> |> _assertEqual (
>     Success ("#!", (), Position ("", 2, 1, 3))
> )
> 
> ╭─[ 48.27ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "##!magic"
> |> run magicMarker
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 40.76ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │ ##!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicCommand                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicCommand =
>     magicMarker
>     >>. manyTill anyChar newline
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Success ("magic", (), Position ("", 8, 2, 1))
> )
> 
> ╭─[ 46.06ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "magic"                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> " #!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 26.55ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │  #!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## content                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let content =
>     (newline >>. magicMarker) <|> (eof >>. preturn "")
>     |> attempt
>     |> lookAhead
>     |> manyTill anyChar
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run content
> |> _assertEqual (
>     Success ("#!magic
> 
> 
> a", (), Position ("", 14, 7, 1))
> )
> 
> ╭─[ 26.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!magic                                                            │
> │                                                                              │
> │                                                                              │
> │ a"                                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Output                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Output =
>     | Fs
>     | Md
>     | Spi
>     | Spir
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Magic                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Magic =
>     | Fsharp
>     | Markdown
>     | Spiral of Output
>     | Magic of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## kernelOutputs                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline kernelOutputs magic =
>     match magic with
>     | Fsharp -> [[ Fs ]]
>     | Markdown -> [[ Md ]]
>     | Spiral output -> [[ output ]]
>     | _ -> [[]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Block =
>     {
>         magic : Magic
>         content : string
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let block =
>     pipe2
>         magicCommand
>         content
>         (fun magic content ->
>             let magic, content =
>                 match magic with
>                 | "fsharp" -> Fsharp, content
>                 | "markdown" -> Markdown, content
>                 | "spiral" ->
>                     let output = if content |> SpiralSm.contains "//// real\n" 
> then Spir else Spi
>                     let content =
>                         if output = Spi
>                         then content
>                         else
>                             content
>                             |> SpiralSm.replace "//// real\n\n" ""
>                             |> SpiralSm.replace "//// real\n" ""
>                     Spiral output, content
>                 | magic -> magic |> Magic, content
>             {
>                 magic = magic
>                 content = content
>             })
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run block
> |> _assertEqual (
>     Success (
>         { magic = Magic "magic"; content = "a" },
>         (),
>         Position ("", 14, 7, 1)
>     )
> )
> 
> ╭─[ 58.25ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: { magic = Magic "magic"                                             │
> │   content = "a" }                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## blocks                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let blocks =
>     skipMany newline
>     >>. sepEndBy block (skipMany1 newline)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> 
> "#!magic1
> 
> a
> 
> \#!magic2
> 
> b
> 
> "
> |> escapeCell
> |> run blocks
> |> _assertEqual (
>     Success (
>         [[
>             { magic = Magic "magic1"; content = "a" }
>             { magic = Magic "magic2"; content = "b" }
>         ]],
>         (),
>         Position ("", 26, 9, 1)
>     )
> )
> 
> ╭─[ 49.98ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: [{ magic = Magic "magic1"                                           │
> │    content = "a" }; { magic = Magic "magic2"                                 │
> │                       content = "b" }]                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlock                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlock output (block : Block) =
>     match output, block with
>     | output, { magic = Markdown; content = content } ->
>         let markdownComment =
>             match output with
>             | Spi | Spir -> "/// "
>             | Fs -> "/// "
>             | _ -> ""
>         content
>         |> SpiralSm.split "\n"
>         |> Array.map (SpiralSm.trim_end [[||]])
>         |> Array.filter (SpiralSm.ends_with " (test)" >> not)
>         |> Array.map (function
>             | "" -> markdownComment
>             | line -> System.Text.RegularExpressions.Regex.Replace (line, 
> "^\\s*", $"$&{markdownComment}")
>         )
>         |> SpiralSm.concat "\n"
>     | Fs, { magic = Fsharp; content = content } ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else
>             content
>             |> SpiralSm.split "\n"
>             |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
> "#r" >> not)
>             |> SpiralSm.concat "\n"
>     | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
> output ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else content
>     | _ -> ""
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
>     b
> 
> c
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1"
> |> escapeCell
> |> run block
> |> function
>     | Success (block, _, _) -> formatBlock Fs block
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
>     /// b
> /// 
> /// c"
> 
> ╭─[ 60.49ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │     /// b                                                                    │
> │ ///                                                                          │
> │ /// c"                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlocks                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlocks output blocks =
>     blocks
>     |> List.map (fun block ->
>         block, formatBlock output block
>     )
>     |> List.filter (snd >> (<>) "")
>     |> fun list ->
>         (list, (None, [[]]))
>         ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
>             let lineBreak =
>                 if block.magic = Markdown && lastMagic <> Some Markdown && 
> lastMagic <> None
>                 then ""
>                 else "\n"
>             Some block.magic, $"{content}{lineBreak}" :: acc
>         )
>     |> snd
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
> b
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1
> 
> \#!markdown
> 
> d (test)
> 
> \#!fsharp
> 
> //// test
> 
> let a = 2
> 
> \#!markdown
> 
> e
> 
> \#!fsharp
> 
> let a = 3"
> |> escapeCell
> |> run blocks
> |> function
>     | Success (blocks, _, _) -> formatBlocks Fs blocks
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
> /// b
> 
> /// c
> let a = 1
> 
> /// e
> let a = 3
> "
> 
> ╭─[ 85.63ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │ /// b                                                                        │
> │                                                                              │
> │ /// c                                                                        │
> │ let a = 1                                                                    │
> │                                                                              │
> │ /// e                                                                        │
> │ let a = 3                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parse                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parse output input =
>     match run blocks input with
>     | Success (blocks, _, _) ->
>         let blocks =
>             blocks
>             |> List.filter (fun block ->
>                 block.magic |> kernelOutputs |> List.contains output || 
> block.magic = Markdown
>             )
> 
>         match blocks with
>         | { magic = Markdown; content = content } :: _
>             when output = Fs
>             && content |> SpiralSm.starts_with "# "
>             && content |> SpiralSm.ends_with ")"
>             ->
>             let inline indentBlock (block : Block) =
>                 { block with
>                     content =
>                         block.content
>                         |> SpiralSm.split "\n"
>                         |> Array.fold
>                             (fun (lines, isMultiline) line ->
>                                 let trimmedLine = line |> SpiralSm.trim
>                                 if trimmedLine = ""
>                                 then "" :: lines, isMultiline
>                                 else
>                                     let inline singleQuoteLine () =
>                                         trimmedLine |> Seq.sumBy ((=) '"' >> 
> System.Convert.ToInt32) = 1
>                                         && trimmedLine |> SpiralSm.contains 
> @"'""'" |> not
>                                         && trimmedLine |> SpiralSm.ends_with "{"
> |> not
>                                         && trimmedLine |> SpiralSm.ends_with 
> "{|" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "}" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "|}" |> not
> 
>                                     match isMultiline, trimmedLine |> 
> SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
>                                     | false, [[| _; _ |]] ->
>                                         $"    {line}" :: lines, true
> 
>                                     | true, [[| _; _ |]] ->
>                                         line :: lines, false
> 
>                                     | false, _ when singleQuoteLine () ->
>                                         $"    {line}" :: lines, true
> 
>                                     | false, _ when line |> SpiralSm.starts_with
> "#" && block.magic = Fsharp ->
>                                         line :: lines, false
> 
>                                     | false, _ ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () && line |>
> SpiralSm.starts_with "    " ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () ->
>                                         line :: lines, false
> 
>                                     | true, _ ->
>                                         line :: lines, true
>                             )
>                             ([[]], false)
>                         |> fst
>                         |> List.rev
>                         |> SpiralSm.concat "\n"
>                 }
> 
>             let moduleName, namespaceName =
>                 System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
> \((.*)\)$")
>                 |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
> 
>             let moduleBlock =
>                 {
>                     magic = Fsharp
>                     content =
>                         $"#if !INTERACTIVE
> namespace {namespaceName}
> #endif
> 
> module {moduleName} ="
>                 }
> 
>             blocks
>             |> List.indexed
>             |> List.fold
>                 (fun blocks (index, block) ->
>                     match index with
>                     | 0 -> blocks
>                     | 1 -> indentBlock block :: moduleBlock :: blocks
>                     | _ -> indentBlock block :: blocks
>                 )
>                 [[]]
>             |> List.rev
>         | _ -> blocks
>         |> Result.Ok
>     | Failure (errorMsg, _, _) -> Result.Error errorMsg
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 =
>     $"""#!meta
> 
> {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
> "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
> 
> \#!markdown
> 
> # TestModule (TestNamespace)
> 
> \#!fsharp
> 
> \#!import file.dib
> 
> \#!fsharp
> 
> \#r "nuget:Expecto"
> 
> \#!markdown
> 
> ## ParserLibrary
> 
> \#!fsharp
> 
> open System
> 
> \#!markdown
> 
> ## x (test)
> 
> \#!fsharp
> 
> //// ignore
> 
> let x = 1
> 
> \#!spiral
> 
> //// test
> 
> inl x = 1i32
> 
> \#!spiral
> 
> //// real
> 
> inl x = 2i32
> 
> \#!spiral
> 
> inl x = 3i32
> 
> \#!markdown
> 
> ### TextInput
> 
> \#!fsharp
> 
> let str1 = "abc
> def"
> 
> let str2 =
>     "abc\
> def"
> 
> let str3 =
>     $"1{{
>         1
>     }}1"
> 
> let str4 =
>     $"1{{({{|
>         a = 1
>     |}}).a}}1"
> 
> let str5 =
>     "abc \
>         def"
> 
> let x =
>     match '"' with
>     | '"' -> true
>     | _ -> false
> 
> let long1 = {q}{q}{q}a{q}{q}{q}
> 
> let long2 =
>     {q}{q}{q}
> a
> {q}{q}{q}
> 
> \#!fsharp
> 
> type Position =
>     {{
> #if INTERACTIVE
>         line : string
> #else
>         line : int
> #endif
>         column : int
>     }}"""
>     |> escapeCell
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Fs
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Fs)
> |> _assertEqual $"""#if !INTERACTIVE
> namespace TestNamespace
> #endif
> 
> module TestModule =
> 
>     /// ## ParserLibrary
>     open System
> 
>     /// ### TextInput
>     let str1 = "abc
> def"
> 
>     let str2 =
>         "abc\
> def"
> 
>     let str3 =
>         $"1{{
>             1
>         }}1"
> 
>     let str4 =
>         $"1{{({{|
>             a = 1
>         |}}).a}}1"
> 
>     let str5 =
>         "abc \
>             def"
> 
>     let x =
>         match '"' with
>         | '"' -> true
>         | _ -> false
> 
>     let long1 = {q}{q}{q}a{q}{q}{q}
> 
>     let long2 =
>         {q}{q}{q}
> a
> {q}{q}{q}
> 
>     type Position =
>         {{
> #if INTERACTIVE
>             line : string
> #else
>             line : int
> #endif
>             column : int
>         }}
> """
> 
> ╭─[ 224.97ms - stdout ]────────────────────────────────────────────────────────╮
> │ "#if !INTERACTIVE                                                            │
> │ namespace TestNamespace                                                      │
> │ #endif                                                                       │
> │                                                                              │
> │ module TestModule =                                                          │
> │                                                                              │
> │     /// ## ParserLibrary                                                     │
> │     open System                                                              │
> │                                                                              │
> │     /// ### TextInput                                                        │
> │     let str1 = "abc                                                          │
> │ def"                                                                         │
> │                                                                              │
> │     let str2 =                                                               │
> │         "abc\                                                                │
> │ def"                                                                         │
> │                                                                              │
> │     let str3 =                                                               │
> │         $"1{                                                                 │
> │             1                                                                │
> │         }1"                                                                  │
> │                                                                              │
> │     let str4 =                                                               │
> │         $"1{({|                                                              │
> │             a = 1                                                            │
> │         |}).a}1"                                                             │
> │                                                                              │
> │     let str5 =                                                               │
> │         "abc \                                                               │
> │             def"                                                             │
> │                                                                              │
> │     let x =                                                                  │
> │         match '"' with                                                       │
> │         | '"' -> true                                                        │
> │         | _ -> false                                                         │
> │                                                                              │
> │     let long1 = """a"""                                                      │
> │                                                                              │
> │     let long2 =                                                              │
> │         """                                                                  │
> │ a                                                                            │
> │ """                                                                          │
> │                                                                              │
> │     type Position =                                                          │
> │         {                                                                    │
> │ #if INTERACTIVE                                                              │
> │             line : string                                                    │
> │ #else                                                                        │
> │             line : int                                                       │
> │ #endif                                                                       │
> │             column : int                                                     │
> │         }                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Md
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Md)
> |> _assertEqual "# TestModule (TestNamespace)
> 
> ## ParserLibrary
> 
> ### TextInput
> "
> 
> ╭─[ 195.70ms - stdout ]────────────────────────────────────────────────────────╮
> │ "# TestModule (TestNamespace)                                                │
> │                                                                              │
> │ ## ParserLibrary                                                             │
> │                                                                              │
> │ ### TextInput                                                                │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spi
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spi)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 3i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 218.63ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 3i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spir
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spir)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 2i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 200.72ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 2i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parseDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parseDibCode output file = async {
>     trace Debug
>         (fun () -> "parseDibCode")
>         (fun () -> $"output: {output} / file: {file} / {_locals ()}")
>     let! input = file |> SpiralFileSystem.read_all_text_async
>     match parse output input with
>     | Result.Ok blocks -> return blocks |> formatBlocks output
>     | Result.Error msg -> return failwith msg
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## writeDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline writeDibCode output path = async {
>     trace Debug
>         (fun () -> "writeDibCode")
>         (fun () -> $"output: {output} / path: {path} / {_locals ()}")
>     let! result = parseDibCode output path
>     let pathDir = path |> System.IO.Path.GetDirectoryName
>     let fileNameWithoutExt =
>         match output, path |> System.IO.Path.GetFileNameWithoutExtension with
>         | Spir, fileNameWithoutExt -> $"{fileNameWithoutExt}_real"
>         | _, fileNameWithoutExt -> fileNameWithoutExt
>     let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
> SpiralSm.to_lower}"
>     do! result |> SpiralFileSystem.write_all_text_async outputPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
>         File of file : string * Output
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | File _ -> nameof File
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 134.39ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
> │                                                                              │
> │ FILE:                                                                        │
> │                                                                              │
> │     <file> <fs|md|spi|spir>                                                  │
> │                           File                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let files =
>         argsMap.[[nameof Arguments.File]]
>         |> List.map (function
>             | Arguments.File (path, output) -> path, output
>         )
> 
>     files
>     |> List.map (fun (path, output) -> path |> writeDibCode output)
>     |> Async.Parallel
>     |> Async.Ignore
>     |> Async.runWithTimeout 30000
>     |> function
>         | Some () -> 0
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 210.53ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 212.77ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:07   debug #1 writeDibCode / output: Fs / path: DibParser.dib     │
> │ 00:00:07   debug #2 parseDibCode / output: Fs / file: DibParser.dib     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 44158 }
00:00:27   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb to html
00:00:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:29 verbose #7 !   validate(nb)
00:00:31 verbose #8 ! [NbConvertApp] Writing 378847 bytes to c:\home\git\polyglot\apps\parser\DibParser.dib.html
00:00:31 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:00:31   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:00:31   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:32 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:32   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:32   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 44868 }
00:00:00   debug #1 persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DibParser / hash:  / code.Length: 10861
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 427 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:13 verbose #6 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:15 verbose #7 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:15   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 680 }
00:00:15   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:15 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:15 verbose #11 >   Determining projects to restore...
00:00:16 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 466 ms).
00:00:16 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:29 verbose #14 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:30 verbose #15 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:31   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 678 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "JsonParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/parser/JsonParser.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/JsonParser.dib" --output-path "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # JsonParser (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open Parser
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## JsonParser                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> (*
> // --------------------------------
> JSON spec from http://www.json.org/
> // --------------------------------
> 
> The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
> it here:
> 
> * A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
> or an `array`.
>   * These structures can be nested.
> * A `string` is a sequence of zero or more Unicode characters, wrapped in double
> quotes, using backslash escapes.
> * A `number` is very much like a C or Java number, except that the octal and 
> hexadecimal formats are not used.
> * A `boolean` is the literal `true` or `false`
> * A `null` is the literal `null`
> * An `object` is an unordered set of name/value pairs.
>   * An object begins with { (left brace) and ends with } (right brace).
>   * Each name is followed by : (colon) and the name/value pairs are separated by
> , (comma).
> * An `array` is an ordered collection of values.
>   * An array begins with [[ (left bracket) and ends with ]] (right bracket).
>   * Values are separated by , (comma).
> * Whitespace can be inserted between any pair of tokens.
> *)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 
> Input>) =
>     match actual, expected with
>     | Success (_actual, _), Success _expected ->
>         printResult actual
>         _actual |> _assertEqual _expected
>     | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
> p2 ->
>         printResult actual
>     | _ ->
>         printfn $"Actual: {actual}"
>         printfn $"Expected: {expected}"
>         failwith "Parse failed"
>     actual
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### JValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type JValue =
>     | JString of string
>     | JNumber of float
>     | JBool   of bool
>     | JNull
>     | JObject of Map<string, JValue>
>     | JArray  of JValue list
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jValue, jValueRef = createParserForwardedToRef<JValue> ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNull                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNull =
>     pstring "null"
>     >>% JNull
>     <?> "null"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jValue "null"
> |> parserEqual (Success JNull)
> 
> ╭─[ 276.79ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNull, { lines = [                      │
> │ |&quot;null&quot;|]<br />                  position = { line = 0<br />       │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br />     │
> │ position = { line = 0<br />               column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
> │ <tr></tr></thead><tbody><tr><td>IsJString</td><td><div                       │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;null&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ null                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 289.46ms - stdout ]────────────────────────────────────────────────────────╮
> │ JNull                                                                        │
> │ JNull                                                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNull "nulp"
> |> parserEqual (
>     Failure (
>         "null",
>         "Unexpected 'p'",
>         { currentLine = "nulp"; line = 0; column = 3 }
>     )
> )
> 
> ╭─[ 73.00ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │
> │ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br />                    │
> │ line = 0<br />                                     column = 3                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;null&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;p&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;nulp&quot;<br />  line = 0<br />  column = 3             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;nulp&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 78.42ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:3 Error parsing null                                              │
> │ nulp                                                                         │
> │    ^Unexpected 'p'                                                           │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jBool                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jBool =
>     let jtrue =
>         pstring "true"
>         >>% JBool true
>     let jfalse =
>         pstring "false"
>         >>% JBool false
> 
>     jtrue <|> jfalse
>     <?> "bool"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "true"
> |> parserEqual (Success (JBool true))
> 
> ╭─[ 76.65ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │
> │ |&quot;true&quot;|]<br />                       position = { line = 0<br />  │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br   │
> │ />  position = { line = 0<br />               column = 4 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><div class="dni-plaintext"><pre>true                         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;true&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ true                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 84.29ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool true                                                                   │
> │ JBool true                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "false"
> |> parserEqual (Success (JBool false))
> 
> ╭─[ 52.27ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool false, { lines = [                │
> │ |&quot;false&quot;|]<br />                        position = { line = 0<br   │
> │ />                                     column = 5 }                          │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool false, { lines = [|&quot;false&quot;|]<br │
> │ />  position = { line = 0<br />               column = 5 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ false</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>false                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;false&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ false                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 59.63ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool false                                                                  │
> │ JBool false                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "truX"
> |> parserEqual (
>     Failure (
>         "bool",
>         "Unexpected 't'",
>         { currentLine = "truX"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 42.21ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │
> │ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br />                    │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;bool&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;t&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;truX&quot;<br />  line = 0<br />  column = 0             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;truX&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.09ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing bool                                              │
> │ truX                                                                         │
> │ ^Unexpected 't'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnescapedChar                                                           │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnescapedChar =
>     satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "a"
> |> parserEqual (Success 'a')
> 
> ╭─[ 76.94ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │
> │ |&quot;a&quot;|]<br />                position = { line = 0<br />            │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 1 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;a&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;a&quot;|]<br />  position = { line = 0<br />               column = 1 │
> │ }                                                                            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ a                            │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 82.97ms - stdout ]─────────────────────────────────────────────────────────╮
> │ 'a'                                                                          │
> │ 'a'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "\\"
> |> parserEqual (
>     Failure (
>         "char",
>         "Unexpected '\\'",
>         { currentLine = "\\"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 53.49ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │
> │ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br />                       │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;char&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;\&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;\&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;\&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 61.85ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing char                                              │
> │ \                                                                            │
> │ ^Unexpected '\'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jEscapedChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jEscapedChar =
>     [[
>         ("\\\"",'\"')
>         ("\\\\",'\\')
>         ("\\/",'/')
>         ("\\b",'\b')
>         ("\\f",'\f')
>         ("\\n",'\n')
>         ("\\r",'\r')
>         ("\\t",'\t')
>     ]]
>     |> List.map (fun (toMatch, result) ->
>         pstring toMatch >>% result
>     )
>     |> choice
>     <?> "escaped char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 42.97ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.03ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\t"
> |> parserEqual (Success '\t')
> 
> ╭─[ 41.53ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │
> │ |&quot;\t&quot;|]<br />                   position = { line = 0<br />        │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br />  position = │
> │ { line = 0<br />               column = 2 }                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\009&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\t&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \t                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.71ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\009'                                                                       │
> │ '\009'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 45.06ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 51.12ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\n"
> |> parserEqual (Success '\n')
> 
> ╭─[ 54.35ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [|&quot;<br   │
> │ />&quot;|]<br />                   position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(<br />, { lines = [|&quot;<br />&quot;|]<br />  │
> │ position = { line = 0<br />               column = 2 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\010&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;<br />&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 2 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ <br />                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 60.72ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\010'                                                                       │
> │ '\010'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "a"
> |> parserEqual (
>     Failure (
>         "escaped char",
>         "Unexpected 'a'",
>         { currentLine = "a"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 45.48ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │
> │ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br />      │
> │ line = 0<br />                                             column = 0        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;escaped char&quot;      │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;a&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;a&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;a&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 50.90ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing escaped char                                      │
> │ a                                                                            │
> │ ^Unexpected 'a'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnicodeChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnicodeChar =
>     let backslash = pchar '\\'
>     let uChar = pchar 'u'
>     let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 
> ]])
>     let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
> 
>     let inline convertToChar (((h1, h2), h3), h4) =
>         let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
>         Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
> 
>     backslash >>. uChar >>. fourHexDigits
>     |>> convertToChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnicodeChar "\\u263A"
> |> parserEqual (Success '☺')
> 
> ╭─[ 57.97ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │
> │ |&quot;\u263A&quot;|]<br />                position = { line = 0<br />       │
> │ column = 6 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br />       │
> │ position = { line = 0<br />               column = 6 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;☺&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\u263A&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 6 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \u263A                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 6                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.35ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '☺'                                                                          │
> │ '☺'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let quotedString =
>     let quote = pchar '\"' <?> "quote"
>     let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
> 
>     quote >>. manyChars jchar .>> quote
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jString =
>     quotedString
>     |>> JString
>     <?> "quoted string"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"\""
> |> parserEqual (Success (JString ""))
> 
> ╭─[ 63.75ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │
> │ |&quot;&quot;&quot;&quot;|]<br />                       position = { line =  │
> │ 0<br />                                    column = 2 }                      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │
> │ |&quot;&quot;&quot;&quot;|]<br />  position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbo │
> │ dy><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;&quot;         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><su...span                           │
> │ class="dni-code-hint"><code>{ lines = [|&quot;&quot;&quot;&quot;|]<br />     │
> │ position = { line = 0<br />               column = 2 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;&quot;                 │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 70.67ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString ""                                                                   │
> │ JString ""                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"a\""
> |> parserEqual (Success (JString "a"))
> 
> ╭─[ 53.52ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │
> │ |&quot;&quot;a&quot;&quot;|]<br />                        position = { line  │
> │ = 0<br />                                     column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │
> │ |&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />              │
> │ column = 3 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;a&quot;</code></span></summary><div><table><thead><tr></tr></thead><tb │
> │ ody><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;a&quot;       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treev...an class="dni-code-hint"><code>{ lines │
> │ = [|&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />           │
> │ column = 3 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;a&quot;                │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.78ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "a"                                                                  │
> │ JString "a"                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\""
> |> parserEqual (Success (JString "ab"))
> 
> ╭─[ 55.75ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │
> │ |&quot;&quot;ab&quot;&quot;|]<br />                         position = {     │
> │ line = 0<br />                                      column = 4 }             │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab&quot;</code></span></summary><div><table><thead><tr></tr></thead><t │
> │ body><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab&quot;     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="d... class="dni-code-hint"><code>{ lines = [       │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab&quot;               │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.89ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab"                                                                 │
> │ JString "ab"                                                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\tde\""
> |> parserEqual (Success (JString "ab\tde"))
> 
> ╭─[ 48.02ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />                            position  │
> │ = { line = 0<br />                                         column = 8 }      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />  position = { line = 0<br />         │
> │ column = 8 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString &quot;ab	                                  │
> │ de&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab	de&quot;          │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2...dni-code-hint"><code>{ lines = [|&quot;&quot;ab\tde&quot;&quot;|]<br />  │
> │ position = { line = 0<br />               column = 8 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\tde&quot;           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 8                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>8                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 54.40ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab	de"                                                                │
> │ JString "ab	de"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\u263Ade\""
> |> parserEqual (Success (JString "ab☺de"))
> 
> ╭─[ 48.26ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />                                  │
> │ position = { line = 0<br />                                         column = │
> │ 12 }                                                                         │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = { line = 0<br />     │
> │ column = 12 }                                                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab☺de&quot;</code></span></summary><div><table><thead><tr></tr></thead │
> │ ><tbody><tr><td>Item</td><td><div                                            │
> │ class="dni-plaintext"><pre>&quot;ab☺de&quot;                                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr...nt"><c │
> │ ode>{ lines = [|&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = {     │
> │ line = 0<br />               column = 12 }                                   │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\u263Ade&quot;       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 12                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>12                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 56.20ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab☺de"                                                              │
> │ JString "ab☺de"                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNumber                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNumber =
>     let optSign = opt (pchar '-')
> 
>     let zero = pstring "0"
> 
>     let digitOneNine =
>         satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
> 
>     let digit =
>         satisfy Char.IsDigit "digit"
> 
>     let point = pchar '.'
> 
>     let e = pchar 'e' <|> pchar 'E'
> 
>     let optPlusMinus = opt (pchar '-' <|> pchar '+')
> 
>     let nonZeroInt =
>         digitOneNine .>>. manyChars digit
>         |>> fun (first, rest) -> string first + rest
> 
>     let intPart = zero <|> nonZeroInt
> 
>     let fractionPart = point >>. manyChars1 digit
> 
>     let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
> 
>     let inline (|>?) opt f =
>         match opt with
>         | None -> ""
>         | Some x -> f x
> 
>     let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
>         let signStr =
>             optSign
>             |>? string
> 
>         let fractionPartStr =
>             fractionPart
>             |>? (fun digits -> "." + digits)
> 
>         let expPartStr =
>             expPart
>             |>? fun (optSign, digits) ->
>                 let sign = optSign |>? string
>                 "e" + sign + digits
> 
>         (signStr + intPart + fractionPartStr + expPartStr)
>         |> float
>         |> JNumber
> 
>     optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
>     |>> convertToJNumber
>     <?> "number"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 84.51ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 0<br   │
> │ />                                       column = 3 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 0<br />               column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 0<br />               column = 3 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 91.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 51.27ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 0<br │
> │ />                                        column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 0<br />               column  │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 57.50ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 55.27ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 0<br │
> │ />                                       column = 5 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 0<br />               column │
> │ = 5 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 60.42ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123."
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 59.02ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123.&quot;|]<br />                           position = { line =     │
> │ 0<br />                                        column = 4 }                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123.&quot;|]<br />  position = { line = 0<br />               column │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123.&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 4 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123.                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.96ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "00.1"
> |> parserEqual (Success (JNumber 0.0))
> 
> ╭─[ 55.93ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │
> │ |&quot;00.1&quot;|]<br />                        position = { line = 0<br /> │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.0, { lines = [|&quot;00.1&quot;|]<br  │
> │ />  position = { line = 0<br />               column = 1 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>0.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;00.1&quot;|]<br />  position = │
> │ { line = 0<br />               column = 1 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 00.1                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 63.08ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.0                                                                  │
> │ JNumber 0.0                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let jNumber_ = jNumber .>> spaces1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 60.62ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 1<br   │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 1<br />               column = 0 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 69.51ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 62.51ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 1<br │
> │ />                                        column = 0 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 1<br />               column  │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 69.85ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123."
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '.'",
>         { currentLine = "-123."; line = 0; column = 4 }
>     )
> )
> 
> ╭─[ 44.45ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │
> │ &quot;-123.&quot;<br />                                                      │
> │ line = 0<br />                                                               │
> │ column = 4                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;.&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;-123.&quot;<br />  line = 0<br />  column = 4            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;-123.&quot;        │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 50.09ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │
> │ -123.                                                                        │
> │     ^Unexpected '.'                                                          │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 55.86ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 1<br │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 64.73ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "00.4"
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '0'",
>         { currentLine = "00.4"; line = 0; column = 1 }
>     )
> )
> 
> ╭─[ 48.73ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │
> │ &quot;00.4&quot;<br />                                                       │
> │ line = 0<br />                                                               │
> │ column = 1                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;0&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;00.4&quot;<br />  line = 0<br />  column = 1             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;00.4&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 53.57ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │
> │ 00.4                                                                         │
> │  ^Unexpected '0'                                                             │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123e4"
> |> parserEqual (Success (JNumber 1230000.0))
> 
> ╭─[ 60.61ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │
> │ |&quot;123e4&quot;|]<br />                              position = { line =  │
> │ 1<br />                                           column = 0 }               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │
> │ |&quot;123e4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1230000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody> │
> │ <tr><td>Item</td><td><div class="dni-plaintext"><pre>1230000.0               │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123e4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123e4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.63ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 1230000.0                                                            │
> │ JNumber 1230000.0                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e5"
> |> parserEqual (Success (JNumber 12340000.0))
> 
> ╭─[ 56.05ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │
> │ |&quot;123.4e5&quot;|]<br />                               position = { line │
> │ = 1<br />                                            column = 0 }            │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │
> │ |&quot;123.4e5&quot;|]<br />  position = { line = 1<br />                    │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 12340000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody │
> │ ><tr><td>Item</td><td><div class="dni-plaintext"><pre>12340000.0             │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e5&quot;|]<br />          │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e5                      │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 67.00ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 12340000.0                                                           │
> │ JNumber 12340000.0                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e-5"
> |> parserEqual (Success (JNumber 0.001234))
> 
> ╭─[ 53.19ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │
> │ |&quot;123.4e-5&quot;|]<br />                             position = { line  │
> │ = 1<br />                                          column = 0 }              │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │
> │ |&quot;123.4e-5&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.001234</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>0.001234                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e-5&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e-5                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 59.18ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.001234                                                             │
> │ JNumber 0.001234                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jArray                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jArray =
>     let left = pchar '[[' .>> spaces
>     let right = pchar ']]' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let value = jValue .>> spaces
> 
>     let values = sepBy value comma
> 
>     between left values right
>     |>> JArray
>     <?> "array"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2 ]]"
> |> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
> 
> ╭─[ 100.90ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │
> │ lines = [|&quot;[ 1, 2 ]&quot;|]<br />                                       │
> │ position = { line = 1<br />                                                  │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │
> │ |&quot;[ 1, 2 ]&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JArray [JNumber 1.0; JNumber                     │
> │ 2.0]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td>0</td><td><details class="dni-treeview"><summary><span  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td>...ummary><span                │
> │ class="dni-code-hint"><code>{ lines = [|&quot;[ 1, 2 ]&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ [ 1, 2 ]                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 107.28ms - stdout ]────────────────────────────────────────────────────────╮
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2, ]]"
> |> parserEqual (
>     Failure (
>         "array",
>         "Unexpected ','",
>         { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
>     )
> )
> 
> ╭─[ 58.43ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │
> │ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br />               │
> │ line = 0<br />                                      column = 6               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;array&quot;             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;[ 1, 2, ]&quot;<br />  line = 0<br />  column = 6        │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;[ 1, 2, ]&quot;    │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 65.11ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:6 Error parsing array                                             │
> │ [ 1, 2, ]                                                                    │
> │       ^Unexpected ','                                                        │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jObject                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jObject =
>     let left = spaces >>. pchar '{' .>> spaces
>     let right = pchar '}' .>> spaces
>     let colon = pchar ':' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let key = quotedString .>> spaces
>     let value = jValue .>> spaces
> 
>     let keyValue = (key .>> colon) .>>. value
>     let keyValues = sepBy keyValue comma
> 
>     between left keyValues right
>     |>> Map.ofList
>     |>> JObject
>     <?> "object"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>             jObject
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2 }"""
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "a", JNumber 1.0
>                 "b", JNumber 2.0
>             ]]
>         )
>     )
> )
> 
> ╭─[ 123.26ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject (map [(&quot;a&quot;,    │
> │ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br />   { lines = [|&quot;{    │
> │ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br />     position = { line = │
> │ 1<br />                  column = 0 }                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │
> │ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │
> │ &quot;b&quot;  :  2 }&quot;|]<br />  position = { line = 1<br />             │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JObject (map [(&quot;a&quot;, JNumber 1.0);      │
> │ (&quot;b&quot;, JNumber                                                      │
> │ 2.0)])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><table><thead><tr><th><i>key</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td><div class="dni-plaintext"><pre>&quot;a&quot;           │
> │ </pre></div></td><td><details class="dni-treeview"><summary><span            │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</...ot;a&quot;:1, &quot;b&quot;  :   │
> │ 2 }&quot;|]<br />  position = { line = 1<br />               column = 0 }    │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ { &quot;a&quot;:1,           │
> │ &quot;b&quot;  :  2 }                                                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 132.35ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2, }"""
> |> parserEqual (
>     Failure (
>         "object",
>         "Unexpected ','",
>         { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }
>     )
> )
> 
> ╭─[ 49.87ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │
> │ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │
> │ 2, }&quot;<br />                                       line = 0<br />        │
> │ column = 18                                                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;object&quot;            │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br />    │
> │ line = 0<br />  column = 18                                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;{ &quot;a&quot;:1, │
> │ &quot;b&quot;  :  2, }&quot;                                                 │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>18                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 53.64ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:18 Error parsing object                                           │
> │ { "a":1, "b"  :  2, }                                                        │
> │                   ^Unexpected ','                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 = """{
>     "name" : "Scott",
>     "isMale" : true,
>     "bday" : {"year":2001, "month":12, "day":25 },
>     "favouriteColors" : [["blue", "green"]],
>     "emptyArray" : [[]],
>     "emptyObject" : {}
> }"""
> run jValue example1
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "name", JString "Scott"
>                 "isMale", JBool true
>                 "bday", JObject (
>                     Map.ofList [[
>                         "year", JNumber 2001.0
>                         "month", JNumber 12.0
>                         "day", JNumber 25.0
>                     ]]
>                 )
>                 "favouriteColors", JArray [[ JString "blue"; JString "green" ]]
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>             ]]
>         )
>     )
> )
> 
> ╭─[ 228.12ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;bday&quot;,<br />          JObject<br />            (map<br />       │
> │ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />   │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />         (&quot;emptyObject&quot;, JObject (map []));<br />         │
> │ (&quot;favouriteColors&quot;,                                                │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />      (&quot;emptyObject&quot;, JObject (map []));<br />            │
> │ (&quot;favouriteColors&quot;, JArray [JString &quot;blue&quot;; JString      │
> │ &quot;gr...</code></span></summary><div><table><thead><tr></tr></thead><tbod │
> │ y><tr><td>Item1</td><td><details class="dni-treeview"><summary><span         │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArra...,,   │
> │ &quot;isMale&quot; : true,,     &quot;bday&quot; : {&quot;year&quot;:2001,   │
> │ &quot;month&quot;:12, &quot;day&quot;:25 },,     &quot;favouriteColors&quot; │
> │ : [&quot;blue&quot;, &quot;green&quot;],,     &quot;emptyArray&quot; : [],,  │
> │ &quot;emptyObject&quot; : {}, }                                              │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 8<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>8                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 236.36ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday",                                                               │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │
> │              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │       ("isMale", JBool true); ("name", JString "Scott")])                    │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday", JObject (map [("day", JNumber 25.0); ("month", JNumber 12.0); │
> │ ("year", JNumber 2001.0)]));                                                 │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │ ("isMale", JBool true); ("name", JString "Scott")])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example2 = """{"widget": {
>     "debug": "on",
>     "window": {
>         "title": "Sample Konfabulator Widget",
>         "name": "main_window",
>         "width": 500,
>         "height": 500
>     },
>     "image": {
>         "src": "Images/Sun.png",
>         "name": "sun1",
>         "hOffset": 250,
>         "vOffset": 250,
>         "alignment": "center"
>     },
>     "text": {
>         "data": "Click Here",
>         "size": 36,
>         "style": "bold",
>         "name": "text1",
>         "hOffset": 250,
>         "vOffset": 100,
>         "alignment": "center",
>         "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
>     }
> }}"""
> 
> run jValue example2
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "widget", JObject (
>                     Map.ofList [[
>                         "debug", JString "on"
>                         "window", JObject (
>                             Map.ofList [[
>                                 "title", JString "Sample Konfabulator Widget"
>                                 "name", JString "main_window"
>                                 "width", JNumber 500.0
>                                 "height", JNumber 500.0
>                             ]]
>                         )
>                         "image", JObject (
>                             Map.ofList [[
>                                 "src", JString "Images/Sun.png"
>                                 "name", JString "sun1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 250.0
>                                 "alignment", JString "center"
>                             ]]
>                         )
>                         "text", JObject (
>                             Map.ofList [[
>                                 "data", JString "Click Here"
>                                 "size", JNumber 36.0
>                                 "style", JString "bold"
>                                 "name", JString "text1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 100.0
>                                 "alignment", JString "center"
>                                 "onMouseUp", JString "sun1.opacity = 
> (sun1.opacity / 100) * 90;"
>                             ]]
>                         )
>                     ]]
>                 )
>             ]]
>         )
>     )
> )
> 
> ╭─[ 463.42ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;widget&quot;,<br />          JObject<br />            (map<br />     │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />                 JObject<br />                      │
> │ (map<br />                      [(&quot;alignment&quot;, JString             │
> │ &quot;center&quot;);<br />                                                   │
> │ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │
> │ /thead><tbody><tr><td>Item</td><td><details                                  │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(JObject<br  │
> │ />  (map<br />     [(&quot;widget&quot;,<br />       JObject<br />           │
> │ (map<br />            [(&quot;debug&quot;, JString &quot;on&quot;);<br />    │
> │ (&quot;image&quot;,<br />              JObject<br />                (map<br  │
> │ />                   [(&quot;alignment&quot;, JString &quot;center&quot;);   │
> │ (&quot;hOffset&quot;, JNumber 250.0);<br />                                  │
> │ (&quot;name&quot;, JString                                                   │
> │ &quot;sun1&quot;...</code></span></summary><div><table><thead><tr></tr></the │
> │ ad><tbody><tr><td>Item1</td><td><details class="dni-treeview"><summary><span │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;widget&quot;,<br />       JObject<br />         (map<br />            │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />              JObject<br />                (...t;,, │
> │ &quot;name&quot;: &quot;text1&quot;,,         &quot;hOffset&quot;: 250,,     │
> │ &quot;vOffset&quot;: 100,,         &quot;alignment&quot;:                    │
> │ &quot;center&quot;,,         &quot;onMouseUp&quot;: &quot;sun1.opacity =     │
> │ (sun1.opacity / 100) * 90;&quot;,     }, }}                                  │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 26<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>26                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 470.78ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0);                                                                      │
> │                     ("name", JString "sun1"); ("src", JString                │
> │ "Images/Sun.png");                                                           │
> │                     ("vOffset", JNumber 250.0)]));                           │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center");                         │
> │                     ("data", JString "Click Here"); ("hOffset", JNumber      │
> │ 250.0);                                                                      │
> │                     ("name", JString "text1");                               │
> │                     ("onMouseUp",                                            │
> │                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │                     ("vOffset", JNumber 100.0)]));                           │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │                     ("width", JNumber 500.0)]))]))])                         │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0); ("name", JString "sun1");                                            │
> │                     ("src", JString "Images/Sun.png"); ("vOffset", JNumber   │
> │ 250.0)]));                                                                   │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("data", JString "Click │
> │ Here"); ("hOffset", JNumber 250.0);                                          │
> │                     ("name", JString "text1"); ("onMouseUp", JString         │
> │ "sun1.opacity = (sun1.opacity / 100) * 90;");                                │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │ ("vOffset", JNumber 100.0)]));                                               │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │ ("width", JNumber 500.0)]))]))])                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example3 = """{
>   "string": "Hello, \"World\"!",
>   "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
>   "number": 42,
>   "scientificNumber": 3.14e-10,
>   "boolean": true,
>   "nullValue": null,
>   "array": [[1, 2, 3, 4, 5]],
>   "unicodeString1": "프리마",
>   "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 
> \u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
>   "specialCharacters": "!@#$%^&*()",
>   "emptyArray": [[]],
>   "emptyObject": {},
>   "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
>   "object": {
>     "nestedString": "Nested Value",
>     "nestedNumber": 3.14,
>     "nestedBoolean": false,
>     "nestedNull": null,
>     "nestedArray": [["a", "b", "c"]],
>     "nestedObject": {
>       "nestedProperty": "Nested Object Value"
>     }
>   },
>   "nestedObjects": [[
>     {"name": "Alice", "age": 25},
>     {"name": "Bob", "age": 30}
>   ]]
> }"""
> run jValue example3
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "string", JString @"Hello, ""World""!"
>                 "escapedString", JString @"This string contains 
> \/\\\b\f\n\r\t\""\'"
>                 "number", JNumber 42.0
>                 "scientificNumber", JNumber 3.14e-10
>                 "boolean", JBool true
>                 "nullValue", JNull
>                 "array", JArray [[
>                     JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 
> 5.0
>                 ]]
>                 "unicodeString1", JString "프리마"
>                 "unicodeString2", JString @"Hello, ""World""!"
>                 "specialCharacters", JString "!@#$%^&*()"
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>                 "nestedArrays", JArray [[
>                     JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
>                     JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
>                 ]]
>                 "object", JObject (
>                     Map.ofList [[
>                         "nestedString", JString "Nested Value"
>                         "nestedNumber", JNumber 3.14
>                         "nestedBoolean", JBool false
>                         "nestedNull", JNull
>                         "nestedArray", JArray [[JString "a"; JString "b"; 
> JString "c"]]
>                         "nestedObject", JObject (
>                             Map.ofList [[
>                                 "nestedProperty", JString "Nested Object Value"
>                             ]]
>                         )
>                     ]]
>                 )
>                 "nestedObjects", JArray [[
>                   JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
> 25.0 ]])
>                   JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 
> 30.0 ]])
>                 ]]
>             ]]
>         )
>     )
> )
> 
> ╭─[ 585.13ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;array&quot;,<br />          JArray<br />            [JNumber 1.0;    │
> │ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br />                  │
> │ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br   │
> │ />         (&quot;emptyObject&quot;, JObject (map []));<br />                │
> │ (&quot;escapedString&quot;, JString &quot;This                               │
> │ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;escapedString&quot;, JString &quot;This string contains \/\\\b\f<br   │
> │ />\r\t\&quot;\&#39;&quot;);<br />                                            │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item1</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;es...nestedObject&quot;: {,       &quot;nestedProperty&quot;:         │
> │ &quot;Nested Object Value&quot;,     },   },,   &quot;nestedObjects&quot;: [ │
> │ ,     {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25},,           │
> │ {&quot;name&quot;: &quot;Bob&quot;, &quot;age&quot;: 30},   ], }             │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 29<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>29                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 591.73ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array",                                                              │
> │        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │
> │ 5.0]);                                                                       │
> │       ("boolean", JBool true); ("emptyArray", JArray []);                    │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray                                                                │
> │          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │
> │           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array", JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0;  │
> │ JNumber 5.0]); ("boolean", JBool true);                                      │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; JArray [      │
> │ JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                                    │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │ ("nullValue", JNull);                                                        │
> │       ("number", JNumber 42.0); ...])                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 266592 }
00:00:28   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:30 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb to html
00:00:30 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:30 verbose #7 !   validate(nb)
00:00:32 verbose #8 ! [NbConvertApp] Writing 534279 bytes to c:\home\git\polyglot\apps\parser\JsonParser.dib.html
00:00:33 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:00:33   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:00:33   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:33 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:33   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:33   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 267304 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Parser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/parser/Parser.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/Parser.dib" --output-path "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Parser (Polyglot)                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TextInput                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Position =
>     {
>         line : int
>         column : int
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let initialPos = { line = 0; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrCol (pos : Position) =
>     { pos with column = pos.column + 1 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrLine pos =
>     { line = pos.line + 1; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type InputState =
>     {
>         lines : string[[]]
>         position : Position
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline fromStr str =
>     {
>         lines =
>             if str |> String.IsNullOrEmpty
>             then [[||]]
>             else str |> SpiralSm.split_string [[| "\r\n"; "\n" |]]
>         position = initialPos
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "" |> _assertEqual {
>     lines = [[||]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 56.17ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [||]                                                               │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "Hello \n World" |> _assertEqual {
>     lines = [[| "Hello "; " World" |]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 24.41ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello "; " World"|]                                             │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline currentLine inputState =
>     let linePos = inputState.position.line
>     if linePos < inputState.lines.Length
>     then inputState.lines.[[linePos]]
>     else "end of file"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline nextChar input =
>     let linePos = input.position.line
>     let colPos = input.position.column
> 
>     if linePos >= input.lines.Length
>     then input, None
>     else
>         let currentLine = currentLine input
>         if colPos < currentLine.Length then
>             let char = currentLine.[[colPos]]
>             let newPos = incrCol input.position
>             let newState = { input with position = newPos }
>             newState, Some char
>         else
>             let char = '\n'
>             let newPos = incrLine input.position
>             let newState = { input with position = newPos }
>             newState, Some char
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello World" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 61.21ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello World"|]                                                  │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello"; ""; "World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 30.76ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello"; ""; "World"|]                                           │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Parser                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Input = InputState
> type ParserLabel = string
> type ParserError = string
> 
> type ParserPosition =
>     {
>         currentLine : string
>         line : int
>         column : int
>     }
> 
> type ParseResult<'a> =
>     | Success of 'a
>     | Failure of ParserLabel * ParserError * ParserPosition
> 
> type Parser<'a> =
>     {
>         label : ParserLabel
>         parseFn : Input -> ParseResult<'a * Input>
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline printResult result =
>     match result with
>     | Success (value, input) ->
>         printfn $"%A{value}"
>     | Failure (label, error, parserPos) ->
>         let errorLine = parserPos.currentLine
>         let colPos = parserPos.column
>         let linePos = parserPos.line
>         let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
>         printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 
> %s{label}\n%s{errorLine}\n%s{failureCaret}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline runOnInput parser input =
>     parser.parseFn input
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline run parser inputStr =
>     runOnInput parser (fromStr inputStr)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parserPositionFromInputState (inputState : Input) =
>     {
>         currentLine = currentLine inputState
>         line = inputState.position.line
>         column = inputState.position.column
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getLabel parser =
>     parser.label
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline setLabel parser newLabel =
>     {
>         label = newLabel
>         parseFn = fun input ->
>             match parser.parseFn input with
>             | Success s -> Success s
>             | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<?>) = setLabel
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline satisfy predicate label =
>     {
>         label = label
>         parseFn = fun input ->
>             let remainingInput, charOpt = nextChar input
>             match charOpt with
>             | None ->
>                 let err = "No more input"
>                 let pos = parserPositionFromInputState input
>                 Failure (label, err, pos)
>             | Some first ->
>                 if predicate first
>                 then Success (first, remainingInput)
>                 else
>                     let err = $"Unexpected '%c{first}'"
>                     let pos = parserPositionFromInputState input
>                     Failure (label, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Success (
>         'H',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 61.54ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('H', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "H",
>         "Unexpected 'W'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 46.45ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("H", "Unexpected 'W'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 0 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline bindP f p =
>     {
>         label = "unknown"
>         parseFn = fun input ->
>             match runOnInput p input with
>             | Failure (label, err, pos) -> Failure (label, err, pos)
>             | Success (value1, remainingInput) -> runOnInput (f value1) 
> remainingInput
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>=) p f = bindP f p
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         'e',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 66.90ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('e', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 2 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'W') "W"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "e",
>         "Unexpected 'o'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 1
>         }
>     )
> )
> 
> ╭─[ 65.31ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("e", "Unexpected 'o'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 1 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline returnP x =
>     {
>         label = $"%A{x}"
>         parseFn = fun input -> Success (x, input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = returnP "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 38.34ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 0 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapP f =
>     bindP (f >> returnP)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<!>) = mapP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (|>>) x f = f <!> x
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser |>> string
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         "H",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 61.77ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("H", { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline applyP fP xP =
>     fP >>=
>         fun f ->
>             xP >>=
>                 fun x ->
>                     returnP (f x)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<*>) = applyP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline lift2 f xP yP =
>     returnP f <*> xP <*> yP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         "He",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 88.91ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("He", { lines = [|"Hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 2 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline andThen p1 p2 =
>     p1 >>=
>         fun p1Result ->
>             p2 >>=
>                 fun p2Result ->
>                     returnP (p1Result, p2Result)
>     <?> $"{getLabel p1} andThen {getLabel p2}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (.>>.) = andThen
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = parser .>>. parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         ('H', 'e'),
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 67.58ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (('H', 'e'), { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline orElse p1 p2 =
>     {
>         label = $"{getLabel p1} orElse {getLabel p2}"
>         parseFn = fun input ->
>             match runOnInput p1 input with
>             | Success _ as result -> result
>             | Failure _ -> runOnInput p2 input
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<|>) = orElse
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = parser <|> parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 56.91ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline choice listOfParsers =
>     listOfParsers |> List.reduce (<|>)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = choice [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 56.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec sequence parserList =
>     match parserList with
>     | [[]] -> returnP [[]]
>     | head :: tail -> (lift2 cons) head (sequence tail)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = sequence [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 70.04ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'], { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec parseZeroOrMore parser input =
>     match runOnInput parser input with
>     | Failure (_, _, _) ->
>         [[]], input
>     | Success (firstValue, inputAfterFirstParse) ->
>         let subsequentValues, remainingInput = parseZeroOrMore parser 
> inputAfterFirstParse
>         firstValue :: subsequentValues, remainingInput
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many parser =
>     {
>         label = $"many {getLabel parser}"
>         parseFn = fun input -> Success (parseZeroOrMore parser input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         [[]],
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 48.70ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([], { lines = [|"hello"|]                                           │
> │                position = { line = 0                                         │
> │                             column = 0 } })                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many1 p =
>     p >>=
>         fun head ->
>             many p >>=
>                 fun tail ->
>                     returnP (head :: tail)
>     <?> $"many1 {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many1 parser
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "many1 H",
>         "Unexpected 'h'",
>         {
>             currentLine = "hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 73.46ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("many1 H", "Unexpected 'h'", { currentLine = "hello"                │
> │                                         line = 0                             │
> │                                         column = 0 })                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline opt p =
>     let some = p |>> Some
>     let none = returnP None
>     (some <|> none)
>     <?> $"opt {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = opt parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         None,
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 56.95ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (None, { lines = [|"hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 0 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (.>>) p1 p2 =
>     p1 .>>. p2
>     |> mapP fst
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>.) p1 p2 =
>     p1 .>>. p2
>     |> mapP snd
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline between p1 p2 p3 =
>     p1 >>. p2 .>> p3
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "[[Hello]]"
> let parser =
>     between
>         (satisfy (fun c -> c = '[[') "[[")
>         (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 
> List.contains c) "letter"))
>         (satisfy (fun c -> c = ']]') "]]")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "[[Hello]]" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 167.90ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"[Hello]"|]                  │
> │                                       position = { line = 0                  │
> │                                                    column = 7 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy1 p sep =
>     let sepThenP = sep >>. p
>     p .>>. many sepThenP
>     |>> fun (p, pList) -> p :: pList
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy p sep =
>     sepBy1 p sep <|> returnP [[]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello,World"
> let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 
> (fun c -> c = ',') "comma")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 
> ]],
>         {
>             lines = [[| "Hello,World" |]]
>             position = { line = 1; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 130.52ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success ([['H'; 'e'; 'l'; 'l'; 'o']; ['W'; 'o'; 'r'; 'l'; 'd'; '\010']], {   │
> │ lines = [|"Hello,World"|]                                                    │
> │                                                                              │
> │ position = { line = 1                                                        │
> │                                                                              │
> │ column = 0 } })                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pchar charToMatch =
>     satisfy ((=) charToMatch) $"%c{charToMatch}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline anyOf listOfChars =
>     listOfChars
>     |> List.map pchar
>     |> choice
>     <?> $"anyOf %A{listOfChars}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 65.55ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"Hello"|]                    │
> │                                       position = { line = 0                  │
> │                                                    column = 5 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline charListToStr charList =
>     charList |> List.toArray |> String
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars cp =
>     many cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars1 cp =
>     many1 cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 95.29ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pstring str =
>     str
>     |> List.ofSeq
>     |> List.map pchar
>     |> sequence
>     |> mapP charListToStr
>     <?> str
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 76.23ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let whitespaceChar =
>     satisfy Char.IsWhiteSpace "whitespace"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces = many whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces1 = many1 whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "  Hello"
> let parser = spaces1 .>>. pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         ([[ ' '; ' ' ]], "Hello"),
>         {
>             lines = [[| "  Hello" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 87.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (([' '; ' '], "Hello"), { lines = [|"  Hello"|]                      │
> │                                   position = { line = 0                      │
> │                                                column = 7 } })               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let digitChar =
>     satisfy Char.IsDigit "digit"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = digitChar
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "digit",
>         "Unexpected 'H'",
>         {
>             currentLine = "Hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 37.51ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("digit", "Unexpected 'H'", { currentLine = "Hello"                  │
> │                                       line = 0                               │
> │                                       column = 0 })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pint =
>     let inline resultToInt (sign, digits) =
>         let i = int digits
>         match sign with
>         | Some ch -> -i
>         | None -> i
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits
>     |> mapP resultToInt
>     <?> "integer"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pint "-123"
> |> _assertEqual (
>     Success (
>         -123,
>         {
>             lines = [[| "-123" |]]
>             position = { line = 0; column = 4 }
>         }
>     )
> )
> 
> ╭─[ 40.50ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123, { lines = [|"-123"|]                                          │
> │                  position = { line = 0                                       │
> │                               column = 4 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pfloat =
>     let inline resultToFloat (((sign, digits1), point), digits2) =
>         let fl = float $"{digits1}.{digits2}"
>         match sign with
>         | Some ch -> -fl
>         | None -> fl
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
>     |> mapP resultToFloat
>     <?> "float"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pfloat "-123.45"
> |> _assertEqual (
>     Success (
>         -123.45,
>         {
>             lines = [[| "-123.45" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 48.41ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123.45, { lines = [|"-123.45"|]                                    │
> │                     position = { line = 0                                    │
> │                                  column = 7 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline createParserForwardedToRef<'a> () =
>     let mutable parserRef : Parser<'a> =
>         {
>             label = "unknown"
>             parseFn = fun _ -> failwith "unfixed forwarded parser"
>         }
> 
>     let wrapperParser =
>         { parserRef with
>             parseFn = fun input -> runOnInput parserRef input
>         }
> 
>     wrapperParser, (fun v -> parserRef <- v)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>%) p x =
>     p
>     |>> fun _ -> x
00:00:25 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 39314 }
00:00:25   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/Parser.dib.ipynb to html
00:00:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:27 verbose #7 !   validate(nb)
00:00:30 verbose #8 ! [NbConvertApp] Writing 413674 bytes to c:\home\git\polyglot\apps\parser\Parser.dib.html
00:00:30 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:00:30   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:00:30   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:30 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:30   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:30   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 40018 }
00:00:00   debug #1 writeDibCode / output: Fs / path: JsonParser.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Parser.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Parser.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ pwsh ../apps/spiral/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Supervisor.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/spiral/Supervisor.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Supervisor.dib" --output-path "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Supervisor (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendJson                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendJson (port : int) (json : string) = async {
>     let host = "127.0.0.1"
>     let! portOpen = SpiralNetworking.test_port_open host port
>     if portOpen then
>         try
>             let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{port}").Build()
>             do! connection.StartAsync () |> Async.AwaitTask
>             let! result = connection.InvokeAsync<string>("ClientToServerMsg", 
> json) |> Async.AwaitTask
>             do! connection.StopAsync () |> Async.AwaitTask
>             trace Verbose (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / result: {result |> Option.ofObj |> 
> Option.map (SpiralSm.ellipsis_end 200)}") _locals
>             return Some result
>         with ex ->
>             trace Critical (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return None
>     else
>         trace Debug (fun () -> "Supervisor.sendJson / port: {port} / error: port
> not open") _locals
>         return None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendObj                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendObj port obj =
>     obj
>     |> System.Text.Json.JsonSerializer.Serialize
>     |> sendJson port
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCPos                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCPos = {| line : int; character : int |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCRange                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCRange = VSCPos * VSCPos
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### RString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type RString = VSCRange * string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TracedError                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type TracedError = {| trace : string list; message : string |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### ClientErrorsRes                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type ClientErrorsRes =
>     | FatalError of string
>     | TracedError of TracedError
>     | PackageErrors of {| uri : string; errors : RString list |}
>     | TokenizerErrors of {| uri : string; errors : RString list |}
>     | ParserErrors of {| uri : string; errors : RString list |}
>     | TypeErrors of {| uri : string; errors : RString list |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### awaitCompiler                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline awaitCompiler port cancellationToken = async {
>     let host = "127.0.0.1"
>     let struct (ct, disposable) = cancellationToken |> 
> SpiralThreading.new_disposable_token
>     let! ct = ct |> SpiralAsync.merge_cancellation_token_with_default_async
> 
>     let compiler = MailboxProcessor.Start (fun inbox -> async {
>         let! availablePort = SpiralNetworking.get_available_port (Some 180) host
> port
>         if availablePort <> port then
>             inbox.Post (port, false)
>         else
>             let compilerPath =
>                 workspaceRoot </> "deps/The-Spiral-Language/The Spiral Language 
> 2/artifacts/bin/The Spiral Language 2/release"
>                 |> System.IO.Path.GetFullPath
> 
>             let dllPath = compilerPath </> "Spiral.dll"
> 
>             let! exitCode, result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = $@"dotnet ""{dllPath}"" --port {availablePort} 
> --default-int i32 --default-float f64"
>                         l1 = Some ct
>                         l3 = Some (fun struct (_, line, _) -> async {
>                             if line |> SpiralSm.contains 
> $"System.IO.IOException: Failed to bind to address http://{host}:{port}: address
> already in use." then
>                                 inbox.Post (port, false)
> 
>                             if line |> SpiralSm.contains $"Server bound to: 
> http://localhost:{availablePort}" then
>                                 let rec loop retry = async {
>                                     do!
>                                         SpiralNetworking.wait_for_port_access 
> (Some 100) true host availablePort
>                                         |> Async.runWithTimeoutAsync 500
>                                         |> Async.Ignore
> 
>                                     let _locals () = $"port: {availablePort} / 
> retry: {retry} / {_locals ()}"
>                                     try
>                                         let pingObj = {| Ping = true |}
>                                         let! pingResult = pingObj |> sendObj 
> availablePort
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / result: '{pingResult}'") _locals
> 
>                                         inbox.Post (availablePort, true)
>                                     with ex ->
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / ex: {ex |> SpiralSm.format_exception}") _locals
>                                         do! Async.Sleep 10
>                                         do! loop (retry + 1)
>                                 }
>                                 do! loop 0
>                         })
>                         l6 = Some workspaceRoot
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
> 
>             trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / 
> result: {result}") _locals
>             disposable.Dispose ()
>     }, ct)
> 
>     let! serverPort, managed = compiler.Receive ()
> 
>     let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{serverPort}").Build ()
>     do! connection.StartAsync () |> Async.AwaitTask
> 
>     let event = Event<_> ()
>     let disposable' = connection.On<string> ("ServerToClientMsg", event.Trigger)
>     let stream =
>         FSharp.Control.AsyncSeq.unfoldAsync
>             (fun () -> async {
>                 let! msg = event.Publish |> Async.AwaitEvent
>                 return Some (msg |> 
> FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
>             })
>             ()
> 
>     let disposable' =
>         new_disposable (fun () ->
>             async {
>                 disposable'.Dispose ()
>                 do! connection.StopAsync () |> Async.AwaitTask
>                 disposable.Dispose ()
>                 if managed
>                 then do!
>                     SpiralNetworking.wait_for_port_access (Some 100) false host 
> serverPort
>                     |> Async.runWithTimeoutAsync 1500
>                     |> Async.Ignore
>             }
>             |> Async.RunSynchronously
>         )
> 
>     return
>         serverPort,
>         stream,
>         ct,
>         disposable'
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getFilePathFromUri                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFilePathFromUri uri =
>     match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
>     | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
>     | _ -> failwith "invalid uri"
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getCompilerPort                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCompilerPort () =
>     13805
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### serialize_obj                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
>     let serializeObj obj =
>         try
>             obj
>             |> FSharp.Json.Json.serialize
>             |> SpiralSm.replace "\\\\" "\\"
>             |> SpiralSm.replace "\\r\\n" "\n"
>             |> SpiralSm.replace "\\n" "\n"
>         with ex ->
>             trace Critical (fun () -> "Supervisor.serialize_obj / obj: %A{obj}")
> _locals
>             ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Backend                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Backend =
>     | Fsharp
>     | Cuda
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildFile                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile backend timeout port cancellationToken path =
>     let rec loop retry = async {
>         let fullPath = path |> System.IO.Path.GetFullPath
>         let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>         let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>         let! code = fullPath |> SpiralFileSystem.read_all_text_async
> 
>         let stream, disposable = fileDir |> FileSystem.watchDirectory (fun _ -> 
> true)
>         use _ = disposable
> 
>         let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>         use _ = disposable
> 
>         let port = port |> Option.defaultWith getCompilerPort
>         let! serverPort, errors, ct, disposable = awaitCompiler port (Some 
> token)
>         use _ = disposable
> 
>         let outputFileName =
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
> 
>         let outputContentSeq =
>             stream
>             |> FSharp.Control.AsyncSeq.chooseAsync (function
>                 | _, (FileSystem.FileSystemChange.Changed (path, Some text))
>                     when (path |> System.IO.Path.GetFileName) = outputFileName
>                     ->
>                         // fileDir </> path |> 
> SpiralFileSystem.read_all_text_retry_async
>                         text |> Some |> Async.init
>                 | _ -> None |> Async.init
>             )
>             |> FSharp.Control.AsyncSeq.map (fun content ->
>                 Some (content |> SpiralSm.replace "\r\n" "\n"), None
>             )
> 
>         let inline printErrorData (data : {| uri : string; errors : RString list
> |}) =
>             let fileName = data.uri |> System.IO.Path.GetFileName
>             let errors =
>                 data.errors
>                 |> List.map snd
>                 |> SpiralSm.concat "\n"
>             $"{fileName}:\n{errors}"
> 
>         let errorsSeq =
>             errors
>             |> FSharp.Control.AsyncSeq.choose (fun error ->
>                 match error with
>                 | FatalError message ->
>                     Some (message, error)
>                 | TracedError data ->
>                     Some (data.message, error)
>                 | PackageErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TokenizerErrors data when data.errors |> List.isEmpty |> not 
> ->
>                     Some (data |> printErrorData, error)
>                 | ParserErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TypeErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | _ -> None
>             )
>             |> FSharp.Control.AsyncSeq.map (fun (message, error) ->
>                 None, Some (message, error)
>             )
> 
>         let timerSeq =
>             500
>             |> FSharp.Control.AsyncSeq.intervalMs
>             |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
> 
>         let outputSeq =
>             [[ outputContentSeq; errorsSeq; timerSeq ]]
>             |> FSharp.Control.AsyncSeq.mergeAll
> 
>         let! outputChild =
>             ((None, [[]], 0), outputSeq)
>             ||> FSharp.Control.AsyncSeq.scan (
>                 fun (outputContentResult, errors, typeErrorCount) 
> (outputContent, error) ->
>                     trace Debug (fun () -> $"Supervisor.buildFile / 
> AsyncSeq.scan / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / outputContentResult: {outputContentResult} / typeErrorCount: 
> {typeErrorCount} / retry: {retry} / error: {error} / path: {path}") _locals
>                     match outputContent, error with
>                     | Some outputContent, None -> Some outputContent, errors, 
> typeErrorCount
>                     | None, Some (_, FatalError "File main has a type error 
> somewhere in its path.") ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | None, Some error -> outputContentResult, error :: errors, 
> typeErrorCount
>                     | None, None when typeErrorCount >= 1 ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | _ -> outputContentResult, errors, typeErrorCount
>             )
>             |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (outputContent, 
> errors, typeErrorCount) ->
>                 trace Debug (fun () -> $"Supervisor.buildFile / 
> takeWhileInclusive / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / typeErrorCount: {typeErrorCount} / retry: {retry} / path: 
> {path}") _locals
>     #if INTERACTIVE
>                 let errorWait = 2
>     #else
>                 let errorWait = 2
>     #endif
>                 match outputContent, errors with
>                 | None, [[]] when typeErrorCount > errorWait -> false
>                 | None, [[]] -> true
>                 | _ -> false
>             )
>             |> FSharp.Control.AsyncSeq.tryLast
>             |> Async.withCancellationToken ct
>             |> Async.catch
>             |> Async.runWithTimeoutAsync timeout
>             |> Async.StartChild
> 
>         // do! Async.Sleep 60
> 
>         let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>         let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} 
> |}
>         let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>         // do! Async.Sleep 60
> 
>         let backendId =
>             match backend with
>             | Fsharp -> "Fsharp"
>             | Cuda -> "Python + Cuda"
>         let buildFileObj = {| BuildFile = {| uri = fullPathUri; backend = 
> backendId |} |}
>         let! _buildFileResult = buildFileObj |> sendObj serverPort
> 
>         let! result, typeErrorCount =
>             outputChild
>             |> Async.map (function
>                 | Some (Ok (Some (outputCode, errors, typeErrorCount))) ->
>                     (outputCode, errors |> List.distinct |> List.rev), 
> typeErrorCount
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Supervisor.buildFile / error: 
> {ex |> SpiralSm.format_exception} / retry: {retry}") _locals
>                     (None, [[]]), 0
>                 | _ -> (None, [[]]), 0
>             )
>         
>         match result with
>         | None, _ when typeErrorCount > 0 && retry = 0 ->
>             return! loop (retry + 1)
>         | _ ->
>             if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>                 let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>                 let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]]
> |} |}
>                 let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>                 ()
> 
>             let outputPath = fileDir </> outputFileName
>             return outputPath, result
>     }
>     loop 0
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### SpiralInput                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type SpiralInput =
>     | Spi of string * string option
>     | Spir of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### persistCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCode (input: {| backend : Backend option; input: SpiralInput; 
> packages: string [[]] |}) = async {
>     let targetDir = workspaceRoot </> "target/spiral_Eval"
> 
>     let packagesDir = targetDir </> "packages"
>     
>     let hashHex = $"%A{input.backend}%A{input.input}" |> SpiralCrypto.hash_text
> 
>     let packageDir = packagesDir </> hashHex
>     packageDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let moduleName = "main"
> 
>     let spirModule, spiModule =
>         match input.input with
>         | Spi (spi, Some spir) -> true, true
>         | Spi (spi, None) -> false, true
>         | Spir spir -> true, false
>         |> fun (spir, spi) ->
>             (if spir then $"{moduleName}_real*-" else ""),
>             if spi then moduleName else ""
> 
>     let libLinkTargetPath = workspaceRoot </> "lib/spiral"
>     let libLinkPath = packageDir </> "spiral"
>     
>     let packagesModule =
>         input.packages
>         |> Array.map (fun package ->
>             let path = workspaceRoot </> package
>             let packageName = path |> System.IO.Path.GetFileName
>             let libLinkPath = packageDir </> packageName
>             libLinkPath |> SpiralFileSystem.link_directory path
>             $"{packageName}-"
>         )
>         |> String.concat "\n    "
> 
>     let packageDir' =
>         if input.packages |> Array.isEmpty
>         then workspaceRoot </> "lib"
>         else
>             libLinkPath |> SpiralFileSystem.link_directory libLinkTargetPath
>             packageDir
> 
>     let spiprojPath = packageDir </> "package.spiproj"
>     let spiprojCode =
>         $"""packageDir: {packageDir'}
> packages:
>     |core-
>     spiral-
>     {packagesModule}
> modules:
>     {spirModule}
>     {spiModule}
> """
>     do! spiprojCode |> SpiralFileSystem.write_all_text_exists spiprojPath
> 
>     let spirPath = packageDir </> $"{moduleName}_real.spir"
>     let spiPath = packageDir </> $"{moduleName}.spi"
> 
>     let spirCode, spiCode =
>         match input.input with
>         | Spi (spi, Some spir) -> Some spir, Some spi
>         | Spi (spi, None) -> None, Some spi
>         | Spir spir -> Some spir, None
> 
>     match spirCode with
>     | Some spir -> do! spir |> SpiralFileSystem.write_all_text_exists spirPath
>     | None -> ()
>     match spiCode with
>     | Some spi -> do! spi |> SpiralFileSystem.write_all_text_exists spiPath
>     | None -> ()
> 
>     let spiralPath =
>         match input.input with
>         | Spi _ -> spiPath
>         | Spir _ -> spirPath
>     match input.backend with
>     | None -> return spiralPath, None
>     | Some backend ->
>         let outputFileName =
>             let fileName =
>                 match input.input with
>                 | Spi _ -> moduleName
>                 | Spir _ -> $"{moduleName}_real"
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
>         let outputPath = packageDir </> outputFileName
>         if outputPath |> System.IO.File.Exists |> not
>         then return spiralPath, None
>         else
>             let! oldCode = spiralPath |> SpiralFileSystem.read_all_text_async
>             if oldCode <> (spiCode |> Option.defaultValue (spirCode |> 
> Option.defaultValue ""))
>             then return spiralPath, None
>             else
>                 let! outputCode = outputPath |> 
> SpiralFileSystem.read_all_text_async
>                 return spiralPath, Some (outputPath, outputCode |> 
> SpiralSm.replace "\r\n" "\n")
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildCode                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let buildCode backend packages isCache timeout cancellationToken input = async {
>     let! mainPath, outputCache =
>         persistCode {| input = input; backend = Some backend; packages = 
> packages |}
>     match outputCache with
>     | Some (outputPath, outputCode) when isCache -> return mainPath, 
> (outputPath, Some outputCode), [[]]
>     | _ ->
>         let! outputPath, (outputCode, errors) = mainPath |> buildFile backend 
> timeout None cancellationToken
>         return mainPath, (outputPath, outputCode), errors
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl app () =
>     console.write_line "text"
>     1i32
> 
> inl main () =
>     app
>     |> dyn
>     |> ignore
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 15000 None
> |> Async.runWithTimeout 15000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some """let rec closure1 () () : unit =
>     let v0 : (string -> unit) = System.Console.WriteLine
>     let v1 : string = "text"
>     v0 v1
> and closure0 () () : int32 =
>     let v0 : unit = ()
>     let v1 : (unit -> unit) = closure1()
>     let v2 : unit = (fun () -> v1 (); v0) ()
>     1
> let v0 : (unit -> int32) = closure0()
> ()
> """,
>         [[]]
>     )
> )
> 
> ╭─[ 1.22s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:20 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:11   debug #1 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #2 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11 verbose #4 Supervisor.sendJson / port: 13805 / json:           │
> │ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │
> │ \u0022text\u0022\n    1i32\n\ninl main                                       │
> │ ...et/spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b │
> │ 9dc60aebd08a0d6/main.spi"}} / result:                                        │
> │ 00:00:11 verbose #5 Supervisor.sendJson / port: 13805 / json:           │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b9dc60a │
> │ ebd08a0d6/main.spi"}} / result:                                              │
> │ 00:00:12   debug #6 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │ let rec closure1 () () : unit =                                              │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : i...t v0 : unit = ()                                    │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:12   debug #7 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │ let rec closure1 () () : unit =                                              │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : i...t v0 : unit = ()                                    │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:12 verbose #8 Supervisor.sendJson / port: 13805 / json:           │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65 │
> │ f81c7f777766f357e85dc69f2d6d04b9dc60aebd08a0d6"]}} / result:                 │
> │ 00:00:12   debug #9 FileSystem.watchWithFilter / Disposing watch stream │
> │ / filter: FileName, LastWrite                                                │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "let rec closure1 () () : unit =                                        │
> │     let v0 : (string -> unit) = System.Console.WriteLine                     │
> │     let v1 : string = "text"                                                 │
> │     v0 v1                                                                    │
> │ and closure0 () () : int32 =                                                 │
> │     let v0 : unit = ()                                                       │
> │     let v1 : (unit -> unit) = closure1()                                     │
> │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> ""
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot find `main` in file main." ]]
>     )
> )
> 
> ╭─[ 549.55ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:21 verbose #2 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:12   debug #10 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:12   debug #11 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:12   debug #12 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:12 verbose #13 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"","uri":"file:///c:/home/git/polyglot/target/spiral_ │
> │ Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c4d28170 │
> │ aa/main.spi"}} / result:                                                     │
> │ 00:00:12 verbose #14 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c │
> │ 4d28170aa/main.spi"}} / result:                                              │
> │ 00:00:12   debug #15 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot find `main` in file main., FatalError "Cannot find       │
> │ `main` in file main.")) / path:                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:12   debug #16 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot find `main` in file main.",                                      │
> │     {                                                                        │
> │       "FatalError": "Cannot find `main` in file main."                       │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:12 verbose #17 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967 │
> │ b18d8e705d0260e9a932e5e68c0feb33db55c4d28170aa"]}} / result:                 │
> │ 00:00:12   debug #18 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot find `main` in file main."])                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1i32 / 0i32
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "An attempt to divide by zero has been detected at compile time." ]]
>     )
> )
> 
> ╭─[ 676.16ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:21 verbose #3 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:13   debug #19 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:13   debug #20 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:13   debug #21 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:13 verbose #22 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │
> │ 0i32\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9 │
> │ 812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi"}} /   │
> │ result:                                                                      │
> │ 00:00:13 verbose #23 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/fef9812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88 │
> │ d2a5cdfb2/main.spi"}} / result:                                              │
> │ 00:00:13   debug #24 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((An attempt to divide by zero has been detected at compile       │
> │ time., TracedError                                                           │
> │   { message = "An attempt to divide by zero has been detected at compile     │
> │ time."                                                                       │
> │     trace =                                                                  │
> │      ["Error trace on line: 1, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 2, column: 5 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:13   debug #25 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "An attempt to divide by zero has been detected at compile time.",       │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "An attempt to divide by zero has been detected at        │
> │ compile time.",                                                              │
> │         "trace": [                                                           │
> │           "Error trace on line: 1, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 2, column: 5 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:13 verbose #26 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1a │
> │ b26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2"]}} / result:                 │
> │ 00:00:13   debug #27 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["An attempt to divide by zero has been detected at compile      │
> │ time."])                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1 + ""
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Constraint satisfaction error.
> Got: string
> Fails to satisfy: number"
>         ]]
>     )
> )
> 
> ╭─[ 509.40ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:22 verbose #4 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:13   debug #28 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:13   debug #29 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:13   debug #30 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:13 verbose #31 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:13 verbose #32 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:13   debug #33 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:13   debug #34 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:13 verbose #35 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0"]}} / result:                 │
> │ 00:00:13   debug #36 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"])                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     x + y
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Unbound variable: x.
> Unbound variable: y."
>         ]]
>     )
> )
> 
> ╭─[ 465.71ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:23 verbose #5 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:14   debug #37 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:14   debug #38 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:14   debug #39 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:14 verbose #40 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:14 verbose #41 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:14   debug #42 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:14   debug #43 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:14 verbose #44 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1"]}} / result:                 │
> │ 00:00:14   debug #45 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y."])                                                      │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl unbox_real forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         unbox_real ()
>     ()
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot apply a forall with a term." ]]
>     )
> )
> 
> ╭─[ 556.52ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:23 verbose #6 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:14   debug #46 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:14   debug #47 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:14   debug #48 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:14 verbose #49 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl unbox_real    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/667528659dc2e5af51a6ec17f1774bd7ffff5b5a47e4e11 │
> │ 7eec78e740987f29a/main.spi"}} / result:                                      │
> │ 00:00:14 verbose #50 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/667528659dc2e5af51a6ec17f1774bd7ffff5b5a47e4e117eec78e7 │
> │ 40987f29a/main.spi"}} / result:                                              │
> │ 00:00:14   debug #51 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot apply a forall with a term., TracedError                 │
> │   { message = "Cannot apply a forall with a term."                           │
> │     trace =                                                                  │
> │      ["Error trace on line: 2, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 4, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         inl unbox_real forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ";                                                                           │
> │       "Error trace on line: 7, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         unbox_real ()                                                        │
> │         ^                                                                    │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:14   debug #52 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot apply a forall with a term.",                                    │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "Cannot apply a forall with a term.",                     │
> │         "trace": [                                                           │
> │           "Error trace on line: 2, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 4, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         inl unbox_real forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ",                                                                           │
> │           "Error trace on line: 7, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a/main.spi.                              │
> │         unbox_real ()                                                        │
> │         ^                                                                    │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\667528659dc2e5af51a6ec17f17 │
> │ 74bd7ffff5b5a47e4e117eec78e740987f29a\main.spi                               │
> │ 00:00:14 verbose #53 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/667528659dc2e5af51 │
> │ a6ec17f1774bd7ffff5b5a47e4e117eec78e740987f29a"]}} / result:                 │
> │ 00:00:14   debug #54 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot apply a forall with a term."])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl unbox_real forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         unbox_real `i32 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "The main function should not have a forall." ]]
>     )
> )
> 
> ╭─[ 528.77ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:24 verbose #7 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:15   debug #55 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:15   debug #56 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:15   debug #57 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:15 verbose #58 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl unbox_real    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/0ba44c42df309b790acdf4f9fc55fcc7912380f5dd2d90f │
> │ ad118bad793251c4f/main.spi"}} / result:                                      │
> │ 00:00:15 verbose #59 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/0ba44c42df309b790acdf4f9fc55fcc7912380f5dd2d90fad118bad │
> │ 793251c4f/main.spi"}} / result:                                              │
> │ 00:00:15   debug #60 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((The main function should not have a forall., TracedError {      │
> │ message = "The main function should not have a forall."                      │
> │               trace = [] })) / path:                                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:15   debug #61 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "The main function should not have a forall.",                           │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "The main function should not have a forall.",            │
> │         "trace": []                                                          │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\0ba44c42df309b790acdf4f9fc5 │
> │ 5fcc7912380f5dd2d90fad118bad793251c4f\main.spi                               │
> │ 00:00:15 verbose #62 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/0ba44c42df309b790a │
> │ cdf4f9fc55fcc7912380f5dd2d90fad118bad793251c4f"]}} / result:                 │
> │ 00:00:15   debug #63 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["The main function should not have a forall."])                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.3325000000000001\n",
>         [[]]
>     )
> )
> 
> ╭─[ 539.51ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:24 verbose #8 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:15   debug #64 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:15   debug #65 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:15   debug #66 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:15 verbose #67 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd │
> │ 3cbd56ac7f0327106f1db/main.spi"}} / result:                                  │
> │ 00:00:15 verbose #68 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd3cbd56ac7f03 │
> │ 27106f1db/main.spi"}} / result:                                              │
> │ 00:00:16   debug #69 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:16   debug #70 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:16 verbose #71 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9f │
> │ d93ea5a8e9312a6aad9129ffd3cbd56ac7f0327106f1db"]}} / result:                 │
> │ 00:00:16   debug #72 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.3325000000000001                                               │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Cuda [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some @"kernel = r""""""
> """"""
> class static_array():
>     def __init__(self, length):
>         self.ptr = [[]]
>         for _ in range(length):
>             self.ptr.append(None)
> 
>     def __getitem__(self, index):
>         assert 0 <= index < len(self.ptr), ""The get index needs to be in 
> range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < len(self.ptr), ""The set index needs to be in 
> range.""
>         self.ptr[[index]] = value
> 
> class static_array_list(static_array):
>     def __init__(self, length):
>         super().__init__(length)
>         self.length = 0
> 
>     def __getitem__(self, index):
>         assert 0 <= index < self.length, ""The get index needs to be in range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < self.length, ""The set index needs to be in range.""
>         self.ptr[[index]] = value
> 
>     def push(self,value):
>         assert (self.length < len(self.ptr)), ""The length before pushing has to
> be less than the maximum length of the array.""
>         self.ptr[[self.length]] = value
>         self.length += 1
> 
>     def pop(self):
>         assert (0 < self.length), ""The length before popping has to be greater 
> than 0.""
>         self.length -= 1
>         return self.ptr[[self.length]]
> 
>     def unsafe_set_length(self,i):
>         assert 0 <= i <= len(self.ptr), ""The new length has to be in range.""
>         self.length = i
> 
> class dynamic_array(static_array): 
>     pass
> 
> class dynamic_array_list(static_array_list):
>     def length_(self): return self.length
> 
> import cupy as cp
> from dataclasses import dataclass
> from typing import NamedTuple, Union, Callable, Tuple
> i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = 
> string = str
> 
> def main():
>     return 0.3325000000000001
> 
> if __name__ == '__main__': result = main(); None if result is None else 
> print(result)
> ",
>         [[]]
>     )
> )
> 
> ╭─[ 606.32ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:25 verbose #9 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:16   debug #73 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:16   debug #74 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:16   debug #75 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:16 verbose #76 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/ca288d6928a8e761855210f25f97fdc056ee1f21be4 │
> │ a24b26e8533ec368831c8/main.spi"}} / result:                                  │
> │ 00:00:16 verbose #77 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Python \u002B                                       │
> │ Cuda","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d │
> │ 6928a8e761855210f25f97fdc056ee1f21be4a24b26e8533ec368831c8/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:16   debug #78 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:16   debug #79 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:16 verbose #80 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e76185 │
> │ 5210f25f97fdc056ee1f21be4a24b26e8533ec368831c8"]}} / result:                 │
> │ 00:00:16   debug #81 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "kernel = r"""                                                          │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.append(None)                                            │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │ class static_array_list(static_array):                                       │
> │     def __init__(self, length):                                              │
> │         super().__init__(length)                                             │
> │         self.length = 0                                                      │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < self.length, "The get index needs to be in       │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < self.length, "The set index needs to be in       │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │     def push(self,value):                                                    │
> │         assert (self.length < len(self.ptr)), "The length before pushing has │
> │ to be less than the maximum length of the array."                            │
> │         self.ptr[self.length] = value                                        │
> │         self.length += 1                                                     │
> │                                                                              │
> │     def pop(self):                                                           │
> │         assert (0 < self.length), "The length before popping has to be       │
> │ greater than 0."                                                             │
> │         self.length -= 1                                                     │
> │         return self.ptr[self.length]                                         │
> │                                                                              │
> │     def unsafe_set_length(self,i):                                           │
> │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
> │         self.length = i                                                      │
> │                                                                              │
> │ class dynamic_array(static_array):                                           │
> │     pass                                                                     │
> │                                                                              │
> │ class dynamic_array_list(static_array_list):                                 │
> │     def length_(self): return self.length                                    │
> │                                                                              │
> │ import cupy as cp                                                            │
> │ from dataclasses import dataclass                                            │
> │ from typing import NamedTuple, Union, Callable, Tuple                        │
> │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
> │ string = str                                                                 │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.01 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp [[||]] false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.33332500000000004\n",
>         [[]]
>     )
> )
> // |> _assertEqual None
> // |> fun x -> printfn $"{x.ToDisplayString ()}"
> 
> ╭─[ 600.24ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:25 verbose #10 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:17   debug #82 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:17   debug #83 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:17   debug #84 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:17 verbose #85 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef │
> │ 6e7797ce64875a41451f4/main.spi"}} / result:                                  │
> │ 00:00:17 verbose #86 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef6e7797ce6487 │
> │ 5a41451f4/main.spi"}} / result:                                              │
> │ 00:00:17   debug #87 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:17   debug #88 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:17 verbose #89 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3c │
> │ af39a0b93135633484d22c3ef6e7797ce64875a41451f4"]}} / result:                 │
> │ 00:00:17   debug #90 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.33332500000000004                                              │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getFileTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFileTokenRange port cancellationToken path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let! code = fullPath |> SpiralFileSystem.read_all_text_async
>     let lines = code |> SpiralSm.split "\n"
> 
>     let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>     use _ = disposable
> 
>     let port = port |> Option.defaultWith getCompilerPort
>     let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
>     use _ = disposable
> 
>     let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>     let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} |}
>     let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>     // do! Async.Sleep 60
> 
>     let fileTokenRangeObj =
>         {|
>             FileTokenRange =
>                 {|
>                     uri = fullPathUri
>                     range =
>                         [[|
>                             {| line = 0; character = 0 |}
>                             {| line = lines.Length - 1; character = 
> lines.[[lines.Length - 1]].Length |}
>                         |]]
>                 |}
>         |}
>     let! fileTokenRangeResult =
>         fileTokenRangeObj
>         |> sendObj serverPort
>         |> Async.withCancellationToken ct
> 
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>         let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>         let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]] |} |}
>         let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>         ()
> 
>     return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 
> array>
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getCodeTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCodeTokenRange cancellationToken code = async {
>     let! mainPath, _ =
>         persistCode {| input = Spi (code, None); backend = None; packages = 
> [[||]] |}
> 
>     let codeDir = mainPath |> System.IO.Path.GetDirectoryName
>     let tokensPath = codeDir </> "tokens.json"
>     let! tokens = async {
>         if tokensPath |> System.IO.File.Exists |> not
>         then return None
>         else
>             let! text = tokensPath |> SpiralFileSystem.read_all_text_async
> 
>             return
>                 if text.Length > 2
>                 then text |> FSharp.Json.Json.deserialize<int array> |> Some
>                 else None
>     }
>     match tokens with
>     | Some tokens ->
>         return tokens |> Some
>     | None -> return! mainPath |> getFileTokenRange None cancellationToken
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = ()"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
> 
> ╭─[ 3.64s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:34 verbose #11 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:25 verbose #91 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ ()","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d4 │
> │ 6cfdc99c0f307f1933a76ec7da4570c1b757721164d86f19feaf821e/main.spi"}} /       │
> │ result:                                                                      │
> │ 00:00:25 verbose #92 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/20e725d46cfdc99c0f307f1933a76ec7da4570c1b757721164d86 │
> │ f19feaf821e/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...8,                                                                       │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:25 verbose #93 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d46cfdc99c0f │
> │ 307f1933a76ec7da4570c1b757721164d86f19feaf821e"]}} / result:                 │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 8; 0; 0; 1; 1; 8; 0|]                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = 1i32"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
> 
> ╭─[ 3.53s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:37 verbose #12 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:29 verbose #94 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ 1i32","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/537082 │
> │ 9508ddefc7386d6b4d280722b47d97cb925585525bee733a187ff8f18b/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:29 verbose #95 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/5370829508ddefc7386d6b4d280722b47d97cb925585525bee733 │
> │ a187ff8f18b/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...,                                                                        │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   12,                                                                        │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:29 verbose #96 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/5370829508ddefc738 │
> │ 6d6b4d280722b47d97cb925585525bee733a187ff8f18b"]}} / result:                 │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 3; 0; 0; 1; 3; 12; 0|]                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | Build_File of string * string
>     | File_Token_Range of string * string
>     | Execute_Command of string
>     | [[<Argu.ArguAttributes.Unique>]] Timeout of int
>     | [[<Argu.ArguAttributes.Unique>]] Port of int
>     | [[<Argu.ArguAttributes.Unique>]] Parallel
>     | [[<Argu.ArguAttributes.Unique>]] Exit_On_Error
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Build_File _ -> nameof Build_File
>             | File_Token_Range _ -> nameof File_Token_Range
>             | Execute_Command _ -> nameof Execute_Command
>             | Timeout _ -> nameof Timeout
>             | Port _ -> nameof Port
>             | Parallel -> nameof Parallel
>             | Exit_On_Error-> nameof Exit_On_Error
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 181.97ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--build-file <string> <string>]                │
> │                    [--file-token-range <string> <string>]                    │
> │                    [--execute-command <string>] [--timeout <int>] [--port    │
> │ <int>]                                                                       │
> │                    [--parallel] [--exit-on-error]                            │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --build-file <string> <string>                                           │
> │                           Build_File                                         │
> │     --file-token-range <string> <string>                                     │
> │                           File_Token_Range                                   │
> │     --execute-command <string>                                               │
> │                           Execute_Command                                    │
> │     --timeout <int>       Timeout                                            │
> │     --port <int>          Port                                               │
> │     --parallel            Parallel                                           │
> │     --exit-on-error       Exit_On_Error                                      │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let buildFileActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Build_File)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, 
> outputPath)
>             | _ -> None
>         )
> 
>     let fileTokenRangeActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.File_Token_Range)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.File_Token_Range (inputPath, outputPath) -> Some 
> (inputPath, outputPath)
>             | _ -> None
>         )
> 
>     let executeCommandActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Execute_Command)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Execute_Command command -> Some command
>             | _ -> None
>         )
> 
>     let timeout =
>         match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
>         | Some [[ Arguments.Timeout timeout ]] -> timeout
>         | _ -> 60000 * 60
> 
>     let port =
>         match argsMap |> Map.tryFind (nameof Arguments.Port) with
>         | Some [[ Arguments.Port port ]] -> Some port
>         | _ -> None
> 
>     let isParallel = argsMap |> Map.containsKey (nameof Arguments.Parallel)
> 
>     let isExitOnError = argsMap |> Map.containsKey (nameof 
> Arguments.Exit_On_Error)
> 
>     async {
>         let port =
>             port
>             |> Option.defaultWith getCompilerPort
>         let struct (localToken, disposable) = 
> SpiralThreading.new_disposable_token None
>         let! serverPort, _errors, compilerToken, disposable = awaitCompiler port
> (Some localToken)
>         use _ = disposable
> 
>         let buildFileAsync =
>             buildFileActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! _outputPath, (outputCode, errors) =
>                     let backend =
>                         if outputPath |> SpiralSm.ends_with ".fsx"
>                         then Fsharp
>                         elif outputPath |> SpiralSm.ends_with ".py"
>                         then Cuda
>                         else failwith $"Supervisor.main / invalid backend / 
> outputPath: {outputPath}"
>                     let isReal = inputPath |> SpiralSm.ends_with ".spir"
>                     inputPath |> buildFile backend timeout (Some serverPort) 
> None
> 
>                 errors
>                 |> List.map snd
>                 |> List.iter (fun error ->
>                     trace Critical (fun () -> $"main / error: {error |> 
> serializeObj}") _locals
>                 )
> 
>                 match outputCode with
>                 | Some outputCode ->
>                     do! outputCode |> SpiralFileSystem.write_all_text_exists 
> outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let fileTokenRangeAsync =
>             fileTokenRangeActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! tokenRange = inputPath |> getFileTokenRange (Some 
> serverPort) None
>                 match tokenRange with
>                 | Some tokenRange ->
>                     do! tokenRange |> FSharp.Json.Json.serialize |> 
> SpiralFileSystem.write_all_text_exists outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let executeCommandAsync =
>             executeCommandActions
>             |> List.map (fun command -> async {
>                 let! exitCode, result =
>                     SpiralRuntime.execution_options (fun x ->
>                         { x with
>                             l0 = command
>                             l1 = Some compilerToken
>                         }
>                     )
>                     |> SpiralRuntime.execute_with_options_async
> 
>                 trace Debug (fun () -> $"main / executeCommand / exitCode: 
> {exitCode} / command: {command}") _locals
> 
>                 if isExitOnError && exitCode <> 0
>                 then SpiralRuntime.current_process_kill ()
> 
>                 return exitCode
>             })
> 
>         return!
>             [[| buildFileAsync; fileTokenRangeAsync; executeCommandAsync |]]
>             |> Seq.collect id
>             |> fun x ->
>                 if isParallel
>                 then Async.Parallel (x, float System.Environment.ProcessorCount 
> * 0.51 |> ceil |> int)
>                 else Async.Sequential x
>             |> Async.map Array.sum
>     }
>     |> Async.runWithTimeout timeout
>     |> Option.defaultValue 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 101.75ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 126750 }
00:01:00   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:02 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb to html
00:01:02 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:02 verbose #7 !   validate(nb)
00:01:05 verbose #8 ! [NbConvertApp] Writing 495595 bytes to c:\home\git\polyglot\apps\spiral\Supervisor.dib.html
00:01:05 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:01:05   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:01:05   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:06 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:06   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:06   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 127462 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Supervisor.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Supervisor.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: Supervisor / hash:  / code.Length: 28544
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 512 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:20 verbose #6 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:21 verbose #7 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:21   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 688 }
00:00:21   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:21 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:22 verbose #11 >   Determining projects to restore...
00:00:23 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 476 ms).
00:00:23 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:39 verbose #14 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:40 verbose #15 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:40   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 686 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Eval.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
    "repl",
    "--exit-after-run",
    "--run",
    "c:/home/git/polyglot/apps/spiral/Eval.dib",
    "--output-path",
    "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb",
]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Eval.dib" --output-path "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Eval (Polyglot)                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.management/7.0.0/lib/netstandard2.
> 0/System.Management.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open System
> open System.Collections.Generic
> open System.IO
> open System.Text
> open System.Threading
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## mapErrors                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
>     let allCodeLineLength =
>         allCode |> SpiralSm.split "\n" |> Array.length
> 
>     errors
>     |> List.map (fun (_, error) ->
>         match error with
>         | Supervisor.FatalError message ->
>             (
>                 severity, message, 0, ("", (0, 0), (0, 0))
>             )
>             |> List.singleton
>         | Supervisor.TracedError data ->
>             data.trace
>             |> List.truncate 5
>             |> List.append [[ data.message ]]
>             |> List.map (fun message ->
>                 (
>                     severity, message, 0, ("", (0, 0), (0, 0))
>                 )
>             )
>         | Supervisor.PackageErrors data
>         | Supervisor.TokenizerErrors data
>         | Supervisor.ParserErrors data
>         | Supervisor.TypeErrors data ->
>             data.errors
>             |> List.filter (fun ((rangeStart, _), _) ->
>                 trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: 
> {rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: 
> {allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") _locals
>                 rangeStart.line > allCodeLineLength
>             )
>             |> List.map (fun ((rangeStart, rangeEnd), message) ->
>                 (
>                     severity,
>                     message,
>                     0,
>                     (
>                         (data.uri |> System.IO.Path.GetFileName),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.line - allCodeLineLength - 2
>                             | _ -> rangeStart.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.character - 4
>                             | _ -> rangeStart.character)
>                         ),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.line - allCodeLineLength - 2
>                             | _ -> rangeEnd.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.character - 4
>                             | _ -> rangeEnd.character)
>                         )
>                     )
>                 )
>             )
>     )
>     |> List.collect id
>     |> List.toArray
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### targetDir                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let targetDir = workspaceRoot </> "target/spiral_Eval"
> [[ targetDir ]]
> |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### assemblyName                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCode                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCode = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### allPackages                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allPackages : string [[]] = [[||]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCodeReal                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCodeReal = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## traceToggle                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable traceToggle = false
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getParentProcessId                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let getParentProcessId () =
>     if SpiralPlatform.is_windows () |> not
>     then 0u
>     else
>         let pid = System.Diagnostics.Process.GetCurrentProcess().Id
>         let query = $"SELECT ParentProcessId FROM Win32_Process WHERE ProcessId 
> = {pid}"
>         use searcher = new System.Management.ManagementObjectSearcher (query)
>         use results = searcher.Get ()
>         let data = results |> Seq.cast<System.Management.ManagementObject>
>         if data |> Seq.isEmpty
>         then 0u
>         else data |> Seq.head |> (fun mo -> mo.[["ParentProcessId"]] :?> uint32)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startTokenRangeWatcher                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline startTokenRangeWatcher () =
>     if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
>         let tokensDir = targetDir </> "tokens"
> 
>         [[ tokensDir ]]
>         |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>         let stream, disposable = FileSystem.watchDirectory (fun _ -> false) 
> tokensDir
> 
>         try
>             let existingFilesChild =
>                 tokensDir
>                 |> System.IO.Directory.GetDirectories
>                 |> Array.map (fun codeDir -> async {
>                     try
>                         let tokensPath = codeDir </> "tokens.json"
>                         if tokensPath |> File.Exists |> not then
>                             let spiralCodePath = codeDir </> "main.spi"
>                             let spiralRealCodePath = codeDir </> 
> "main_real.spir"
>                             let spiralExists = spiralCodePath |> 
> System.IO.File.Exists
>                             let spiralRealExists = spiralRealCodePath |> 
> System.IO.File.Exists
>                             if spiralExists |> not && spiralRealExists |> not
>                             then do! codeDir |> 
> SpiralFileSystem.delete_directory_async |> Async.Ignore
>                             else
>                                 let! tokens =
>                                     if spiralExists then spiralCodePath else 
> spiralRealCodePath
>                                     |> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> SpiralFileSystem.write_all_text_async
> tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / GetDirectories / tokens: None") _locals
>                     with ex ->
>                         trace Critical (fun () -> $"Eval.startTokenRangeWatcher 
> / GetDirectories / ex: {ex |> SpiralSm.format_exception}") _locals
>                 })
>                 |> Async.Parallel
>                 |> Async.Ignore
> 
>             let streamAsyncChild =
>                 stream
>                 |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
> ->
>                     match event with
>                     | FileSystem.FileSystemChange.Changed (codePath, _)
>                         when [[ "main.spi"; "main_real.spir" ]]
>                             |> List.contains (System.IO.Path.GetFileName 
> codePath)
>                         ->
>                         async {
>                             let hashDir = codePath |> 
> System.IO.Directory.GetParent
>                             let hashHex = hashDir.Name
>                             let codePath = tokensDir </> codePath
>                             let tokensPath = tokensDir </> hashHex </> 
> "tokens.json"
>                             // do! Async.Sleep 30
>                             let rec loop retry = async {
>                                 let! tokens = codePath |> 
> Supervisor.getFileTokenRange None None
>                                 if retry = 3 || tokens <> Some [[||]]
>                                 then return tokens, retry
>                                 else
>                                     trace Debug
>                                         (fun () -> $"Eval.startTokenRangeWatcher
> / iterAsyncParallel")
>                                         (fun () -> $"retry: {retry} / tokens: 
> {tokens}")
>                                     do! Async.Sleep 30
>                                     return! loop (retry + 1)
>                             }
>                             let! tokens, retries = loop 1
>                             match tokens with
>                             | Some tokens ->
>                                 do!
>                                     tokens
>                                     |> FSharp.Json.Json.serialize
>                                     |> SpiralFileSystem.write_all_text_exists 
> tokensPath
>                             | None ->
>                                 trace Debug
>                                     (fun () -> $"Eval.startTokenRangeWatcher / 
> iterAsyncParallel")
>                                     (fun () -> $"retries: {retries} / tokens: 
> {tokens}")
>                         }
>                         |> Async.retryAsync 3
>                         |> Async.map (Result.toOption >> Option.defaultValue ())
>                     | _ -> () |> Async.init
>                 )
> 
>             let parentAsyncChild = async {
>                 let parentProcessId = getParentProcessId ()
>                 trace Verbose
>                     (fun () -> "Eval.parentAsyncChild")
>                     (fun () -> $"parentProcessId: {parentProcessId} / {_locals 
> ()}")
> 
>                 if parentProcessId > 0u then
>                     let parentProcess = parentProcessId |> int |> 
> System.Diagnostics.Process.GetProcessById
>                     do! parentProcess.WaitForExitAsync () |> Async.AwaitTask
>                     trace Debug
>                         (fun () -> "Eval.parentAsyncChild / Parent process has 
> exited. Performing cleanup...")
>                         (fun () -> $"{_locals ()}")
>                     System.Threading.Thread.Sleep 1000
>                     System.Environment.Exit 1
>             }
> 
>             async {
>                 do! Async.Sleep 3000
>                 existingFilesChild |> Async.StartImmediate
>                 streamAsyncChild |> Async.Start
>                 parentAsyncChild |> Async.Start
>             }
>             |> Async.Start
>         with ex ->
>             trace Critical (fun () -> $"Eval.startTokenRangeWatcher / ex: {ex |>
> SpiralSm.format_exception}") _locals
> 
>         disposable
>     else new_disposable (fun () -> ())
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startCommandsWatcher                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let startCommandsWatcher (uriServer : string) =
>     let commandsDir = targetDir </> "eval_commands"
>     let commandHistoryDir = targetDir </> "eval_command_history"
>     [[ commandsDir; commandHistoryDir ]]
>     |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>     Directory.EnumerateFiles commandsDir |> Seq.iter File.Delete
> 
>     let stream, disposable =
>         commandsDir
>         |> FileSystem.watchDirectory (function
>             | FileSystem.FileSystemChange.Created _ -> true
>             | _ -> false
>         )
> 
>     let connection = HubConnectionBuilder().WithUrl(uriServer).Build()
>     connection.StartAsync() |> Async.AwaitTask |> Async.Start
>     // let _ = connection.On<string>("ServerToClientMsg", fun x ->
>     //     printfn $"ServerToClientMsg: '{x}'"
>     // )
> 
>     stream
>     |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event) -> async {
>         let _locals () = $"ticks: {ticks} / event: {event} / {_locals ()}"
>         trace Verbose (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
> 
>         match event with
>         | FileSystem.FileSystemChange.Created (path, Some json) ->
>             try
>                 let fullPath = commandsDir </> path
>                 let! result = 
> connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
>                 let commandHistoryPath = commandHistoryDir </> path
>                 do! fullPath |> SpiralFileSystem.move_file_async 
> commandHistoryPath |> Async.Ignore
>                 if result |> SpiralSm.trim |> String.length > 0 then
>                     let resultPath = commandHistoryDir </> 
> $"{Path.GetFileNameWithoutExtension path}_result.json"
>                     do! result |> SpiralFileSystem.write_all_text_async 
> resultPath
>             with ex ->
>                 let _locals () = $"ex: {ex |> SpiralSm.format_exception} / 
> {_locals ()}"
>                 trace Critical (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
>         | _ -> ()
>     })
>     |> Async.StartChild
>     |> Async.Ignore
>     |> Async.Start
> 
>     new_disposable (fun () ->
>         disposable.Dispose ()
>     )
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## prepareSpiral                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let prepareSpiral rawCellCode lines =
>     let lastBlock =
>         lines
>         |> Array.tryFindBack (fun line ->
>             line |> String.length > 0
>             && line.[[0]] <> ' '
>         )
> 
>     let hasMain =
>         lastBlock
>         |> Option.exists (fun line ->
>             line |> SpiralSm.starts_with "inl main "
>             || line |> SpiralSm.starts_with "let main "
>         )
> 
>     if hasMain
>     then rawCellCode, None
>     else
>         let lastTopLevelIndex, _ =
>             (lines |> Array.indexed, (None, false))
>             ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, finished) ->
>                 // trace Verbose (fun () -> $"Eval.prepareSpiral / i: {i} / 
> line: '{line}' / lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}")
> _locals
>                 match line with
>                 | _ when finished -> lastTopLevelIndex, true
>                 | "" -> lastTopLevelIndex, false
>                 | line when
>                     line |> SpiralSm.starts_with " "
>                     || line |> SpiralSm.starts_with "// " -> lastTopLevelIndex, 
> false
>                 | line when
>                     line |> SpiralSm.starts_with "open "
>                     || line |> SpiralSm.starts_with "prototype "
>                     || line |> SpiralSm.starts_with "instance "
>                     || line |> SpiralSm.starts_with "type "
>                     || line |> SpiralSm.starts_with "union "
>                     || line |> SpiralSm.starts_with "nominal " -> 
> lastTopLevelIndex, true
>                 | line when
>                     line |> SpiralSm.starts_with "inl "
>                     || line |> SpiralSm.starts_with "and "
>                     || line |> SpiralSm.starts_with "let " ->
>                     let m =
>                         System.Text.RegularExpressions.Regex.Match (
>                             line,
>                             @"^(?:and +)?(inl|let) +((?:[[{( 
> ]]*)?[[~\(\w]]+[[\w\d']]*(?:|[[\w\d']]+[[ }]]*(?:&? *[[\w\d']]*\))?| 
> *[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]](?! +function)"
>                         )
>                     trace Verbose (fun () -> $"Eval.prepareSpi / m: '{m}' / 
> m.Groups.Count: {m.Groups.Count}") _locals
>                     if m.Groups.Count = 3
>                     then Some i, false
>                     else lastTopLevelIndex, true
>                 | _ -> Some i, false
>             )
>         let code =
>             match lastTopLevelIndex with
>             | Some lastTopLevelIndex ->
>                 lines
>                 |> Array.mapi (fun i line ->
>                     match i with
>                     | i when i < lastTopLevelIndex -> line
>                     | i when i = lastTopLevelIndex -> $"\nlet main () =\n    
> {line}"
>                     | _ when line |> SpiralSm.trim = "" -> ""
>                     | _ -> $"    {line}"
>                 )
>                 |> SpiralSm.concat "\n"
>             | None -> $"{rawCellCode}\n\ninl main () = ()\n"
>         code, lastTopLevelIndex
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## processSpiralOutput                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let processSpiralOutput
>     (props : {|
>         printCode: bool
>         traceLevel: TraceLevel
>         builderCommands: string array
>         lastTopLevelIndex: int option
>         backend: Supervisor.Backend
>         cancellationToken: _
>         spiralErrors: _
>         code: string
>         outputPath: string
>         isReal: bool
>     |})
>     = async {
>     let inline _trace (fn : unit -> string) =
>         if props.traceLevel = Verbose
>         then trace Info (fun () -> $"Eval.processSpiralOutput / props: {props |>
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {fn ()}") _locals
>         else fn () |> System.Console.WriteLine
> 
>     if props.printCode then
>         let ext = props.outputPath |> System.IO.Path.GetExtension
>         _trace (fun () -> if props.builderCommands.Length > 0 then 
> $"{ext}:\n{props.code}\n" else props.code)
> 
>     let workspaceRootExternal =
>         let currentDir =
>             System.IO.Directory.GetCurrentDirectory ()
>             |> SpiralSm.to_lower
>         let workspaceRoot = workspaceRoot |> SpiralSm.to_lower
>         if currentDir |> SpiralSm.starts_with workspaceRoot
>         then None
>         else Some workspaceRoot
> 
>     let! spiralBuilderResults =
>         match props.builderCommands, props.lastTopLevelIndex with
>         | [[||]], _ | _, None -> [[||]] |> Async.init
>         | builderCommands, _ ->
>             builderCommands
>             |> Array.map (fun builderCommand ->
>                 let path =
>                     workspaceRoot </> 
> $@"workspace/target/release/spiral_builder{SpiralPlatform.get_executable_suffix 
> ()}"
>                     |> System.IO.Path.GetFullPath
>                 let commands =
>                     if props.backend = Supervisor.Fsharp
>                         && (
>                             builderCommand |> SpiralSm.starts_with "rust"
>                             || builderCommand |> SpiralSm.starts_with 
> "typescript"
>                             || builderCommand |> SpiralSm.starts_with "python"
>                         )
>                     then [[| $"{path} fable --fs-path \"{props.outputPath}\" 
> --command \"{builderCommand}\"" |]]
>                     elif props.backend = Supervisor.Cuda
>                         && builderCommand |> SpiralSm.starts_with "cuda"
>                     then [[| $"{path} {builderCommand} --py-path 
> \"{props.outputPath}\"" |]]
>                     else [[||]]
>                 builderCommand, commands
>             )
>             |> Array.filter (fun (_, commands) -> commands.Length > 0)
>             |> Array.map (fun (builderCommand, commands) ->
>                 commands
>                 |> Array.map (fun command -> async {
>                     let! exitCode, result =
>                         SpiralRuntime.execution_options (fun x ->
>                             { x with
>                                 l0 = command
>                                 l1 = props.cancellationToken
>                                 l2 = [[|
>                                     "AUTOMATION", assemblyName = "dotnet-repl" 
> |> string
>                                     "TRACE_LEVEL", $"%A{if props.printCode then 
> props.traceLevel else Info}"
>                                 |]]
>                                 l6 = workspaceRootExternal
>                             }
>                         )
>                         |> SpiralRuntime.execute_with_options_async
>                     trace Debug
>                         (fun () -> $"Eval.processSpiralOutput / spiral_builder")
>                         (fun () -> $"exitCode: {exitCode} / builderCommand: 
> {builderCommand} / result: {result |> SpiralSm.ellipsis_end 400} / {_locals 
> ()}")
>                     return
>                         if exitCode = 0
>                         then {| code = result; eval = false; builderCommand = 
> builderCommand |} |> Ok
>                         else result |> Error
>                 })
>             )
>             |> Array.collect id
>             |> Async.Parallel
> 
>     let hasEval =
>         props.backend = Supervisor.Fsharp
>         && props.builderCommands |> Array.exists (fun x -> x |> 
> SpiralSm.starts_with "fsharp")
> 
>     let outputResult =
>         if props.builderCommands.Length > 0 && not hasEval
>         then None
>         else
>             let code =
>                 if props.builderCommands.Length > 1
>                 then
>                     let header = "System.Console.WriteLine \".fsx output:\"\n"
>                     $"{header}{props.code}"
>                 else props.code
>             Some (Ok [[ {| code = code; eval = true; builderCommand = "" |} ]])
> 
>     match outputResult, spiralBuilderResults with
>     | Some outputResult, [[||]] ->
>         return outputResult, [[||]]
>     | None, [[||]] ->
>         return Ok [[ {| code = "()"; eval = true; builderCommand = "" |} ]], 
> [[||]]
>     | _, spiralBuilderResults ->
>         try
>             let spiralResults =
>                 match outputResult with
>                 | Some (Ok code) ->
>                     spiralBuilderResults
>                     |> Array.append (code |> List.map Ok |> List.toArray)
>                 | _ -> spiralBuilderResults
>             let codes =
>                 spiralResults
>                 |> Array.map (fun spiralBuilderResult' ->
>                     let commandResult, errors =
>                         match spiralBuilderResult' with
>                         | Ok result when result.eval = false ->
>                             let result' =
>                                 result.code
>                                 |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                             let result =
>                                 match result' |> Map.tryFind "command_result" 
> with
>                                 | Some result'' ->
>                                     result''
>                                     |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                                     |> Map.add "builderCommand" 
> result.builderCommand
>                                 | None -> Map.empty
>                             result, [[||]]
>                         | Ok result when result.eval = true ->
>                             let result =
>                                 [[
>                                     "extension", "fsx"
>                                     "code", result.code
>                                     "output", ""
>                                 ]]
>                                 |> Map.ofList
>                             result, [[||]]
>                         | Error error ->
>                             Map.empty,
>                             [[|
>                                 (
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / evalResult error / errors[[0]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / 
> spiralBuilderResult': %A{spiralBuilderResult'} / error: %A{error}", 0, ("", (0, 
> 0), (0, 0))
>                                 )
>                             |]]
>                         | _ ->
>                             Map.empty, [[||]]
> 
>                     if errors |> Array.isEmpty |> not
>                     then Error (Exception $"Eval.processSpiralOutput / 
> evalResult errors / Exception / commandResult: %A{commandResult}"), errors
>                     else
>                         let extension = commandResult.[["extension"]]
>                         let code = commandResult.[["code"]]
>                         let output = commandResult.[["output"]]
>                         let builderCommand =
>                             commandResult
>                             |> Map.tryFind "builderCommand"
>                             |> Option.defaultValue ""
> 
>                         let eval = output = "" && extension = "fsx"
> 
>                         if props.printCode && not eval
>                         then _trace (fun () -> $""".{extension}:{'\n'}{code}""")
> 
>                         trace Debug
>                             (fun () -> $"Eval.processSpiralOutput / result")
>                             (fun () -> $"builderCommand: {builderCommand} / 
> extension: {extension} / commandResult: {commandResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}/ {_locals ()}")
> 
>                         let code =
>                             if props.printCode
>                                 || spiralResults.Length > 1
>                                 || props.builderCommands.Length > 1
>                             then
>                                 if eval then
>                                     code
>                                 else
>                                     let header =
>                                         let info =
>                                             match props.backend, builderCommand 
> with
>                                             | Supervisor.Fsharp, builderCommand
>                                                 when builderCommand |> 
> SpiralSm.contains " " -> $" ({builderCommand})"
>                                             | Supervisor.Fsharp, _ -> ""
>                                             | _ -> $" ({props.backend})"
>                                         if info = ""
>                                         then $".{extension} output:\n"
>                                         else $".{extension} output{info}:\n"
>                                     $"""{if output |> SpiralSm.contains "\n" 
> then "\n" else ""}{header}{output}"""
>                             elif eval
>                             then code
>                             else output
>                         Ok {| code = code; eval = eval; builderCommand = 
> builderCommand |}, [[||]]
>                 )
>             trace Debug
>                 (fun () -> $"Eval.processSpiralOutput / codes")
>                 (fun () ->
>                     let props = {| props with cancellationToken = None |}
>                     $"codes: {codes |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 400} / spiralResults: {spiralResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / spiralBuilderResults:
> {spiralBuilderResults |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 
> 400} / props: {props |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}
> / {_locals ()}")
>             return
>                 (((Ok [[]]), [[||]]), codes)
>                 ||> Array.fold (fun (acc_code, acc_errors) (code, errors) ->
>                     match code, acc_code with
>                     | Ok code, Ok acc_code ->
>                         let errors =
>                             acc_errors
>                             |> Array.append errors
>                             |> Array.append props.spiralErrors
>                         let errors =
>                             if errors |> Array.isEmpty
>                             then errors
>                             else
>                                 let code = $"%A{code}"
>                                 errors
>                                 |> Array.append [[|
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / errors / errors[[-1]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / code: {code |>
> SpiralSm.ellipsis_end 400}", 0, ("", (0, 0), (0, 0))
>                                 |]]
>                         Ok (code :: acc_code), errors
>                     | Error ex, _
>                     | _, Error ex ->
>                         Error (Exception $"Eval.processSpiralOutput / -1 / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                         acc_errors |> Array.append errors
>                 )
>         with ex ->
>             trace Critical (fun () -> $"Eval.processSpiralOutput / try 2 ex / 
> spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return
>                 Error (Exception $"Eval.processSpiralOutput / try 2 ex / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                 [[|
>                     (
>                         TraceLevel.Critical, $"Eval.processSpiralOutput / try 2 
> ex / errors[[0]] / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                     )
>                 |]]
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## tryGetPropertyValue                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let tryGetPropertyValue (propertyName: string) (obj: obj) =
>     let objType = obj.GetType ()
>     let propertyInfo = propertyName |> objType.GetProperty
>     if propertyInfo <> null
>     then propertyInfo.GetValue (obj, null) |> Some
>     else None
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## eval                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline eval
>     (fsi_eval:
>         string
>         -> System.Threading.CancellationToken
>         -> Choice<'a, Exception> * (TraceLevel * string * int * (string * (int *
> int) * (int * int))) array)
>     (cancellationToken: Option<System.Threading.CancellationToken>)
>     (code: string)
>     =
>     trace Verbose
>         (fun () -> $"Eval.eval")
>         (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>     let rawCellCode =
>         code |> SpiralSm.replace "\r\n" "\n"
> 
>     let lines = rawCellCode |> SpiralSm.split "\n"
> 
>     if lines |> Array.exists (fun line -> line |> SpiralSm.starts_with "#r " && 
> line |> SpiralSm.ends_with "\"") then
>         let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>         let ch, errors = fsi_eval code cancellationToken
>         trace Verbose (fun () -> $"Eval.eval / fsi_eval 1 / ch: %A{ch} / errors:
> {errors}") _locals
>         match ch with
>         | Choice1Of2 v -> Ok(v), errors
>         | Choice2Of2 ex -> Error(ex), errors
>     else
>         let builderCommands =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "///! "
>                 then line |> SpiralSm.split "///! " |> Array.tryItem 1
>                 else None
>             )
> 
>         let packages =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "//// package="
>                 then line |> SpiralSm.split "=" |> Array.skip 1 |> 
> SpiralSm.concat "" |> Some
>                 else None
>             )
>         
>         allPackages <- packages |> Array.append allPackages |> Array.distinct
> 
>         let timeout =
>             lines
>             |> Array.tryPick (fun line ->
>                 if line |> SpiralSm.starts_with "//// timeout="
>                 then line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map
> int
>                 else None
>             )
>             |> Option.defaultValue (60000 * 60)
> 
>         let boolArg def command =
>             lines
>             |> Array.tryPick (fun line ->
>                 let text = $"//// {command}"
>                 match line.[[0..text.Length-1]], line.[[text.Length..]] with
>                 | head, "" when head = text ->
>                     Some true
>                 | head, _ when head = text ->
>                     line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map 
> ((<>) "false")
>                 | _ -> None
>             )
>             |> Option.defaultValue def
> 
>         let printCode = "print_code" |> boolArg false
>         let isTraceToggle = "trace_toggle" |> boolArg false
>         let isTrace = "trace" |> boolArg false
>         let isCache = "cache" |> boolArg false
>         let isReal = "real" |> boolArg false
> 
>         if isTraceToggle
>         then traceToggle <- not traceToggle
> 
>         let oldLevel = get_trace_level ()
>         let traceLevel =
>             if isTrace || traceToggle
>             then Verbose
>             else Info
>         traceLevel
>         |> to_trace_level
>         |> set_trace_level
>         use _ = (new_disposable (fun () ->
>             oldLevel |> set_trace_level
>         ))
> 
>         async {
>             try
>                 let cellCode, lastTopLevelIndex = prepareSpiral rawCellCode 
> lines
>                 let newAllCode =
>                     if isReal
>                     then $"{allCodeReal}\n\n{cellCode}"
>                     else $"{allCode}\n\n{cellCode}"
> 
>                 let buildBackends =
>                     if builderCommands.Length = 0
>                     then [[| Supervisor.Fsharp |]]
>                     else
>                         builderCommands
>                         |> Array.map (fun x ->
>                             if x |> SpiralSm.starts_with "cuda"
>                             then Supervisor.Cuda
>                             else Supervisor.Fsharp
>                         )
>                         |> Array.distinct
> 
>                 trace Verbose
>                     (fun () -> $"Eval.eval")
>                     (fun () -> $"lastTopLevelIndex: {lastTopLevelIndex} / 
> builderCommands: %A{builderCommands} / buildBackends: %A{buildBackends} / 
> isReal: {isReal} / {_locals ()}")
> 
>                 let! buildCodeResults =
>                     buildBackends
>                     |> Array.map (fun backend -> async {
>                         let! result =
>                             if isReal
>                             then Supervisor.Spir newAllCode
>                             else
>                                 Supervisor.Spi
>                                     (newAllCode, if allCodeReal = "" then None 
> else Some allCodeReal)
>                             |> Supervisor.buildCode backend allPackages isCache 
> timeout cancellationToken
>                         return backend, result
>                     })
>                     |> Async.Parallel
>                     |> Async.catch
>                     |> Async.runWithTimeoutAsync timeout
> 
>                 match buildCodeResults with
>                 | Some (Ok buildCodeResults) ->
>                     let! result, errors =
>                         ((Ok [[]], [[||]]), buildCodeResults)
>                         ||> Async.fold (fun acc buildCodeResult -> async {
>                             match buildCodeResult with
>                             | backend, (_, (outputPath, Some code), 
> spiralErrors) ->
>                                 let spiralErrors =
>                                     mapErrors (Warning, spiralErrors, 
> lastTopLevelIndex) allCode
>                                 let! result =
>                                     processSpiralOutput
>                                         {|
>                                             printCode = printCode
>                                             traceLevel = traceLevel
>                                             builderCommands = builderCommands
>                                             lastTopLevelIndex = 
> lastTopLevelIndex
>                                             backend = backend
>                                             cancellationToken = 
> cancellationToken
>                                             spiralErrors = spiralErrors
>                                             code = code
>                                             outputPath = outputPath
>                                             isReal = isReal
>                                         |}
>                                 match result, acc with
>                                 | (Ok code, errors), (Ok acc_code, acc_errors) 
> ->
>                                     return Ok (acc_code @ code), acc_errors |> 
> Array.append errors
>                                 | (Error ex, errors), _ | _, (Error ex, errors) 
> ->
>                                     return
>                                         Error (Exception $"Eval.eval / 
> processSpiralOutput / Exception / buildCodeResult: %A{buildCodeResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                                         errors |> Array.append errors
>                             | _, (_, _, errors) when errors |> List.isEmpty |> 
> not ->
>                                 return errors.[[0]] |> fst |> Exception |> 
> Error,
>                                 mapErrors (TraceLevel.Critical, errors, 
> lastTopLevelIndex) allCode
>                             | _ -> return acc
>                         })
>                     let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>                     match result, errors with
>                     | Ok code, [[||]] ->
>                         let code, eval =
>                             code
>                             |> List.map (fun code ->
>                                 if code.eval
>                                 then None, Some code.code
>                                 else Some code.code, None
>                             )
>                             |> List.unzip
>                         let code = code |> List.choose id
>                         let eval = eval |> List.choose id
> 
>                         trace Debug
>                             (fun () -> $"Eval.eval")
>                             (fun () -> $"eval: {eval |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / code: {code |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>                         let ch, errors =
>                             match eval, code with
>                             | [[]], [[]] ->
>                                 Choice2Of2 (Exception $"Eval.eval / eval=[[]] / 
> code=[[]] / buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                             | [[ eval ]], [[]] ->
>                                 let ch, errors2 = fsi_eval eval 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | [[]], _ ->
>                                 let code = code |> List.rev |> String.concat 
> "\n\n"
>                                 let code =
>                                     if printCode
>                                     then $"\"\"\"{code}\n\n\"\"\""
>                                     else $"\"\"\"{code}\n\"\"\""
>                                 let ch, errors2 = fsi_eval code 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | _ ->
>                                 let code, errors =
>                                     ((Ok (code |> List.rev), [[||]]), eval)
>                                     ||> List.fold (fun (acc, acc_errors) eval ->
>                                         match acc with
>                                         | Error ch -> Error ch, acc_errors
>                                         | Ok acc ->
>                                             let ch, errors = fsi_eval eval 
> cancellationToken
>                                             let errors =
>                                                 errors
>                                                 // |> Array.map (fun (e1, e2, 
> e3, _) ->
>                                                 //     (e1, e2, e3, ("", (0, 0),
> (0, 0)))
>                                                 // )
>                                                 |> Array.append acc_errors
>                                             match ch with
>                                             | Choice1Of2 v ->
>                                                 let v =
>                                                     v
>                                                     |> tryGetPropertyValue 
> "ReflectionValue"
>                                                     |> Option.map (fun x -> 
> $"%A{x}")
>                                                     |> Option.defaultValue ""
>                                                 Ok (v :: acc), errors
>                                             | Choice2Of2 ex ->
>                                                 trace Critical (fun () -> 
> $"Eval.eval / fsi_eval fold Choice error / buildCodeResults: 
> %A{buildCodeResults} / ex: {ex |> SpiralSm.format_exception}") _locals
>                                                 Error ch, errors
>                                     )
>                                 match code with
>                                 | Error ch -> ch, errors
>                                 | Ok code ->
>                                     let code =
>                                         code
>                                         |> List.filter ((<>) "")
>                                         |> String.concat "\n\n"
> 
>                                     let code =
>                                         if builderCommands.Length > 0 && 
> eval.Length = 0
>                                         then code
>                                         elif code |> SpiralSm.contains "\n\n\n"
>                                         then $"{code}\n\n"
>                                         else $"{code}\n"
> 
>                                     let code =
>                                         if printCode
>                                         then $"\"\"\"{code}\n\n\n\"\"\""
>                                         else $"\"\"\"{code}\n\"\"\""
>                                     let ch, errors2 = fsi_eval code 
> cancellationToken
>                                     let errors =
>                                         errors2
>                                         // |> Array.map (fun (e1, e2, e3, _) ->
>                                         //     (e1, e2, e3, ("", (0, 0), (0, 
> 0)))
>                                         // )
>                                         |> Array.append errors
>                                     ch, errors
>                         match ch with
>                         | Choice1Of2 v ->
>                             if isReal
>                             then allCodeReal <- newAllCode
>                             else allCode <- newAllCode
>                             return Ok(v), errors
>                         | Choice2Of2 ex ->
>                             return
>                                 Error (Exception $"Eval.eval / -2 / Exception / 
> buildCodeResults: {buildCodeResults |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 400} / ex: {ex |> SpiralSm.format_exception}"),
>                                 errors
>                     | Ok code, errors ->
>                         return
>                             Error (Exception "Eval.eval / errors / 
> buildCodeResults: %A{buildCodeResults} / code: %A{code}"),
>                             errors
>                     | Error ex, errors ->
>                         return
>                             Error (Exception $"Eval.eval / -1 / Exception / 
> buildCodeResults: {buildCodeResults |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 1500} / ex: {ex |> SpiralSm.format_exception}"),
>                             errors
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Eval.eval / buildCodeResults 
> Error / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>                     return
>                         Error (Exception $"Eval.eval / buildCodeResults Error / 
> Exception / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                         [[|
>                             (
>                                 TraceLevel.Critical, $"Eval.eval / 
> buildCodeResults Error / errors[[0]] / buildCodeResults: %A{buildCodeResults} / 
> ex: {ex |> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                             )
>                         |]]
>                 | _ ->
>                     return
>                         Error (Exception $"Eval.eval / buildCodeResults / 
> Exception / buildCodeResults: %A{buildCodeResults}"),
>                         [[|
>                             (
>                                 TraceLevel.Critical, $"Eval.eval / 
> buildCodeResults / errors[[0]] / buildCodeResults: %A{buildCodeResults}", 0, 
> ("", (0, 0), (0, 0))
>                             )
>                         |]]
>             with ex ->
>                 trace Critical (fun () -> $"Eval.eval / try 1 ex / ex: {ex |> 
> SpiralSm.format_exception} / lines: %A{lines}") _locals
>                 return
>                     Error (Exception $"Eval.eval / try 1 ex / Exception / ex: 
> {ex |> SpiralSm.format_exception} / lines: %A{lines}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / try 1 ex / 
> errors[[0]] / ex: {ex |> SpiralSm.format_exception} / lines: %A{lines}", 0, ("",
> (0, 0), (0, 0))
>                         )
>                     |]]
>         }
>         |> Async.runWithTimeout timeout
>         |> Option.defaultValue (
>             Error (Exception $"Eval.eval / Async.runWithTimeout / Exception / 
> timeout: {timeout} / lines: %A{lines}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.eval / Async.runWithTimeout / 
> errors[[0]] / timeout: {timeout} / lines: %A{lines}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
>         )
00:01:00 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 52560 }
00:01:00   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
    "nbconvert",
    "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb",
    "--to",
    "html",
    "--HTMLExporter.theme=dark",
]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:02 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb to html
00:01:02 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:02 verbose #7 !   validate(nb)
00:01:05 verbose #8 ! [NbConvertApp] Writing 452073 bytes to c:\home\git\polyglot\apps\spiral\Eval.dib.html
00:01:05 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:01:05   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:01:05   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
    "-c",
    "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:05 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:05   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:05   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 53260 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Eval.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ pwsh ../lib/fsharp/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Async.dib", "--retries", "3"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/lib/fsharp/Async.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Async.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #11 > >
00:00:03 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #14 > > │ # Async (Polyglot)                                                           │
00:00:03 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #16 > >
00:00:22 verbose #17 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #18 > > #if !INTERACTIVE
00:00:22 verbose #19 > > open Lib
00:00:22 verbose #20 > > #endif
00:00:22 verbose #21 > >
00:00:22 verbose #22 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #23 > > open Common
00:00:22 verbose #24 > >
00:00:22 verbose #25 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #26 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #27 > > │ ## choice                                                                    │
00:00:22 verbose #28 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #29 > >
00:00:22 verbose #30 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #31 > > let inline choice asyncs = async {
00:00:22 verbose #32 > >     let e = Event<_> ()
00:00:22 verbose #33 > >     use cts = new System.Threading.CancellationTokenSource ()
00:00:22 verbose #34 > >     let fn =
00:00:22 verbose #35 > >         asyncs
00:00:22 verbose #36 > >         |> Seq.map (fun a -> async {
00:00:22 verbose #37 > >             let! x = a
00:00:22 verbose #38 > >             e.Trigger x
00:00:22 verbose #39 > >         })
00:00:22 verbose #40 > >         |> Async.Parallel
00:00:22 verbose #41 > >         |> Async.Ignore
00:00:22 verbose #42 > >     Async.Start (fn, cts.Token)
00:00:22 verbose #43 > >     let! result = Async.AwaitEvent e.Publish
00:00:22 verbose #44 > >     cts.Cancel ()
00:00:22 verbose #45 > >     return result
00:00:22 verbose #46 > > }
00:00:22 verbose #47 > >
00:00:22 verbose #48 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #49 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #50 > > │ ## map                                                                       │
00:00:22 verbose #51 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #52 > >
00:00:22 verbose #53 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #54 > > let inline map fn a = async {
00:00:22 verbose #55 > >     let! x = a
00:00:22 verbose #56 > >     return fn x
00:00:22 verbose #57 > > }
00:00:22 verbose #58 > >
00:00:22 verbose #59 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #60 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #61 > > │ ## catch                                                                     │
00:00:22 verbose #62 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #63 > >
00:00:22 verbose #64 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #65 > > let inline catch a =
00:00:22 verbose #66 > >     a
00:00:22 verbose #67 > >     |> Async.Catch
00:00:22 verbose #68 > >     |> map (function
00:00:22 verbose #69 > >         | Choice1Of2 result -> Ok result
00:00:22 verbose #70 > >         | Choice2Of2 ex -> Error ex
00:00:22 verbose #71 > >     )
00:00:22 verbose #72 > >
00:00:22 verbose #73 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #74 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #75 > > │ ## runWithTimeoutChoiceAsync                                                 │
00:00:22 verbose #76 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #77 > >
00:00:22 verbose #78 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #79 > > let inline runWithTimeoutChoiceAsync (timeout : int) fn =
00:00:22 verbose #80 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:22 verbose #81 > >
00:00:22 verbose #82 > >     let timeoutTask = async {
00:00:22 verbose #83 > >         do! Async.Sleep timeout
00:00:22 verbose #84 > >         trace Debug (fun () -> "runWithTimeoutChoiceAsync") _locals
00:00:22 verbose #85 > >         return None
00:00:22 verbose #86 > >     }
00:00:22 verbose #87 > >
00:00:22 verbose #88 > >     let task = async {
00:00:22 verbose #89 > >         try
00:00:22 verbose #90 > >             let! result = fn
00:00:22 verbose #91 > >             return Some result
00:00:22 verbose #92 > >         with
00:00:22 verbose #93 > >         | :? System.AggregateException as ex when
00:00:22 verbose #94 > >             ex.InnerExceptions
00:00:22 verbose #95 > >             |> Seq.exists (function :?
00:00:22 verbose #96 > > System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
00:00:22 verbose #97 > >             ->
00:00:22 verbose #98 > >             trace Warning
00:00:22 verbose #99 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:22 verbose #100 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:22 verbose #101 > > ()}")
00:00:22 verbose #102 > >             return None
00:00:22 verbose #103 > >         | ex ->
00:00:22 verbose #104 > >             trace Critical
00:00:22 verbose #105 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:22 verbose #106 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:22 verbose #107 > > ()}")
00:00:22 verbose #108 > >             return None
00:00:22 verbose #109 > >     }
00:00:22 verbose #110 > >
00:00:22 verbose #111 > >     [[ timeoutTask; task ]]
00:00:22 verbose #112 > >     |> choice
00:00:22 verbose #113 > >
00:00:22 verbose #114 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #115 > > let inline runWithTimeoutChoice timeout fn =
00:00:22 verbose #116 > >     fn
00:00:22 verbose #117 > >     |> runWithTimeoutChoiceAsync timeout
00:00:22 verbose #118 > >     |> Async.RunSynchronously
00:00:22 verbose #119 > >
00:00:22 verbose #120 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #121 > > //// test
00:00:22 verbose #122 > >
00:00:22 verbose #123 > > Async.Sleep 120
00:00:22 verbose #124 > > |> runWithTimeoutChoice 10
00:00:22 verbose #125 > > |> _assertEqual None
00:00:23 verbose #126 > >
00:00:23 verbose #127 > > ╭─[ 256.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #128 > > │ 00:00:01   debug #1 runWithTimeoutChoiceAsync / timeout: 10             │
00:00:23 verbose #129 > > │ <null>                                                                       │
00:00:23 verbose #130 > > │                                                                              │
00:00:23 verbose #131 > > │                                                                              │
00:00:23 verbose #132 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #133 > >
00:00:23 verbose #134 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #135 > > //// test
00:00:23 verbose #136 > >
00:00:23 verbose #137 > > Async.Sleep 10
00:00:23 verbose #138 > > |> runWithTimeoutChoice 60
00:00:23 verbose #139 > > |> _assertEqual (Some ())
00:00:23 verbose #140 > >
00:00:23 verbose #141 > > ╭─[ 210.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #142 > > │ Some ()                                                                      │
00:00:23 verbose #143 > > │                                                                              │
00:00:23 verbose #144 > > │                                                                              │
00:00:23 verbose #145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #146 > >
00:00:23 verbose #147 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #148 > > //// test
00:00:23 verbose #149 > >
00:00:23 verbose #150 > > async {
00:00:23 verbose #151 > >     raise (exn "error")
00:00:23 verbose #152 > > }
00:00:23 verbose #153 > > |> runWithTimeoutChoice 60
00:00:23 verbose #154 > > |> _assertEqual None
00:00:23 verbose #155 > >
00:00:23 verbose #156 > > ╭─[ 187.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #157 > > │ 00:00:01 critical #2 runWithTimeoutChoiceAsync / ex: System.Exception:  │
00:00:23 verbose #158 > > │ error / timeout: 60                                                          │
00:00:23 verbose #159 > > │ <null>                                                                       │
00:00:23 verbose #160 > > │                                                                              │
00:00:23 verbose #161 > > │                                                                              │
00:00:23 verbose #162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #163 > >
00:00:23 verbose #164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #166 > > │ ## runWithTimeoutAsync                                                       │
00:00:23 verbose #167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #168 > >
00:00:23 verbose #169 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #170 > > let inline runWithTimeoutAsync (timeout : int) fn = async {
00:00:23 verbose #171 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:23 verbose #172 > >     let! child = Async.StartChild (fn, timeout)
00:00:23 verbose #173 > >     return!
00:00:23 verbose #174 > >         child
00:00:23 verbose #175 > >         |> catch
00:00:23 verbose #176 > >         |> map (function
00:00:23 verbose #177 > >             | Ok result -> Some result
00:00:23 verbose #178 > >             | Error (:? System.TimeoutException as ex) ->
00:00:23 verbose #179 > >                 trace Debug (fun () -> $"runWithTimeoutAsync") _locals
00:00:23 verbose #180 > >                 None
00:00:23 verbose #181 > >             | Error ex ->
00:00:23 verbose #182 > >                 trace Critical (fun () -> $"runWithTimeoutAsync** / ex: %A{ex}")
00:00:23 verbose #183 > > _locals
00:00:23 verbose #184 > >                 None
00:00:23 verbose #185 > >         )
00:00:23 verbose #186 > > }
00:00:23 verbose #187 > >
00:00:23 verbose #188 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #189 > > let inline runWithTimeout timeout fn =
00:00:23 verbose #190 > >     fn
00:00:23 verbose #191 > >     |> runWithTimeoutAsync timeout
00:00:23 verbose #192 > >     |> Async.RunSynchronously
00:00:23 verbose #193 > >
00:00:23 verbose #194 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #195 > > //// test
00:00:23 verbose #196 > >
00:00:23 verbose #197 > > Async.Sleep 60
00:00:23 verbose #198 > > |> runWithTimeout 10
00:00:23 verbose #199 > > |> _assertEqual None
00:00:23 verbose #200 > >
00:00:23 verbose #201 > > ╭─[ 108.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #202 > > │ 00:00:02   debug #3 runWithTimeoutAsync / timeout: 10                   │
00:00:23 verbose #203 > > │ <null>                                                                       │
00:00:23 verbose #204 > > │                                                                              │
00:00:23 verbose #205 > > │                                                                              │
00:00:23 verbose #206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #207 > >
00:00:23 verbose #208 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #209 > > //// test
00:00:23 verbose #210 > >
00:00:23 verbose #211 > > Async.Sleep 10
00:00:23 verbose #212 > > |> runWithTimeout 60
00:00:23 verbose #213 > > |> _assertEqual (Some ())
00:00:23 verbose #214 > >
00:00:23 verbose #215 > > ╭─[ 106.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #216 > > │ Some ()                                                                      │
00:00:23 verbose #217 > > │                                                                              │
00:00:23 verbose #218 > > │                                                                              │
00:00:23 verbose #219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #220 > >
00:00:23 verbose #221 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #222 > > //// test
00:00:23 verbose #223 > >
00:00:23 verbose #224 > > async {
00:00:23 verbose #225 > >     raise (exn "error")
00:00:23 verbose #226 > > }
00:00:23 verbose #227 > > |> runWithTimeout 60
00:00:23 verbose #228 > > |> _assertEqual None
00:00:24 verbose #229 > >
00:00:24 verbose #230 > > ╭─[ 167.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 verbose #231 > > │ 00:00:02 critical #4 runWithTimeoutAsync** / ex: System.Exception:      │
00:00:24 verbose #232 > > │ error                                                                        │
00:00:24 verbose #233 > > │    at FSI_0036.it@4-119.Invoke(Unit unitVar)                                 │
00:00:24 verbose #234 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:24 verbose #235 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:24 verbose #236 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:24 verbose #237 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:24 verbose #238 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112                          │
00:00:24 verbose #239 > > │ --- End of stack trace from previous location ---                            │
00:00:24 verbose #240 > > │    at Microsoft.FSharp.Control.AsyncResult`1.Commit() in                     │
00:00:24 verbose #241 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454                             │
00:00:24 verbose #242 > > │    at                                                                        │
00:00:24 verbose #243 > > │ <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1962-4.Invoke(Unit  │
00:00:24 verbose #244 > > │ unitVar) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1964                │
00:00:24 verbose #245 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:24 verbose #246 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:24 verbose #247 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:24 verbose #248 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:24 verbose #249 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 60            │
00:00:24 verbose #250 > > │ <null>                                                                       │
00:00:24 verbose #251 > > │                                                                              │
00:00:24 verbose #252 > > │                                                                              │
00:00:24 verbose #253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #254 > >
00:00:24 verbose #255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #257 > > │ ## runWithTimeoutStrict                                                      │
00:00:24 verbose #258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #259 > >
00:00:24 verbose #260 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #261 > > let inline runWithTimeoutStrict (timeout : int) fn =
00:00:24 verbose #262 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:24 verbose #263 > >
00:00:24 verbose #264 > >     let timeoutTask = async {
00:00:24 verbose #265 > >         do! Async.Sleep timeout
00:00:24 verbose #266 > >         return None, _locals
00:00:24 verbose #267 > >     }
00:00:24 verbose #268 > >
00:00:24 verbose #269 > >     let task = async {
00:00:24 verbose #270 > >         try
00:00:24 verbose #271 > >             return Async.RunSynchronously (fn, timeout) |> Some, _locals
00:00:24 verbose #272 > >         with
00:00:24 verbose #273 > >         | :? System.TimeoutException as ex ->
00:00:24 verbose #274 > >             let _locals () = $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:24 verbose #275 > > ()}"
00:00:24 verbose #276 > >             return None, _locals
00:00:24 verbose #277 > >         | ex ->
00:00:24 verbose #278 > >             trace Critical
00:00:24 verbose #279 > >                 (fun () -> "runWithTimeoutStrict / async error")
00:00:24 verbose #280 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:24 verbose #281 > > ()}")
00:00:24 verbose #282 > >             return raise ex
00:00:24 verbose #283 > >     }
00:00:24 verbose #284 > >
00:00:24 verbose #285 > >     try
00:00:24 verbose #286 > >         [[| timeoutTask; task |]]
00:00:24 verbose #287 > >         |> Array.map Async.StartAsTask
00:00:24 verbose #288 > >         |> System.Threading.Tasks.Task.WhenAny
00:00:24 verbose #289 > >         |> fun task ->
00:00:24 verbose #290 > >             match task.Result.Result with
00:00:24 verbose #291 > >             | None, _locals ->
00:00:24 verbose #292 > >                 trace Debug (fun () -> "runWithTimeoutStrict") _locals
00:00:24 verbose #293 > >                 None
00:00:24 verbose #294 > >             | result, _ -> result
00:00:24 verbose #295 > >     with
00:00:24 verbose #296 > >     | :? System.AggregateException as ex when
00:00:24 verbose #297 > >         ex.InnerExceptions
00:00:24 verbose #298 > >         |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
00:00:24 verbose #299 > > -> true | _ -> false)
00:00:24 verbose #300 > >         ->
00:00:24 verbose #301 > >         trace Warning
00:00:24 verbose #302 > >             (fun () -> "runWithTimeoutStrict")
00:00:24 verbose #303 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:24 verbose #304 > >         None
00:00:24 verbose #305 > >     | ex ->
00:00:24 verbose #306 > >         trace Critical
00:00:24 verbose #307 > >             (fun () -> "runWithTimeoutStrict / task error")
00:00:24 verbose #308 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:24 verbose #309 > >         None
00:00:24 verbose #310 > >
00:00:24 verbose #311 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #312 > > //// test
00:00:24 verbose #313 > >
00:00:24 verbose #314 > > Async.Sleep 60
00:00:24 verbose #315 > > |> runWithTimeoutStrict 10
00:00:24 verbose #316 > > |> _assertEqual None
00:00:24 verbose #317 > >
00:00:24 verbose #318 > > ╭─[ 167.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 verbose #319 > > │ 00:00:02   debug #5 runWithTimeoutStrict / timeout: 10                  │
00:00:24 verbose #320 > > │ <null>                                                                       │
00:00:24 verbose #321 > > │                                                                              │
00:00:24 verbose #322 > > │                                                                              │
00:00:24 verbose #323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #324 > >
00:00:24 verbose #325 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #326 > > //// test
00:00:24 verbose #327 > >
00:00:24 verbose #328 > > Async.Sleep 10
00:00:24 verbose #329 > > |> runWithTimeoutStrict 60
00:00:24 verbose #330 > > |> _assertEqual (Some ())
00:00:24 verbose #331 > >
00:00:24 verbose #332 > > ╭─[ 186.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 verbose #333 > > │ Some ()                                                                      │
00:00:24 verbose #334 > > │                                                                              │
00:00:24 verbose #335 > > │                                                                              │
00:00:24 verbose #336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #337 > >
00:00:24 verbose #338 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #339 > > //// test
00:00:24 verbose #340 > >
00:00:24 verbose #341 > > async {
00:00:24 verbose #342 > >     raise (exn "error")
00:00:24 verbose #343 > > }
00:00:24 verbose #344 > > |> runWithTimeoutStrict 60
00:00:24 verbose #345 > > |> _assertEqual None
00:00:24 verbose #346 > >
00:00:24 verbose #347 > > ╭─[ 174.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 verbose #348 > > │ 00:00:03 critical #6 runWithTimeoutStrict / async error / ex:           │
00:00:24 verbose #349 > > │ System.Exception: error / timeout: 60                                        │
00:00:24 verbose #350 > > │ 00:00:03 critical #7 runWithTimeoutStrict / task error / ex:            │
00:00:24 verbose #351 > > │ System.AggregateException: One or more errors occurred. (error) / timeout:   │
00:00:24 verbose #352 > > │ 60                                                                           │
00:00:24 verbose #353 > > │ <null>                                                                       │
00:00:24 verbose #354 > > │                                                                              │
00:00:24 verbose #355 > > │                                                                              │
00:00:24 verbose #356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #357 > >
00:00:24 verbose #358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #360 > > │ ## awaitValueTask                                                            │
00:00:24 verbose #361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #362 > >
00:00:24 verbose #363 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #364 > > let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
00:00:24 verbose #365 > >     task.AsTask () |> Async.AwaitTask
00:00:24 verbose #366 > >
00:00:24 verbose #367 > > let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
00:00:24 verbose #368 > >     task.AsTask () |> Async.AwaitTask
00:00:24 verbose #369 > >
00:00:24 verbose #370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #372 > > │ ## init                                                                      │
00:00:24 verbose #373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #374 > >
00:00:24 verbose #375 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #376 > > let inline init x = async {
00:00:24 verbose #377 > >     return x
00:00:24 verbose #378 > > }
00:00:24 verbose #379 > >
00:00:24 verbose #380 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #381 > > //// test
00:00:24 verbose #382 > >
00:00:24 verbose #383 > > init 1
00:00:24 verbose #384 > > |> Async.RunSynchronously
00:00:24 verbose #385 > > |> _assertEqual 1
00:00:24 verbose #386 > >
00:00:24 verbose #387 > > ╭─[ 31.22ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:24 verbose #388 > > │ 1                                                                            │
00:00:24 verbose #389 > > │                                                                              │
00:00:24 verbose #390 > > │                                                                              │
00:00:24 verbose #391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #392 > >
00:00:24 verbose #393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #395 > > │ ## withCancellationToken                                                     │
00:00:24 verbose #396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #397 > >
00:00:24 verbose #398 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #399 > > let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
00:00:24 verbose #400 > >     Async.StartImmediateAsTask (fn, ct)
00:00:24 verbose #401 > >     |> Async.AwaitTask
00:00:24 verbose #402 > >
00:00:24 verbose #403 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #404 > > //// test
00:00:24 verbose #405 > >
00:00:24 verbose #406 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:24 verbose #407 > >
00:00:24 verbose #408 > > async {
00:00:24 verbose #409 > >     let run = async {
00:00:24 verbose #410 > >         do! Async.Sleep 100
00:00:24 verbose #411 > >         return 1
00:00:24 verbose #412 > >     }
00:00:24 verbose #413 > >
00:00:24 verbose #414 > >     let! child =
00:00:24 verbose #415 > >         run
00:00:24 verbose #416 > >         |> withCancellationToken cts.Token
00:00:24 verbose #417 > >         |> catch
00:00:24 verbose #418 > >         |> Async.StartChild
00:00:24 verbose #419 > >
00:00:24 verbose #420 > >     do! Async.Sleep 50
00:00:24 verbose #421 > >     cts.Cancel ()
00:00:24 verbose #422 > >     return! child
00:00:24 verbose #423 > > }
00:00:24 verbose #424 > > |> Async.RunSynchronously
00:00:24 verbose #425 > > |> Result.mapError _.Message
00:00:24 verbose #426 > > |> _assertEqual (Error ("A task was canceled."))
00:00:25 verbose #427 > >
00:00:25 verbose #428 > > ╭─[ 247.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 verbose #429 > > │ Error "A task was canceled."                                                 │
00:00:25 verbose #430 > > │                                                                              │
00:00:25 verbose #431 > > │                                                                              │
00:00:25 verbose #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #433 > >
00:00:25 verbose #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #436 > > │ ## retryAsync                                                                │
00:00:25 verbose #437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #438 > >
00:00:25 verbose #439 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #440 > > let inline retryAsync retries fn =
00:00:25 verbose #441 > >     let rec loop retry lastError = async {
00:00:25 verbose #442 > >         try
00:00:25 verbose #443 > >             return!
00:00:25 verbose #444 > >                 if retry <= retries
00:00:25 verbose #445 > >                 then fn |> map Ok
00:00:25 verbose #446 > >                 else lastError |> Error |> init
00:00:25 verbose #447 > >         with ex ->
00:00:25 verbose #448 > >             trace Debug (fun () -> $"Async.retryAsync / retry: {retry}/{retries}
00:00:25 verbose #449 > > / ex: {ex |> SpiralSm.format_exception}") _locals
00:00:25 verbose #450 > >             do! Async.Sleep 30
00:00:25 verbose #451 > >             return! loop (retry + 1) (ex |> SpiralSm.format_exception)
00:00:25 verbose #452 > >     }
00:00:25 verbose #453 > >     loop 1 "Async.retryAsync / invalid retries / retries: {retries}"
00:00:25 verbose #454 > >
00:00:25 verbose #455 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #456 > > //// test
00:00:25 verbose #457 > >
00:00:25 verbose #458 > > let retry_fn_test = ref 0
00:00:25 verbose #459 > > async {
00:00:25 verbose #460 > >     retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:25 verbose #461 > >     return retry_fn_test.Value
00:00:25 verbose #462 > > }
00:00:25 verbose #463 > > |> retryAsync 3
00:00:25 verbose #464 > > |> Async.RunSynchronously
00:00:25 verbose #465 > > |> _assertEqual (Ok 1)
00:00:25 verbose #466 > >
00:00:25 verbose #467 > > ╭─[ 136.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 verbose #468 > > │ Ok 1                                                                         │
00:00:25 verbose #469 > > │                                                                              │
00:00:25 verbose #470 > > │                                                                              │
00:00:25 verbose #471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #472 > >
00:00:25 verbose #473 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #474 > > //// test
00:00:25 verbose #475 > >
00:00:25 verbose #476 > > let retry_fn_test = ref 0
00:00:25 verbose #477 > > async {
00:00:25 verbose #478 > >     return
00:00:25 verbose #479 > >         if retry_fn_test.Value >= 2
00:00:25 verbose #480 > >         then retry_fn_test.Value
00:00:25 verbose #481 > >         else
00:00:25 verbose #482 > >             retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:25 verbose #483 > >             failwith "test"
00:00:25 verbose #484 > > }
00:00:25 verbose #485 > > |> retryAsync 3
00:00:25 verbose #486 > > |> Async.RunSynchronously
00:00:25 verbose #487 > > |> _assertEqual (Ok 2)
00:00:25 verbose #488 > >
00:00:25 verbose #489 > > ╭─[ 182.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 verbose #490 > > │ 00:00:03   debug #8 Async.retryAsync / retry: 1/3 / ex:                 │
00:00:25 verbose #491 > > │ System.Exception: test                                                       │
00:00:25 verbose #492 > > │ 00:00:03   debug #9 Async.retryAsync / retry: 2/3 / ex:                 │
00:00:25 verbose #493 > > │ System.Exception: test                                                       │
00:00:25 verbose #494 > > │ Ok 2                                                                         │
00:00:25 verbose #495 > > │                                                                              │
00:00:25 verbose #496 > > │                                                                              │
00:00:25 verbose #497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #498 > >
00:00:25 verbose #499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #501 > > │ ## fold                                                                      │
00:00:25 verbose #502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #503 > >
00:00:25 verbose #504 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #505 > > let fold folder state array =
00:00:25 verbose #506 > >     let rec loop acc i =
00:00:25 verbose #507 > >         async {
00:00:25 verbose #508 > >             if i < Array.length array then
00:00:25 verbose #509 > >                 let! newAcc = folder acc array.[[i]]
00:00:25 verbose #510 > >                 return! loop newAcc (i + 1)
00:00:25 verbose #511 > >             else
00:00:25 verbose #512 > >                 return acc
00:00:25 verbose #513 > >         }
00:00:25 verbose #514 > >     loop state 0
00:00:25 verbose #515 > 00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21258 }
00:00:25 verbose #516 > 00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:25 verbose #517 >     "nbconvert",
00:00:25 verbose #518 >     "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb",
00:00:25 verbose #519 >     "--to",
00:00:25 verbose #520 >     "html",
00:00:25 verbose #521 >     "--HTMLExporter.theme=dark",
00:00:25 verbose #522 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 verbose #523 > 00:00:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb to html
00:00:28 verbose #524 > 00:00:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:28 verbose #525 > 00:00:27 verbose #7 !   validate(nb)
00:00:29 verbose #526 > 00:00:28 verbose #8 ! [NbConvertApp] Writing 332761 bytes to c:\home\git\polyglot\lib\fsharp\Async.dib.html
00:00:29 verbose #527 > 00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:00:29 verbose #528 > 00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:00:29 verbose #529 > 00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:00:29 verbose #530 >     "-c",
00:00:29 verbose #531 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:00:29 verbose #532 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:30 verbose #533 > 00:00:29 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:30 verbose #534 > 00:00:29   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:30 verbose #535 > 00:00:29   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 21958 }
00:00:30   debug #536 runtime.execute_with_options_async / { exit_code = 0; output_length = 25635 }
00:00:30   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3
00:00:30   debug #537 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:30 verbose #538 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "AsyncSeq.dib", "--retries", "3"])) }
00:00:30 verbose #539 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:30 verbose #540 >     "repl",
00:00:30 verbose #541 >     "--exit-after-run",
00:00:30 verbose #542 >     "--run",
00:00:30 verbose #543 >     "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib",
00:00:30 verbose #544 >     "--output-path",
00:00:30 verbose #545 >     "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb",
00:00:30 verbose #546 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib" --output-path "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:32 verbose #547 > >
00:00:32 verbose #548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 verbose #549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 verbose #550 > > │ # AsyncSeq (Polyglot)                                                        │
00:00:32 verbose #551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #552 > >
00:00:52 verbose #553 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #554 > > #r
00:00:52 verbose #555 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:52 verbose #556 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:52 verbose #557 > > #r
00:00:52 verbose #558 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:52 verbose #559 > > 0/System.Reactive.dll"
00:00:52 verbose #560 > > #r
00:00:52 verbose #561 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:52 verbose #562 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:53 verbose #563 > >
00:00:53 verbose #564 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #565 > > #if !INTERACTIVE
00:00:53 verbose #566 > > open Lib
00:00:53 verbose #567 > > #endif
00:00:53 verbose #568 > >
00:00:53 verbose #569 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #570 > > open Common
00:00:53 verbose #571 > >
00:00:53 verbose #572 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #573 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #574 > > │ ## subscribeEvent                                                            │
00:00:53 verbose #575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #576 > >
00:00:53 verbose #577 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #578 > > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:53 verbose #579 > >     let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:53 verbose #580 > > 'A>(event.AddHandler, event.RemoveHandler)
00:00:53 verbose #581 > >     System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:53 verbose #582 > > event.EventArgs)
00:00:53 verbose #583 > >     |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:54 verbose #584 > >
00:00:54 verbose #585 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #586 > > //// test
00:00:54 verbose #587 > >
00:00:54 verbose #588 > > type TestEvent () as self =
00:00:54 verbose #589 > >     member val Calls = [[]] with get, set
00:00:54 verbose #590 > >     member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
00:00:54 verbose #591 > >
00:00:54 verbose #592 > >     member _.AddCall text =
00:00:54 verbose #593 > >         self.Calls <- self.Calls @ [[ text ]]
00:00:54 verbose #594 > >
00:00:54 verbose #595 > >     member _.EventInterface =
00:00:54 verbose #596 > >         { new IEvent<ErrorEventHandler, ErrorEventArgs> with
00:00:54 verbose #597 > >             member _.AddHandler handler =
00:00:54 verbose #598 > >                 self.AddCall "AddHandler"
00:00:54 verbose #599 > >                 self.Event.Publish.AddHandler handler
00:00:54 verbose #600 > >
00:00:54 verbose #601 > >             member _.RemoveHandler handler =
00:00:54 verbose #602 > >                 self.AddCall "RemoveHandler"
00:00:54 verbose #603 > >                 self.Event.Publish.RemoveHandler handler
00:00:54 verbose #604 > >
00:00:54 verbose #605 > >             member _.Subscribe observer =
00:00:54 verbose #606 > >                 self.AddCall "IObservable.Subscribe"
00:00:54 verbose #607 > >                 let disposable = self.Event.Publish.Subscribe observer
00:00:54 verbose #608 > >                 new_disposable (fun () ->
00:00:54 verbose #609 > >                     self.AddCall "IObservable.Dispose"
00:00:54 verbose #610 > >                     disposable.Dispose ()
00:00:54 verbose #611 > >                 )
00:00:54 verbose #612 > >         }
00:00:54 verbose #613 > >
00:00:54 verbose #614 > >     member _.Subscribe () =
00:00:54 verbose #615 > >         subscribeEvent
00:00:54 verbose #616 > >             self.EventInterface
00:00:54 verbose #617 > >             (fun args ->
00:00:54 verbose #618 > >                 let result = args.GetException () |> SpiralSm.format_exception
00:00:54 verbose #619 > >                 self.AddCall $"TestEvent.Subscribe({result})"
00:00:54 verbose #620 > >                 result
00:00:54 verbose #621 > >             )
00:00:54 verbose #622 > >
00:00:54 verbose #623 > >     member _.Iter subscription =
00:00:54 verbose #624 > >         subscription
00:00:54 verbose #625 > >         |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
00:00:54 verbose #626 > >             self.AddCall $"TestEvent.Iter({i}: {error})"
00:00:54 verbose #627 > >         })
00:00:54 verbose #628 > >
00:00:54 verbose #629 > >     member _.WaitCall text = async {
00:00:54 verbose #630 > >         while self.Calls |> List.last <> text do
00:00:54 verbose #631 > >             do! Async.SwitchToThreadPool ()
00:00:54 verbose #632 > >     }
00:00:54 verbose #633 > >
00:00:54 verbose #634 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #635 > > //// test
00:00:54 verbose #636 > >
00:00:54 verbose #637 > > let testEvent = TestEvent ()
00:00:54 verbose #638 > >
00:00:54 verbose #639 > > async {
00:00:54 verbose #640 > >     testEvent.AddCall "1"
00:00:54 verbose #641 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:54 verbose #642 > >     do! testEvent.WaitCall "AddHandler"
00:00:54 verbose #643 > >     testEvent.AddCall "2"
00:00:54 verbose #644 > >     do! child
00:00:54 verbose #645 > >     testEvent.AddCall "3"
00:00:54 verbose #646 > > }
00:00:54 verbose #647 > > |> Async.runWithTimeout 300
00:00:54 verbose #648 > > |> _assertEqual None
00:00:54 verbose #649 > >
00:00:54 verbose #650 > > testEvent.Calls
00:00:54 verbose #651 > > |> Seq.toList
00:00:54 verbose #652 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
00:00:54 verbose #653 > >
00:00:54 verbose #654 > > ╭─[ 568.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:54 verbose #655 > > │ 00:00:02   debug #1 runWithTimeoutAsync / timeout: 300                  │
00:00:54 verbose #656 > > │ <null>                                                                       │
00:00:54 verbose #657 > > │                                                                              │
00:00:54 verbose #658 > > │ ["1"; "AddHandler"; "2"; "RemoveHandler"]                                    │
00:00:54 verbose #659 > > │                                                                              │
00:00:54 verbose #660 > > │                                                                              │
00:00:54 verbose #661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #662 > >
00:00:54 verbose #663 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #664 > > //// test
00:00:54 verbose #665 > >
00:00:54 verbose #666 > > let testEvent = TestEvent ()
00:00:54 verbose #667 > >
00:00:54 verbose #668 > > async {
00:00:54 verbose #669 > >     testEvent.AddCall "1"
00:00:54 verbose #670 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:54 verbose #671 > >     do! testEvent.WaitCall "AddHandler"
00:00:54 verbose #672 > >     testEvent.AddCall "2"
00:00:54 verbose #673 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:54 verbose #674 > >         testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
00:00:54 verbose #675 > >     )
00:00:54 verbose #676 > >     testEvent.AddCall "3"
00:00:54 verbose #677 > >     do! child
00:00:54 verbose #678 > >     testEvent.AddCall "4"
00:00:54 verbose #679 > > }
00:00:54 verbose #680 > > |> Async.runWithTimeout 300
00:00:54 verbose #681 > > |> _assertEqual None
00:00:54 verbose #682 > >
00:00:54 verbose #683 > > testEvent.Calls
00:00:54 verbose #684 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
00:00:54 verbose #685 > > "RemoveHandler"; "IObservable.Dispose" ]]
00:00:55 verbose #686 > >
00:00:55 verbose #687 > > ╭─[ 491.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:55 verbose #688 > > │ 00:00:02   debug #2 runWithTimeoutAsync / timeout: 300                  │
00:00:55 verbose #689 > > │ <null>                                                                       │
00:00:55 verbose #690 > > │                                                                              │
00:00:55 verbose #691 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; "RemoveHandler";      │
00:00:55 verbose #692 > > │ "IObservable.Dispose"]                                                       │
00:00:55 verbose #693 > > │                                                                              │
00:00:55 verbose #694 > > │                                                                              │
00:00:55 verbose #695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #696 > >
00:00:55 verbose #697 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #698 > > //// test
00:00:55 verbose #699 > >
00:00:55 verbose #700 > > let testEvent = TestEvent ()
00:00:55 verbose #701 > >
00:00:55 verbose #702 > > async {
00:00:55 verbose #703 > >     testEvent.AddCall "1"
00:00:55 verbose #704 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:55 verbose #705 > >     do! testEvent.WaitCall "AddHandler"
00:00:55 verbose #706 > >     testEvent.AddCall "2"
00:00:55 verbose #707 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:55 verbose #708 > >         async {
00:00:55 verbose #709 > >             do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
00:00:55 verbose #710 > >             testEvent.AddCall
00:00:55 verbose #711 > > $"testEvent.EventInterface.Subscribe({args.GetException () |>
00:00:55 verbose #712 > > SpiralSm.format_exception})"
00:00:55 verbose #713 > >         }
00:00:55 verbose #714 > >         |> Async.RunSynchronously
00:00:55 verbose #715 > >     )
00:00:55 verbose #716 > >     testEvent.AddCall "3"
00:00:55 verbose #717 > >     testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
00:00:55 verbose #718 > >     testEvent.AddCall "4"
00:00:55 verbose #719 > >     do! child
00:00:55 verbose #720 > >     testEvent.AddCall "5"
00:00:55 verbose #721 > > }
00:00:55 verbose #722 > > |> Async.runWithTimeout 300
00:00:55 verbose #723 > > |> _assertEqual None
00:00:55 verbose #724 > >
00:00:55 verbose #725 > > testEvent.Calls
00:00:55 verbose #726 > > |> _assertEqual [[
00:00:55 verbose #727 > >     "1"
00:00:55 verbose #728 > >     "AddHandler"
00:00:55 verbose #729 > >     "2"
00:00:55 verbose #730 > >     "IObservable.Subscribe"
00:00:55 verbose #731 > >     "3"
00:00:55 verbose #732 > >     "TestEvent.Subscribe(System.Exception: error)"
00:00:55 verbose #733 > >     "TestEvent.Iter(0: System.Exception: error)"
00:00:55 verbose #734 > >     "testEvent.EventInterface.Subscribe(System.Exception: error)"
00:00:55 verbose #735 > >     "4"
00:00:55 verbose #736 > >     "RemoveHandler"
00:00:55 verbose #737 > >     "IObservable.Dispose"
00:00:55 verbose #738 > > ]]
00:00:55 verbose #739 > >
00:00:55 verbose #740 > > ╭─[ 469.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:55 verbose #741 > > │ 00:00:03   debug #3 runWithTimeoutAsync / timeout: 300                  │
00:00:55 verbose #742 > > │ <null>                                                                       │
00:00:55 verbose #743 > > │                                                                              │
00:00:55 verbose #744 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";                       │
00:00:55 verbose #745 > > │ "TestEvent.Subscribe(System.Exception: error)";                              │
00:00:55 verbose #746 > > │  "TestEvent.Iter(0: System.Exception: error)";                               │
00:00:55 verbose #747 > > │ "testEvent.EventInterface.Subscribe(System.Exception: error)"; "4";          │
00:00:55 verbose #748 > > │  "RemoveHandler"; "IObservable.Dispose"]                                     │
00:00:55 verbose #749 > > │                                                                              │
00:00:55 verbose #750 > > │                                                                              │
00:00:55 verbose #751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #752 > >
00:00:55 verbose #753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #755 > > │ ## subscribeToken                                                            │
00:00:55 verbose #756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #757 > >
00:00:55 verbose #758 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #759 > > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:55 verbose #760 > >     let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:55 verbose #761 > >     System.Action tcs.SetResult |> token.Register |> ignore
00:00:55 verbose #762 > >     let start = System.DateTime.Now.Ticks
00:00:55 verbose #763 > >     FSharp.Control.AsyncSeq.unfoldAsync
00:00:55 verbose #764 > >         (fun () -> async {
00:00:55 verbose #765 > >             do! tcs.Task |> Async.AwaitTask
00:00:55 verbose #766 > >             return Some (System.DateTime.Now.Ticks - start, ())
00:00:55 verbose #767 > >         })
00:00:55 verbose #768 > >         ()
00:00:55 verbose #769 > >
00:00:55 verbose #770 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #771 > > //// test
00:00:55 verbose #772 > >
00:00:55 verbose #773 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:55 verbose #774 > >
00:00:55 verbose #775 > > async {
00:00:55 verbose #776 > >     let! child =
00:00:55 verbose #777 > >         cts.Token
00:00:55 verbose #778 > >         |> subscribeToken
00:00:55 verbose #779 > >         |> FSharp.Control.AsyncSeq.tryFirst
00:00:55 verbose #780 > >         |> Async.StartChild
00:00:55 verbose #781 > >
00:00:55 verbose #782 > >     do! Async.Sleep 100
00:00:55 verbose #783 > >     cts.Cancel ()
00:00:55 verbose #784 > >     return! child
00:00:55 verbose #785 > > }
00:00:55 verbose #786 > > |> Async.RunSynchronously
00:00:55 verbose #787 > > |> Option.get
00:00:55 verbose #788 > > |> fun x -> x > 900000
00:00:55 verbose #789 > > |> _assertEqual true
00:00:55 verbose #790 > >
00:00:55 verbose #791 > > ╭─[ 167.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:55 verbose #792 > > │ true                                                                         │
00:00:55 verbose #793 > > │                                                                              │
00:00:55 verbose #794 > > │                                                                              │
00:00:55 verbose #795 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #796 > 00:00:25 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 9731 }
00:00:56 verbose #797 > 00:00:25   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:56 verbose #798 >     "nbconvert",
00:00:56 verbose #799 >     "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb",
00:00:56 verbose #800 >     "--to",
00:00:56 verbose #801 >     "html",
00:00:56 verbose #802 >     "--HTMLExporter.theme=dark",
00:00:56 verbose #803 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:58 verbose #804 > 00:00:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb to html
00:00:58 verbose #805 > 00:00:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:58 verbose #806 > 00:00:27 verbose #7 !   validate(nb)
00:00:59 verbose #807 > 00:00:29 verbose #8 ! [NbConvertApp] Writing 302872 bytes to c:\home\git\polyglot\lib\fsharp\AsyncSeq.dib.html
00:01:00 verbose #808 > 00:00:29 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:01:00 verbose #809 > 00:00:29   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:01:00 verbose #810 > 00:00:29   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:00 verbose #811 >     "-c",
00:01:00 verbose #812 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:00 verbose #813 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:00 verbose #814 > 00:00:30 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:00 verbose #815 > 00:00:30   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:00 verbose #816 > 00:00:30   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 10437 }
00:01:00   debug #817 runtime.execute_with_options_async / { exit_code = 0; output_length = 13630 }
00:01:00   debug #2 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3
00:01:00   debug #818 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:00 verbose #819 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Common.dib", "--retries", "3"])) }
00:01:00 verbose #820 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:01:00 verbose #821 >     "repl",
00:01:00 verbose #822 >     "--exit-after-run",
00:01:00 verbose #823 >     "--run",
00:01:00 verbose #824 >     "c:/home/git/polyglot/lib/fsharp/Common.dib",
00:01:00 verbose #825 >     "--output-path",
00:01:00 verbose #826 >     "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb",
00:01:00 verbose #827 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Common.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:02 verbose #828 > >
00:01:02 verbose #829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 verbose #830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 verbose #831 > > │ # Common (Polyglot)                                                          │
00:01:02 verbose #832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #833 > >
00:01:22 verbose #834 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #835 > > #if !INTERACTIVE
00:01:22 verbose #836 > > open Lib
00:01:22 verbose #837 > > #endif
00:01:22 verbose #838 > >
00:01:22 verbose #839 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #840 > > let nl = System.Environment.NewLine
00:01:22 verbose #841 > > let q = @""""
00:01:22 verbose #842 > >
00:01:22 verbose #843 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #844 > > let inline cons head tail = head :: tail
00:01:22 verbose #845 > >
00:01:22 verbose #846 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #847 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #848 > > │ ## memoize                                                                   │
00:01:22 verbose #849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #850 > >
00:01:22 verbose #851 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #852 > > let inline memoize fn =
00:01:22 verbose #853 > >     let result = lazy fn ()
00:01:22 verbose #854 > >     fun () -> result.Value
00:01:22 verbose #855 > >
00:01:22 verbose #856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #858 > > │ ## TraceLevel                                                                │
00:01:22 verbose #859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #860 > >
00:01:22 verbose #861 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #862 > > type TraceLevel =
00:01:22 verbose #863 > >     | Verbose
00:01:22 verbose #864 > >     | Debug
00:01:22 verbose #865 > >     | Info
00:01:22 verbose #866 > >     | Warning
00:01:22 verbose #867 > >     | Critical
00:01:22 verbose #868 > >
00:01:22 verbose #869 > > let inline _locals () = ""
00:01:22 verbose #870 > >
00:01:22 verbose #871 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #872 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #873 > > │ ## trace                                                                     │
00:01:22 verbose #874 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #875 > >
00:01:22 verbose #876 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #877 > > let to_trace_level = function
00:01:22 verbose #878 > >     | Verbose -> SpiralTrace.TraceLevel.US0_0
00:01:22 verbose #879 > >     | Debug -> SpiralTrace.TraceLevel.US0_1
00:01:22 verbose #880 > >     | Info -> SpiralTrace.TraceLevel.US0_2
00:01:22 verbose #881 > >     | Warning -> SpiralTrace.TraceLevel.US0_3
00:01:22 verbose #882 > >     | Critical -> SpiralTrace.TraceLevel.US0_4
00:01:22 verbose #883 > >
00:01:22 verbose #884 > > let trace level fn locals =
00:01:22 verbose #885 > >     let level = level |> to_trace_level
00:01:22 verbose #886 > >     SpiralTrace.trace level fn locals
00:01:22 verbose #887 > >
00:01:22 verbose #888 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #889 > > //// test
00:01:22 verbose #890 > >
00:01:22 verbose #891 > > trace Debug (fun () -> "test") _locals
00:01:22 verbose #892 > >
00:01:22 verbose #893 > > ╭─[ 27.92ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:22 verbose #894 > > │ 00:00:00   debug #1 test                                                │
00:01:22 verbose #895 > > │                                                                              │
00:01:22 verbose #896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #897 > 00:00:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2930 }
00:01:22 verbose #898 > 00:00:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:01:22 verbose #899 >     "nbconvert",
00:01:22 verbose #900 >     "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb",
00:01:22 verbose #901 >     "--to",
00:01:22 verbose #902 >     "html",
00:01:22 verbose #903 >     "--HTMLExporter.theme=dark",
00:01:22 verbose #904 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:25 verbose #905 > 00:00:24 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb to html
00:01:25 verbose #906 > 00:00:24 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:25 verbose #907 > 00:00:24 verbose #7 !   validate(nb)
00:01:26 verbose #908 > 00:00:25 verbose #8 ! [NbConvertApp] Writing 280734 bytes to c:\home\git\polyglot\lib\fsharp\Common.dib.html
00:01:26 verbose #909 > 00:00:26 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:01:26 verbose #910 > 00:00:26   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:01:26 verbose #911 > 00:00:26   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:26 verbose #912 >     "-c",
00:01:26 verbose #913 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:26 verbose #914 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:27 verbose #915 > 00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:27 verbose #916 > 00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:27 verbose #917 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3632 }
00:01:27   debug #918 runtime.execute_with_options_async / { exit_code = 0; output_length = 6446 }
00:01:27   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3
00:01:27   debug #919 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:27 verbose #920 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "CommonFSharp.dib", "--retries", "3"])) }
00:01:27 verbose #921 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:01:27 verbose #922 >     "repl",
00:01:27 verbose #923 >     "--exit-after-run",
00:01:27 verbose #924 >     "--run",
00:01:27 verbose #925 >     "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib",
00:01:27 verbose #926 >     "--output-path",
00:01:27 verbose #927 >     "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb",
00:01:27 verbose #928 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib" --output-path "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:29 verbose #929 > >
00:01:29 verbose #930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:29 verbose #931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:29 verbose #932 > > │ # CommonFSharp (Polyglot)                                                    │
00:01:29 verbose #933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #934 > >
00:01:48 verbose #935 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #936 > > open Common
00:01:48 verbose #937 > >
00:01:48 verbose #938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #940 > > │ ## getUnionCaseName                                                          │
00:01:48 verbose #941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #942 > >
00:01:48 verbose #943 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #944 > > let inline getUnionCaseName<'T> (x: 'T) =
00:01:48 verbose #945 > >     match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:01:48 verbose #946 > >     | case, _ -> case.Name
00:01:48 verbose #947 > >
00:01:48 verbose #948 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #949 > > //// test
00:01:48 verbose #950 > >
00:01:48 verbose #951 > > TraceLevel.Critical
00:01:48 verbose #952 > > |> getUnionCaseName
00:01:48 verbose #953 > > |> _assertEqual (nameof TraceLevel.Critical)
00:01:48 verbose #954 > >
00:01:48 verbose #955 > > ╭─[ 92.43ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:48 verbose #956 > > │ "Critical"                                                                   │
00:01:48 verbose #957 > > │                                                                              │
00:01:48 verbose #958 > > │                                                                              │
00:01:48 verbose #959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #960 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 1546 }
00:01:48 verbose #961 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:01:48 verbose #962 >     "nbconvert",
00:01:48 verbose #963 >     "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb",
00:01:48 verbose #964 >     "--to",
00:01:48 verbose #965 >     "html",
00:01:48 verbose #966 >     "--HTMLExporter.theme=dark",
00:01:48 verbose #967 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:50 verbose #968 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb to html
00:01:50 verbose #969 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:50 verbose #970 > 00:00:23 verbose #7 !   validate(nb)
00:01:51 verbose #971 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 275592 bytes to c:\home\git\polyglot\lib\fsharp\CommonFSharp.dib.html
00:01:51 verbose #972 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 655 }
00:01:51 verbose #973 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 655 }
00:01:51 verbose #974 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:51 verbose #975 >     "-c",
00:01:51 verbose #976 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:51 verbose #977 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:52 verbose #978 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:52 verbose #979 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:52 verbose #980 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 2260 }
00:01:52   debug #981 runtime.execute_with_options_async / { exit_code = 0; output_length = 5052 }
00:01:52   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3
00:01:52   debug #982 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:52 verbose #983 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "FileSystem.dib", "--retries", "3"])) }
00:01:52 verbose #984 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:01:52 verbose #985 >     "repl",
00:01:52 verbose #986 >     "--exit-after-run",
00:01:52 verbose #987 >     "--run",
00:01:52 verbose #988 >     "c:/home/git/polyglot/lib/fsharp/FileSystem.dib",
00:01:52 verbose #989 >     "--output-path",
00:01:52 verbose #990 >     "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb",
00:01:52 verbose #991 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/FileSystem.dib" --output-path "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:54 verbose #992 > >
00:01:54 verbose #993 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #994 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #995 > > │ # FileSystem (Polyglot)                                                      │
00:01:54 verbose #996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #997 > >
00:01:59 verbose #998 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #999 > > #r
00:01:59 verbose #1000 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:01:59 verbose #1001 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:01:59 verbose #1002 > > #r
00:01:59 verbose #1003 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:01:59 verbose #1004 > > 0/System.Reactive.dll"
00:01:59 verbose #1005 > > #r
00:01:59 verbose #1006 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:01:59 verbose #1007 > > netstandard2.0/System.Reactive.Linq.dll"
00:01:59 verbose #1008 > > #r
00:01:59 verbose #1009 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:15 verbose #1010 > >
00:02:15 verbose #1011 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #1012 > > #if !INTERACTIVE
00:02:15 verbose #1013 > > open Lib
00:02:15 verbose #1014 > > #endif
00:02:15 verbose #1015 > >
00:02:15 verbose #1016 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #1017 > > open Common
00:02:15 verbose #1018 > > open SpiralFileSystem.Operators
00:02:15 verbose #1019 > >
00:02:15 verbose #1020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 verbose #1021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 verbose #1022 > > │ ## watchDirectory                                                            │
00:02:15 verbose #1023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 verbose #1024 > >
00:02:15 verbose #1025 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #1026 > > [[<RequireQualifiedAccess>]]
00:02:15 verbose #1027 > > type FileSystemChangeType =
00:02:15 verbose #1028 > >     | Failure
00:02:15 verbose #1029 > >     | Changed
00:02:15 verbose #1030 > >     | Created
00:02:15 verbose #1031 > >     | Deleted
00:02:15 verbose #1032 > >     | Renamed
00:02:15 verbose #1033 > >
00:02:15 verbose #1034 > > [[<RequireQualifiedAccess>]]
00:02:15 verbose #1035 > > type FileSystemChange =
00:02:15 verbose #1036 > >     | Failure of exn: exn
00:02:15 verbose #1037 > >     | Changed of path: string * content: string option
00:02:15 verbose #1038 > >     | Created of path: string * content: string option
00:02:15 verbose #1039 > >     | Deleted of path: string
00:02:15 verbose #1040 > >     | Renamed of oldPath: string * (string * string option)
00:02:15 verbose #1041 > >
00:02:15 verbose #1042 > >
00:02:15 verbose #1043 > > let inline watchDirectoryWithFilter filter shouldReadContent path =
00:02:15 verbose #1044 > >     let fullPath = path |> System.IO.Path.GetFullPath
00:02:15 verbose #1045 > >     let _locals () = $"filter: {filter} / {_locals ()}"
00:02:15 verbose #1046 > >
00:02:15 verbose #1047 > >     let watcher =
00:02:15 verbose #1048 > >         new System.IO.FileSystemWatcher (
00:02:15 verbose #1049 > >             Path = fullPath,
00:02:15 verbose #1050 > >             NotifyFilter = filter,
00:02:15 verbose #1051 > >             EnableRaisingEvents = true,
00:02:15 verbose #1052 > >             IncludeSubdirectories = true
00:02:15 verbose #1053 > >         )
00:02:15 verbose #1054 > >
00:02:15 verbose #1055 > >     let inline getEventPath (path : string) =
00:02:15 verbose #1056 > >         path |> SpiralSm.trim |> SpiralSm.replace fullPath "" |>
00:02:15 verbose #1057 > > SpiralSm.trim_start [[| '/'; '\\' |]]
00:02:15 verbose #1058 > >
00:02:15 verbose #1059 > >     let inline ticks () =
00:02:15 verbose #1060 > >         System.DateTime.UtcNow.Ticks
00:02:15 verbose #1061 > >
00:02:15 verbose #1062 > >     let changedStream =
00:02:15 verbose #1063 > >         AsyncSeq.subscribeEvent
00:02:15 verbose #1064 > >             watcher.Changed
00:02:15 verbose #1065 > >             (fun event ->
00:02:15 verbose #1066 > >                 ticks (),
00:02:15 verbose #1067 > >                 [[ FileSystemChange.Changed (getEventPath event.FullPath, None)
00:02:15 verbose #1068 > > ]]
00:02:15 verbose #1069 > >             )
00:02:15 verbose #1070 > >
00:02:15 verbose #1071 > >     let deletedStream =
00:02:15 verbose #1072 > >         AsyncSeq.subscribeEvent
00:02:15 verbose #1073 > >             watcher.Deleted
00:02:15 verbose #1074 > >             (fun event ->
00:02:15 verbose #1075 > >                 ticks (),
00:02:15 verbose #1076 > >                 [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
00:02:15 verbose #1077 > >             )
00:02:15 verbose #1078 > >
00:02:15 verbose #1079 > >     let createdStream =
00:02:15 verbose #1080 > >         AsyncSeq.subscribeEvent
00:02:15 verbose #1081 > >             watcher.Created
00:02:15 verbose #1082 > >             (fun event ->
00:02:15 verbose #1083 > >                 let path = getEventPath event.FullPath
00:02:15 verbose #1084 > >                 ticks (), [[
00:02:15 verbose #1085 > >                     FileSystemChange.Created (path, None)
00:02:15 verbose #1086 > >                     if SpiralPlatform.is_windows () then
00:02:15 verbose #1087 > >                         FileSystemChange.Changed (path, None)
00:02:15 verbose #1088 > >                 ]])
00:02:15 verbose #1089 > >
00:02:15 verbose #1090 > >     let renamedStream =
00:02:15 verbose #1091 > >         AsyncSeq.subscribeEvent
00:02:15 verbose #1092 > >             watcher.Renamed
00:02:15 verbose #1093 > >             (fun event ->
00:02:15 verbose #1094 > >                 ticks (), [[
00:02:15 verbose #1095 > >                     FileSystemChange.Renamed (
00:02:15 verbose #1096 > >                         getEventPath event.OldFullPath,
00:02:15 verbose #1097 > >                         (getEventPath event.FullPath, None)
00:02:15 verbose #1098 > >                     )
00:02:15 verbose #1099 > >                 ]]
00:02:15 verbose #1100 > >             )
00:02:15 verbose #1101 > >
00:02:15 verbose #1102 > >     let failureStream =
00:02:15 verbose #1103 > >         AsyncSeq.subscribeEvent
00:02:15 verbose #1104 > >             watcher.Error
00:02:15 verbose #1105 > >             (fun event -> ticks (), [[ FileSystemChange.Failure
00:02:15 verbose #1106 > > (event.GetException ()) ]])
00:02:15 verbose #1107 > >
00:02:15 verbose #1108 > >     let stream =
00:02:15 verbose #1109 > >         [[
00:02:15 verbose #1110 > >             changedStream
00:02:15 verbose #1111 > >             deletedStream
00:02:15 verbose #1112 > >             createdStream
00:02:15 verbose #1113 > >             renamedStream
00:02:15 verbose #1114 > >             failureStream
00:02:15 verbose #1115 > >         ]]
00:02:15 verbose #1116 > >         |> FSharp.Control.AsyncSeq.mergeAll
00:02:15 verbose #1117 > >         |> FSharp.Control.AsyncSeq.map (fun (t, events) ->
00:02:15 verbose #1118 > >             events
00:02:15 verbose #1119 > >             |> List.fold
00:02:15 verbose #1120 > >                 (fun (i, events) event ->
00:02:15 verbose #1121 > >                     i + 1L,
00:02:15 verbose #1122 > >                     (t + i, event) :: events)
00:02:15 verbose #1123 > >                 (0L, [[]])
00:02:15 verbose #1124 > >             |> snd
00:02:15 verbose #1125 > >             |> List.rev
00:02:15 verbose #1126 > >         )
00:02:15 verbose #1127 > >         |> FSharp.Control.AsyncSeq.concatSeq
00:02:15 verbose #1128 > >         |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
00:02:15 verbose #1129 > >             match shouldReadContent event, event with
00:02:15 verbose #1130 > >             | true, FileSystemChange.Changed (path, _) ->
00:02:15 verbose #1131 > >                 do! Async.Sleep 5
00:02:15 verbose #1132 > >                 let! content = fullPath </> path |>
00:02:15 verbose #1133 > > SpiralFileSystem.read_all_text_retry_async
00:02:15 verbose #1134 > >                 return t, FileSystemChange.Changed (path, content)
00:02:15 verbose #1135 > >             | true, FileSystemChange.Created (path, _) ->
00:02:15 verbose #1136 > >                 do! Async.Sleep 5
00:02:15 verbose #1137 > >                 let! content = fullPath </> path |>
00:02:15 verbose #1138 > > SpiralFileSystem.read_all_text_retry_async
00:02:15 verbose #1139 > >                 return t, FileSystemChange.Created (path, content)
00:02:15 verbose #1140 > >             | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
00:02:15 verbose #1141 > >                 let! content = fullPath </> newPath |>
00:02:15 verbose #1142 > > SpiralFileSystem.read_all_text_retry_async
00:02:15 verbose #1143 > >                 return t, FileSystemChange.Renamed (oldPath, (newPath, content))
00:02:15 verbose #1144 > >             | _ -> return t, event
00:02:15 verbose #1145 > >         })
00:02:15 verbose #1146 > >
00:02:15 verbose #1147 > >     let disposable =
00:02:15 verbose #1148 > >         new_disposable (fun () ->
00:02:15 verbose #1149 > >             trace Debug (fun () -> "FileSystem.watchWithFilter / Disposing watch
00:02:15 verbose #1150 > > stream") _locals
00:02:15 verbose #1151 > >             watcher.EnableRaisingEvents <- false
00:02:15 verbose #1152 > >             watcher.Dispose ()
00:02:15 verbose #1153 > >         )
00:02:15 verbose #1154 > >
00:02:15 verbose #1155 > >     stream, disposable
00:02:15 verbose #1156 > >
00:02:15 verbose #1157 > > let inline watchDirectory path =
00:02:15 verbose #1158 > >     watchDirectoryWithFilter
00:02:15 verbose #1159 > >         (System.IO.NotifyFilters.FileName
00:02:15 verbose #1160 > >         // ||| System.IO.NotifyFilters.DirectoryName
00:02:15 verbose #1161 > >         // ||| System.IO.NotifyFilters.Attributes
00:02:15 verbose #1162 > >         //// ||| System.IO.NotifyFilters.Size
00:02:15 verbose #1163 > >         ||| System.IO.NotifyFilters.LastWrite
00:02:15 verbose #1164 > >         //// ||| System.IO.NotifyFilters.LastAccess
00:02:15 verbose #1165 > >         // ||| System.IO.NotifyFilters.CreationTime
00:02:15 verbose #1166 > >         // ||| System.IO.NotifyFilters.Security
00:02:15 verbose #1167 > >         )
00:02:15 verbose #1168 > >         path
00:02:16 verbose #1169 > >
00:02:16 verbose #1170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1172 > > │ ### testEventsRaw (test)                                                     │
00:02:16 verbose #1173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1174 > >
00:02:16 verbose #1175 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1176 > > //// test
00:02:16 verbose #1177 > >
00:02:16 verbose #1178 > > let inline testEventsRaw
00:02:16 verbose #1179 > >     (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
00:02:16 verbose #1180 > > FileSystemChange> * IDisposable)
00:02:16 verbose #1181 > >     write
00:02:16 verbose #1182 > >     =
00:02:16 verbose #1183 > >     let struct (tempDir, tempDisposable) =
00:02:16 verbose #1184 > >         "FileSystem.testEventsRaw"
00:02:16 verbose #1185 > >         |> SpiralCrypto.hash_text
00:02:16 verbose #1186 > >         |> SpiralFileSystem.create_temp_dir'
00:02:16 verbose #1187 > >     let stream, disposable = watchFn (fun _ -> true) tempDir
00:02:16 verbose #1188 > >
00:02:16 verbose #1189 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:16 verbose #1190 > >
00:02:16 verbose #1191 > >     let inline iter () =
00:02:16 verbose #1192 > >         stream
00:02:16 verbose #1193 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:16 verbose #1194 > > events.Add event })
00:02:16 verbose #1195 > >
00:02:16 verbose #1196 > >     let run = async {
00:02:16 verbose #1197 > >         let! _ = iter () |> Async.StartChild
00:02:16 verbose #1198 > >         do! Async.Sleep 250
00:02:16 verbose #1199 > >         return! write tempDir
00:02:16 verbose #1200 > >     }
00:02:16 verbose #1201 > >
00:02:16 verbose #1202 > >     try
00:02:16 verbose #1203 > >         run
00:02:16 verbose #1204 > >         |> Async.runWithTimeout 60000
00:02:16 verbose #1205 > >         |> _assertEqual (Some ())
00:02:16 verbose #1206 > >     finally
00:02:16 verbose #1207 > >         disposable.Dispose ()
00:02:16 verbose #1208 > >         tempDisposable.Dispose ()
00:02:16 verbose #1209 > >
00:02:16 verbose #1210 > >     let eventsLog =
00:02:16 verbose #1211 > >         events
00:02:16 verbose #1212 > >         |> Seq.toList
00:02:16 verbose #1213 > >         |> List.sortBy fst
00:02:16 verbose #1214 > >         |> List.fold
00:02:16 verbose #1215 > >             (fun (prev, acc) (ticks, event) ->
00:02:16 verbose #1216 > >                 ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
00:02:16 verbose #1217 > > :: acc
00:02:16 verbose #1218 > >             )
00:02:16 verbose #1219 > >             (0L, [[]])
00:02:16 verbose #1220 > >         |> snd
00:02:16 verbose #1221 > >         |> List.rev
00:02:16 verbose #1222 > >         |> List.map (fun (diff, n, event) -> $"{n} / {diff} / {event}" |>
00:02:16 verbose #1223 > > SpiralSm.ellipsis_end 100L)
00:02:16 verbose #1224 > >         |> SpiralSm.concat "\n"
00:02:16 verbose #1225 > >     let _locals () = $"eventsLog: \n{eventsLog} / {_locals ()}"
00:02:16 verbose #1226 > >     trace Debug (fun () -> "FileSystem.testEventsRaw") _locals
00:02:16 verbose #1227 > >
00:02:16 verbose #1228 > >     events
00:02:16 verbose #1229 > >     |> Seq.toList
00:02:16 verbose #1230 > >     |> List.sortBy fst
00:02:16 verbose #1231 > >     |> List.map snd
00:02:16 verbose #1232 > >     |> List.fold
00:02:16 verbose #1233 > >         (fun acc event ->
00:02:16 verbose #1234 > >             match acc, event with
00:02:16 verbose #1235 > >             | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
00:02:16 verbose #1236 > > :: acc,
00:02:16 verbose #1237 > >                 FileSystemChange.Changed (path, Some content)
00:02:16 verbose #1238 > >                 when lastPath = path && content |> SpiralSm.starts_with
00:02:16 verbose #1239 > > lastContent
00:02:16 verbose #1240 > >                 ->
00:02:16 verbose #1241 > >                 event :: acc
00:02:16 verbose #1242 > >             | _ -> event :: acc
00:02:16 verbose #1243 > >         )
00:02:16 verbose #1244 > >         [[]]
00:02:16 verbose #1245 > >     |> List.rev
00:02:16 verbose #1246 > >
00:02:16 verbose #1247 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1248 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1249 > > │ #### fast (test)                                                             │
00:02:16 verbose #1250 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1251 > >
00:02:16 verbose #1252 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1253 > > //// test
00:02:16 verbose #1254 > >
00:02:16 verbose #1255 > > let inline write path = async {
00:02:16 verbose #1256 > >     let n = 2
00:02:16 verbose #1257 > >
00:02:16 verbose #1258 > >     for i = 1 to n do
00:02:16 verbose #1259 > >         do! $"a{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:16 verbose #1260 > > $"file{i}.txt")
00:02:16 verbose #1261 > >
00:02:16 verbose #1262 > >     do! Async.Sleep 250
00:02:16 verbose #1263 > >
00:02:16 verbose #1264 > >     for i = 1 to n do
00:02:16 verbose #1265 > >         do! $"b{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:16 verbose #1266 > > $"file{i}.txt")
00:02:16 verbose #1267 > >
00:02:16 verbose #1268 > >     do! Async.Sleep 250
00:02:16 verbose #1269 > >
00:02:16 verbose #1270 > >     for i = 1 to n do
00:02:16 verbose #1271 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:16 verbose #1272 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:16 verbose #1273 > >
00:02:16 verbose #1274 > >     do! Async.Sleep 250
00:02:16 verbose #1275 > >
00:02:16 verbose #1276 > >     for i = 1 to n do
00:02:16 verbose #1277 > >         do! $"c{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:16 verbose #1278 > > $"file_{i}.txt")
00:02:16 verbose #1279 > >
00:02:16 verbose #1280 > >     do! Async.Sleep 250
00:02:16 verbose #1281 > >
00:02:16 verbose #1282 > >     for i = 1 to n do
00:02:16 verbose #1283 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:16 verbose #1284 > > Async.Ignore
00:02:16 verbose #1285 > >
00:02:16 verbose #1286 > >     do! Async.Sleep 250
00:02:16 verbose #1287 > > }
00:02:16 verbose #1288 > >
00:02:16 verbose #1289 > > let inline run () =
00:02:16 verbose #1290 > >     let events = testEventsRaw watchDirectory write
00:02:16 verbose #1291 > >
00:02:16 verbose #1292 > >     events
00:02:16 verbose #1293 > >     |> _sequenceEqual [[
00:02:16 verbose #1294 > >         FileSystemChange.Created ("file1.txt", Some "a1")
00:02:16 verbose #1295 > >         FileSystemChange.Changed ("file1.txt", Some "a1")
00:02:16 verbose #1296 > >         FileSystemChange.Created ("file2.txt", Some "a2")
00:02:16 verbose #1297 > >         FileSystemChange.Changed ("file2.txt", Some "a2")
00:02:16 verbose #1298 > >
00:02:16 verbose #1299 > >         FileSystemChange.Changed ("file1.txt", Some "b1")
00:02:16 verbose #1300 > >         FileSystemChange.Changed ("file2.txt", Some "b2")
00:02:16 verbose #1301 > >
00:02:16 verbose #1302 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
00:02:16 verbose #1303 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
00:02:16 verbose #1304 > >
00:02:16 verbose #1305 > >         FileSystemChange.Changed ("file_1.txt", Some "c1")
00:02:16 verbose #1306 > >         FileSystemChange.Changed ("file_2.txt", Some "c2")
00:02:16 verbose #1307 > >
00:02:16 verbose #1308 > >         FileSystemChange.Deleted "file_1.txt"
00:02:16 verbose #1309 > >         FileSystemChange.Deleted "file_2.txt"
00:02:16 verbose #1310 > >     ]]
00:02:16 verbose #1311 > >
00:02:16 verbose #1312 > > run
00:02:16 verbose #1313 > > |> retry_fn 3
00:02:16 verbose #1314 > > |> _assertEqual (Some ())
00:02:20 verbose #1315 > >
00:02:20 verbose #1316 > > ╭─[ 4.01s - stdout ]───────────────────────────────────────────────────────────╮
00:02:20 verbose #1317 > > │ Some ()                                                                      │
00:02:20 verbose #1318 > > │                                                                              │
00:02:20 verbose #1319 > > │ 00:00:06   debug #1 FileSystem.watchWithFilter / Disposing watch stream │
00:02:20 verbose #1320 > > │ / filter: FileName, LastWrite                                                │
00:02:20 verbose #1321 > > │ 00:00:06   debug #2 FileSystem.testEventsRaw / eventsLog:               │
00:02:20 verbose #1322 > > │ 0 / 638623699750960102 / Created ("file1.txt", Some "a1")                    │
00:02:20 verbose #1323 > > │ 1 / 638623699750960103 / Changed ("file1.txt", Some "a1")                    │
00:02:20 verbose #1324 > > │ 14909 / 638623699750975012 / Changed ("file1.txt", Some "a1")                │
00:02:20 verbose #1325 > > │ 969 / 638623699750975981 / Created ("file2.txt", Some "a2")                  │
00:02:20 verbose #1326 > > │ 1 / 638623699750975982 / Changed ("file2.txt", Some "a2")                    │
00:02:20 verbose #1327 > > │ 42 / 638623699750976024 / Changed ("file2.txt", Some "a2")                   │
00:02:20 verbose #1328 > > │ 2585721 / 638623699753561745 / Changed ("file1.txt", Some "b1")              │
00:02:20 verbose #1329 > > │ 890 / 638623699753562635 / Changed ("file1.txt", Some "b1")                  │
00:02:20 verbose #1330 > > │ 5520 / 638623699753568155 / Changed ("file2.txt", Some "b2")                 │
00:02:20 verbose #1331 > > │ 1270 / 638623699753569425 / Changed ("file2.txt", Some "b2")                 │
00:02:20 verbose #1332 > > │ 2691093 / 638623699756260518 / Renamed ("file1.txt", ("file_1.txt", Some     │
00:02:20 verbose #1333 > > │ "b1"))                                                                       │
00:02:20 verbose #1334 > > │ 14737 / 638623699756275255 / Renamed ("file2.txt", ("file_2.txt", Some       │
00:02:20 verbose #1335 > > │ "b2"))                                                                       │
00:02:20 verbose #1336 > > │ 2436077 / 638623699758711332 / Changed ("file_1.txt", Some "c1")             │
00:02:20 verbose #1337 > > │ 1451 / 638623699758712783 / Changed ("file_1.txt", Some "c1")                │
00:02:20 verbose #1338 > > │ 7243 / 638623699758720026 / Changed ("file_2.txt", Some "c2")                │
00:02:20 verbose #1339 > > │ 1181 / 638623699758721207 / Changed ("file_2.txt", Some "c2")                │
00:02:20 verbose #1340 > > │ 2516513 / 638623699761237720 / Deleted "file_1.txt"                          │
00:02:20 verbose #1341 > > │ 2611 / 638623699761240331 / Deleted "file_2.txt"                             │
00:02:20 verbose #1342 > > │ [Created ("file1.txt", Some "a1"); Changed ("file1.txt", Some "a1"); Created │
00:02:20 verbose #1343 > > │ ("file2.txt", Some "a2");                                                    │
00:02:20 verbose #1344 > > │  Changed ("file2.txt", Some "a2"); Changed ("file1.txt", Some "b1"); Changed │
00:02:20 verbose #1345 > > │ ("file2.txt", Some "b2");                                                    │
00:02:20 verbose #1346 > > │  Renamed ("file1.txt", ("file_1.txt", Some "b1")); Renamed ("file2.txt",     │
00:02:20 verbose #1347 > > │ ("file_2.txt", Some "b2"));                                                  │
00:02:20 verbose #1348 > > │  Changed ("file_1.txt", Some "c1"); Changed ("file_2.txt", Some "c2");       │
00:02:20 verbose #1349 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:20 verbose #1350 > > │                                                                              │
00:02:20 verbose #1351 > > │ Some ()                                                                      │
00:02:20 verbose #1352 > > │                                                                              │
00:02:20 verbose #1353 > > │                                                                              │
00:02:20 verbose #1354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1355 > >
00:02:20 verbose #1356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #1357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #1358 > > │ #### slow (test)                                                             │
00:02:20 verbose #1359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1360 > >
00:02:20 verbose #1361 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #1362 > > //// test
00:02:20 verbose #1363 > >
00:02:20 verbose #1364 > > let inline write path = async {
00:02:20 verbose #1365 > >     let n = 2
00:02:20 verbose #1366 > >
00:02:20 verbose #1367 > >     let contents =
00:02:20 verbose #1368 > >         [[ 1 .. n ]]
00:02:20 verbose #1369 > >         |> List.map (string >> String.replicate 1_000_000)
00:02:20 verbose #1370 > >
00:02:20 verbose #1371 > >     for i = 1 to n do
00:02:20 verbose #1372 > >         do! $"{contents.[[i - 1]]}a" |> SpiralFileSystem.write_all_text_async
00:02:20 verbose #1373 > > (path </> $"file{i}.txt")
00:02:20 verbose #1374 > >
00:02:20 verbose #1375 > >     do! Async.Sleep 1500
00:02:20 verbose #1376 > >
00:02:20 verbose #1377 > >     for i = 1 to n do
00:02:20 verbose #1378 > >         do! $"{contents.[[i - 1]]}b" |> SpiralFileSystem.write_all_text_async
00:02:20 verbose #1379 > > (path </> $"file{i}.txt")
00:02:20 verbose #1380 > >
00:02:20 verbose #1381 > >     do! Async.Sleep 1500
00:02:20 verbose #1382 > >
00:02:20 verbose #1383 > >     for i = 1 to n do
00:02:20 verbose #1384 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:20 verbose #1385 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:20 verbose #1386 > >
00:02:20 verbose #1387 > >     do! Async.Sleep 1500
00:02:20 verbose #1388 > >
00:02:20 verbose #1389 > >     for i = 1 to n do
00:02:20 verbose #1390 > >         do! $"{contents.[[i - 1]]}c" |> SpiralFileSystem.write_all_text_async
00:02:20 verbose #1391 > > (path </> $"file_{i}.txt")
00:02:20 verbose #1392 > >
00:02:20 verbose #1393 > >     do! Async.Sleep 1500
00:02:20 verbose #1394 > >
00:02:20 verbose #1395 > >     for i = 1 to n do
00:02:20 verbose #1396 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:20 verbose #1397 > > Async.Ignore
00:02:20 verbose #1398 > >
00:02:20 verbose #1399 > >     do! Async.Sleep 1500
00:02:20 verbose #1400 > > }
00:02:20 verbose #1401 > >
00:02:20 verbose #1402 > > let inline run () =
00:02:20 verbose #1403 > >     let events =
00:02:20 verbose #1404 > >         testEventsRaw watchDirectory write
00:02:20 verbose #1405 > >         |> List.map (function
00:02:20 verbose #1406 > >             | FileSystemChange.Changed (path, Some content) ->
00:02:20 verbose #1407 > >                 FileSystemChange.Changed (path, content |> Seq.distinct |>
00:02:20 verbose #1408 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:20 verbose #1409 > >             | FileSystemChange.Created (path, Some content) ->
00:02:20 verbose #1410 > >                 FileSystemChange.Created (path, content |> Seq.distinct |>
00:02:20 verbose #1411 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:20 verbose #1412 > >             | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
00:02:20 verbose #1413 > >                 FileSystemChange.Renamed (
00:02:20 verbose #1414 > >                     oldPath,
00:02:20 verbose #1415 > >                     (newPath, content |> Seq.distinct |> Seq.map string |>
00:02:20 verbose #1416 > > SpiralSm.concat "" |> Some)
00:02:20 verbose #1417 > >                 )
00:02:20 verbose #1418 > >             | event -> event
00:02:20 verbose #1419 > >         )
00:02:20 verbose #1420 > >
00:02:20 verbose #1421 > >     events
00:02:20 verbose #1422 > >     |> _sequenceEqual [[
00:02:20 verbose #1423 > >         FileSystemChange.Created ("file1.txt", Some "1a")
00:02:20 verbose #1424 > >         FileSystemChange.Changed ("file1.txt", Some "1a")
00:02:20 verbose #1425 > >         FileSystemChange.Created ("file2.txt", Some "2a")
00:02:20 verbose #1426 > >         FileSystemChange.Changed ("file2.txt", Some "2a")
00:02:20 verbose #1427 > >
00:02:20 verbose #1428 > >         FileSystemChange.Changed ("file1.txt", Some "1b")
00:02:20 verbose #1429 > >         FileSystemChange.Changed ("file2.txt", Some "2b")
00:02:20 verbose #1430 > >
00:02:20 verbose #1431 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
00:02:20 verbose #1432 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
00:02:20 verbose #1433 > >
00:02:20 verbose #1434 > >         FileSystemChange.Changed ("file_1.txt", Some "1c")
00:02:20 verbose #1435 > >         FileSystemChange.Changed ("file_2.txt", Some "2c")
00:02:20 verbose #1436 > >
00:02:20 verbose #1437 > >         FileSystemChange.Deleted "file_1.txt"
00:02:20 verbose #1438 > >         FileSystemChange.Deleted "file_2.txt"
00:02:20 verbose #1439 > >     ]]
00:02:20 verbose #1440 > >
00:02:20 verbose #1441 > > run
00:02:20 verbose #1442 > > |> retry_fn 5
00:02:20 verbose #1443 > > |> _assertEqual (Some ())
00:02:31 verbose #1444 > >
00:02:31 verbose #1445 > > ╭─[ 10.89s - stdout ]──────────────────────────────────────────────────────────╮
00:02:31 verbose #1446 > > │ Some ()                                                                      │
00:02:31 verbose #1447 > > │                                                                              │
00:02:31 verbose #1448 > > │ 00:00:17   debug #3 FileSystem.watchWithFilter / Disposing watch stream │
00:02:31 verbose #1449 > > │ / filter: FileName, LastWrite                                                │
00:02:31 verbose #1450 > > │ 00:00:17   debug #4 FileSystem.testEventsRaw / eventsLog:               │
00:02:31 verbose #1451 > > │ 0 / 638623699793442818 / Created                                             │
00:02:31 verbose #1452 > > │   ("file1.txt",                                                              │
00:02:31 verbose #1453 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:31 verbose #1454 > > │ 1 / 638623699793442819 / Changed                                             │
00:02:31 verbose #1455 > > │   ("file1.txt",                                                              │
00:02:31 verbose #1456 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:31 verbose #1457 > > │ 45192 / 638623699793488011 / Changed                                         │
00:02:31 verbose #1458 > > │   ("file1.txt...11111111111111111111111111111111111111111111111a")           │
00:02:31 verbose #1459 > > │ 13339 / 638623699793501350 / Created                                         │
00:02:31 verbose #1460 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:31 verbose #1461 > > │ 1 / 638623699793501351 / Changed                                             │
00:02:31 verbose #1462 > > │   ("file2.txt",                                                              │
00:02:31 verbose #1463 > > │  ...22222222222222222222222222222222222222222222222a")                       │
00:02:31 verbose #1464 > > │ 39329 / 638623699793540680 / Changed                                         │
00:02:31 verbose #1465 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:31 verbose #1466 > > │ 15136116 / 638623699808676796 / Changed                                      │
00:02:31 verbose #1467 > > │   ("file1....11111111111111111111111111111111111111111111111b")              │
00:02:31 verbose #1468 > > │ 209198 / 638623699808885994 / Changed                                        │
00:02:31 verbose #1469 > > │   ("file1.tx...11111111111111111111111111111111111111111111111b")            │
00:02:31 verbose #1470 > > │ 52718 / 638623699808938712 / Changed                                         │
00:02:31 verbose #1471 > > │   ("file2.txt...22222222222222222222222222222222222222222222222b")           │
00:02:31 verbose #1472 > > │ 147871 / 638623699809086583 / Changed                                        │
00:02:31 verbose #1473 > > │   ("file2.tx...22222222222222222222222222222222222222222222222b")            │
00:02:31 verbose #1474 > > │ 15086479 / 638623699824173062 / Renamed                                      │
00:02:31 verbose #1475 > > │   ("file1....1111111111111111111111111111111111111111111111b"))              │
00:02:31 verbose #1476 > > │ 2530 / 638623699824175592 / Renamed                                          │
00:02:31 verbose #1477 > > │   ("file2.txt"...2222222222222222222222222222222222222222222222b"))          │
00:02:31 verbose #1478 > > │ 15136193 / 638623699839311785 / Changed                                      │
00:02:31 verbose #1479 > > │   ("file_1...11111111111111111111111111111111111111111111111c")              │
00:02:31 verbose #1480 > > │ 186838 / 638623699839498623 / Changed                                        │
00:02:31 verbose #1481 > > │   ("file_1.t...11111111111111111111111111111111111111111111111c")            │
00:02:31 verbose #1482 > > │ 47042 / 638623699839545665 / Changed                                         │
00:02:31 verbose #1483 > > │   ("file_2.tx...22222222222222222222222222222222222222222222222c")           │
00:02:31 verbose #1484 > > │ 116771 / 638623699839662436 / Changed                                        │
00:02:31 verbose #1485 > > │   ("file_2.t...22222222222222222222222222222222222222222222222c")            │
00:02:31 verbose #1486 > > │ 15108802 / 638623699854771238 / Deleted "file_1.txt"                         │
00:02:31 verbose #1487 > > │ 5826 / 638623699854777064 / Deleted "file_2.txt"                             │
00:02:31 verbose #1488 > > │ [Created ("file1.txt", Some "1a"); Changed ("file1.txt", Some "1a"); Created │
00:02:31 verbose #1489 > > │ ("file2.txt", Some "2a");                                                    │
00:02:31 verbose #1490 > > │  Changed ("file2.txt", Some "2a"); Changed ("file1.txt", Some "1b"); Changed │
00:02:31 verbose #1491 > > │ ("file2.txt", Some "2b");                                                    │
00:02:31 verbose #1492 > > │  Renamed ("file1.txt", ("file_1.txt", Some "1b")); Renamed ("file2.txt",     │
00:02:31 verbose #1493 > > │ ("file_2.txt", Some "2b"));                                                  │
00:02:31 verbose #1494 > > │  Changed ("file_1.txt", Some "1c"); Changed ("file_2.txt", Some "2c");       │
00:02:31 verbose #1495 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:31 verbose #1496 > > │                                                                              │
00:02:31 verbose #1497 > > │ Some ()                                                                      │
00:02:31 verbose #1498 > > │                                                                              │
00:02:31 verbose #1499 > > │                                                                              │
00:02:31 verbose #1500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #1501 > >
00:02:31 verbose #1502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #1503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #1504 > > │ ### testEventsSorted (test)                                                  │
00:02:31 verbose #1505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #1506 > >
00:02:31 verbose #1507 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:31 verbose #1508 > > //// test
00:02:31 verbose #1509 > >
00:02:31 verbose #1510 > > let inline sortEvent event =
00:02:31 verbose #1511 > >     match event with
00:02:31 verbose #1512 > >     | FileSystemChange.Failure _ -> 0
00:02:31 verbose #1513 > >     | FileSystemChange.Created _ -> 1
00:02:31 verbose #1514 > >     | FileSystemChange.Changed _ -> 2
00:02:31 verbose #1515 > >     | FileSystemChange.Renamed (_oldPath, _) -> 3
00:02:31 verbose #1516 > >     | FileSystemChange.Deleted _ -> 4
00:02:31 verbose #1517 > >
00:02:31 verbose #1518 > > let inline formatEvents events =
00:02:31 verbose #1519 > >     events
00:02:31 verbose #1520 > >     |> Seq.toList
00:02:31 verbose #1521 > >     |> List.sortBy (snd >> sortEvent)
00:02:31 verbose #1522 > >     |> List.choose (fun (ticks, event) ->
00:02:31 verbose #1523 > >         match event with
00:02:31 verbose #1524 > >         | FileSystemChange.Failure _ ->
00:02:31 verbose #1525 > >             None
00:02:31 verbose #1526 > >         | FileSystemChange.Changed (path, _) ->
00:02:31 verbose #1527 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:31 verbose #1528 > > FileSystemChangeType.Changed)
00:02:31 verbose #1529 > >         | FileSystemChange.Created (path, _) ->
00:02:31 verbose #1530 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:31 verbose #1531 > > FileSystemChangeType.Created)
00:02:31 verbose #1532 > >         | FileSystemChange.Deleted path ->
00:02:31 verbose #1533 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:31 verbose #1534 > > FileSystemChangeType.Deleted)
00:02:31 verbose #1535 > >         | FileSystemChange.Renamed (_oldPath, (path, _)) ->
00:02:31 verbose #1536 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:31 verbose #1537 > > FileSystemChangeType.Renamed)
00:02:31 verbose #1538 > >     )
00:02:31 verbose #1539 > >     |> List.sortBy (fun (_, path, _) -> path)
00:02:31 verbose #1540 > >     |> List.distinctBy (fun (_, path, event) -> path, event)
00:02:31 verbose #1541 > >
00:02:31 verbose #1542 > > let inline testEventsSorted
00:02:31 verbose #1543 > >     (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
00:02:31 verbose #1544 > > IDisposable)
00:02:31 verbose #1545 > >     write
00:02:31 verbose #1546 > >     =
00:02:31 verbose #1547 > >     let struct (tempDir, tempDisposable) =
00:02:31 verbose #1548 > >         "FileSystem.testEventsSorted"
00:02:31 verbose #1549 > >         |> SpiralCrypto.hash_text
00:02:31 verbose #1550 > >         |> SpiralFileSystem.create_temp_dir'
00:02:31 verbose #1551 > >     let stream, disposable = watchFn tempDir
00:02:31 verbose #1552 > >
00:02:31 verbose #1553 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:31 verbose #1554 > >
00:02:31 verbose #1555 > >     let inline iter () =
00:02:31 verbose #1556 > >         stream
00:02:31 verbose #1557 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:31 verbose #1558 > > events.Add event })
00:02:31 verbose #1559 > >
00:02:31 verbose #1560 > >     let run = async {
00:02:31 verbose #1561 > >         let! _ = iter () |> Async.StartChild
00:02:31 verbose #1562 > >         do! Async.Sleep 250
00:02:31 verbose #1563 > >         return! write tempDir
00:02:31 verbose #1564 > >     }
00:02:31 verbose #1565 > >
00:02:31 verbose #1566 > >     try
00:02:31 verbose #1567 > >         run
00:02:31 verbose #1568 > >         |> Async.runWithTimeout 5000
00:02:31 verbose #1569 > >         |> _assertEqual (Some ())
00:02:31 verbose #1570 > >     finally
00:02:31 verbose #1571 > >         disposable.Dispose ()
00:02:31 verbose #1572 > >         tempDisposable.Dispose ()
00:02:31 verbose #1573 > >
00:02:31 verbose #1574 > >     let events = formatEvents events
00:02:31 verbose #1575 > >
00:02:31 verbose #1576 > >     let eventMap =
00:02:31 verbose #1577 > >         events
00:02:31 verbose #1578 > >         |> List.map (fun (ticks, path, event) -> path, (event, ticks))
00:02:31 verbose #1579 > >         |> List.groupBy fst
00:02:31 verbose #1580 > >         |> List.map (fun (path, events) ->
00:02:31 verbose #1581 > >             let event, _ticks =
00:02:31 verbose #1582 > >                 events
00:02:31 verbose #1583 > >                 |> List.map snd
00:02:31 verbose #1584 > >                 |> List.sortByDescending snd
00:02:31 verbose #1585 > >                 |> List.head
00:02:31 verbose #1586 > >
00:02:31 verbose #1587 > >             path, event
00:02:31 verbose #1588 > >         )
00:02:31 verbose #1589 > >         |> Map.ofList
00:02:31 verbose #1590 > >
00:02:31 verbose #1591 > >     let eventList =
00:02:31 verbose #1592 > >         events
00:02:31 verbose #1593 > >         |> List.map (fun (_ticks, path, event) -> path, event)
00:02:31 verbose #1594 > >
00:02:31 verbose #1595 > >     eventMap, eventList
00:02:31 verbose #1596 > >
00:02:31 verbose #1597 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #1598 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #1599 > > │ #### create and delete (test)                                                │
00:02:31 verbose #1600 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #1601 > >
00:02:31 verbose #1602 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:31 verbose #1603 > > //// test
00:02:31 verbose #1604 > >
00:02:31 verbose #1605 > > let inline write path = async {
00:02:31 verbose #1606 > >     let n = 3
00:02:31 verbose #1607 > >
00:02:31 verbose #1608 > >     for i = 1 to n do
00:02:31 verbose #1609 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:31 verbose #1610 > > $"file{i}.txt")
00:02:31 verbose #1611 > >
00:02:31 verbose #1612 > >     for i = 1 to n do
00:02:31 verbose #1613 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:31 verbose #1614 > > Async.Ignore
00:02:31 verbose #1615 > >
00:02:31 verbose #1616 > >     do! Async.Sleep 150
00:02:31 verbose #1617 > > }
00:02:31 verbose #1618 > >
00:02:31 verbose #1619 > > let inline run () =
00:02:31 verbose #1620 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:31 verbose #1621 > > write
00:02:31 verbose #1622 > >
00:02:31 verbose #1623 > >     [[
00:02:31 verbose #1624 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:31 verbose #1625 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:31 verbose #1626 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1627 > >
00:02:31 verbose #1628 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:31 verbose #1629 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:31 verbose #1630 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1631 > >
00:02:31 verbose #1632 > >         "file3.txt", nameof FileSystemChangeType.Created
00:02:31 verbose #1633 > >         "file3.txt", nameof FileSystemChangeType.Changed
00:02:31 verbose #1634 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1635 > >     ]]
00:02:31 verbose #1636 > >     |> _sequenceEqual eventList
00:02:31 verbose #1637 > >
00:02:31 verbose #1638 > >     [[
00:02:31 verbose #1639 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1640 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1641 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:31 verbose #1642 > >     ]]
00:02:31 verbose #1643 > >     |> Map.ofList
00:02:31 verbose #1644 > >     |> _sequenceEqual eventMap
00:02:31 verbose #1645 > >
00:02:31 verbose #1646 > > run
00:02:31 verbose #1647 > > |> retry_fn 3
00:02:31 verbose #1648 > > |> _assertEqual (Some ())
00:02:34 verbose #1649 > >
00:02:34 verbose #1650 > > ╭─[ 2.26s - stdout ]───────────────────────────────────────────────────────────╮
00:02:34 verbose #1651 > > │ Some ()                                                                      │
00:02:34 verbose #1652 > > │                                                                              │
00:02:34 verbose #1653 > > │ 00:00:20   debug #5 FileSystem.watchWithFilter / Disposing watch stream │
00:02:34 verbose #1654 > > │ / filter: FileName, LastWrite                                                │
00:02:34 verbose #1655 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:34 verbose #1656 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:34 verbose #1657 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted"); ("file3.txt",           │
00:02:34 verbose #1658 > > │ "Created"); ("file3.txt", "Changed");                                        │
00:02:34 verbose #1659 > > │  ("file3.txt", "Deleted")]                                                   │
00:02:34 verbose #1660 > > │                                                                              │
00:02:34 verbose #1661 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted"); ("file3.txt",       │
00:02:34 verbose #1662 > > │ "Deleted")]                                                                  │
00:02:34 verbose #1663 > > │                                                                              │
00:02:34 verbose #1664 > > │ Some ()                                                                      │
00:02:34 verbose #1665 > > │                                                                              │
00:02:34 verbose #1666 > > │                                                                              │
00:02:34 verbose #1667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:34 verbose #1668 > >
00:02:34 verbose #1669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:34 verbose #1670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:34 verbose #1671 > > │ #### change (test)                                                           │
00:02:34 verbose #1672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:34 verbose #1673 > >
00:02:34 verbose #1674 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:34 verbose #1675 > > //// test
00:02:34 verbose #1676 > >
00:02:34 verbose #1677 > > let inline write path = async {
00:02:34 verbose #1678 > >     let n = 2
00:02:34 verbose #1679 > >
00:02:34 verbose #1680 > >     for i = 1 to n do
00:02:34 verbose #1681 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:34 verbose #1682 > > $"file{i}.txt")
00:02:34 verbose #1683 > >
00:02:34 verbose #1684 > >     for i = 1 to n do
00:02:34 verbose #1685 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:34 verbose #1686 > > $"file{i}.txt")
00:02:34 verbose #1687 > >
00:02:34 verbose #1688 > >     for i = 1 to n do
00:02:34 verbose #1689 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:34 verbose #1690 > > Async.Ignore
00:02:34 verbose #1691 > >
00:02:34 verbose #1692 > >     do! Async.Sleep 150
00:02:34 verbose #1693 > > }
00:02:34 verbose #1694 > >
00:02:34 verbose #1695 > > let inline run () =
00:02:34 verbose #1696 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:34 verbose #1697 > > write
00:02:34 verbose #1698 > >
00:02:34 verbose #1699 > >     [[
00:02:34 verbose #1700 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:34 verbose #1701 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:34 verbose #1702 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:34 verbose #1703 > >
00:02:34 verbose #1704 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:34 verbose #1705 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:34 verbose #1706 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:34 verbose #1707 > >     ]]
00:02:34 verbose #1708 > >     |> _sequenceEqual eventList
00:02:34 verbose #1709 > >
00:02:34 verbose #1710 > >     [[
00:02:34 verbose #1711 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:34 verbose #1712 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:34 verbose #1713 > >     ]]
00:02:34 verbose #1714 > >     |> Map.ofList
00:02:34 verbose #1715 > >     |> _sequenceEqual eventMap
00:02:34 verbose #1716 > >
00:02:34 verbose #1717 > > run
00:02:34 verbose #1718 > > |> retry_fn 3
00:02:34 verbose #1719 > > |> _assertEqual (Some ())
00:02:36 verbose #1720 > >
00:02:36 verbose #1721 > > ╭─[ 2.25s - stdout ]───────────────────────────────────────────────────────────╮
00:02:36 verbose #1722 > > │ Some ()                                                                      │
00:02:36 verbose #1723 > > │                                                                              │
00:02:36 verbose #1724 > > │ 00:00:22   debug #6 FileSystem.watchWithFilter / Disposing watch stream │
00:02:36 verbose #1725 > > │ / filter: FileName, LastWrite                                                │
00:02:36 verbose #1726 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:36 verbose #1727 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:36 verbose #1728 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted")]                         │
00:02:36 verbose #1729 > > │                                                                              │
00:02:36 verbose #1730 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted")]                     │
00:02:36 verbose #1731 > > │                                                                              │
00:02:36 verbose #1732 > > │ Some ()                                                                      │
00:02:36 verbose #1733 > > │                                                                              │
00:02:36 verbose #1734 > > │                                                                              │
00:02:36 verbose #1735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:36 verbose #1736 > >
00:02:36 verbose #1737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:36 verbose #1738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:36 verbose #1739 > > │ #### rename (test)                                                           │
00:02:36 verbose #1740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:36 verbose #1741 > >
00:02:36 verbose #1742 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:36 verbose #1743 > > //// test
00:02:36 verbose #1744 > >
00:02:36 verbose #1745 > > let inline write path = async {
00:02:36 verbose #1746 > >     let n = 2
00:02:36 verbose #1747 > >
00:02:36 verbose #1748 > >     for i = 1 to n do
00:02:36 verbose #1749 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:36 verbose #1750 > > $"file{i}.txt")
00:02:36 verbose #1751 > >
00:02:36 verbose #1752 > >     for i = 1 to n do
00:02:36 verbose #1753 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:36 verbose #1754 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:36 verbose #1755 > >
00:02:36 verbose #1756 > >     for i = 1 to n do
00:02:36 verbose #1757 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:36 verbose #1758 > > Async.Ignore
00:02:36 verbose #1759 > >
00:02:36 verbose #1760 > >     do! Async.Sleep 150
00:02:36 verbose #1761 > > }
00:02:36 verbose #1762 > >
00:02:36 verbose #1763 > > let inline run () =
00:02:36 verbose #1764 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:36 verbose #1765 > > write
00:02:36 verbose #1766 > >
00:02:36 verbose #1767 > >     [[
00:02:36 verbose #1768 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:36 verbose #1769 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:36 verbose #1770 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:36 verbose #1771 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:36 verbose #1772 > >
00:02:36 verbose #1773 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:36 verbose #1774 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:36 verbose #1775 > >
00:02:36 verbose #1776 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:36 verbose #1777 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:36 verbose #1778 > >     ]]
00:02:36 verbose #1779 > >     |> _sequenceEqual eventList
00:02:36 verbose #1780 > >
00:02:36 verbose #1781 > >     [[
00:02:36 verbose #1782 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:36 verbose #1783 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:36 verbose #1784 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:36 verbose #1785 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:36 verbose #1786 > >     ]]
00:02:36 verbose #1787 > >     |> Map.ofList
00:02:36 verbose #1788 > >     |> _sequenceEqual eventMap
00:02:36 verbose #1789 > >
00:02:36 verbose #1790 > > run
00:02:36 verbose #1791 > > |> retry_fn 3
00:02:36 verbose #1792 > > |> _assertEqual (Some ())
00:02:38 verbose #1793 > >
00:02:38 verbose #1794 > > ╭─[ 2.39s - stdout ]───────────────────────────────────────────────────────────╮
00:02:38 verbose #1795 > > │ Some ()                                                                      │
00:02:38 verbose #1796 > > │                                                                              │
00:02:38 verbose #1797 > > │ 00:00:25   debug #7 FileSystem.watchWithFilter / Disposing watch stream │
00:02:38 verbose #1798 > > │ / filter: FileName, LastWrite                                                │
00:02:38 verbose #1799 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:38 verbose #1800 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:38 verbose #1801 > > │  ("file_1.txt", "Renamed"); ("file_1.txt", "Deleted"); ("file_2.txt",        │
00:02:38 verbose #1802 > > │ "Renamed"); ("file_2.txt", "Deleted")]                                       │
00:02:38 verbose #1803 > > │                                                                              │
00:02:38 verbose #1804 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:38 verbose #1805 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:38 verbose #1806 > > │                                                                              │
00:02:38 verbose #1807 > > │ Some ()                                                                      │
00:02:38 verbose #1808 > > │                                                                              │
00:02:38 verbose #1809 > > │                                                                              │
00:02:38 verbose #1810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #1811 > >
00:02:38 verbose #1812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:38 verbose #1813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:38 verbose #1814 > > │ #### full (test)                                                             │
00:02:38 verbose #1815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #1816 > >
00:02:38 verbose #1817 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:38 verbose #1818 > > //// test
00:02:38 verbose #1819 > >
00:02:38 verbose #1820 > > let inline write path = async {
00:02:38 verbose #1821 > >     let n = 2
00:02:38 verbose #1822 > >
00:02:38 verbose #1823 > >     for i = 1 to n do
00:02:38 verbose #1824 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:38 verbose #1825 > > $"file{i}.txt")
00:02:38 verbose #1826 > >
00:02:38 verbose #1827 > >     for i = 1 to n do
00:02:38 verbose #1828 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:38 verbose #1829 > > $"file{i}.txt")
00:02:38 verbose #1830 > >
00:02:38 verbose #1831 > >     for i = 1 to n do
00:02:38 verbose #1832 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:38 verbose #1833 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:38 verbose #1834 > >
00:02:38 verbose #1835 > >     for i = 1 to n do
00:02:38 verbose #1836 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:38 verbose #1837 > > $"file_{i}.txt")
00:02:38 verbose #1838 > >
00:02:38 verbose #1839 > >     for i = 1 to n do
00:02:38 verbose #1840 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:38 verbose #1841 > > Async.Ignore
00:02:38 verbose #1842 > >
00:02:38 verbose #1843 > >     do! Async.Sleep 150
00:02:38 verbose #1844 > > }
00:02:38 verbose #1845 > >
00:02:38 verbose #1846 > > let inline run () =
00:02:38 verbose #1847 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:38 verbose #1848 > > write
00:02:38 verbose #1849 > >
00:02:38 verbose #1850 > >     [[
00:02:38 verbose #1851 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:38 verbose #1852 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1853 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:38 verbose #1854 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1855 > >
00:02:38 verbose #1856 > >         "file_1.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1857 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:38 verbose #1858 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:38 verbose #1859 > >
00:02:38 verbose #1860 > >         "file_2.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1861 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:38 verbose #1862 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:38 verbose #1863 > >     ]]
00:02:38 verbose #1864 > >     |> _sequenceEqual eventList
00:02:38 verbose #1865 > >
00:02:38 verbose #1866 > >     [[
00:02:38 verbose #1867 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1868 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:38 verbose #1869 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:38 verbose #1870 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:38 verbose #1871 > >     ]]
00:02:38 verbose #1872 > >     |> Map.ofList
00:02:38 verbose #1873 > >     |> _sequenceEqual eventMap
00:02:38 verbose #1874 > >
00:02:38 verbose #1875 > > run
00:02:38 verbose #1876 > > |> retry_fn 3
00:02:38 verbose #1877 > > |> _assertEqual (Some ())
00:02:42 verbose #1878 > >
00:02:42 verbose #1879 > > ╭─[ 3.30s - stdout ]───────────────────────────────────────────────────────────╮
00:02:42 verbose #1880 > > │ Some ()                                                                      │
00:02:42 verbose #1881 > > │                                                                              │
00:02:42 verbose #1882 > > │ 00:00:28   debug #8 FileSystem.watchWithFilter / Disposing watch stream │
00:02:42 verbose #1883 > > │ / filter: FileName, LastWrite                                                │
00:02:42 verbose #1884 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:42 verbose #1885 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:42 verbose #1886 > > │  ("file_1.txt", "Changed"); ("file_1.txt", "Renamed"); ("file_1.txt",        │
00:02:42 verbose #1887 > > │ "Deleted"); ("file_2.txt", "Changed");                                       │
00:02:42 verbose #1888 > > │  ("file_2.txt", "Renamed"); ("file_2.txt", "Deleted")]                       │
00:02:42 verbose #1889 > > │                                                                              │
00:02:42 verbose #1890 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:42 verbose #1891 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:42 verbose #1892 > > │                                                                              │
00:02:42 verbose #1893 > > │ Some ()                                                                      │
00:02:42 verbose #1894 > > │                                                                              │
00:02:42 verbose #1895 > > │                                                                              │
00:02:42 verbose #1896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:42 verbose #1897 > 00:00:49 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 36872 }
00:02:42 verbose #1898 > 00:00:49   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:02:42 verbose #1899 >     "nbconvert",
00:02:42 verbose #1900 >     "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb",
00:02:42 verbose #1901 >     "--to",
00:02:42 verbose #1902 >     "html",
00:02:42 verbose #1903 >     "--HTMLExporter.theme=dark",
00:02:42 verbose #1904 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:44 verbose #1905 > 00:00:51 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb to html
00:02:44 verbose #1906 > 00:00:51 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:44 verbose #1907 > 00:00:51 verbose #7 !   validate(nb)
00:02:46 verbose #1908 > 00:00:53 verbose #8 ! [NbConvertApp] Writing 380522 bytes to c:\home\git\polyglot\lib\fsharp\FileSystem.dib.html
00:02:46 verbose #1909 > 00:00:54 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:02:46 verbose #1910 > 00:00:54   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:02:46 verbose #1911 > 00:00:54   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:02:46 verbose #1912 >     "-c",
00:02:46 verbose #1913 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:02:46 verbose #1914 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:46 verbose #1915 > 00:00:54 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:46 verbose #1916 > 00:00:54   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:46 verbose #1917 > 00:00:54   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 37582 }
00:02:47   debug #1918 runtime.execute_with_options_async / { exit_code = 0; output_length = 42106 }
00:02:46   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3
00:02:47   debug #1919 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:47 verbose #1920 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Runtime.dib", "--retries", "3"])) }
00:02:47 verbose #1921 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:02:47 verbose #1922 >     "repl",
00:02:47 verbose #1923 >     "--exit-after-run",
00:02:47 verbose #1924 >     "--run",
00:02:47 verbose #1925 >     "c:/home/git/polyglot/lib/fsharp/Runtime.dib",
00:02:47 verbose #1926 >     "--output-path",
00:02:47 verbose #1927 >     "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb",
00:02:47 verbose #1928 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Runtime.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:49 verbose #1929 > >
00:02:49 verbose #1930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:49 verbose #1931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:49 verbose #1932 > > │ # Runtime (Polyglot)                                                         │
00:02:49 verbose #1933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:53 verbose #1934 > >
00:02:53 verbose #1935 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:53 verbose #1936 > > #r
00:02:53 verbose #1937 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:02:53 verbose #1938 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:02:53 verbose #1939 > > #r
00:02:53 verbose #1940 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:02:53 verbose #1941 > > 0/System.Reactive.dll"
00:02:53 verbose #1942 > > #r
00:02:53 verbose #1943 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:02:53 verbose #1944 > > netstandard2.0/System.Reactive.Linq.dll"
00:02:53 verbose #1945 > > #r
00:02:53 verbose #1946 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:03:10 verbose #1947 > >
00:03:10 verbose #1948 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #1949 > > #if !INTERACTIVE
00:03:10 verbose #1950 > > open Lib
00:03:10 verbose #1951 > > #endif
00:03:10 verbose #1952 > >
00:03:10 verbose #1953 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #1954 > > open Common
00:03:10 verbose #1955 > >
00:03:10 verbose #1956 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #1957 > > //// test
00:03:10 verbose #1958 > >
00:03:10 verbose #1959 > > open SpiralFileSystem.Operators
00:03:10 verbose #1960 > >
00:03:10 verbose #1961 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:10 verbose #1962 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:10 verbose #1963 > > │ ## parseArgs                                                                 │
00:03:10 verbose #1964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #1965 > >
00:03:10 verbose #1966 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #1967 > > let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:10 verbose #1968 > >     let assemblyName =
00:03:10 verbose #1969 > > System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:03:10 verbose #1970 > >     let errorHandler : Argu.IExiter =
00:03:10 verbose #1971 > >         if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
00:03:10 verbose #1972 > > List.contains assemblyName
00:03:10 verbose #1973 > >         then Argu.ExceptionExiter ()
00:03:10 verbose #1974 > >         else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
00:03:10 verbose #1975 > > Some System.ConsoleColor.Red)
00:03:10 verbose #1976 > >
00:03:10 verbose #1977 > >     let parser =
00:03:10 verbose #1978 > >         Argu.ArgumentParser.Create<'T> (
00:03:10 verbose #1979 > >             programName = $"{assemblyName}{SpiralPlatform.get_executable_suffix
00:03:10 verbose #1980 > > ()}",
00:03:10 verbose #1981 > >             errorHandler = errorHandler
00:03:10 verbose #1982 > >         )
00:03:10 verbose #1983 > >
00:03:10 verbose #1984 > >     parser.ParseCommandLine args
00:03:10 verbose #1985 > >
00:03:10 verbose #1986 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #1987 > > //// test
00:03:10 verbose #1988 > >
00:03:10 verbose #1989 > > [[<RequireQualifiedAccess>]]
00:03:10 verbose #1990 > > type Arguments =
00:03:10 verbose #1991 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:03:10 verbose #1992 > > Argu.ArguAttributes.Last>]]
00:03:10 verbose #1993 > >         Paths of paths : string list
00:03:10 verbose #1994 > >
00:03:10 verbose #1995 > >     interface Argu.IArgParserTemplate with
00:03:10 verbose #1996 > >         member s.Usage =
00:03:10 verbose #1997 > >             match s with
00:03:10 verbose #1998 > >             | Paths _ -> nameof Paths
00:03:10 verbose #1999 > >
00:03:10 verbose #2000 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2001 > > //// test
00:03:10 verbose #2002 > >
00:03:10 verbose #2003 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:03:10 verbose #2004 > >
00:03:10 verbose #2005 > > ╭─[ 121.33ms - return value ]──────────────────────────────────────────────────╮
00:03:10 verbose #2006 > > │ "USAGE: dotnet-repl [--help] <paths>...                                      │
00:03:10 verbose #2007 > > │                                                                              │
00:03:10 verbose #2008 > > │ PATHS:                                                                       │
00:03:10 verbose #2009 > > │                                                                              │
00:03:10 verbose #2010 > > │     <paths>...            Paths                                              │
00:03:10 verbose #2011 > > │                                                                              │
00:03:10 verbose #2012 > > │ OPTIONS:                                                                     │
00:03:10 verbose #2013 > > │                                                                              │
00:03:10 verbose #2014 > > │     --help                display this list of options.                      │
00:03:10 verbose #2015 > > │ "                                                                            │
00:03:10 verbose #2016 > > │                                                                              │
00:03:10 verbose #2017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #2018 > >
00:03:10 verbose #2019 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2020 > > //// test
00:03:10 verbose #2021 > >
00:03:10 verbose #2022 > > fun () -> parseArgs<Arguments> [[||]] |> ignore
00:03:10 verbose #2023 > > |> _throwsC (fun ex _ ->
00:03:10 verbose #2024 > >     SpiralSm.format_exception ex
00:03:10 verbose #2025 > >     |> _stringContains "Argu.ArguParseException: ERROR: missing parameter
00:03:10 verbose #2026 > > '<paths>...'."
00:03:10 verbose #2027 > > )
00:03:10 verbose #2028 > >
00:03:10 verbose #2029 > > ╭─[ 64.43ms - stdout ]─────────────────────────────────────────────────────────╮
00:03:10 verbose #2030 > > │ <fun:it@3-3>                                                                 │
00:03:10 verbose #2031 > > │                                                                              │
00:03:10 verbose #2032 > > │ "Argu.ArguParseException: ERROR: missing parameter '<paths>...'.             │
00:03:10 verbose #2033 > > │ USAGE: dotnet-repl.exe [--help] <paths>...                                   │
00:03:10 verbose #2034 > > │                                                                              │
00:03:10 verbose #2035 > > │ PATHS:                                                                       │
00:03:10 verbose #2036 > > │                                                                              │
00:03:10 verbose #2037 > > │     <paths>...            Paths                                              │
00:03:10 verbose #2038 > > │                                                                              │
00:03:10 verbose #2039 > > │ OPTIONS:                                                                     │
00:03:10 verbose #2040 > > │                                                                              │
00:03:10 verbose #2041 > > │     --help                display this list of options.                      │
00:03:10 verbose #2042 > > │ "                                                                            │
00:03:10 verbose #2043 > > │                                                                              │
00:03:10 verbose #2044 > > │                                                                              │
00:03:10 verbose #2045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #2046 > >
00:03:10 verbose #2047 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2048 > > let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:10 verbose #2049 > >     args
00:03:10 verbose #2050 > >     |> parseArgs<'T>
00:03:10 verbose #2051 > >     |> fun results -> results.GetAllResults ()
00:03:10 verbose #2052 > >
00:03:10 verbose #2053 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2054 > > //// test
00:03:10 verbose #2055 > >
00:03:10 verbose #2056 > > [[<RequireQualifiedAccess>]]
00:03:10 verbose #2057 > > type Arguments =
00:03:10 verbose #2058 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:03:10 verbose #2059 > > Argu.ArguAttributes.Last>]]
00:03:10 verbose #2060 > >         Paths of paths : string list
00:03:10 verbose #2061 > >
00:03:10 verbose #2062 > >     interface Argu.IArgParserTemplate with
00:03:10 verbose #2063 > >         member s.Usage =
00:03:10 verbose #2064 > >             match s with
00:03:10 verbose #2065 > >             | Paths _ -> nameof Paths
00:03:10 verbose #2066 > >
00:03:10 verbose #2067 > > parseAllArgs<Arguments> [[| "a b"; "c" |]]
00:03:10 verbose #2068 > > |> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
00:03:10 verbose #2069 > >
00:03:10 verbose #2070 > > ╭─[ 116.24ms - stdout ]────────────────────────────────────────────────────────╮
00:03:10 verbose #2071 > > │ [Paths ["a b"; "c"]]                                                         │
00:03:10 verbose #2072 > > │                                                                              │
00:03:10 verbose #2073 > > │                                                                              │
00:03:10 verbose #2074 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #2075 > >
00:03:10 verbose #2076 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2077 > > let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
00:03:10 verbose #2078 > >     args
00:03:10 verbose #2079 > >     |> parseAllArgs<'T>
00:03:10 verbose #2080 > >     |> List.groupBy CommonFSharp.getUnionCaseName<'T>
00:03:10 verbose #2081 > >     |> Map.ofList
00:03:10 verbose #2082 > >
00:03:10 verbose #2083 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2084 > > //// test
00:03:10 verbose #2085 > >
00:03:10 verbose #2086 > > parseArgsMap<Arguments> [[| "a b"; "c" |]]
00:03:10 verbose #2087 > > |> _assertEqual (
00:03:10 verbose #2088 > >     [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
00:03:10 verbose #2089 > >     |> Map.ofList
00:03:10 verbose #2090 > > )
00:03:10 verbose #2091 > >
00:03:10 verbose #2092 > > ╭─[ 68.05ms - stdout ]─────────────────────────────────────────────────────────╮
00:03:10 verbose #2093 > > │ map [("Paths", [Paths ["a b"; "c"]])]                                        │
00:03:10 verbose #2094 > > │                                                                              │
00:03:10 verbose #2095 > > │                                                                              │
00:03:10 verbose #2096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #2097 > 00:00:23 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7590 }
00:03:10 verbose #2098 > 00:00:23   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:03:10 verbose #2099 >     "nbconvert",
00:03:10 verbose #2100 >     "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb",
00:03:10 verbose #2101 >     "--to",
00:03:10 verbose #2102 >     "html",
00:03:10 verbose #2103 >     "--HTMLExporter.theme=dark",
00:03:10 verbose #2104 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:13 verbose #2105 > 00:00:26 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb to html
00:03:13 verbose #2106 > 00:00:26 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:13 verbose #2107 > 00:00:26 verbose #7 !   validate(nb)
00:03:14 verbose #2108 > 00:00:27 verbose #8 ! [NbConvertApp] Writing 292946 bytes to c:\home\git\polyglot\lib\fsharp\Runtime.dib.html
00:03:14 verbose #2109 > 00:00:27 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:03:14 verbose #2110 > 00:00:27   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:03:14 verbose #2111 > 00:00:27   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:03:14 verbose #2112 >     "-c",
00:03:14 verbose #2113 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:03:14 verbose #2114 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:15 verbose #2115 > 00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:15 verbose #2116 > 00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:15 verbose #2117 > 00:00:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8294 }
00:03:15   debug #2118 runtime.execute_with_options_async / { exit_code = 0; output_length = 11315 }
00:03:15   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3
00:00:00   debug #1 writeDibCode / output: Fs / path: FileSystem.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Async.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Runtime.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Common.dib
00:00:00   debug #5 parseDibCode / output: Fs / file: AsyncSeq.dib
00:00:00   debug #7 parseDibCode / output: Fs / file: Common.dib
00:00:00   debug #4 parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00   debug #6 parseDibCode / output: Fs / file: Runtime.dib
00:00:00   debug #5 parseDibCode / output: Fs / file: Async.dib
00:00:00   debug #4 parseDibCode / output: Fs / file: FileSystem.dib
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_builder.dib"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib" --output-path "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #11 > >
00:00:03 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #14 > > │ # spiral_builder                                                             │
00:00:03 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #16 > >
00:00:07 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 verbose #18 > > open file_system_operators
00:00:07 verbose #19 > > open rust.rust_operators
00:00:07 verbose #20 > > open rust
00:00:07 verbose #21 > > open sm'_operators
00:00:08 verbose #22 > >
00:00:08 verbose #23 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #24 > > //// test
00:00:08 verbose #25 > >
00:00:08 verbose #26 > > open testing
00:00:08 verbose #27 > >
00:00:08 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 verbose #30 > > │ ## get_args                                                                  │
00:00:08 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #32 > >
00:00:08 verbose #33 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #34 > > inl get_args () =
00:00:08 verbose #35 > >     {
00:00:08 verbose #36 > >         fsharp = "fsharp", {
00:00:08 verbose #37 > >             spi_path = "spi-path", 's'
00:00:08 verbose #38 > >         }
00:00:08 verbose #39 > >         cuda = "cuda", {
00:00:08 verbose #40 > >             py_path = "py-path", 'p'
00:00:08 verbose #41 > >             env = "env", 'e'
00:00:08 verbose #42 > >             deps = "deps", 'd'
00:00:08 verbose #43 > >         }
00:00:08 verbose #44 > >         fable = "fable", {
00:00:08 verbose #45 > >             fs_path = "fs-path", 'f'
00:00:08 verbose #46 > >             command = "command", 'c'
00:00:08 verbose #47 > >         }
00:00:08 verbose #48 > >         rust = "rust", {
00:00:08 verbose #49 > >             fs_path = "fs-path", 'f'
00:00:08 verbose #50 > >             deps = "deps", 'd'
00:00:08 verbose #51 > >             wasm = "wasm", 'w'
00:00:08 verbose #52 > >             contract = "contract", 'c'
00:00:08 verbose #53 > >             cleanup = "cleanup", 'l'
00:00:08 verbose #54 > >         }
00:00:08 verbose #55 > >         typescript = "typescript", {
00:00:08 verbose #56 > >             fs_path = "fs-path", 'f'
00:00:08 verbose #57 > >             deps = "deps", 'd'
00:00:08 verbose #58 > >         }
00:00:08 verbose #59 > >         python = "python", {
00:00:08 verbose #60 > >             fs_path = "fs-path", 'f'
00:00:08 verbose #61 > >             deps = "deps", 'd'
00:00:08 verbose #62 > >         }
00:00:08 verbose #63 > >         dib = "dib", {
00:00:08 verbose #64 > >             path = "path", 'p'
00:00:08 verbose #65 > >             retries = "retries", 'r'
00:00:08 verbose #66 > >             working_directory = "working-directory", 'w'
00:00:08 verbose #67 > >         }
00:00:08 verbose #68 > >     }
00:00:09 verbose #69 > >
00:00:09 verbose #70 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 verbose #71 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 verbose #72 > > │ ## cuda_env                                                                  │
00:00:09 verbose #73 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #74 > >
00:00:09 verbose #75 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #76 > > union cuda_env =
00:00:09 verbose #77 > >     | Pip
00:00:09 verbose #78 > >     | Poetry
00:00:09 verbose #79 > >
00:00:09 verbose #80 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 verbose #81 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 verbose #82 > > │ ## get_command                                                               │
00:00:09 verbose #83 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #84 > >
00:00:09 verbose #85 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #86 > > let get_command () =
00:00:09 verbose #87 > >     ##"command"
00:00:09 verbose #88 > >     |> runtime.new_command
00:00:09 verbose #89 > >     |> runtime.command_subcommand_required true
00:00:09 verbose #90 > >     |> runtime.command_subcommand (
00:00:09 verbose #91 > >         ##(get_args () .fsharp |> fst)
00:00:09 verbose #92 > >         |> runtime.new_command
00:00:09 verbose #93 > >         |> runtime.command_init_arg ((get_args () .fsharp |> snd).spi_path) (
00:00:09 verbose #94 > >             runtime.arg_required true
00:00:09 verbose #95 > >         )
00:00:09 verbose #96 > >     )
00:00:09 verbose #97 > >     |> runtime.command_subcommand (
00:00:09 verbose #98 > >         ##(get_args () .cuda |> fst)
00:00:09 verbose #99 > >         |> runtime.new_command
00:00:09 verbose #100 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).py_path) (
00:00:09 verbose #101 > >             runtime.arg_required true
00:00:09 verbose #102 > >         )
00:00:09 verbose #103 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).env) (
00:00:09 verbose #104 > >             real runtime.arg_union `cuda_env ignore
00:00:09 verbose #105 > >         )
00:00:09 verbose #106 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).deps) (
00:00:09 verbose #107 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:09 verbose #108 > >             >> runtime.arg_num_args_range (
00:00:09 verbose #109 > >                 runtime.new_value_range
00:00:09 verbose #110 > >                     false
00:00:09 verbose #111 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:09 verbose #112 > >                     (am'.End id)
00:00:09 verbose #113 > >             )
00:00:09 verbose #114 > >             >> runtime.arg_action runtime.Append
00:00:09 verbose #115 > >         )
00:00:09 verbose #116 > >     )
00:00:09 verbose #117 > >     |> runtime.command_subcommand (
00:00:09 verbose #118 > >         ##(get_args () .fable |> fst)
00:00:09 verbose #119 > >         |> runtime.new_command
00:00:09 verbose #120 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).fs_path) (
00:00:09 verbose #121 > >             runtime.arg_required true
00:00:09 verbose #122 > >         )
00:00:09 verbose #123 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).command) (
00:00:09 verbose #124 > >             id
00:00:09 verbose #125 > >         )
00:00:09 verbose #126 > >     )
00:00:09 verbose #127 > >     |> runtime.command_subcommand (
00:00:09 verbose #128 > >         ##(get_args () .rust |> fst)
00:00:09 verbose #129 > >         |> runtime.new_command
00:00:09 verbose #130 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).fs_path) (
00:00:09 verbose #131 > >             runtime.arg_required true
00:00:09 verbose #132 > >         )
00:00:09 verbose #133 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).deps) (
00:00:09 verbose #134 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:09 verbose #135 > >             >> runtime.arg_num_args_range (
00:00:09 verbose #136 > >                 runtime.new_value_range
00:00:09 verbose #137 > >                     false
00:00:09 verbose #138 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:09 verbose #139 > >                     (am'.End id)
00:00:09 verbose #140 > >             )
00:00:09 verbose #141 > >             >> runtime.arg_action runtime.Append
00:00:09 verbose #142 > >         )
00:00:09 verbose #143 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).wasm) (
00:00:09 verbose #144 > >             runtime.arg_num_args_range (
00:00:09 verbose #145 > >                 runtime.new_value_range
00:00:09 verbose #146 > >                     true
00:00:09 verbose #147 > >                     (am'.End id)
00:00:09 verbose #148 > >                     (am'.End fun _ => (1i32 |> convert : unativeint))
00:00:09 verbose #149 > >             )
00:00:09 verbose #150 > >             >> runtime.arg_require_equals true
00:00:09 verbose #151 > >             >> runtime.arg_default_missing_value ""
00:00:09 verbose #152 > >         )
00:00:09 verbose #153 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).contract) (
00:00:09 verbose #154 > >             runtime.arg_num_args_range (
00:00:09 verbose #155 > >                 runtime.new_value_range
00:00:09 verbose #156 > >                     true
00:00:09 verbose #157 > >                     (am'.End id)
00:00:09 verbose #158 > >                     (am'.End fun _ => (1i32 |> convert : unativeint))
00:00:09 verbose #159 > >             )
00:00:09 verbose #160 > >             >> runtime.arg_require_equals true
00:00:09 verbose #161 > >             >> runtime.arg_default_missing_value ""
00:00:09 verbose #162 > >         )
00:00:09 verbose #163 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).cleanup) (
00:00:09 verbose #164 > >             runtime.arg_default_value "true"
00:00:09 verbose #165 > >             >> runtime.arg_action runtime.SetFalse
00:00:09 verbose #166 > >         )
00:00:09 verbose #167 > >     )
00:00:09 verbose #168 > >     |> runtime.command_subcommand (
00:00:09 verbose #169 > >         ##(get_args () .typescript |> fst)
00:00:09 verbose #170 > >         |> runtime.new_command
00:00:09 verbose #171 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).fs_path) (
00:00:09 verbose #172 > >             runtime.arg_required true
00:00:09 verbose #173 > >         )
00:00:09 verbose #174 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).deps) (
00:00:09 verbose #175 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:09 verbose #176 > >             >> runtime.arg_num_args_range (
00:00:09 verbose #177 > >                 runtime.new_value_range
00:00:09 verbose #178 > >                     false
00:00:09 verbose #179 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:09 verbose #180 > >                     (am'.End id)
00:00:09 verbose #181 > >             )
00:00:09 verbose #182 > >             >> runtime.arg_action runtime.Append
00:00:09 verbose #183 > >         )
00:00:09 verbose #184 > >     )
00:00:09 verbose #185 > >     |> runtime.command_subcommand (
00:00:09 verbose #186 > >         ##(get_args () .python |> fst)
00:00:09 verbose #187 > >         |> runtime.new_command
00:00:09 verbose #188 > >         |> runtime.command_init_arg ((get_args () .python |> snd).fs_path) (
00:00:09 verbose #189 > >             runtime.arg_required true
00:00:09 verbose #190 > >         )
00:00:09 verbose #191 > >         |> runtime.command_init_arg ((get_args () .python |> snd).deps) (
00:00:09 verbose #192 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:09 verbose #193 > >             >> runtime.arg_num_args_range (
00:00:09 verbose #194 > >                 runtime.new_value_range
00:00:09 verbose #195 > >                     false
00:00:09 verbose #196 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:09 verbose #197 > >                     (am'.End id)
00:00:09 verbose #198 > >             )
00:00:09 verbose #199 > >             >> runtime.arg_action runtime.Append
00:00:09 verbose #200 > >         )
00:00:09 verbose #201 > >     )
00:00:09 verbose #202 > >     |> runtime.command_subcommand (
00:00:09 verbose #203 > >         ##(get_args () .dib |> fst)
00:00:09 verbose #204 > >         |> runtime.new_command
00:00:09 verbose #205 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).path) (
00:00:09 verbose #206 > >             runtime.arg_required true
00:00:09 verbose #207 > >             // >> runtime.arg_value_parser (runtime.value_parser_path_buf ())
00:00:09 verbose #208 > >         )
00:00:09 verbose #209 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).retries) (
00:00:09 verbose #210 > >             runtime.arg_value_parser (runtime.value_parser_expr "u8")
00:00:09 verbose #211 > >         )
00:00:09 verbose #212 > >         |> runtime.command_init_arg ((get_args () .dib |>
00:00:09 verbose #213 > > snd).working_directory) (
00:00:09 verbose #214 > >             id
00:00:09 verbose #215 > >         )
00:00:09 verbose #216 > >     )
00:00:10 verbose #217 > >
00:00:10 verbose #218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 verbose #219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 verbose #220 > > │ ## fable                                                                     │
00:00:10 verbose #221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #222 > >
00:00:10 verbose #223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 verbose #224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 verbose #225 > > │ ### fable_target                                                             │
00:00:10 verbose #226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #227 > >
00:00:10 verbose #228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #229 > > union fable_target =
00:00:10 verbose #230 > >     | Rust
00:00:10 verbose #231 > >     | TypeScript
00:00:10 verbose #232 > >     | Python
00:00:10 verbose #233 > >
00:00:10 verbose #234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 verbose #235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 verbose #236 > > │ ### fable_runtime                                                            │
00:00:10 verbose #237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #238 > >
00:00:10 verbose #239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #240 > > union fable_runtime =
00:00:10 verbose #241 > >     | Wasm : string
00:00:10 verbose #242 > >     | Contract : string
00:00:11 verbose #243 > >
00:00:11 verbose #244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #246 > > │ ### execute_dotnet_fable                                                     │
00:00:11 verbose #247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #248 > >
00:00:11 verbose #249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #250 > > let execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:11 verbose #251 > > package_dir runtime } =
00:00:11 verbose #252 > >     open runtime
00:00:11 verbose #253 > >     execution_options fun x => { x with
00:00:11 verbose #254 > >         command =
00:00:11 verbose #255 > >             inl platform =
00:00:11 verbose #256 > >                 if platform.is_windows ()
00:00:11 verbose #257 > >                 then "_WINDOWS"
00:00:11 verbose #258 > >                 else "_LINUX"
00:00:11 verbose #259 > >             inl platform : string = $'$" --define {!platform}"'
00:00:11 verbose #260 > >             inl runtime =
00:00:11 verbose #261 > >                 match runtime with
00:00:11 verbose #262 > >                 | Some (runtime : fable_runtime) =>
00:00:11 verbose #263 > >                     inl runtime = runtime |> reflection.union_to_string |>
00:00:11 verbose #264 > > sm'.to_upper
00:00:11 verbose #265 > >                     $'$" --define {!runtime}"'
00:00:11 verbose #266 > >                 | None => ""
00:00:11 verbose #267 > >             $'$"dotnet fable \\\"{!fsproj_path}\\\" --optimize --lang
00:00:11 verbose #268 > > {!extension} --extension .{!extension} --outDir
00:00:11 verbose #269 > > \\\"{!package_dir}\\\"{!platform}{!runtime}"'
00:00:11 verbose #270 > >         working_directory = workspace_root_external |> resultm.box |>
00:00:11 verbose #271 > > resultm.ok'
00:00:11 verbose #272 > >     }
00:00:11 verbose #273 > >     |> execute_retry 3u8
00:00:11 verbose #274 > >
00:00:11 verbose #275 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #276 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #277 > > │ ### get_package_dir                                                          │
00:00:11 verbose #278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #279 > >
00:00:11 verbose #280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #281 > > inl get_package_dir { workspace_root target name hash } =
00:00:11 verbose #282 > >     inl dir = workspace_root </> "target/spiral_builder" </> name
00:00:11 verbose #283 > >     match hash, (target : option fable_target) with
00:00:11 verbose #284 > >     | Some hash, Some target => dir </> "packages" </> (target |>
00:00:11 verbose #285 > > reflection.union_to_string) </> hash
00:00:11 verbose #286 > >     | _ => dir
00:00:12 verbose #287 > >
00:00:12 verbose #288 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #289 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #290 > > │ ### persist_code_project                                                     │
00:00:12 verbose #291 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #292 > >
00:00:12 verbose #293 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #294 > > inl persist_code_project { workspace_root package_dir packages modules name code
00:00:12 verbose #295 > > } =
00:00:12 verbose #296 > >     package_dir |> file_system.create_dir |> ignore
00:00:12 verbose #297 > >
00:00:12 verbose #298 > >     inl fs_path = package_dir </> $'$"{!name}.fs"' |> file_system.normalize_path
00:00:12 verbose #299 > >     code |> file_system.write_all_text_exists fs_path
00:00:12 verbose #300 > >
00:00:12 verbose #301 > >     inl modules_code =
00:00:12 verbose #302 > >         modules
00:00:12 verbose #303 > >         |> listm.map fun path =>
00:00:12 verbose #304 > >             inl path = workspace_root </> path
00:00:12 verbose #305 > >             $'$"<Compile Include=\\\"{!path}\\\" />"' : string
00:00:12 verbose #306 > >         |> listm'.box
00:00:12 verbose #307 > >         |> seq.of_list'
00:00:12 verbose #308 > >         |> sm'.concat "\\n        "
00:00:12 verbose #309 > >
00:00:12 verbose #310 > >     inl packages_code =
00:00:12 verbose #311 > >         packages
00:00:12 verbose #312 > >         |> listm.map fun (package : string) =>
00:00:12 verbose #313 > >             $'$"<PackageReference Include=\\\"{!package}\\\" Version=\\\"*\\\"
00:00:12 verbose #314 > > />"' : string
00:00:12 verbose #315 > >         |> listm'.box
00:00:12 verbose #316 > >         |> seq.of_list'
00:00:12 verbose #317 > >         |> sm'.concat "\\n        "
00:00:12 verbose #318 > >
00:00:12 verbose #319 > >     inl fsproj_path = package_dir </> $'$"{!name}.fsproj"' |>
00:00:12 verbose #320 > > file_system.normalize_path
00:00:12 verbose #321 > >     inl fsproj_code : string =
00:00:12 verbose #322 > >         $'$"<Project Sdk=\\\"Microsoft.NET.Sdk\\\">"'
00:00:12 verbose #323 > >         +#. $'$"<PropertyGroup>"'
00:00:12 verbose #324 > >         +#. $'$"    <TargetFramework>net9.0</TargetFramework>"'
00:00:12 verbose #325 > >         +#. $'$"    <LangVersion>preview</LangVersion>"'
00:00:12 verbose #326 > >         +#. $'$"    <RollForward>Major</RollForward>"'
00:00:12 verbose #327 > >         +#. $'$"    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>"'
00:00:12 verbose #328 > >         +#. $'$"    <PublishAot>false</PublishAot>"'
00:00:12 verbose #329 > >         +#. $'$"    <PublishTrimmed>false</PublishTrimmed>"'
00:00:12 verbose #330 > >         +#. $'$"    <PublishSingleFile>true</PublishSingleFile>"'
00:00:12 verbose #331 > >         +#. $'$"    <SelfContained>true</SelfContained>"'
00:00:12 verbose #332 > >         +#. $'$"    <Version>0.0.1-alpha.1</Version>"'
00:00:12 verbose #333 > >         +#. $'$"    <OutputType>Exe</OutputType>"'
00:00:12 verbose #334 > >         +#. $'$"</PropertyGroup>"'
00:00:12 verbose #335 > >
00:00:12 verbose #336 > >         +#. $'$"<PropertyGroup
00:00:12 verbose #337 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'FreeBSD\'))\\\">"'
00:00:12 verbose #338 > >         +#. $'$"    <DefineConstants>_FREEBSD</DefineConstants>"'
00:00:12 verbose #339 > >         +#. $'$"</PropertyGroup>"'
00:00:12 verbose #340 > >
00:00:12 verbose #341 > >         +#. $'$"<PropertyGroup
00:00:12 verbose #342 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Linux\'))\\\">"'
00:00:12 verbose #343 > >         +#. $'$"    <DefineConstants>_LINUX</DefineConstants>"'
00:00:12 verbose #344 > >         +#. $'$"</PropertyGroup>"'
00:00:12 verbose #345 > >
00:00:12 verbose #346 > >         +#. $'$"<PropertyGroup
00:00:12 verbose #347 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'OSX\'))\\\">"'
00:00:12 verbose #348 > >         +#. $'$"    <DefineConstants>_OSX</DefineConstants>"'
00:00:12 verbose #349 > >         +#. $'$"</PropertyGroup>"'
00:00:12 verbose #350 > >
00:00:12 verbose #351 > >         +#. $'$"<PropertyGroup
00:00:12 verbose #352 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Windows\'))\\\">"'
00:00:12 verbose #353 > >         +#. $'$"    <DefineConstants>_WINDOWS</DefineConstants>"'
00:00:12 verbose #354 > >         +#. $'$"</PropertyGroup>"'
00:00:12 verbose #355 > >
00:00:12 verbose #356 > >         +#. $'$"<ItemGroup>"'
00:00:12 verbose #357 > >         +#. $'$"    {!modules_code}"'
00:00:12 verbose #358 > >         +#. $'$"    <Compile Include=\\\"{!fs_path}\\\" />"'
00:00:12 verbose #359 > >         +#. $'$"</ItemGroup>"'
00:00:12 verbose #360 > >
00:00:12 verbose #361 > >         +#. $'$"<ItemGroup>"'
00:00:12 verbose #362 > >         +#. $'$"    {!packages_code}"'
00:00:12 verbose #363 > >         +#. $'$"</ItemGroup>"'
00:00:12 verbose #364 > >
00:00:12 verbose #365 > >         +#. $'$"</Project>"'
00:00:12 verbose #366 > >
00:00:12 verbose #367 > >     fsproj_code |> file_system.write_all_text_exists fsproj_path
00:00:12 verbose #368 > >
00:00:12 verbose #369 > >     fsproj_path
00:00:12 verbose #370 > >
00:00:12 verbose #371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #373 > > │ ### build_project                                                            │
00:00:12 verbose #374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #375 > >
00:00:12 verbose #376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #377 > > inl build_project runtime' output_dir path =
00:00:12 verbose #378 > >     inl full_path = path |> file_system.get_full_path
00:00:12 verbose #379 > >     inl file_dir = full_path |> file_system.get_directory_name
00:00:12 verbose #380 > >     inl extension = full_path |> file_system.get_extension
00:00:12 verbose #381 > >
00:00:12 verbose #382 > >     trace Debug
00:00:12 verbose #383 > >         fun () => "build_project"
00:00:12 verbose #384 > >         fun () => { full_path }
00:00:12 verbose #385 > >
00:00:12 verbose #386 > >     match extension with
00:00:12 verbose #387 > >     | "fsproj" => ()
00:00:12 verbose #388 > >     | _ => failwith $'$"spiral_builder.build_project / Invalid project file
00:00:12 verbose #389 > > extension: {!extension}"'
00:00:12 verbose #390 > >
00:00:12 verbose #391 > >     inl runtimes =
00:00:12 verbose #392 > >         runtime'
00:00:12 verbose #393 > >         |> optionm.map listm.singleton
00:00:12 verbose #394 > >         |> optionm'.default_value [[ "linux-x64"; "win-x64" ]]
00:00:12 verbose #395 > >
00:00:12 verbose #396 > >     inl output_dir = output_dir |> optionm'.default_value "dist"
00:00:12 verbose #397 > >
00:00:12 verbose #398 > >     runtimes
00:00:12 verbose #399 > >     |> listm.map fun runtime' =>
00:00:12 verbose #400 > >         runtime.execution_options fun x => { x with
00:00:12 verbose #401 > >             command = $'$@@"dotnet publish \"\"{!path}\"\" --configuration
00:00:12 verbose #402 > > Release --output \"\"{!output_dir}\"\" --runtime {!runtime'}"'
00:00:12 verbose #403 > >             working_directory = file_dir |> Some |> optionm'.box
00:00:12 verbose #404 > >         }
00:00:12 verbose #405 > >         |> runtime.execute_with_options
00:00:12 verbose #406 > >         |> fst
00:00:12 verbose #407 > >     |> listm'.sum
00:00:12 verbose #408 > >
00:00:12 verbose #409 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #410 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #411 > > │ ### build_code                                                               │
00:00:12 verbose #412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #413 > >
00:00:12 verbose #414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #415 > > inl build_code { workspace_root runtime packages modules output_dir name code }
00:00:12 verbose #416 > > =
00:00:12 verbose #417 > >     inl package_dir = get_package_dir { workspace_root name target = None; hash
00:00:12 verbose #418 > > = None }
00:00:12 verbose #419 > >     inl fsproj_path = persist_code_project { workspace_root package_dir packages
00:00:12 verbose #420 > > modules name code }
00:00:12 verbose #421 > >     inl exit_code = fsproj_path |> build_project runtime output_dir
00:00:12 verbose #422 > >     if exit_code <>. 0 then
00:00:12 verbose #423 > >         inl fsproj_text = fsproj_path |> file_system.read_all_text
00:00:12 verbose #424 > >         trace Critical
00:00:12 verbose #425 > >             fun () => "build_code"
00:00:12 verbose #426 > >             fun () => { code = code |> sm'.ellipsis_end 400; fsproj_text }
00:00:12 verbose #427 > >     exit_code
00:00:13 verbose #428 > >
00:00:13 verbose #429 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #430 > > //// test
00:00:13 verbose #431 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:13 verbose #432 > >
00:00:13 verbose #433 > > build_code
00:00:13 verbose #434 > >     {
00:00:13 verbose #435 > >         workspace_root = file_system.get_workspace_root ()
00:00:13 verbose #436 > >         runtime = None
00:00:13 verbose #437 > >         packages = [[]]
00:00:13 verbose #438 > >         modules = [[]]
00:00:13 verbose #439 > >         output_dir = None
00:00:13 verbose #440 > >         name = "test1"
00:00:13 verbose #441 > >         code = "1 + 1 |> ignore"
00:00:13 verbose #442 > >     }
00:00:13 verbose #443 > > |> _assert_eq 0
00:00:36 verbose #444 > >
00:00:36 verbose #445 > > ╭─[ 22.75s - return value ]────────────────────────────────────────────────────╮
00:00:36 verbose #446 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:36 verbose #447 > > │ c:\home\git\polyglot\target/spiral_builder\test1 }                           │
00:00:36 verbose #448 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:36 verbose #449 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj }          │
00:00:36 verbose #450 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:36 verbose #451 > > │ dotnet; arguments = [                                                        │
00:00:36 verbose #452 > > │     "publish",                                                               │
00:00:36 verbose #453 > > │     "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj",         │
00:00:36 verbose #454 > > │     "--configuration",                                                       │
00:00:36 verbose #455 > > │     "Release",                                                               │
00:00:36 verbose #456 > > │     "--output",                                                              │
00:00:36 verbose #457 > > │     "dist",                                                                  │
00:00:36 verbose #458 > > │     "--runtime",                                                             │
00:00:36 verbose #459 > > │     "win-x64",                                                               │
00:00:36 verbose #460 > > │ ]; options = { command = dotnet publish                                      │
00:00:36 verbose #461 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:36 verbose #462 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:36 verbose #463 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:36 verbose #464 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:00:36 verbose #465 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test1",                  │
00:00:36 verbose #466 > > │ ) } }                                                                        │
00:00:36 verbose #467 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:36 verbose #468 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:36 verbose #469 > > │ 00:00:01 verbose #5 >   Determining projects to restore...             │
00:00:36 verbose #470 > > │ 00:00:02 verbose #6 >   Restored                                       │
00:00:36 verbose #471 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 1.56 sec). │
00:00:36 verbose #472 > > │ 00:00:03 verbose #7 >                                                  │
00:00:36 verbose #473 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:36 verbose #474 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:36 verbose #475 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:36 verbose #476 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:36 verbose #477 > > │ c:\home\git\polyglot...iguration",                                           │
00:00:36 verbose #478 > > │     "Release",                                                               │
00:00:36 verbose #479 > > │     "--output",                                                              │
00:00:36 verbose #480 > > │     "dist",                                                                  │
00:00:36 verbose #481 > > │     "--runtime",                                                             │
00:00:36 verbose #482 > > │     "linux-x64",                                                             │
00:00:36 verbose #483 > > │ ]; options = { command = dotnet publish                                      │
00:00:36 verbose #484 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:36 verbose #485 > > │ --configuration Release --output "dist" --runtime linux-x64;                 │
00:00:36 verbose #486 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:36 verbose #487 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:00:36 verbose #488 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test1",                  │
00:00:36 verbose #489 > > │ ) } }                                                                        │
00:00:36 verbose #490 > > │ 00:00:04 verbose #12 > MSBuild version                                 │
00:00:36 verbose #491 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:36 verbose #492 > > │ 00:00:05 verbose #13 >   Determining projects to restore...            │
00:00:36 verbose #493 > > │ 00:00:06 verbose #14 >   Restored                                      │
00:00:36 verbose #494 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 392 ms).   │
00:00:36 verbose #495 > > │ 00:00:06 verbose #15 >                                                 │
00:00:36 verbose #496 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:36 verbose #497 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:36 verbose #498 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:36 verbose #499 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:36 verbose #500 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:00:36 verbose #501 > > │ 00:00:06 verbose #16 >   test1 ->                                      │
00:00:36 verbose #502 > > │ c:\home\git\polyglot\target\spiral_builder\test1\bin\Release\net9.0\linux-x6 │
00:00:36 verbose #503 > > │ 4\test1.dll                                                                  │
00:00:36 verbose #504 > > │ 00:00:07 verbose #17 >   test1 ->                                      │
00:00:36 verbose #505 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\dist\                   │
00:00:36 verbose #506 > > │ 00:00:07 verbose #18 runtime.execute_with_options / result / {         │
00:00:36 verbose #507 > > │ exit_code = 0; std_trace_length = 689 }                                      │
00:00:36 verbose #508 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:00:36 verbose #509 > > │                                                                              │
00:00:36 verbose #510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #511 > >
00:00:36 verbose #512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #513 > > //// test
00:00:36 verbose #514 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:36 verbose #515 > >
00:00:36 verbose #516 > > build_code
00:00:36 verbose #517 > >     {
00:00:36 verbose #518 > >         workspace_root = file_system.get_workspace_root ()
00:00:36 verbose #519 > >         runtime = None
00:00:36 verbose #520 > >         packages = [[]]
00:00:36 verbose #521 > >         modules = [[]]
00:00:36 verbose #522 > >         output_dir = None
00:00:36 verbose #523 > >         name = "test2"
00:00:36 verbose #524 > >         code = "1 + a |> ignore"
00:00:36 verbose #525 > >     }
00:00:36 verbose #526 > > |> _assert_eq 2
00:00:51 verbose #527 > >
00:00:51 verbose #528 > > ╭─[ 15.72s - return value ]────────────────────────────────────────────────────╮
00:00:51 verbose #529 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:51 verbose #530 > > │ c:\home\git\polyglot\target/spiral_builder\test2 }                           │
00:00:51 verbose #531 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:51 verbose #532 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj }          │
00:00:51 verbose #533 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:51 verbose #534 > > │ dotnet; arguments = [                                                        │
00:00:51 verbose #535 > > │     "publish",                                                               │
00:00:51 verbose #536 > > │     "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj",         │
00:00:51 verbose #537 > > │     "--configuration",                                                       │
00:00:51 verbose #538 > > │     "Release",                                                               │
00:00:51 verbose #539 > > │     "--output",                                                              │
00:00:51 verbose #540 > > │     "dist",                                                                  │
00:00:51 verbose #541 > > │     "--runtime",                                                             │
00:00:51 verbose #542 > > │     "win-x64",                                                               │
00:00:51 verbose #543 > > │ ]; options = { command = dotnet publish                                      │
00:00:51 verbose #544 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj"              │
00:00:51 verbose #545 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:51 verbose #546 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:51 verbose #547 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:00:51 verbose #548 > > │     "\\?\C:\home\git\polyglot\target\spiral_builder\test2",                  │
00:00:51 verbose #549 > > │ ) } }                                                                        │
00:00:51 verbose #550 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:51 verbose #551 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:51 verbose #552 > > │ 00:00:00 verbose #5 >   Determining projects to restore...             │
00:00:51 verbose #553 > > │ 00:00:01 verbose #6 >   Restored                                       │
00:00:51 verbose #554 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj (in 403 ms).   │
00:00:51 verbose #555 > > │ 00:00:01 verbose #7 >                                                  │
00:00:51 verbose #556 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:51 verbose #557 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:51 verbose #558 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:51 verbose #559 > > │ .NET. See: https://aka.ms/dotnet-support-policy [c:\home\git\polyglot\t...he │
00:00:51 verbose #560 > > │ value or constructor 'a' is not defined. [                                   │
00:00:51 verbose #561 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:00:51 verbose #562 > > │ 00:00:06 verbose #16 runtime.execute_with_options / result / {         │
00:00:51 verbose #563 > > │ exit_code = 1; std_trace_length = 707 }                                      │
00:00:51 verbose #564 > > │ 00:00:06 critical #17 build_code / { code = 1 + a |> ignore;           │
00:00:51 verbose #565 > > │ fsproj_text = <Project Sdk="Microsoft.NET.Sdk">                              │
00:00:51 verbose #566 > > │ <PropertyGroup>                                                              │
00:00:51 verbose #567 > > │     <TargetFramework>net9.0</TargetFramework>                                │
00:00:51 verbose #568 > > │     <LangVersion>preview</LangVersion>                                       │
00:00:51 verbose #569 > > │     <RollForward>Major</RollForward>                                         │
00:00:51 verbose #570 > > │     <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>                │
00:00:51 verbose #571 > > │     <PublishAot>false</PublishAot>                                           │
00:00:51 verbose #572 > > │     <PublishTrimmed>false</PublishTrimmed>                                   │
00:00:51 verbose #573 > > │     <PublishSingleFile>true</PublishSingleFile>                              │
00:00:51 verbose #574 > > │     <SelfContained>true</SelfContained>                                      │
00:00:51 verbose #575 > > │     <Version>0.0.1-alpha.1</Version>                                         │
00:00:51 verbose #576 > > │     <OutputType>Exe</OutputType>                                             │
00:00:51 verbose #577 > > │ </PropertyGroup>                                                             │
00:00:51 verbose #578 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">            │
00:00:51 verbose #579 > > │     <DefineConstants>_FREEBSD</DefineConstants>                              │
00:00:51 verbose #580 > > │ </PropertyGroup>                                                             │
00:00:51 verbose #581 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">              │
00:00:51 verbose #582 > > │     <DefineConstants>_LINUX</DefineConstants>                                │
00:00:51 verbose #583 > > │ </PropertyGroup>                                                             │
00:00:51 verbose #584 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">                │
00:00:51 verbose #585 > > │     <DefineConstants>_OSX</DefineConstants>                                  │
00:00:51 verbose #586 > > │ </PropertyGroup>                                                             │
00:00:51 verbose #587 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">            │
00:00:51 verbose #588 > > │     <DefineConstants>_WINDOWS</DefineConstants>                              │
00:00:51 verbose #589 > > │ </PropertyGroup>                                                             │
00:00:51 verbose #590 > > │ <ItemGroup>                                                                  │
00:00:51 verbose #591 > > │                                                                              │
00:00:51 verbose #592 > > │     <Compile                                                                 │
00:00:51 verbose #593 > > │ Include="c:/home/git/polyglot/target/spiral_builder/test2/test2.fs" />       │
00:00:51 verbose #594 > > │ </ItemGroup>                                                                 │
00:00:51 verbose #595 > > │ <ItemGroup>                                                                  │
00:00:51 verbose #596 > > │                                                                              │
00:00:51 verbose #597 > > │ </ItemGroup>                                                                 │
00:00:51 verbose #598 > > │ </Project> }                                                                 │
00:00:51 verbose #599 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:00:51 verbose #600 > > │                                                                              │
00:00:51 verbose #601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #602 > >
00:00:51 verbose #603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #605 > > │ ### read_file                                                                │
00:00:51 verbose #606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #607 > >
00:00:51 verbose #608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #609 > > inl read_file path =
00:00:51 verbose #610 > >     inl code =
00:00:51 verbose #611 > >         path
00:00:51 verbose #612 > >         |> file_system.read_all_text
00:00:51 verbose #613 > >         |> sm'.replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:00:51 verbose #614 > > "$a[[<EntryPoint>]]\n$a$b"
00:00:51 verbose #615 > >
00:00:51 verbose #616 > >     inl code_trim = code |> sm'.trim_end [[]]
00:00:51 verbose #617 > >     if code_trim |> sm'.ends_with "\\n()"
00:00:51 verbose #618 > >     then code_trim |> sm'.slice 0i64 ((code_trim |> sm'.length) - 3)
00:00:51 verbose #619 > >     else code
00:00:52 verbose #620 > >
00:00:52 verbose #621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #623 > > │ ### persist_file                                                             │
00:00:52 verbose #624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #625 > >
00:00:52 verbose #626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #627 > > inl persist_file { workspace_root package_dir packages modules path } =
00:00:52 verbose #628 > >     inl full_path = path |> file_system.get_full_path
00:00:52 verbose #629 > >     inl name = full_path |> file_system.get_file_name_without_extension
00:00:52 verbose #630 > >     inl code = full_path |> read_file
00:00:52 verbose #631 > >     persist_code_project { workspace_root package_dir packages modules name code
00:00:52 verbose #632 > > }
00:00:52 verbose #633 > >
00:00:52 verbose #634 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #635 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #636 > > │ ### build_file                                                               │
00:00:52 verbose #637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #638 > >
00:00:52 verbose #639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #640 > > inl build_file { workspace_root runtime packages modules path } =
00:00:52 verbose #641 > >     inl full_path = path |> file_system.get_full_path
00:00:52 verbose #642 > >     inl dir = full_path |> file_system.get_directory_name
00:00:52 verbose #643 > >     build_code
00:00:52 verbose #644 > >         {
00:00:52 verbose #645 > >             workspace_root
00:00:52 verbose #646 > >             runtime
00:00:52 verbose #647 > >             packages
00:00:52 verbose #648 > >             modules
00:00:52 verbose #649 > >             output_dir = dir </> "dist" |> Some
00:00:52 verbose #650 > >             name = full_path |> file_system.get_file_name_without_extension
00:00:52 verbose #651 > >             code = full_path |> read_file
00:00:52 verbose #652 > >         }
00:00:53 verbose #653 > >
00:00:53 verbose #654 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #655 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #656 > > │ ## rust                                                                      │
00:00:53 verbose #657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #658 > >
00:00:53 verbose #659 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #660 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #661 > > │ ### get_workspace_cargo_toml_content                                         │
00:00:53 verbose #662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #663 > >
00:00:53 verbose #664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #665 > > inl get_workspace_cargo_toml_content { workspace_root } : string =
00:00:53 verbose #666 > >     inl workspace_root = workspace_root |> file_system.normalize_path
00:00:53 verbose #667 > >     $'$"cargo-features = [[\\\"profile-rustflags\\\"]]"'
00:00:53 verbose #668 > >     +#. $'$""'
00:00:53 verbose #669 > >     +#. $'$"[[workspace]]"'
00:00:53 verbose #670 > >     +#. $'$"resolver = \\\"2\\\""'
00:00:53 verbose #671 > >     +#. $'$"members = [[\\\"packages/Rust/*\\\"]]"'
00:00:53 verbose #672 > >     +#. $'$""'
00:00:53 verbose #673 > >     +#. $'$"[[workspace.dependencies.fable_library_rust]]"'
00:00:53 verbose #674 > >     +#. $'$"path =
00:00:53 verbose #675 > > \\\"{!workspace_root}/lib/rust/fable/fable_modules/fable-library-rust\\\""'
00:00:53 verbose #676 > >     +#. $'$"default-features = false"'
00:00:53 verbose #677 > >     +#. $'$"features = [[]]"'
00:00:53 verbose #678 > >     +#. $'$""'
00:00:53 verbose #679 > >     +#. $'$"[[workspace.dependencies]]"'
00:00:53 verbose #680 > >     +#. $'$"inline_colorization = \\\"~0.1\\\""'
00:00:53 verbose #681 > >     +#. $'$""'
00:00:53 verbose #682 > >     +#. $'$"[[profile.release]]"'
00:00:53 verbose #683 > >     +#. $'$"codegen-units = 1"'
00:00:53 verbose #684 > >     +#. $'$"opt-level = \\\"z\\\""'
00:00:53 verbose #685 > >     +#. $'$"lto = true"'
00:00:53 verbose #686 > >     +#. $'$"debug = false"'
00:00:53 verbose #687 > >     +#. $'$"panic = \\\"abort\\\""'
00:00:53 verbose #688 > >     +#. $'$"overflow-checks = true"'
00:00:53 verbose #689 > >     +#. $'$"rustflags = [[\\\"-C\\\", \\\"link-arg=-s\\\"]]"'
00:00:53 verbose #690 > >
00:00:53 verbose #691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #693 > > │ ### get_cargo_toml_content                                                   │
00:00:53 verbose #694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #695 > >
00:00:53 verbose #696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #697 > > inl get_cargo_toml_content { hash_hex runtime deps } : string =
00:00:53 verbose #698 > >     $'$"[[package]]"'
00:00:53 verbose #699 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:53 verbose #700 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:53 verbose #701 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:53 verbose #702 > >     +#. $'$""'
00:00:53 verbose #703 > >     +#. $'$"[[dependencies]]"'
00:00:53 verbose #704 > >     +#. (
00:00:53 verbose #705 > >         if runtime = None then
00:00:53 verbose #706 > >             $'$"fable_library_rust = {{ workspace = true, features =
00:00:53 verbose #707 > > [[\\\"static_do_bindings\\\", \\\"datetime\\\", \\\"guid\\\", \\\"threaded\\\"]]
00:00:53 verbose #708 > > }}"'
00:00:53 verbose #709 > >         else
00:00:53 verbose #710 > >             $'$"fable_library_rust = {{ workspace = true }}"'
00:00:53 verbose #711 > >     )
00:00:53 verbose #712 > >     +#. $'$"inline_colorization = {{ workspace = true }}"'
00:00:53 verbose #713 > >     +#. $'$"{!deps}"'
00:00:53 verbose #714 > >     +#. $'$""'
00:00:53 verbose #715 > >     +#. (
00:00:53 verbose #716 > >         if runtime = None then
00:00:53 verbose #717 > >             $'$"[[[[bin]]]]"'
00:00:53 verbose #718 > >             +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:53 verbose #719 > >         else
00:00:53 verbose #720 > >             $'$"[[lib]]"'
00:00:53 verbose #721 > >             +#. $'$"crate-type = [[\\\"cdylib\\\"]]"'
00:00:53 verbose #722 > >     )
00:00:53 verbose #723 > >     +#. $'$"path = \\\"spiral_builder.rs\\\" "'
00:00:54 verbose #724 > >
00:00:54 verbose #725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #727 > > │ ### get_empty_cargo_toml_content                                             │
00:00:54 verbose #728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #729 > >
00:00:54 verbose #730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #731 > > inl get_empty_cargo_toml_content () =
00:00:54 verbose #732 > >     inl guid = date_time.now () |> date_time.new_guid_from_date_time |>
00:00:54 verbose #733 > > sm'.obj_to_string
00:00:54 verbose #734 > >     $'$"[[package]]"'
00:00:54 verbose #735 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:54 verbose #736 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:54 verbose #737 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:54 verbose #738 > >     +#. $'$""'
00:00:54 verbose #739 > >     +#. $'$"[[[[bin]]]]"'
00:00:54 verbose #740 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:54 verbose #741 > >     +#. $'$"path = \\\"spiral_builder.rs\\\""'
00:00:54 verbose #742 > >
00:00:54 verbose #743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #745 > > │ ### process_rust                                                             │
00:00:54 verbose #746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #747 > >
00:00:54 verbose #748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #749 > > inl process_rust { fs_path deps trace_level runtime cleanup } =
00:00:54 verbose #750 > >     open runtime
00:00:54 verbose #751 > >     inl is_trace = trace_level = Verbose
00:00:54 verbose #752 > >     inl _trace (fn : () -> string) =
00:00:54 verbose #753 > >         if is_trace
00:00:54 verbose #754 > >         then trace Info (fun () => $'$"spiral_builder.process_rust / {!fn ()}"')
00:00:54 verbose #755 > > id
00:00:54 verbose #756 > >         else fn () |> console.write_line
00:00:54 verbose #757 > >
00:00:54 verbose #758 > >     inl extension = "rs"
00:00:54 verbose #759 > >     inl code = fs_path |> file_system.read_all_text
00:00:54 verbose #760 > >
00:00:54 verbose #761 > >     inl hash_hex = { extension code runtime } |> sm'.format |> crypto.hash_text
00:00:54 verbose #762 > >
00:00:54 verbose #763 > >     inl workspace_name = "spiral_builder"
00:00:54 verbose #764 > >
00:00:54 verbose #765 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:54 verbose #766 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:54 verbose #767 > > resultm.unwrap_or_else id
00:00:54 verbose #768 > >
00:00:54 verbose #769 > >     inl package_dir =
00:00:54 verbose #770 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:54 verbose #771 > > Rust; hash = Some hash_hex }
00:00:54 verbose #772 > >
00:00:54 verbose #773 > >     inl fsproj_path =
00:00:54 verbose #774 > >         persist_code_project
00:00:54 verbose #775 > >             {
00:00:54 verbose #776 > >                 workspace_root
00:00:54 verbose #777 > >                 package_dir
00:00:54 verbose #778 > >                 packages = [[ "Fable.Core" ]]
00:00:54 verbose #779 > >                 modules = [[]]
00:00:54 verbose #780 > >                 name = workspace_name
00:00:54 verbose #781 > >                 code
00:00:54 verbose #782 > >             }
00:00:54 verbose #783 > >
00:00:54 verbose #784 > >     inl workspace_dir = package_dir </> "../../.."
00:00:54 verbose #785 > >     inl workspace_cargo_toml_path = workspace_dir </> "Cargo.toml"
00:00:54 verbose #786 > >
00:00:54 verbose #787 > >     if workspace_cargo_toml_path |> file_system.file_exists |> not
00:00:54 verbose #788 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:54 verbose #789 > > workspace_cargo_toml_path
00:00:54 verbose #790 > >
00:00:54 verbose #791 > >     inl cargo_toml_path = package_dir </> "Cargo.toml"
00:00:54 verbose #792 > >
00:00:54 verbose #793 > >     if cargo_toml_path |> file_system.file_exists |> not
00:00:54 verbose #794 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:54 verbose #795 > > cargo_toml_path
00:00:54 verbose #796 > >
00:00:54 verbose #797 > >     inl lib_link_target_path = workspace_root </>
00:00:54 verbose #798 > > "lib/rust/fable/fable_modules/fable-library-rust"
00:00:54 verbose #799 > >     inl lib_link_path = package_dir </> "fable_modules/fable-library-rust"
00:00:54 verbose #800 > >
00:00:54 verbose #801 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:54 verbose #802 > >
00:00:54 verbose #803 > >     inl exit_code, dotnet_fable_result =
00:00:54 verbose #804 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:54 verbose #805 > > package_dir runtime }
00:00:54 verbose #806 > >
00:00:54 verbose #807 > >     if exit_code <>. 0 then
00:00:54 verbose #808 > >         trace Critical
00:00:54 verbose #809 > >             fun () => "spiral_builder.process_rust / dotnet fable error"
00:00:54 verbose #810 > >             fun () => { exit_code dotnet_fable_result }
00:00:54 verbose #811 > >         { extension = Some extension; code = None; output = Some
00:00:54 verbose #812 > > dotnet_fable_result }
00:00:54 verbose #813 > >     else
00:00:54 verbose #814 > >         inl deps =
00:00:54 verbose #815 > >             inl deps =
00:00:54 verbose #816 > >                 if runtime = None
00:00:54 verbose #817 > >                 then deps
00:00:54 verbose #818 > >                 else
00:00:54 verbose #819 > >                     // TODO: simplify
00:00:54 verbose #820 > >                     inl has_near_sdk =
00:00:54 verbose #821 > >                         deps
00:00:54 verbose #822 > >                         |> am'.vec_filter (sm'.from_std_string >> sm'.contains
00:00:54 verbose #823 > > "near-sdk")
00:00:54 verbose #824 > >                         |> am'.vec_len
00:00:54 verbose #825 > >                         |> i32
00:00:54 verbose #826 > >                         |> fun n => n > 0
00:00:54 verbose #827 > >                     // TODO: simplify with ++
00:00:54 verbose #828 > >                     if has_near_sdk
00:00:54 verbose #829 > >                     then deps
00:00:54 verbose #830 > >                     else deps |> am'.vec_extend (;[[ "near-sdk" |>
00:00:54 verbose #831 > > sm'.to_std_string ]] |> am'.to_vec)
00:00:54 verbose #832 > >             deps
00:00:54 verbose #833 > >             |> am'.vec_map fun dep =>
00:00:54 verbose #834 > >                 inl dep = dep |> sm'.from_std_string
00:00:54 verbose #835 > >                 if dep |> sm'.contains "="
00:00:54 verbose #836 > >                 then dep
00:00:54 verbose #837 > >                 elif dep |> sm'.ends_with "]]"
00:00:54 verbose #838 > >                 then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["'
00:00:54 verbose #839 > > |> fun x => $'$"{!x}}}"'
00:00:54 verbose #840 > >                 else $'$"{!dep}=\'*\'"'
00:00:54 verbose #841 > >             |> am'.from_vec
00:00:54 verbose #842 > >             |> fun x => x : _ i32 _
00:00:54 verbose #843 > >             |> seq.of_array'
00:00:54 verbose #844 > >             |> sm'.concat "\n"
00:00:54 verbose #845 > >
00:00:54 verbose #846 > >         inl cargo_toml_content = get_cargo_toml_content { hash_hex runtime deps
00:00:54 verbose #847 > > }
00:00:54 verbose #848 > >         inl workspace_cargo_toml_content = get_workspace_cargo_toml_content {
00:00:54 verbose #849 > > workspace_root }
00:00:54 verbose #850 > >
00:00:54 verbose #851 > >         cargo_toml_content |> file_system.write_all_text_exists cargo_toml_path
00:00:54 verbose #852 > >
00:00:54 verbose #853 > >         workspace_cargo_toml_content |> file_system.write_all_text_exists
00:00:54 verbose #854 > > workspace_cargo_toml_path
00:00:54 verbose #855 > >
00:00:54 verbose #856 > >         inl range_rs_path = lib_link_path </> "src/Range.rs"
00:00:54 verbose #857 > >         if range_rs_path |> file_system.file_exists then
00:00:54 verbose #858 > >             inl text = range_rs_path |> file_system.read_all_text
00:00:54 verbose #859 > >             text
00:00:54 verbose #860 > >             |> sm'.replace "use crate::String_::fromCharCode;" "use
00:00:54 verbose #861 > > crate::String_::fromChar;"
00:00:54 verbose #862 > >             |> sm'.replace "fromCharCode(c)" "std::char::from_u32(c).unwrap()"
00:00:54 verbose #863 > >             |> file_system.write_all_text_exists range_rs_path
00:00:54 verbose #864 > >
00:00:54 verbose #865 > >         inl exit_code, cargo_fmt_result =
00:00:54 verbose #866 > >             fun () =>
00:00:54 verbose #867 > >                 inl exit_code, result =
00:00:54 verbose #868 > >                     execution_options fun x => { x with
00:00:54 verbose #869 > >                         command = $'$"cargo fmt --manifest-path
00:00:54 verbose #870 > > \\\"{!cargo_toml_path}\\\" --"'
00:00:54 verbose #871 > >                         working_directory = workspace_root_external |>
00:00:54 verbose #872 > > resultm.box |> resultm.ok'
00:00:54 verbose #873 > >                     }
00:00:54 verbose #874 > >                     |> execute_with_options
00:00:54 verbose #875 > >
00:00:54 verbose #876 > >                 inl return () =
00:00:54 verbose #877 > >                     if exit_code = 0
00:00:54 verbose #878 > >                     then Ok (exit_code, result)
00:00:54 verbose #879 > >                     else Error (exit_code, result)
00:00:54 verbose #880 > >
00:00:54 verbose #881 > >                 if result |> sm'.contains "failed to load manifest for workspace
00:00:54 verbose #882 > > member" |> not
00:00:54 verbose #883 > >                 then return ()
00:00:54 verbose #884 > >                 else
00:00:54 verbose #885 > >                     inl missing_toml_path =
00:00:54 verbose #886 > >                         "failed to read `(?<a>.*?Cargo.toml)`"
00:00:54 verbose #887 > >                         |> sm'.new_regex
00:00:54 verbose #888 > >                         |> resultm.unwrap'
00:00:54 verbose #889 > >                         |> sm'.regex_captures result
00:00:54 verbose #890 > >                         |> am'.from_vec
00:00:54 verbose #891 > >                         |> fun x => x : _ i32 _
00:00:54 verbose #892 > >                         |> am'.try_item 0
00:00:54 verbose #893 > >                         |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:54 verbose #894 > >                         |> optionm'.flatten
00:00:54 verbose #895 > >
00:00:54 verbose #896 > >                     match missing_toml_path with
00:00:54 verbose #897 > >                     | None => Error (exit_code, result)
00:00:54 verbose #898 > >                     | Some missing_toml_path =>
00:00:54 verbose #899 > >                         if missing_toml_path |> file_system.file_exists |> not
00:00:54 verbose #900 > > then
00:00:54 verbose #901 > >                             missing_toml_path
00:00:54 verbose #902 > >                             |> file_system.get_directory_name
00:00:54 verbose #903 > >                             |> file_system.create_dir
00:00:54 verbose #904 > >                             |> ignore
00:00:54 verbose #905 > >
00:00:54 verbose #906 > >                             get_empty_cargo_toml_content ()
00:00:54 verbose #907 > >                             |> file_system.write_all_text missing_toml_path
00:00:54 verbose #908 > >                         return ()
00:00:54 verbose #909 > >             |> retry_fn' 3u8
00:00:54 verbose #910 > >
00:00:54 verbose #911 > >         if exit_code <>. 0 then
00:00:54 verbose #912 > >             trace Critical
00:00:54 verbose #913 > >                 fun () => "spiral_builder.process_rust / cargo fmt error"
00:00:54 verbose #914 > >                 fun () => { exit_code cargo_fmt_result }
00:00:54 verbose #915 > >
00:00:54 verbose #916 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:54 verbose #917 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:54 verbose #918 > >
00:00:54 verbose #919 > >         inl main_code_header =
00:00:54 verbose #920 > >             "pub fn main() -> Result<(), String> " +. !\($'"\\\"{\\\".into()"')
00:00:54 verbose #921 > >         inl main_code : string =
00:00:54 verbose #922 > >             (
00:00:54 verbose #923 > >                 if runtime = None
00:00:54 verbose #924 > >                 then ""
00:00:54 verbose #925 > >                 else
00:00:54 verbose #926 > >                     $'$"#[[near_sdk::near_bindgen]]"'
00:00:54 verbose #927 > >                     +#. $'$"#[[derive(near_sdk::PanicOnDefault)]]"'
00:00:54 verbose #928 > >                     +#. $'$"pub struct MainState {{"'
00:00:54 verbose #929 > >                     +#. $'$"}}"'
00:00:54 verbose #930 > >                     +#. $'$""'
00:00:54 verbose #931 > >                     +#. $'$"#[[near_sdk::near_bindgen]]"'
00:00:54 verbose #932 > >                     +#. $'$"impl MainState {{"'
00:00:54 verbose #933 > >                     +#. $'$"    pub fn state_main() {{"'
00:00:54 verbose #934 > >                     +#. $'$"        Spiral_builder::method0();"'
00:00:54 verbose #935 > >                     +#. $'$"    }}"'
00:00:54 verbose #936 > >                     +#. $'$"}}"'
00:00:54 verbose #937 > >             )
00:00:54 verbose #938 > >             +#. $'$"{!main_code_header} Ok(()) }}"'
00:00:54 verbose #939 > >
00:00:54 verbose #940 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:54 verbose #941 > >
00:00:54 verbose #942 > >         inl new_code =
00:00:54 verbose #943 > >             if cached
00:00:54 verbose #944 > >             then new_code
00:00:54 verbose #945 > >             else
00:00:54 verbose #946 > >                 new_code
00:00:54 verbose #947 > >                 |> sm'.replace
00:00:54 verbose #948 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:54 verbose #949 > >                     "));"
00:00:54 verbose #950 > >                 |> sm'.replace
00:00:54 verbose #951 > >                     ("},)" +. !\($'"\\\";\\\".into()"'))
00:00:54 verbose #952 > >                     "});"
00:00:54 verbose #953 > >                 |> sm'.replace_regex
00:00:54 verbose #954 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:54 verbose #955 > >                     " defaultOf::<()>();"
00:00:54 verbose #956 > >                 |> sm'.replace
00:00:54 verbose #957 > >                     "::Slice'_"
00:00:54 verbose #958 > >                     "::Slice__"
00:00:54 verbose #959 > >                 |> sm'.replace
00:00:54 verbose #960 > >                     ("defaultOf()" +. !\($'"\\\",\\\".into()"'))
00:00:54 verbose #961 > >                     "defaultOf::<std::sync::Arc<dyn IDisposable>>(),"
00:00:54 verbose #962 > >                 |> sm'.replace
00:00:54 verbose #963 > >                     ("_self" +. !\($'"\\\"_.\\\".into()"'))
00:00:54 verbose #964 > >                     "self."
00:00:54 verbose #965 > >                 |> sm'.replace
00:00:54 verbose #966 > >                     ("get_or_insert_wit" +. !\($'"\\\"h\\\".into()"'))
00:00:54 verbose #967 > >                     "get_or_init"
00:00:54 verbose #968 > >                 |> sm'.replace
00:00:54 verbose #969 > >                     ("use
00:00:54 verbose #970 > > fable_library_rust::System::Collections::Concurrent::ConcurrentStack_1" +.
00:00:54 verbose #971 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #972 > >                     "type ConcurrentStack_1<T> = T;"
00:00:54 verbose #973 > >                 |> sm'.replace
00:00:54 verbose #974 > >                     ("use
00:00:54 verbose #975 > > fable_library_rust::System::Threading::CancellationToken" +.
00:00:54 verbose #976 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #977 > >                     "type CancellationToken = ();"
00:00:54 verbose #978 > >                 |> sm'.replace
00:00:54 verbose #979 > >                     ("use fable_library_rust::System::TimeZoneInfo" +.
00:00:54 verbose #980 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #981 > >                     "type TimeZoneInfo = i64;"
00:00:54 verbose #982 > >                 |> sm'.replace
00:00:54 verbose #983 > >                     ("use
00:00:54 verbose #984 > > fable_library_rust::System::Threading::Tasks::TaskCanceledException" +.
00:00:54 verbose #985 > > !\($'"\\\";\\\".into()"'))
00:00:54 verbose #986 > >                     "type TaskCanceledException = ();"
00:00:54 verbose #987 > >
00:00:54 verbose #988 > >         if not cached
00:00:54 verbose #989 > >         then
00:00:54 verbose #990 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:54 verbose #991 > >             |> file_system.write_all_text_exists new_code_path
00:00:54 verbose #992 > >
00:00:54 verbose #993 > >         inl command =
00:00:54 verbose #994 > >             if runtime <> None
00:00:54 verbose #995 > >             then $'$"cargo build --release --target wasm32-unknown-unknown
00:00:54 verbose #996 > > --manifest-path \\\"{!cargo_toml_path}\\\""'
00:00:54 verbose #997 > >             else $'$"cargo run --manifest-path \\\"{!cargo_toml_path}\\\""'
00:00:54 verbose #998 > >         inl environment_variables =
00:00:54 verbose #999 > >             if runtime <> None
00:00:54 verbose #1000 > >             then ;[[]]
00:00:54 verbose #1001 > >             else
00:00:54 verbose #1002 > >                 inl fast = false
00:00:54 verbose #1003 > >                 ;[[
00:00:54 verbose #1004 > >                     "TRACE_LEVEL", "Verbose"
00:00:54 verbose #1005 > >                     "RUSTC_WRAPPER", "sccache"
00:00:54 verbose #1006 > >                     "RUSTFLAGS",
00:00:54 verbose #1007 > >                     if fast
00:00:54 verbose #1008 > >                     then "-C prefer-dynamic -C strip=symbols -C link-arg=-s -C
00:00:54 verbose #1009 > > debuginfo=0"
00:00:54 verbose #1010 > >                     else "-C prefer-dynamic"
00:00:54 verbose #1011 > >                 ]]
00:00:54 verbose #1012 > >         inl exit_code, cargo_result =
00:00:54 verbose #1013 > >             execution_options fun x => { x with
00:00:54 verbose #1014 > >                 command
00:00:54 verbose #1015 > >                 environment_variables
00:00:54 verbose #1016 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:54 verbose #1017 > > resultm.ok'
00:00:54 verbose #1018 > >             }
00:00:54 verbose #1019 > >             |> execute_with_options
00:00:54 verbose #1020 > >
00:00:54 verbose #1021 > >         inl result =
00:00:54 verbose #1022 > >             if runtime = None then
00:00:54 verbose #1023 > >                 inl external_command =
00:00:54 verbose #1024 > >                     inl vars =
00:00:54 verbose #1025 > >                         a environment_variables
00:00:54 verbose #1026 > >                         |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' :
00:00:54 verbose #1027 > > string
00:00:54 verbose #1028 > >                         |> fun x => x : _ i32 _
00:00:54 verbose #1029 > >                         |> seq.of_array
00:00:54 verbose #1030 > >                         |> sm'.concat ";"
00:00:54 verbose #1031 > >                     inl command =
00:00:54 verbose #1032 > >                         a ;[[
00:00:54 verbose #1033 > >                             vars
00:00:54 verbose #1034 > >                             command
00:00:54 verbose #1035 > >                         ]]
00:00:54 verbose #1036 > >                         |> fun x => x : _ i32 _
00:00:54 verbose #1037 > >                         |> seq.of_array
00:00:54 verbose #1038 > >                         |> sm'.concat ";"
00:00:54 verbose #1039 > >                     $'$"pwsh -c \'{!command}\'"' : string
00:00:54 verbose #1040 > >                 if exit_code = 0 then
00:00:54 verbose #1041 > >                     inl output =
00:00:54 verbose #1042 > >                         try
00:00:54 verbose #1043 > >                             fun () =>
00:00:54 verbose #1044 > >                                 cargo_result
00:00:54 verbose #1045 > >                                 |> sm'.split "\n"
00:00:54 verbose #1046 > >                                 |> fun x => a x : _ i32 _
00:00:54 verbose #1047 > >                                 |> am'.skip_while fun line =>
00:00:54 verbose #1048 > >                                     (line |> sm'.contains "profile [[optimized]]
00:00:54 verbose #1049 > > target" |> not)
00:00:54 verbose #1050 > >                                         && (line |> sm'.contains "profile
00:00:54 verbose #1051 > > [[unoptimized]] target" |> not)
00:00:54 verbose #1052 > >                                         && (line |> sm'.contains "profile
00:00:54 verbose #1053 > > [[unoptimized + debuginfo]] target" |> not)
00:00:54 verbose #1054 > >                                 |> am'.skip 2
00:00:54 verbose #1055 > >                                 |> seq.of_array
00:00:54 verbose #1056 > >                                 |> sm'.concat "\n"
00:00:54 verbose #1057 > >                             fun ex =>
00:00:54 verbose #1058 > >                                 trace Critical
00:00:54 verbose #1059 > >                                     fun () => "spiral_builder.process_rust
00:00:54 verbose #1060 > > Exception"
00:00:54 verbose #1061 > >                                     fun () => { ex new_code_path
00:00:54 verbose #1062 > > external_command cargo_result }
00:00:54 verbose #1063 > >                                 None
00:00:54 verbose #1064 > >                         |> optionm'.box
00:00:54 verbose #1065 > >                         |> optionm'.unwrap
00:00:54 verbose #1066 > >
00:00:54 verbose #1067 > >                     { extension = Some extension; code = Some new_code; output =
00:00:54 verbose #1068 > > Some output }
00:00:54 verbose #1069 > >                 else
00:00:54 verbose #1070 > >                     trace Critical
00:00:54 verbose #1071 > >                         fun () => "spiral_builder.process_rust / error"
00:00:54 verbose #1072 > >                         fun () => { exit_code new_code_path external_command
00:00:54 verbose #1073 > > cleanup cargo_result }
00:00:54 verbose #1074 > >                     { extension = Some extension; code = None; output = None }
00:00:54 verbose #1075 > >             else
00:00:54 verbose #1076 > >                 inl wasm_path : string =
00:00:54 verbose #1077 > >
00:00:54 verbose #1078 > > $'$"target/spiral_builder/{!workspace_name}/target/wasm32-unknown-unknown/releas
00:00:54 verbose #1079 > > e/spiral_builder_{!hash_hex}.wasm"'
00:00:54 verbose #1080 > >
00:00:54 verbose #1081 > >                 inl command =
00:00:54 verbose #1082 > >                     inl invoke_block_path = "scripts/invoke-block.ps1"
00:00:54 verbose #1083 > >                     inl spiral_wasm_command : string =
00:00:54 verbose #1084 > >                         inl runtime_cmd =
00:00:54 verbose #1085 > >                             match runtime with
00:00:54 verbose #1086 > >                             | Some (Wasm cmd) => cmd
00:00:54 verbose #1087 > >                             | Some (Contract cmd) => cmd
00:00:54 verbose #1088 > >                             | _ => ""
00:00:54 verbose #1089 > >                         $'$"\'workspace/target/release/spiral_wasm -t Debug -w
00:00:54 verbose #1090 > > {!wasm_path} {!runtime_cmd}\'"'
00:00:54 verbose #1091 > >                     $'$"pwsh -c \\\"pwsh {!invoke_block_path}
00:00:54 verbose #1092 > > {!spiral_wasm_command} -Linux -EnvironmentVariables
00:00:54 verbose #1093 > > NEAR_RPC_TIMEOUT_SECS=100\\\""'
00:00:54 verbose #1094 > >
00:00:54 verbose #1095 > >                 if exit_code = 0 then
00:00:54 verbose #1096 > >                     inl exit_code, spiral_wasm_result =
00:00:54 verbose #1097 > >                         execution_options fun x => { x with
00:00:54 verbose #1098 > >                             command
00:00:54 verbose #1099 > >                             working_directory = workspace_root |> optionm'.some'
00:00:54 verbose #1100 > >                         }
00:00:54 verbose #1101 > >                         |> execute_with_options
00:00:54 verbose #1102 > >
00:00:54 verbose #1103 > >                     inl output = spiral_wasm_result
00:00:54 verbose #1104 > >
00:00:54 verbose #1105 > >                     if exit_code = 0 then
00:00:54 verbose #1106 > >                         { extension = Some extension; code = Some new_code;
00:00:54 verbose #1107 > > output = Some output }
00:00:54 verbose #1108 > >                     else
00:00:54 verbose #1109 > >                         trace Critical
00:00:54 verbose #1110 > >                             fun () => "spiral_builder.process_rust / wasm error"
00:00:54 verbose #1111 > >                             fun () => { exit_code spiral_wasm_result
00:00:54 verbose #1112 > > new_code_path cargo_result }
00:00:54 verbose #1113 > >                         { extension = Some extension; code = None; output = None
00:00:54 verbose #1114 > > }
00:00:54 verbose #1115 > >                 else
00:00:54 verbose #1116 > >                     trace Critical
00:00:54 verbose #1117 > >                         fun () => "spiral_builder.process_rust / cargo error"
00:00:54 verbose #1118 > >                         fun () => { exit_code new_code_path wasm_path command
00:00:54 verbose #1119 > > cleanup cargo_result }
00:00:54 verbose #1120 > >                     { extension = Some extension; code = None; output = None }
00:00:54 verbose #1121 > >
00:00:54 verbose #1122 > >         if cleanup then
00:00:54 verbose #1123 > >             inl cleanup =
00:00:54 verbose #1124 > >                 inl build_target =
00:00:54 verbose #1125 > >                     if runtime <> None
00:00:54 verbose #1126 > >                     then "wasm32-unknown-unknown/release"
00:00:54 verbose #1127 > >                     else "debug"
00:00:54 verbose #1128 > >
00:00:54 verbose #1129 > >                 [[ ".d"; ".exe"; ".pdb"; ".wasm"; "" ]]
00:00:54 verbose #1130 > >                 |> listm.map fun ext =>
00:00:54 verbose #1131 > >                     workspace_dir </>
00:00:54 verbose #1132 > > $'$"target/{!build_target}/spiral_builder_{!hash_hex}{!ext}"'
00:00:54 verbose #1133 > >                 |> listm.map fun path => path, path |> file_system.file_exists
00:00:54 verbose #1134 > >
00:00:54 verbose #1135 > >             trace Verbose
00:00:54 verbose #1136 > >                 fun () => "spiral_builder.process_rust / cleanup"
00:00:54 verbose #1137 > >                 fun () => { new_code_path cleanup }
00:00:54 verbose #1138 > >
00:00:54 verbose #1139 > >             cleanup
00:00:54 verbose #1140 > >             |> listm'.filter snd
00:00:54 verbose #1141 > >             |> listm.iter (fst >> file_system.file_delete)
00:00:54 verbose #1142 > >
00:00:54 verbose #1143 > >         result
00:00:55 verbose #1144 > >
00:00:55 verbose #1145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1147 > > │ ## dib                                                                       │
00:00:55 verbose #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1149 > >
00:00:55 verbose #1150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1152 > > │ ### process_dib                                                              │
00:00:55 verbose #1153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1154 > >
00:00:55 verbose #1155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1156 > > inl process_dib { path retries working_directory } =
00:00:55 verbose #1157 > >     inl exit_code, repl_result =
00:00:55 verbose #1158 > >         let rec loop retry =
00:00:55 verbose #1159 > >             inl exit_code, repl_result =
00:00:55 verbose #1160 > >                 runtime.execution_options fun x => { x with
00:00:55 verbose #1161 > >                     command = $'$"dotnet repl --exit-after-run --run
00:00:55 verbose #1162 > > \\\"{!path}\\\" --output-path \\\"{!path}.ipynb\\\""'
00:00:55 verbose #1163 > >                     environment_variables = ;[[
00:00:55 verbose #1164 > >                         "TRACE_LEVEL", "Verbose"
00:00:55 verbose #1165 > >                         "AUTOMATION", "True"
00:00:55 verbose #1166 > >                     ]]
00:00:55 verbose #1167 > >                     trace = false
00:00:55 verbose #1168 > >                     working_directory = working_directory |> optionm'.box
00:00:55 verbose #1169 > >                 }
00:00:55 verbose #1170 > >                 |> runtime.execute_with_options
00:00:55 verbose #1171 > >
00:00:55 verbose #1172 > >             if exit_code = 0 || retry >= retries
00:00:55 verbose #1173 > >             then exit_code, repl_result
00:00:55 verbose #1174 > >             else
00:00:55 verbose #1175 > >                 trace Debug
00:00:55 verbose #1176 > >                     fun () => $'"spiral_builder.run / repl error"'
00:00:55 verbose #1177 > >                     fun () => { exit_code repl_result retry =
00:00:55 verbose #1178 > > $'$"{!retry}/{!retries}"' : string }
00:00:55 verbose #1179 > >                 loop (retry + 1)
00:00:55 verbose #1180 > >         loop 1
00:00:55 verbose #1181 > >
00:00:55 verbose #1182 > >     inl exit_code, result =
00:00:55 verbose #1183 > >         if exit_code <>. 0
00:00:55 verbose #1184 > >         then exit_code, repl_result
00:00:55 verbose #1185 > >         else
00:00:55 verbose #1186 > >             inl exit_code, jupyter_result =
00:00:55 verbose #1187 > >                 runtime.execution_options fun x => { x with
00:00:55 verbose #1188 > >                     command = $'$"jupyter nbconvert \\\"{!path}.ipynb\\\" --to
00:00:55 verbose #1189 > > html --HTMLExporter.theme=dark"'
00:00:55 verbose #1190 > >                 }
00:00:55 verbose #1191 > >                 |> runtime.execute_with_options
00:00:55 verbose #1192 > >
00:00:55 verbose #1193 > >             trace Debug
00:00:55 verbose #1194 > >                 fun () => $'"spiral_builder.run / dib / jupyter nbconvert"'
00:00:55 verbose #1195 > >                 fun () => { exit_code jupyter_result_length = jupyter_result |>
00:00:55 verbose #1196 > > sm'.length : i32 }
00:00:55 verbose #1197 > >
00:00:55 verbose #1198 > >             if exit_code <>. 0
00:00:55 verbose #1199 > >             then exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:55 verbose #1200 > > {!jupyter_result}"'
00:00:55 verbose #1201 > >             else
00:00:55 verbose #1202 > >                 inl exit_code, pwsh_replace_html_result =
00:00:55 verbose #1203 > >                     inl path = path |> sm'.replace "'" "''"
00:00:55 verbose #1204 > >                     runtime.execution_options fun x => { x with
00:00:55 verbose #1205 > >                         command = $'$"pwsh -c \\\"$counter = 1; $path =
00:00:55 verbose #1206 > > \'{!path}.html\'; (Get-Content $path -Raw) -replace
00:00:55 verbose #1207 > > \'(id=\\\\\\"cell-id=)[[a-fA-F0-9]]{{8}}\', {{ $_.Groups[[1]].Value + $counter++
00:00:55 verbose #1208 > > }} | Set-Content $path\\\""'
00:00:55 verbose #1209 > >                     }
00:00:55 verbose #1210 > >                     |> runtime.execute_with_options
00:00:55 verbose #1211 > >
00:00:55 verbose #1212 > >                 trace Debug
00:00:55 verbose #1213 > >                     fun () => $'"spiral_builder.run / dib / html cell ids"'
00:00:55 verbose #1214 > >                     fun () => { exit_code pwsh_replace_html_result_length =
00:00:55 verbose #1215 > > pwsh_replace_html_result |> sm'.length : i32 }
00:00:55 verbose #1216 > >
00:00:55 verbose #1217 > >                 $'$"{!path}.html"'
00:00:55 verbose #1218 > >                 |> file_system.read_all_text
00:00:55 verbose #1219 > >                 |> sm'.replace "\r\n" "\n"
00:00:55 verbose #1220 > >                 |> file_system.write_all_text $'$"{!path}.html"'
00:00:55 verbose #1221 > >
00:00:55 verbose #1222 > >                 $'$"{!path}.ipynb"'
00:00:55 verbose #1223 > >                 |> file_system.read_all_text
00:00:55 verbose #1224 > >                 |> sm'.replace "\r\n" "\n"
00:00:55 verbose #1225 > >                 |> sm'.replace "\\r\\n" "\\n"
00:00:55 verbose #1226 > >                 |> file_system.write_all_text $'$"{!path}.ipynb"'
00:00:55 verbose #1227 > >
00:00:55 verbose #1228 > >                 exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:55 verbose #1229 > > {!jupyter_result}\n\npwsh_replace_html_result: {!pwsh_replace_html_result}"'
00:00:55 verbose #1230 > >
00:00:55 verbose #1231 > >     trace Debug
00:00:55 verbose #1232 > >         fun () => $'"spiral_builder.run / dib"'
00:00:55 verbose #1233 > >         fun () => { exit_code result_length = result |> sm'.length : i32 }
00:00:55 verbose #1234 > >
00:00:55 verbose #1235 > >     if exit_code <>. 0
00:00:55 verbose #1236 > >     then failwith $'$"spiral_builder.run / dib / exit_code: {!exit_code}
00:00:55 verbose #1237 > > result: {!result}"'
00:00:55 verbose #1238 > >     ;[[
00:00:55 verbose #1239 > >         "stdio",
00:00:55 verbose #1240 > >         result
00:00:55 verbose #1241 > >     ]]
00:00:55 verbose #1242 > >
00:00:55 verbose #1243 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1244 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1245 > > │ ## typescript                                                                │
00:00:55 verbose #1246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1247 > >
00:00:55 verbose #1248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1250 > > │ ### process_typescript                                                       │
00:00:55 verbose #1251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1252 > >
00:00:55 verbose #1253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1254 > > inl process_typescript { fs_path deps trace_level } =
00:00:55 verbose #1255 > >     inl extension = "ts"
00:00:55 verbose #1256 > >     inl is_trace = trace_level = Verbose
00:00:55 verbose #1257 > >     inl _trace (fn : () -> string) =
00:00:55 verbose #1258 > >         if is_trace
00:00:55 verbose #1259 > >         then trace Info (fun () => $'$"spiral_builder.process_typescript / {!fn
00:00:55 verbose #1260 > > ()}"') id
00:00:55 verbose #1261 > >         else fn () |> console.write_line
00:00:55 verbose #1262 > >
00:00:55 verbose #1263 > >     inl code = fs_path |> file_system.read_all_text
00:00:55 verbose #1264 > >
00:00:55 verbose #1265 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:55 verbose #1266 > >
00:00:55 verbose #1267 > >     inl workspace_name = "spiral_builder"
00:00:55 verbose #1268 > >
00:00:55 verbose #1269 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:55 verbose #1270 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:55 verbose #1271 > > resultm.unwrap_or_else id
00:00:55 verbose #1272 > >
00:00:55 verbose #1273 > >     inl package_dir =
00:00:55 verbose #1274 > >         get_package_dir
00:00:55 verbose #1275 > >             { workspace_root name = workspace_name; target = Some TypeScript;
00:00:55 verbose #1276 > > hash = Some hash_hex }
00:00:55 verbose #1277 > >
00:00:55 verbose #1278 > >     inl fsproj_path =
00:00:55 verbose #1279 > >         persist_code_project
00:00:55 verbose #1280 > >             {
00:00:55 verbose #1281 > >                 workspace_root
00:00:55 verbose #1282 > >                 package_dir
00:00:55 verbose #1283 > >                 packages = [[ "Fable.Core" ]]
00:00:55 verbose #1284 > >                 modules = [[]]
00:00:55 verbose #1285 > >                 name = workspace_name
00:00:55 verbose #1286 > >                 code
00:00:55 verbose #1287 > >             }
00:00:55 verbose #1288 > >
00:00:55 verbose #1289 > >     inl lib_path = workspace_root </> "lib/typescript/fable/fable_modules"
00:00:55 verbose #1290 > >
00:00:55 verbose #1291 > >     inl versions : _ (string * string) =
00:00:55 verbose #1292 > >         lib_path
00:00:55 verbose #1293 > >         |> file_system.new_walk_dir
00:00:55 verbose #1294 > >         |> file_system.walk_dir_filter fun entry => async.new_future_move_send
00:00:55 verbose #1295 > > fun () =>
00:00:55 verbose #1296 > >             entry
00:00:55 verbose #1297 > >             |> file_system.dir_entry_file_type
00:00:55 verbose #1298 > >             |> async.await_send
00:00:55 verbose #1299 > >             |> resultm.map_error' sm'.format'
00:00:55 verbose #1300 > >             |> resultm.unbox
00:00:55 verbose #1301 > >             |> function
00:00:55 verbose #1302 > >                 | Ok file_type when file_type |> file_system.file_type_is_dir |>
00:00:55 verbose #1303 > > not => file_system.Ignore
00:00:55 verbose #1304 > >                 | _ =>
00:00:55 verbose #1305 > >                     inl path =
00:00:55 verbose #1306 > >                         entry
00:00:55 verbose #1307 > >                         |> file_system.dir_entry_path
00:00:55 verbose #1308 > >                         |> file_system.path_buf_display
00:00:55 verbose #1309 > >                         |> sm'.format'
00:00:55 verbose #1310 > >                         |> sm'.from_std_string
00:00:55 verbose #1311 > >                     if path |> file_system.get_directory_name |> sm'.starts_with
00:00:55 verbose #1312 > > "fable-library-ts."
00:00:55 verbose #1313 > >                     then file_system.Continue
00:00:55 verbose #1314 > >                     else file_system.IgnoreDir
00:00:55 verbose #1315 > >         |> async.stream_filter_map fun (entry : _ _
00:00:55 verbose #1316 > > file_system.async_walkdir_error) =>
00:00:55 verbose #1317 > >             inl entry = entry |> resultm.map_error' sm'.format' |> resultm.unbox
00:00:55 verbose #1318 > >             match entry with
00:00:55 verbose #1319 > >             | Ok entry =>
00:00:55 verbose #1320 > >                 inl path =
00:00:55 verbose #1321 > >                     entry
00:00:55 verbose #1322 > >                     |> file_system.dir_entry_path
00:00:55 verbose #1323 > >                     |> file_system.path_buf_display
00:00:55 verbose #1324 > >                     |> sm'.format'
00:00:55 verbose #1325 > >                     |> sm'.from_std_string
00:00:55 verbose #1326 > >                 inl version =
00:00:55 verbose #1327 > >                     $'$"fable-library-{!extension}\\.(?<a>[[\\d.]]+)$"'
00:00:55 verbose #1328 > >                     |> sm'.new_regex
00:00:55 verbose #1329 > >                     |> resultm.unwrap'
00:00:55 verbose #1330 > >                     |> sm'.regex_captures path
00:00:55 verbose #1331 > >                     |> am'.from_vec
00:00:55 verbose #1332 > >                     |> fun x => x : _ i32 _
00:00:55 verbose #1333 > >                     |> am'.try_item 0
00:00:55 verbose #1334 > >                     |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:55 verbose #1335 > >                     |> optionm'.flatten
00:00:55 verbose #1336 > >                 match version with
00:00:55 verbose #1337 > >                 | None => None
00:00:55 verbose #1338 > >                 | Some version => Some (path, version)
00:00:55 verbose #1339 > >             | Error error =>
00:00:55 verbose #1340 > >                 trace Critical
00:00:55 verbose #1341 > >                     fun () => $'"spiral_builder.process_typescript
00:00:55 verbose #1342 > > stream_filter_map"'
00:00:55 verbose #1343 > >                     fun () => { error }
00:00:55 verbose #1344 > >                 None
00:00:55 verbose #1345 > >             |> optionm'.box
00:00:55 verbose #1346 > >         |> async.stream_collect
00:00:55 verbose #1347 > >         |> async.await
00:00:55 verbose #1348 > >         |> async.into_par_iter
00:00:55 verbose #1349 > >         |> async.par_map id
00:00:55 verbose #1350 > >         |> async.par_collect
00:00:55 verbose #1351 > >
00:00:55 verbose #1352 > >     inl version =
00:00:55 verbose #1353 > >         versions
00:00:55 verbose #1354 > >         |> am'.from_vec
00:00:55 verbose #1355 > >         |> fun x => x : _ i32 _
00:00:55 verbose #1356 > >         |> am'.try_item 0
00:00:55 verbose #1357 > >
00:00:55 verbose #1358 > >     trace Debug
00:00:55 verbose #1359 > >         fun () => $'"spiral_builder.process_typescript"'
00:00:55 verbose #1360 > >         fun () => { version }
00:00:55 verbose #1361 > >
00:00:55 verbose #1362 > >     match version with
00:00:55 verbose #1363 > >     | None => ()
00:00:55 verbose #1364 > >     | Some (_path, version) =>
00:00:55 verbose #1365 > >         inl lib_link_target_path = lib_path </>
00:00:55 verbose #1366 > > $'$"fable-library-{!extension}.{!version}"'
00:00:55 verbose #1367 > >         inl lib_link_path = package_dir </>
00:00:55 verbose #1368 > > $'$"fable_modules/fable-library-{!extension}.{!version}"'
00:00:55 verbose #1369 > >
00:00:55 verbose #1370 > >         lib_link_path |> file_system.link_directory lib_link_target_path
00:00:55 verbose #1371 > >
00:00:55 verbose #1372 > >     inl exit_code, dotnet_fable_result =
00:00:55 verbose #1373 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:55 verbose #1374 > > package_dir runtime = None }
00:00:55 verbose #1375 > >
00:00:55 verbose #1376 > >     if exit_code <>. 0 then
00:00:55 verbose #1377 > >         trace Critical
00:00:55 verbose #1378 > >             fun () => $'$"spiral_builder.process_typescript"'
00:00:55 verbose #1379 > >             fun () => { exit_code dotnet_fable_result }
00:00:55 verbose #1380 > >         { extension = Some extension; code = None; output = Some
00:00:55 verbose #1381 > > dotnet_fable_result }
00:00:55 verbose #1382 > >     else
00:00:55 verbose #1383 > >         inl deps =
00:00:55 verbose #1384 > >             deps
00:00:55 verbose #1385 > >             |> am'.vec_map fun dep =>
00:00:55 verbose #1386 > >                 inl dep = dep |> sm'.from_std_string
00:00:55 verbose #1387 > >                 if dep |> sm'.contains "="
00:00:55 verbose #1388 > >                 then dep
00:00:55 verbose #1389 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:55 verbose #1390 > >             |> am'.from_vec
00:00:55 verbose #1391 > >             |> fun x => x : _ i32 _
00:00:55 verbose #1392 > >             |> seq.of_array'
00:00:55 verbose #1393 > >             |> sm'.concat ",\n"
00:00:55 verbose #1394 > >
00:00:55 verbose #1395 > >         inl package_json_content =
00:00:55 verbose #1396 > >             $'$"{{"'
00:00:55 verbose #1397 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:55 verbose #1398 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:55 verbose #1399 > >             +. deps
00:00:55 verbose #1400 > >             +. $'$"  }},"'
00:00:55 verbose #1401 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:55 verbose #1402 > >             +. $'$"  }},"'
00:00:55 verbose #1403 > >             +. $'$"}}"'
00:00:55 verbose #1404 > >
00:00:55 verbose #1405 > >         inl workspace_package_json_content =
00:00:55 verbose #1406 > >             ""
00:00:55 verbose #1407 > >
00:00:55 verbose #1408 > >         inl package_json_path = package_dir </> "package.json"
00:00:55 verbose #1409 > >
00:00:55 verbose #1410 > >         inl workspace_dir = package_dir </> "../.."
00:00:55 verbose #1411 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:55 verbose #1412 > >
00:00:55 verbose #1413 > >         package_json_content |> file_system.write_all_text_exists
00:00:55 verbose #1414 > > package_json_path
00:00:55 verbose #1415 > >
00:00:55 verbose #1416 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:55 verbose #1417 > > workspace_package_json_path
00:00:55 verbose #1418 > >
00:00:55 verbose #1419 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:55 verbose #1420 > >         trace Debug
00:00:55 verbose #1421 > >             fun () => $'"spiral_builder.process_typescript"'
00:00:55 verbose #1422 > >             fun () => { new_code_path }
00:00:55 verbose #1423 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:55 verbose #1424 > >
00:00:55 verbose #1425 > >         inl main_code_header =
00:00:55 verbose #1426 > >             "// spiral_builder.process_typescript"
00:00:55 verbose #1427 > >         inl main_code = "// spiral_builder.process_typescript"
00:00:55 verbose #1428 > >
00:00:55 verbose #1429 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:55 verbose #1430 > >
00:00:55 verbose #1431 > >         inl new_code =
00:00:55 verbose #1432 > >             if cached
00:00:55 verbose #1433 > >             then new_code
00:00:55 verbose #1434 > >             else
00:00:55 verbose #1435 > >                 new_code
00:00:55 verbose #1436 > >                 |> sm'.replace
00:00:55 verbose #1437 > >                     $'$"\\\"./fable_modules/fable-library-ts.{!version}/"'
00:00:55 verbose #1438 > >
00:00:55 verbose #1439 > > $'$"\\\"{!workspace_root}/lib/typescript/fable/fable_modules/fable-library-ts.{!
00:00:55 verbose #1440 > > version}/"'
00:00:55 verbose #1441 > >                 |> sm'.replace_regex
00:00:55 verbose #1442 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:55 verbose #1443 > >                     " defaultOf::<()>();"
00:00:55 verbose #1444 > >
00:00:55 verbose #1445 > >         if not cached then
00:00:55 verbose #1446 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:55 verbose #1447 > >             |> file_system.write_all_text_exists new_code_path
00:00:55 verbose #1448 > >
00:00:55 verbose #1449 > >         inl command = $'$"bun run \\\"{!new_code_path}\\\""'
00:00:55 verbose #1450 > >         inl environment_variables =
00:00:55 verbose #1451 > >             match "~/.bun/bin" |> env.append_path with
00:00:55 verbose #1452 > >             | Some path => [[ "PATH", path ]]
00:00:55 verbose #1453 > >             | None => [[]]
00:00:55 verbose #1454 > >             ++ [[
00:00:55 verbose #1455 > >                 "TRACE_LEVEL", "Verbose"
00:00:55 verbose #1456 > >             ]]
00:00:55 verbose #1457 > >             |> listm'.box
00:00:55 verbose #1458 > >             |> listm'.to_array'
00:00:55 verbose #1459 > >         inl exit_code, run_result =
00:00:55 verbose #1460 > >             runtime.execution_options fun x => { x with
00:00:55 verbose #1461 > >                 command
00:00:55 verbose #1462 > >                 environment_variables
00:00:55 verbose #1463 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:55 verbose #1464 > > resultm.ok'
00:00:55 verbose #1465 > >             }
00:00:55 verbose #1466 > >             |> runtime.execute_with_options
00:00:55 verbose #1467 > >
00:00:55 verbose #1468 > >         inl external_command =
00:00:55 verbose #1469 > >             inl vars =
00:00:55 verbose #1470 > >                 a environment_variables
00:00:55 verbose #1471 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:55 verbose #1472 > >                 |> fun x => x : _ i32 _
00:00:55 verbose #1473 > >                 |> seq.of_array
00:00:55 verbose #1474 > >                 |> sm'.concat ";"
00:00:55 verbose #1475 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:55 verbose #1476 > >         if exit_code = 0 then
00:00:55 verbose #1477 > >             inl output =
00:00:55 verbose #1478 > >                 try
00:00:55 verbose #1479 > >                     fun () =>
00:00:55 verbose #1480 > >                         run_result
00:00:55 verbose #1481 > >                         |> sm'.split "\n"
00:00:55 verbose #1482 > >                         |> fun x => a x : _ i32 _
00:00:55 verbose #1483 > >                         |> seq.of_array
00:00:55 verbose #1484 > >                         |> sm'.concat "\n"
00:00:55 verbose #1485 > >                     fun ex =>
00:00:55 verbose #1486 > >                         trace Critical
00:00:55 verbose #1487 > >                             fun () => "spiral_builder.process_typescript
00:00:55 verbose #1488 > > Exception"
00:00:55 verbose #1489 > >                             fun () => { ex new_code_path external_command
00:00:55 verbose #1490 > > run_result }
00:00:55 verbose #1491 > >                         None
00:00:55 verbose #1492 > >                 |> optionm'.box
00:00:55 verbose #1493 > >                 |> optionm'.unwrap
00:00:55 verbose #1494 > >
00:00:55 verbose #1495 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:55 verbose #1496 > > output }
00:00:55 verbose #1497 > >         else
00:00:55 verbose #1498 > >             trace Critical
00:00:55 verbose #1499 > >                 fun () => "spiral_builder.process_typescript / error"
00:00:55 verbose #1500 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:55 verbose #1501 > > }
00:00:55 verbose #1502 > >             { extension = Some extension; code = None; output = None }
00:00:56 verbose #1503 > >
00:00:56 verbose #1504 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1505 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1506 > > │ ## python                                                                    │
00:00:56 verbose #1507 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1508 > >
00:00:56 verbose #1509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1511 > > │ ### process_python                                                           │
00:00:56 verbose #1512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1513 > >
00:00:56 verbose #1514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1515 > > inl process_python { fs_path deps trace_level } =
00:00:56 verbose #1516 > >     inl extension = "py"
00:00:56 verbose #1517 > >     inl is_trace = trace_level = Verbose
00:00:56 verbose #1518 > >     inl _trace (fn : () -> string) =
00:00:56 verbose #1519 > >         if is_trace
00:00:56 verbose #1520 > >         then trace Info (fun () => $'$"spiral_builder.process_python / {!fn
00:00:56 verbose #1521 > > ()}"') id
00:00:56 verbose #1522 > >         else fn () |> console.write_line
00:00:56 verbose #1523 > >
00:00:56 verbose #1524 > >     inl code = fs_path |> file_system.read_all_text
00:00:56 verbose #1525 > >
00:00:56 verbose #1526 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:56 verbose #1527 > >
00:00:56 verbose #1528 > >     inl workspace_name = "spiral_builder"
00:00:56 verbose #1529 > >
00:00:56 verbose #1530 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:56 verbose #1531 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:56 verbose #1532 > > resultm.unwrap_or_else id
00:00:56 verbose #1533 > >
00:00:56 verbose #1534 > >     inl package_dir =
00:00:56 verbose #1535 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:56 verbose #1536 > > Python; hash = Some hash_hex }
00:00:56 verbose #1537 > >
00:00:56 verbose #1538 > >     inl fsproj_path =
00:00:56 verbose #1539 > >         persist_code_project
00:00:56 verbose #1540 > >             {
00:00:56 verbose #1541 > >                 workspace_root
00:00:56 verbose #1542 > >                 package_dir
00:00:56 verbose #1543 > >                 packages = [[ "Fable.Core" ]]
00:00:56 verbose #1544 > >                 modules = [[]]
00:00:56 verbose #1545 > >                 name = workspace_name
00:00:56 verbose #1546 > >                 code
00:00:56 verbose #1547 > >             }
00:00:56 verbose #1548 > >
00:00:56 verbose #1549 > >     inl lib_path = workspace_root </> "lib/python/fable/fable_modules"
00:00:56 verbose #1550 > >
00:00:56 verbose #1551 > >     inl lib_link_target_path = lib_path </> $'$"fable_library"'
00:00:56 verbose #1552 > >     inl lib_link_path = package_dir </> $'$"fable_modules/fable_library"'
00:00:56 verbose #1553 > >
00:00:56 verbose #1554 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:56 verbose #1555 > >
00:00:56 verbose #1556 > >     inl exit_code, dotnet_fable_result =
00:00:56 verbose #1557 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:56 verbose #1558 > > package_dir runtime = None }
00:00:56 verbose #1559 > >
00:00:56 verbose #1560 > >     if exit_code <>. 0 then
00:00:56 verbose #1561 > >         trace Critical
00:00:56 verbose #1562 > >             fun () => $'$"spiral_builder.process_python"'
00:00:56 verbose #1563 > >             fun () => { exit_code dotnet_fable_result }
00:00:56 verbose #1564 > >         { extension = Some extension; code = None; output = Some
00:00:56 verbose #1565 > > dotnet_fable_result }
00:00:56 verbose #1566 > >     else
00:00:56 verbose #1567 > >         inl deps =
00:00:56 verbose #1568 > >             deps
00:00:56 verbose #1569 > >             |> am'.vec_map fun dep =>
00:00:56 verbose #1570 > >                 inl dep = dep |> sm'.from_std_string
00:00:56 verbose #1571 > >                 if dep |> sm'.contains "="
00:00:56 verbose #1572 > >                 then dep
00:00:56 verbose #1573 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:56 verbose #1574 > >             |> am'.from_vec
00:00:56 verbose #1575 > >             |> fun x => x : _ i32 _
00:00:56 verbose #1576 > >             |> seq.of_array'
00:00:56 verbose #1577 > >             |> sm'.concat ",\n"
00:00:56 verbose #1578 > >
00:00:56 verbose #1579 > >         inl package_json_content =
00:00:56 verbose #1580 > >             $'$"{{"'
00:00:56 verbose #1581 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:56 verbose #1582 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:56 verbose #1583 > >             +. deps
00:00:56 verbose #1584 > >             +. $'$"  }},"'
00:00:56 verbose #1585 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:56 verbose #1586 > >             +. $'$"  }},"'
00:00:56 verbose #1587 > >             +. $'$"}}"'
00:00:56 verbose #1588 > >
00:00:56 verbose #1589 > >         inl workspace_package_json_content =
00:00:56 verbose #1590 > >             ""
00:00:56 verbose #1591 > >
00:00:56 verbose #1592 > >         inl package_json_path = package_dir </> "package.json"
00:00:56 verbose #1593 > >
00:00:56 verbose #1594 > >         inl workspace_dir = package_dir </> "../.."
00:00:56 verbose #1595 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:56 verbose #1596 > >
00:00:56 verbose #1597 > >         package_json_content |> file_system.write_all_text_exists
00:00:56 verbose #1598 > > package_json_path
00:00:56 verbose #1599 > >
00:00:56 verbose #1600 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:56 verbose #1601 > > workspace_package_json_path
00:00:56 verbose #1602 > >
00:00:56 verbose #1603 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:56 verbose #1604 > >         trace Debug
00:00:56 verbose #1605 > >             fun () => $'"spiral_builder.process_python"'
00:00:56 verbose #1606 > >             fun () => { new_code_path }
00:00:56 verbose #1607 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:56 verbose #1608 > >
00:00:56 verbose #1609 > >         inl main_code_header =
00:00:56 verbose #1610 > >             "# spiral_builder.process_python"
00:00:56 verbose #1611 > >         inl main_code = "# spiral_builder.process_python"
00:00:56 verbose #1612 > >
00:00:56 verbose #1613 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:56 verbose #1614 > >
00:00:56 verbose #1615 > >         inl new_code =
00:00:56 verbose #1616 > >             if cached
00:00:56 verbose #1617 > >             then new_code
00:00:56 verbose #1618 > >             else
00:00:56 verbose #1619 > >                 new_code
00:00:56 verbose #1620 > >                 |> sm'.replace
00:00:56 verbose #1621 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:56 verbose #1622 > >                     "));"
00:00:56 verbose #1623 > >                 |> sm'.replace_regex
00:00:56 verbose #1624 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:56 verbose #1625 > >                     " defaultOf::<()>();"
00:00:56 verbose #1626 > >
00:00:56 verbose #1627 > >         if not cached
00:00:56 verbose #1628 > >         then
00:00:56 verbose #1629 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:56 verbose #1630 > >             |> file_system.write_all_text_exists new_code_path
00:00:56 verbose #1631 > >
00:00:56 verbose #1632 > >         inl command = $'$"python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1633 > >         inl environment_variables =
00:00:56 verbose #1634 > >             ;[[
00:00:56 verbose #1635 > >                 "TRACE_LEVEL", "Verbose"
00:00:56 verbose #1636 > >             ]]
00:00:56 verbose #1637 > >         inl exit_code, run_result =
00:00:56 verbose #1638 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1639 > >                 command
00:00:56 verbose #1640 > >                 environment_variables
00:00:56 verbose #1641 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:56 verbose #1642 > > resultm.ok'
00:00:56 verbose #1643 > >             }
00:00:56 verbose #1644 > >             |> runtime.execute_with_options
00:00:56 verbose #1645 > >
00:00:56 verbose #1646 > >         inl external_command =
00:00:56 verbose #1647 > >             inl vars =
00:00:56 verbose #1648 > >                 a environment_variables
00:00:56 verbose #1649 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:56 verbose #1650 > >                 |> fun x => x : _ i32 _
00:00:56 verbose #1651 > >                 |> seq.of_array
00:00:56 verbose #1652 > >                 |> sm'.concat ";"
00:00:56 verbose #1653 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:56 verbose #1654 > >         if exit_code = 0 then
00:00:56 verbose #1655 > >             inl output =
00:00:56 verbose #1656 > >                 try
00:00:56 verbose #1657 > >                     fun () =>
00:00:56 verbose #1658 > >                         run_result
00:00:56 verbose #1659 > >                         |> sm'.split "\n"
00:00:56 verbose #1660 > >                         |> fun x => a x : _ i32 _
00:00:56 verbose #1661 > >                         |> seq.of_array
00:00:56 verbose #1662 > >                         |> sm'.concat "\n"
00:00:56 verbose #1663 > >                     fun ex =>
00:00:56 verbose #1664 > >                         trace Critical
00:00:56 verbose #1665 > >                             fun () => "spiral_builder.process_python
00:00:56 verbose #1666 > > Exception"
00:00:56 verbose #1667 > >                             fun () => { ex new_code_path external_command
00:00:56 verbose #1668 > > run_result }
00:00:56 verbose #1669 > >                         None
00:00:56 verbose #1670 > >                 |> optionm'.box
00:00:56 verbose #1671 > >                 |> optionm'.unwrap
00:00:56 verbose #1672 > >
00:00:56 verbose #1673 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:56 verbose #1674 > > output }
00:00:56 verbose #1675 > >         else
00:00:56 verbose #1676 > >             trace Critical
00:00:56 verbose #1677 > >                 fun () => "spiral_builder.process_python / error"
00:00:56 verbose #1678 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:56 verbose #1679 > > }
00:00:56 verbose #1680 > >             { extension = Some extension; code = None; output = None }
00:00:56 verbose #1681 > >
00:00:56 verbose #1682 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1683 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1684 > > │ ## cuda                                                                      │
00:00:56 verbose #1685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1686 > >
00:00:56 verbose #1687 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1688 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1689 > > │ ### process_cuda                                                             │
00:00:56 verbose #1690 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1691 > >
00:00:56 verbose #1692 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1693 > > inl process_cuda { py_path env deps } =
00:00:56 verbose #1694 > >     inl extension = "py"
00:00:56 verbose #1695 > >
00:00:56 verbose #1696 > >     inl new_code_path = py_path
00:00:56 verbose #1697 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:56 verbose #1698 > >
00:00:56 verbose #1699 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:56 verbose #1700 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:56 verbose #1701 > > resultm.unwrap_or_else id
00:00:56 verbose #1702 > >
00:00:56 verbose #1703 > >     inl package_dir = new_code_path |> file_system.get_directory_name
00:00:56 verbose #1704 > >
00:00:56 verbose #1705 > >     inl manifest_path =
00:00:56 verbose #1706 > >         match env with
00:00:56 verbose #1707 > >         | Pip => package_dir </> "requirements.txt"
00:00:56 verbose #1708 > >         | Poetry => package_dir </> "pyproject.toml"
00:00:56 verbose #1709 > >
00:00:56 verbose #1710 > >     inl deps =
00:00:56 verbose #1711 > >         deps
00:00:56 verbose #1712 > >         |> am'.vec_map fun dep =>
00:00:56 verbose #1713 > >             inl dep = dep |> sm'.from_std_string
00:00:56 verbose #1714 > >             if dep |> sm'.contains "="
00:00:56 verbose #1715 > >             then dep
00:00:56 verbose #1716 > >             elif dep |> sm'.ends_with "]]"
00:00:56 verbose #1717 > >             then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["' |>
00:00:56 verbose #1718 > > fun x => $'$"{!x}}}"'
00:00:56 verbose #1719 > >             else $'$"{!dep}=\'*\'"'
00:00:56 verbose #1720 > >         |> am'.from_vec
00:00:56 verbose #1721 > >         |> fun x => x : _ i32 _
00:00:56 verbose #1722 > >         |> seq.of_array'
00:00:56 verbose #1723 > >         |> sm'.concat "\n"
00:00:56 verbose #1724 > >
00:00:56 verbose #1725 > >     inl exit_code, run_result =
00:00:56 verbose #1726 > >         if deps = ""
00:00:56 verbose #1727 > >         then 0, ""
00:00:56 verbose #1728 > >         else
00:00:56 verbose #1729 > >             inl manifest =
00:00:56 verbose #1730 > >                 match env with
00:00:56 verbose #1731 > >                 | Pip =>
00:00:56 verbose #1732 > >                     deps
00:00:56 verbose #1733 > >                 | Poetry =>
00:00:56 verbose #1734 > >                     $'$"[[tool.poetry]]"'
00:00:56 verbose #1735 > >                     +#. $'$"name = \\\"test\\\""'
00:00:56 verbose #1736 > >                     +#. $'$"version = \\\"0.0.1\\\""'
00:00:56 verbose #1737 > >                     +#. $'$"description = \\\"\\\""'
00:00:56 verbose #1738 > >                     +#. $'$"authors = [[]]"'
00:00:56 verbose #1739 > >                     +#. $'$""'
00:00:56 verbose #1740 > >                     +#. $'$"[[tool.poetry.dependencies]]"'
00:00:56 verbose #1741 > >                     +#. $'$"python=\\\"~3.12\\\""'
00:00:56 verbose #1742 > >                     +#. $'$"{!deps}"'
00:00:56 verbose #1743 > >                     +#. $'$""'
00:00:56 verbose #1744 > >                     +#. $'$"[[build-system]]"'
00:00:56 verbose #1745 > >                     +#. $'$"requires = [[\\\"poetry-core\\\"]]"'
00:00:56 verbose #1746 > >                     +#. $'$"build-backend = \\\"poetry.core.masonry.api\\\""'
00:00:56 verbose #1747 > >
00:00:56 verbose #1748 > >             manifest |> file_system.write_all_text_exists manifest_path
00:00:56 verbose #1749 > >
00:00:56 verbose #1750 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1751 > >                 command =
00:00:56 verbose #1752 > >                     match env with
00:00:56 verbose #1753 > >                     | Pip => $'$"pip install -r requirements.txt"'
00:00:56 verbose #1754 > >                     | Poetry => $'$"poetry install"'
00:00:56 verbose #1755 > >                 working_directory = package_dir |> optionm'.some'
00:00:56 verbose #1756 > >             }
00:00:56 verbose #1757 > >             |> runtime.execute_with_options
00:00:56 verbose #1758 > >
00:00:56 verbose #1759 > >     if exit_code <>. 0 then
00:00:56 verbose #1760 > >         trace Critical
00:00:56 verbose #1761 > >             fun () => "spiral_builder.process_cuda / env install error"
00:00:56 verbose #1762 > >             fun () => { env exit_code run_result new_code_path }
00:00:56 verbose #1763 > >         { extension = Some extension; code = None; output = None }
00:00:56 verbose #1764 > >     else
00:00:56 verbose #1765 > >         inl command =
00:00:56 verbose #1766 > >             match env with
00:00:56 verbose #1767 > >             | Pip => $'$"python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1768 > >             | Poetry => $'$"poetry run python \\\"{!new_code_path}\\\""'
00:00:56 verbose #1769 > >         inl environment_variables =
00:00:56 verbose #1770 > >             ;[[
00:00:56 verbose #1771 > >                 "TRACE_LEVEL", "Verbose"
00:00:56 verbose #1772 > >             ]]
00:00:56 verbose #1773 > >         inl exit_code, run_result =
00:00:56 verbose #1774 > >             runtime.execution_options fun x => { x with
00:00:56 verbose #1775 > >                 command
00:00:56 verbose #1776 > >                 environment_variables
00:00:56 verbose #1777 > >                 working_directory = package_dir |> optionm'.some'
00:00:56 verbose #1778 > >             }
00:00:56 verbose #1779 > >             |> runtime.execute_with_options
00:00:56 verbose #1780 > >
00:00:56 verbose #1781 > >         inl external_command =
00:00:56 verbose #1782 > >             inl vars =
00:00:56 verbose #1783 > >                 a environment_variables
00:00:56 verbose #1784 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:56 verbose #1785 > >                 |> fun x => x : _ i32 _
00:00:56 verbose #1786 > >                 |> seq.of_array
00:00:56 verbose #1787 > >                 |> sm'.concat ";"
00:00:56 verbose #1788 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:56 verbose #1789 > >         if exit_code = 0
00:00:56 verbose #1790 > >             || (run_result |> sm'.contains
00:00:56 verbose #1791 > > "cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorInsufficientDriver")
00:00:56 verbose #1792 > > then
00:00:56 verbose #1793 > >             inl output =
00:00:56 verbose #1794 > >                 try
00:00:56 verbose #1795 > >                     fun () =>
00:00:56 verbose #1796 > >                         run_result
00:00:56 verbose #1797 > >                         |> sm'.split "\n"
00:00:56 verbose #1798 > >                         |> fun x => a x : _ i32 _
00:00:56 verbose #1799 > >                         |> seq.of_array
00:00:56 verbose #1800 > >                         |> sm'.concat "\n"
00:00:56 verbose #1801 > >                     fun ex =>
00:00:56 verbose #1802 > >                         trace Critical
00:00:56 verbose #1803 > >                             fun () => "spiral_builder.process_cuda / Exception"
00:00:56 verbose #1804 > >                             fun () => { ex run_result new_code_path
00:00:56 verbose #1805 > > external_command }
00:00:56 verbose #1806 > >                         None
00:00:56 verbose #1807 > >                 |> optionm'.box
00:00:56 verbose #1808 > >                 |> optionm'.unwrap
00:00:56 verbose #1809 > >
00:00:56 verbose #1810 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:56 verbose #1811 > > output }
00:00:56 verbose #1812 > >         else
00:00:56 verbose #1813 > >             trace Critical
00:00:56 verbose #1814 > >                 fun () => "spiral_builder.process_cuda / error"
00:00:56 verbose #1815 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:56 verbose #1816 > > }
00:00:56 verbose #1817 > >             { extension = Some extension; code = None; output = None }
00:00:57 verbose #1818 > >
00:00:57 verbose #1819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1821 > > │ ## fsharp                                                                    │
00:00:57 verbose #1822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1823 > >
00:00:57 verbose #1824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1826 > > │ ### process_fsharp                                                           │
00:00:57 verbose #1827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1828 > >
00:00:57 verbose #1829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1830 > > inl process_fsharp { spi_path } =
00:00:57 verbose #1831 > >     inl extension = "fsx"
00:00:57 verbose #1832 > >
00:00:57 verbose #1833 > >     inl new_code_path = spi_path
00:00:57 verbose #1834 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:57 verbose #1835 > >
00:00:57 verbose #1836 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:57 verbose #1837 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:57 verbose #1838 > > resultm.unwrap_or_else id
00:00:57 verbose #1839 > >
00:00:57 verbose #1840 > >     inl supervisor_path = workspace_root </>
00:00:57 verbose #1841 > > $"apps/spiral/dist/Supervisor!(platform.get_executable_suffix ())"
00:00:57 verbose #1842 > >     inl code_dir = new_code_path |> file_system.get_directory_name
00:00:57 verbose #1843 > >     inl file_name = new_code_path |> file_system.get_file_name_without_extension
00:00:57 verbose #1844 > >     inl output_path = code_dir </> $'$"{!file_name}.{!extension}"'
00:00:57 verbose #1845 > >     inl command = $'$"{!supervisor_path} --build-file \\\"{!new_code_path}\\\"
00:00:57 verbose #1846 > > \\\"{!output_path}\\\""'
00:00:57 verbose #1847 > >     inl environment_variables =
00:00:57 verbose #1848 > >         ;[[
00:00:57 verbose #1849 > >             "TRACE_LEVEL", "Verbose"
00:00:57 verbose #1850 > >         ]]
00:00:57 verbose #1851 > >     inl exit_code, run_result =
00:00:57 verbose #1852 > >         runtime.execution_options fun x => { x with
00:00:57 verbose #1853 > >             command
00:00:57 verbose #1854 > >             environment_variables
00:00:57 verbose #1855 > >             working_directory = workspace_root_external |> resultm.box |>
00:00:57 verbose #1856 > > resultm.ok'
00:00:57 verbose #1857 > >         }
00:00:57 verbose #1858 > >         |> runtime.execute_with_options
00:00:57 verbose #1859 > >
00:00:57 verbose #1860 > >     inl external_command =
00:00:57 verbose #1861 > >         inl vars =
00:00:57 verbose #1862 > >             a environment_variables
00:00:57 verbose #1863 > >             |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:57 verbose #1864 > >             |> fun x => x : _ i32 _
00:00:57 verbose #1865 > >             |> seq.of_array
00:00:57 verbose #1866 > >             |> sm'.concat ";"
00:00:57 verbose #1867 > >         $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:57 verbose #1868 > >     if exit_code = 0 then
00:00:57 verbose #1869 > >         inl output =
00:00:57 verbose #1870 > >             try
00:00:57 verbose #1871 > >                 fun () =>
00:00:57 verbose #1872 > >                     run_result
00:00:57 verbose #1873 > >                     |> sm'.split "\n"
00:00:57 verbose #1874 > >                     |> fun x => a x : _ i32 _
00:00:57 verbose #1875 > >                     |> seq.of_array
00:00:57 verbose #1876 > >                     |> sm'.concat "\n"
00:00:57 verbose #1877 > >                 fun ex =>
00:00:57 verbose #1878 > >                     trace Critical
00:00:57 verbose #1879 > >                         fun () => "spiral_builder.process_fsharp / Exception"
00:00:57 verbose #1880 > >                         fun () => { ex run_result new_code_path external_command
00:00:57 verbose #1881 > > }
00:00:57 verbose #1882 > >                     None
00:00:57 verbose #1883 > >             |> optionm'.box
00:00:57 verbose #1884 > >             |> optionm'.unwrap
00:00:57 verbose #1885 > >
00:00:57 verbose #1886 > >         { extension = Some extension; code = Some new_code; output = Some output
00:00:57 verbose #1887 > > }
00:00:57 verbose #1888 > >     else
00:00:57 verbose #1889 > >         trace Critical
00:00:57 verbose #1890 > >             fun () => "spiral_builder.process_fsharp / error"
00:00:57 verbose #1891 > >             fun () => { exit_code run_result new_code_path external_command }
00:00:57 verbose #1892 > >         { extension = Some extension; code = None; output = None }
00:00:58 verbose #1893 > >
00:00:58 verbose #1894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1896 > > │ ## run                                                                       │
00:00:58 verbose #1897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1898 > >
00:00:58 verbose #1899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1900 > > let rec run trace_level (matches : runtime.arg_matches) : async.future_pin
00:00:58 verbose #1901 > > (resultm.result' string string) =
00:00:58 verbose #1902 > >     fun () =>
00:00:58 verbose #1903 > >         match matches |> runtime.matches_subcommand |> optionm'.unbox with
00:00:58 verbose #1904 > >         | Some (subcommand, arg_matches)
00:00:58 verbose #1905 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .cuda |>
00:00:58 verbose #1906 > > fst) =>
00:00:58 verbose #1907 > >
00:00:58 verbose #1908 > >             inl py_path =
00:00:58 verbose #1909 > >                 arg_matches
00:00:58 verbose #1910 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).py_path
00:00:58 verbose #1911 > > |> fst)
00:00:58 verbose #1912 > >                 |> optionm'.unbox
00:00:58 verbose #1913 > >                 |> optionm.value
00:00:58 verbose #1914 > >                 |> sm'.from_std_string
00:00:58 verbose #1915 > >
00:00:58 verbose #1916 > >             inl env =
00:00:58 verbose #1917 > >                 arg_matches
00:00:58 verbose #1918 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).env |>
00:00:58 verbose #1919 > > fst)
00:00:58 verbose #1920 > >                 |> optionm'.unbox
00:00:58 verbose #1921 > >                 |> optionm.map (
00:00:58 verbose #1922 > >                     sm'.from_std_string
00:00:58 verbose #1923 > >                     >> reflection.union_try_pick
00:00:58 verbose #1924 > >                 )
00:00:58 verbose #1925 > >                 |> optionm'.flatten
00:00:58 verbose #1926 > >                 |> optionm'.default_value Pip
00:00:58 verbose #1927 > >
00:00:58 verbose #1928 > >             inl deps : am'.vec sm'.std_string =
00:00:58 verbose #1929 > >                 arg_matches
00:00:58 verbose #1930 > >                 |> runtime.matches_get_many ((get_args () .cuda |> snd).deps |>
00:00:58 verbose #1931 > > fst)
00:00:58 verbose #1932 > >                 |> optionm'.unbox
00:00:58 verbose #1933 > >                 |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:58 verbose #1934 > >
00:00:58 verbose #1935 > >             inl command_result =
00:00:58 verbose #1936 > >                 process_cuda { py_path env deps }
00:00:58 verbose #1937 > >                 |> fun { extension code output } =>
00:00:58 verbose #1938 > >                     ;[[
00:00:58 verbose #1939 > >                         "extension", extension |> optionm'.default_value ""
00:00:58 verbose #1940 > >                         "code", code |> optionm'.default_value ""
00:00:58 verbose #1941 > >                         "output", output |> optionm'.default_value ""
00:00:58 verbose #1942 > >                     ]]
00:00:58 verbose #1943 > >
00:00:58 verbose #1944 > >             ;[[
00:00:58 verbose #1945 > >                 "command_result",
00:00:58 verbose #1946 > >                 command_result
00:00:58 verbose #1947 > >                 |> am'.to_vec
00:00:58 verbose #1948 > >                 |> am'.vec_map' fun k, v =>
00:00:58 verbose #1949 > >                     new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:58 verbose #1950 > >                 |> mapm.b_tree_map_from_vec_pairs
00:00:58 verbose #1951 > >                 |> sm'.serialize
00:00:58 verbose #1952 > >                 |> resultm.unwrap'
00:00:58 verbose #1953 > >                 |> sm'.from_std_string
00:00:58 verbose #1954 > >             ]]
00:00:58 verbose #1955 > >
00:00:58 verbose #1956 > >         | Some (subcommand, arg_matches)
00:00:58 verbose #1957 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .fable
00:00:58 verbose #1958 > > |> fst) =>
00:00:58 verbose #1959 > >
00:00:58 verbose #1960 > >             inl fs_path =
00:00:58 verbose #1961 > >                 arg_matches
00:00:58 verbose #1962 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).fs_path
00:00:58 verbose #1963 > > |> fst)
00:00:58 verbose #1964 > >                 |> optionm'.unbox
00:00:58 verbose #1965 > >                 |> optionm.value
00:00:58 verbose #1966 > >                 |> sm'.from_std_string
00:00:58 verbose #1967 > >
00:00:58 verbose #1968 > >             inl command =
00:00:58 verbose #1969 > >                 arg_matches
00:00:58 verbose #1970 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).command
00:00:58 verbose #1971 > > |> fst)
00:00:58 verbose #1972 > >                 |> optionm'.unbox
00:00:58 verbose #1973 > >                 |> optionm.map sm'.from_std_string
00:00:58 verbose #1974 > >
00:00:58 verbose #1975 > >             inl command_result =
00:00:58 verbose #1976 > >                 match command with
00:00:58 verbose #1977 > >                 | Some command =>
00:00:58 verbose #1978 > >                     get_command ()
00:00:58 verbose #1979 > >                     |> runtime.command_get_matches_from (
00:00:58 verbose #1980 > >                         $'$"_ {!command} --fs-path \\\"{!fs_path}\\\""' |>
00:00:58 verbose #1981 > > runtime.split_args |> resultm.get
00:00:58 verbose #1982 > >                     )
00:00:58 verbose #1983 > >                     |> run trace_level
00:00:58 verbose #1984 > >                     |> async.await
00:00:58 verbose #1985 > >                     |> resultm.unwrap'
00:00:58 verbose #1986 > >                 | None => "{}"
00:00:58 verbose #1987 > >
00:00:58 verbose #1988 > >             ;[[
00:00:58 verbose #1989 > >                 "command_result",
00:00:58 verbose #1990 > >                 command_result
00:00:58 verbose #1991 > >             ]]
00:00:58 verbose #1992 > >
00:00:58 verbose #1993 > >         | Some (subcommand, arg_matches)
00:00:58 verbose #1994 > >             when (subcommand |> sm'.from_std_string) = (get_args () .dib |> fst)
00:00:58 verbose #1995 > > =>
00:00:58 verbose #1996 > >
00:00:58 verbose #1997 > >             inl path =
00:00:58 verbose #1998 > >                 arg_matches
00:00:58 verbose #1999 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).path |>
00:00:58 verbose #2000 > > fst)
00:00:58 verbose #2001 > >                 |> optionm'.map'' (
00:00:58 verbose #2002 > >                     sm'.from_std_string
00:00:58 verbose #2003 > >                     >> file_system.absolute_path
00:00:58 verbose #2004 > >                 )
00:00:58 verbose #2005 > >                 |> optionm'.unwrap
00:00:58 verbose #2006 > >
00:00:58 verbose #2007 > >             inl retries =
00:00:58 verbose #2008 > >                 arg_matches
00:00:58 verbose #2009 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).retries |>
00:00:58 verbose #2010 > > fst)
00:00:58 verbose #2011 > >                 |> optionm'.default_value' 1u8
00:00:58 verbose #2012 > >
00:00:58 verbose #2013 > >             inl working_directory =
00:00:58 verbose #2014 > >                 arg_matches
00:00:58 verbose #2015 > >                 |> runtime.matches_get_one ((get_args () .dib |>
00:00:58 verbose #2016 > > snd).working_directory |> fst)
00:00:58 verbose #2017 > >                 |> optionm'.unbox
00:00:58 verbose #2018 > >
00:00:58 verbose #2019 > >             process_dib { path retries working_directory }
00:00:58 verbose #2020 > >
00:00:58 verbose #2021 > >         | matches =>
00:00:58 verbose #2022 > >             match matches with
00:00:58 verbose #2023 > >             | Some (subcommand, arg_matches)
00:00:58 verbose #2024 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:58 verbose #2025 > > .rust |> fst) =>
00:00:58 verbose #2026 > >
00:00:58 verbose #2027 > >                 inl fs_path =
00:00:58 verbose #2028 > >                     arg_matches
00:00:58 verbose #2029 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:00:58 verbose #2030 > > snd).fs_path |> fst)
00:00:58 verbose #2031 > >                     |> optionm'.unbox
00:00:58 verbose #2032 > >                     |> optionm.value
00:00:58 verbose #2033 > >                     |> sm'.from_std_string
00:00:58 verbose #2034 > >
00:00:58 verbose #2035 > >                 inl deps : am'.vec sm'.std_string =
00:00:58 verbose #2036 > >                     arg_matches
00:00:58 verbose #2037 > >                     |> runtime.matches_get_many ((get_args () .rust |> snd).deps
00:00:58 verbose #2038 > > |> fst)
00:00:58 verbose #2039 > >                     |> optionm'.unbox
00:00:58 verbose #2040 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:58 verbose #2041 > >
00:00:58 verbose #2042 > >                 inl cleanup =
00:00:58 verbose #2043 > >                     arg_matches
00:00:58 verbose #2044 > >                     |> runtime.matches_get_flag ((get_args () .rust |>
00:00:58 verbose #2045 > > snd).cleanup |> fst)
00:00:58 verbose #2046 > >
00:00:58 verbose #2047 > >                 inl wasm =
00:00:58 verbose #2048 > >                     arg_matches
00:00:58 verbose #2049 > >                     |> runtime.matches_get_one ((get_args () .rust |> snd).wasm
00:00:58 verbose #2050 > > |> fst)
00:00:58 verbose #2051 > >                     |> optionm'.unbox
00:00:58 verbose #2052 > >                     |> optionm.map sm'.from_std_string
00:00:58 verbose #2053 > >
00:00:58 verbose #2054 > >                 inl contract =
00:00:58 verbose #2055 > >                     arg_matches
00:00:58 verbose #2056 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:00:58 verbose #2057 > > snd).contract |> fst)
00:00:58 verbose #2058 > >                     |> optionm'.unbox
00:00:58 verbose #2059 > >                     |> optionm.map sm'.from_std_string
00:00:58 verbose #2060 > >
00:00:58 verbose #2061 > >                 inl runtime =
00:00:58 verbose #2062 > >                     match wasm, contract with
00:00:58 verbose #2063 > >                     | Some wasm, _ => Wasm wasm |> Some
00:00:58 verbose #2064 > >                     | _, Some contract => Contract contract |> Some
00:00:58 verbose #2065 > >                     | _ => None
00:00:58 verbose #2066 > >
00:00:58 verbose #2067 > >                 process_rust { fs_path deps trace_level runtime cleanup }
00:00:58 verbose #2068 > >
00:00:58 verbose #2069 > >             | Some (subcommand, arg_matches)
00:00:58 verbose #2070 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:58 verbose #2071 > > .typescript |> fst) =>
00:00:58 verbose #2072 > >
00:00:58 verbose #2073 > >                 inl fs_path =
00:00:58 verbose #2074 > >                     arg_matches
00:00:58 verbose #2075 > >                     |> runtime.matches_get_one ((get_args () .typescript |>
00:00:58 verbose #2076 > > snd).fs_path |> fst)
00:00:58 verbose #2077 > >                     |> optionm'.unbox
00:00:58 verbose #2078 > >                     |> optionm.value
00:00:58 verbose #2079 > >                     |> sm'.from_std_string
00:00:58 verbose #2080 > >
00:00:58 verbose #2081 > >                 inl deps : am'.vec sm'.std_string =
00:00:58 verbose #2082 > >                     arg_matches
00:00:58 verbose #2083 > >                     |> runtime.matches_get_many ((get_args () .typescript |>
00:00:58 verbose #2084 > > snd).deps |> fst)
00:00:58 verbose #2085 > >                     |> optionm'.unbox
00:00:58 verbose #2086 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:58 verbose #2087 > >
00:00:58 verbose #2088 > >                 process_typescript { fs_path deps trace_level }
00:00:58 verbose #2089 > >
00:00:58 verbose #2090 > >             | Some (subcommand, arg_matches)
00:00:58 verbose #2091 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:58 verbose #2092 > > .python |> fst) =>
00:00:58 verbose #2093 > >                 inl fs_path =
00:00:58 verbose #2094 > >                     arg_matches
00:00:58 verbose #2095 > >                     |> runtime.matches_get_one ((get_args () .python |>
00:00:58 verbose #2096 > > snd).fs_path |> fst)
00:00:58 verbose #2097 > >                     |> optionm'.unbox
00:00:58 verbose #2098 > >                     |> optionm.value
00:00:58 verbose #2099 > >                     |> sm'.from_std_string
00:00:58 verbose #2100 > >
00:00:58 verbose #2101 > >                 inl deps : am'.vec sm'.std_string =
00:00:58 verbose #2102 > >                     arg_matches
00:00:58 verbose #2103 > >                     |> runtime.matches_get_many ((get_args () .python |>
00:00:58 verbose #2104 > > snd).deps |> fst)
00:00:58 verbose #2105 > >                     |> optionm'.unbox
00:00:58 verbose #2106 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:58 verbose #2107 > >
00:00:58 verbose #2108 > >                 process_python { fs_path deps trace_level }
00:00:58 verbose #2109 > >
00:00:58 verbose #2110 > >             | Some (subcommand, arg_matches) =>
00:00:58 verbose #2111 > >                 trace Debug
00:00:58 verbose #2112 > >                     fun () => $'"spiral_builder.run / invalid subcommand"'
00:00:58 verbose #2113 > >                     fun () => { subcommand arg_matches }
00:00:58 verbose #2114 > >
00:00:58 verbose #2115 > >                 { extension = None; code = None; output = None }
00:00:58 verbose #2116 > >             | _ =>
00:00:58 verbose #2117 > >                 { extension = None; code = None; output = None }
00:00:58 verbose #2118 > >             |> fun { extension code output } =>
00:00:58 verbose #2119 > >                 ;[[
00:00:58 verbose #2120 > >                     "extension", extension |> optionm'.default_value ""
00:00:58 verbose #2121 > >                     "code", code |> optionm'.default_value ""
00:00:58 verbose #2122 > >                     "output", output |> optionm'.default_value ""
00:00:58 verbose #2123 > >                 ]]
00:00:58 verbose #2124 > >         |> am'.to_vec
00:00:58 verbose #2125 > >         |> am'.vec_map' fun k, v =>
00:00:58 verbose #2126 > >             new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:58 verbose #2127 > >         |> mapm.b_tree_map_from_vec_pairs
00:00:58 verbose #2128 > >         |> sm'.serialize
00:00:58 verbose #2129 > >         |> resultm.map_error' (sm'.format' >> sm'.from_std_string)
00:00:58 verbose #2130 > >         |> resultm.map' sm'.from_std_string
00:00:58 verbose #2131 > >     |> async.new_future_move
00:00:58 verbose #2132 > >
00:00:58 verbose #2133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #2134 > > //// test
00:00:58 verbose #2135 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:00:58 verbose #2136 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:00:58 verbose #2137 > >
00:00:58 verbose #2138 > > inl file_name = "main.fs"
00:00:58 verbose #2139 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:00:58 verbose #2140 > >
00:00:58 verbose #2141 > > inl temp_dir, disposable =
00:00:58 verbose #2142 > >     (file_name, code)
00:00:58 verbose #2143 > >     |> sm'.format_debug
00:00:58 verbose #2144 > >     |> crypto.hash_text
00:00:58 verbose #2145 > >     |> file_system.create_temp_dir'
00:00:58 verbose #2146 > > inl fs_path = temp_dir </> file_name
00:00:58 verbose #2147 > >
00:00:58 verbose #2148 > > code |> file_system.write_all_text fs_path
00:00:58 verbose #2149 > >
00:00:58 verbose #2150 > > get_command ()
00:00:58 verbose #2151 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:00:58 verbose #2152 > > \\\"rust -d regex=\'*\'\\\""' |> runtime.split_args |> resultm.get)
00:00:58 verbose #2153 > > |> run Verbose
00:00:58 verbose #2154 > > |> async.block_on
00:00:58 verbose #2155 > > |> resultm.unwrap'
00:00:58 verbose #2156 > > |> sm'.deserialize
00:00:58 verbose #2157 > > |> resultm.unwrap'
00:00:58 verbose #2158 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:00:58 verbose #2159 > > |> optionm'.unwrap
00:00:58 verbose #2160 > > |> sm'.from_std_string
00:00:58 verbose #2161 > > |> sm'.deserialize
00:00:58 verbose #2162 > > |> resultm.unwrap'
00:00:58 verbose #2163 > > |> fun result =>
00:00:58 verbose #2164 > >     result
00:00:58 verbose #2165 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:00:58 verbose #2166 > >     |> optionm'.unwrap
00:00:58 verbose #2167 > >     |> sm'.from_std_string
00:00:58 verbose #2168 > >     |> _assert_eq "rs"
00:00:58 verbose #2169 > >     result
00:00:58 verbose #2170 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:00:58 verbose #2171 > >     |> optionm'.unwrap
00:00:58 verbose #2172 > >     |> sm'.from_std_string
00:00:58 verbose #2173 > >     |> _assert_eq "-3"
00:00:58 verbose #2174 > >
00:00:58 verbose #2175 > > disposable |> use |> ignore
00:02:06 verbose #2176 > >
00:02:06 verbose #2177 > > ╭─[ 1.13m - return value ]─────────────────────────────────────────────────────╮
00:02:06 verbose #2178 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:02:06 verbose #2179 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_507da01d │
00:02:06 verbose #2180 > > │ 864840f404745c0abeec4090f0283626a5c5143511a66e974da1d0c0\c6422374-71e4-07d4- │
00:02:06 verbose #2181 > > │ 0ba4-c3084b24fbba }                                                          │
00:02:06 verbose #2182 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:02:06 verbose #2183 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\f58a │
00:02:06 verbose #2184 > > │ 8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e }               │
00:02:06 verbose #2185 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:02:06 verbose #2186 > > │ dotnet; arguments = [                                                        │
00:02:06 verbose #2187 > > │     "fable",                                                                 │
00:02:06 verbose #2188 > > │                                                                              │
00:02:06 verbose #2189 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/f58 │
00:02:06 verbose #2190 > > │ a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e/spiral_builder │
00:02:06 verbose #2191 > > │ .fsproj",                                                                    │
00:02:06 verbose #2192 > > │     "--optimize",                                                            │
00:02:06 verbose #2193 > > │     "--lang",                                                                │
00:02:06 verbose #2194 > > │     "rs",                                                                    │
00:02:06 verbose #2195 > > │     "--extension",                                                           │
00:02:06 verbose #2196 > > │     ".rs",                                                                   │
00:02:06 verbose #2197 > > │     "--outDir",                                                              │
00:02:06 verbose #2198 > > │                                                                              │
00:02:06 verbose #2199 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\R │
00:02:06 verbose #2200 > > │ ust\\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e",      │
00:02:06 verbose #2201 > > │     "--define",                                                              │
00:02:06 verbose #2202 > > │     "_WINDOWS",                                                              │
00:02:06 verbose #2203 > > │ ]; options = { command = dotnet fable                                        │
00:02:06 verbose #2204 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/f58 │
00:02:06 verbose #2205 > > │ a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e/spiral_builder │
00:02:06 verbose #2206 > > │ .fsproj" --optimize --lang rs --extension .rs --outDir                       │
00:02:06 verbose #2207 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\f58 │
00:02:06 verbose #2208 > > │ a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e" --define      │
00:02:06 verbose #2209 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:02:06 verbose #2210 > > │ ])); on_line = None; stdin = None; trace =                                   │
00:02:06 verbose #2211 > > │ tr...der\packages\Rust\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d │
00:02:06 verbose #2212 > > │ 392fe9ebb1e\spiral_builder.rs; cleanup =                                     │
00:02:06 verbose #2213 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:06 verbose #2214 > > │ st\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e\../../.. │
00:02:06 verbose #2215 > > │ \target/debug/spiral_builder_f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad │
00:02:06 verbose #2216 > > │ 7e4d7d392fe9ebb1e.d", true,                                                  │
00:02:06 verbose #2217 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:06 verbose #2218 > > │ st\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e\../../.. │
00:02:06 verbose #2219 > > │ \target/debug/spiral_builder_f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad │
00:02:06 verbose #2220 > > │ 7e4d7d392fe9ebb1e.exe", true,                                                │
00:02:06 verbose #2221 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:06 verbose #2222 > > │ st\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e\../../.. │
00:02:06 verbose #2223 > > │ \target/debug/spiral_builder_f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad │
00:02:06 verbose #2224 > > │ 7e4d7d392fe9ebb1e.pdb", true,                                                │
00:02:06 verbose #2225 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:06 verbose #2226 > > │ st\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e\../../.. │
00:02:06 verbose #2227 > > │ \target/debug/spiral_builder_f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad │
00:02:06 verbose #2228 > > │ 7e4d7d392fe9ebb1e.wasm", false,                                              │
00:02:06 verbose #2229 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:02:06 verbose #2230 > > │ st\f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad7e4d7d392fe9ebb1e\../../.. │
00:02:06 verbose #2231 > > │ \target/debug/spiral_builder_f58a8f60b65e9bacc8229b6e2ae18dba8f9dc103c5ce2ad │
00:02:06 verbose #2232 > > │ 7e4d7d392fe9ebb1e", false, UH4_0))))) }                                      │
00:02:06 verbose #2233 > > │ __assert_eq / actual: "rs" / expected: "rs"                                  │
00:02:06 verbose #2234 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:02:06 verbose #2235 > > │                                                                              │
00:02:06 verbose #2236 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2237 > >
00:02:06 verbose #2238 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2239 > > //// test
00:02:06 verbose #2240 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:02:06 verbose #2241 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:02:06 verbose #2242 > >
00:02:06 verbose #2243 > > inl file_name = "main.fs"
00:02:06 verbose #2244 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:02:06 verbose #2245 > >
00:02:06 verbose #2246 > > inl temp_dir, disposable =
00:02:06 verbose #2247 > >     (file_name, code)
00:02:06 verbose #2248 > >     |> sm'.format_debug
00:02:06 verbose #2249 > >     |> crypto.hash_text
00:02:06 verbose #2250 > >     |> file_system.create_temp_dir'
00:02:06 verbose #2251 > > inl fs_path = temp_dir </> file_name
00:02:06 verbose #2252 > >
00:02:06 verbose #2253 > > code |> file_system.write_all_text fs_path
00:02:06 verbose #2254 > >
00:02:06 verbose #2255 > > get_command ()
00:02:06 verbose #2256 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:02:06 verbose #2257 > > \\\"typescript\\\""' |> runtime.split_args |> resultm.get)
00:02:06 verbose #2258 > > |> run Verbose
00:02:06 verbose #2259 > > |> async.block_on
00:02:06 verbose #2260 > > |> resultm.unwrap'
00:02:06 verbose #2261 > > |> sm'.deserialize
00:02:06 verbose #2262 > > |> resultm.unwrap'
00:02:06 verbose #2263 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:02:06 verbose #2264 > > |> optionm'.unwrap
00:02:06 verbose #2265 > > |> sm'.from_std_string
00:02:06 verbose #2266 > > |> sm'.deserialize
00:02:06 verbose #2267 > > |> resultm.unwrap'
00:02:06 verbose #2268 > > |> fun result =>
00:02:06 verbose #2269 > >     result
00:02:06 verbose #2270 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:02:06 verbose #2271 > >     |> optionm'.unwrap
00:02:06 verbose #2272 > >     |> sm'.from_std_string
00:02:06 verbose #2273 > >     |> _assert_eq "ts"
00:02:06 verbose #2274 > >     result
00:02:06 verbose #2275 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:02:06 verbose #2276 > >     |> optionm'.unwrap
00:02:06 verbose #2277 > >     |> sm'.from_std_string
00:02:06 verbose #2278 > >     |> _assert_eq "-3"
00:02:06 verbose #2279 > >
00:02:06 verbose #2280 > > disposable |> use |> ignore
00:03:10 verbose #2281 > >
00:03:10 verbose #2282 > > ╭─[ 1.07m - return value ]─────────────────────────────────────────────────────╮
00:03:10 verbose #2283 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:03:10 verbose #2284 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_3f293866 │
00:03:10 verbose #2285 > > │ ffea74d062932f438bb741d1b576cea14525324f37307512e587d91d\c6422374-71e4-07d4- │
00:03:10 verbose #2286 > > │ 0ba4-c3084b24fbba }                                                          │
00:03:10 verbose #2287 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:03:10 verbose #2288 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScrip │
00:03:10 verbose #2289 > > │ t\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8 }         │
00:03:10 verbose #2290 > > │ 00:00:00   debug #3 spiral_builder.process_typescript / { version =    │
00:03:10 verbose #2291 > > │ US42_1 }                                                                     │
00:03:10 verbose #2292 > > │ 00:00:00   debug #4 runtime.execute_with_options / { file_name =       │
00:03:10 verbose #2293 > > │ dotnet; arguments = [                                                        │
00:03:10 verbose #2294 > > │     "fable",                                                                 │
00:03:10 verbose #2295 > > │                                                                              │
00:03:10 verbose #2296 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:03:10 verbose #2297 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:03:10 verbose #2298 > > │ uilder.fsproj",                                                              │
00:03:10 verbose #2299 > > │     "--optimize",                                                            │
00:03:10 verbose #2300 > > │     "--lang",                                                                │
00:03:10 verbose #2301 > > │     "ts",                                                                    │
00:03:10 verbose #2302 > > │     "--extension",                                                           │
00:03:10 verbose #2303 > > │     ".ts",                                                                   │
00:03:10 verbose #2304 > > │     "--outDir",                                                              │
00:03:10 verbose #2305 > > │                                                                              │
00:03:10 verbose #2306 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\T │
00:03:10 verbose #2307 > > │ ypeScript\\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8" │
00:03:10 verbose #2308 > > │ ,                                                                            │
00:03:10 verbose #2309 > > │     "--define",                                                              │
00:03:10 verbose #2310 > > │     "_WINDOWS",                                                              │
00:03:10 verbose #2311 > > │ ]; options = { command = dotnet fable                                        │
00:03:10 verbose #2312 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:03:10 verbose #2313 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:03:10 verbose #2314 > > │ uilder.fsproj" --optimize --lang ts --extension .ts --outDir                 │
00:03:10 verbose #2315 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScri │
00:03:10 verbose #2316 > > │ pt\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8"         │
00:03:10 verbose #2317 > > │ --define                                                                     │
00:03:10 verbose #2318 > > │ _WIN...pps\vscode-insiders\current\bin;C:\Users\i574n\scoop\apps\python\curr │
00:03:10 verbose #2319 > > │ ent\Scripts;C:\Users\i574n\scoop\apps\python\current\.;C:\Users\i574n\scoop\ │
00:03:10 verbose #2320 > > │ apps\elixir\current\bin;C:\Users\i574n\scoop\apps\rustup\current\.cargo\bin; │
00:03:10 verbose #2321 > > │ C:\Users\i574n\scoop\apps\latex\current\texmfs\install\miktex\bin\x64;C:\Use │
00:03:10 verbose #2322 > > │ rs\i574n\scoop\apps\dotnet-sdk-preview\current;C:\Users\i574n\scoop\apps\dot │
00:03:10 verbose #2323 > > │ net-sdk\current;C:\Users\i574n\scoop\apps\gsudo\current;C:\Users\i574n\scoop │
00:03:10 verbose #2324 > > │ \apps\python\current;C:\Users\i574n\scoop\apps\nircmd\current;C:\Users\i574n │
00:03:10 verbose #2325 > > │ \AppData\Local\Microsoft\WindowsApps;C:\Users\i574n/scoop/buckets/mold/home/ │
00:03:10 verbose #2326 > > │ windows/path;C:\Users\i574n/scoop/persist/rustup/.cargo/bin;C:\Users\i574n/s │
00:03:10 verbose #2327 > > │ coop/apps/nvm/current/nodejs/nodejs;C:\Users\i574n/scoop/apps/cygwin/current │
00:03:10 verbose #2328 > > │ /root/bin;C:\Users\i574n\AppData\Local\Programs\Microsoft VS                 │
00:03:10 verbose #2329 > > │ Code\bin;C:\Users\i574n\AppData\Local\Microsoft\WindowsApps;C:\Users\i574n\. │
00:03:10 verbose #2330 > > │ bun\bin;C:\Users\i574n\.dotnet\tools;C:\Users\i574n\scoop\shims;C:\Users\i57 │
00:03:10 verbose #2331 > > │ 4n\.fly\bin;C:\Program                                                       │
00:03:10 verbose #2332 > > │ Files\Wasmtime\bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\User │
00:03:10 verbose #2333 > > │ s\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n/.cargo/bin;C:\User │
00:03:10 verbose #2334 > > │ s\i574n/.bun/bin"), ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin =   │
00:03:10 verbose #2335 > > │ None; trace = true; working_directory = None } }                             │
00:03:10 verbose #2336 > > │ 00:00:01 verbose #19 > -3                                              │
00:03:10 verbose #2337 > > │ 00:00:01 verbose #20 runtime.execute_with_options / result / {         │
00:03:10 verbose #2338 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:03:10 verbose #2339 > > │ __assert_eq / actual: "ts" / expected: "ts"                                  │
00:03:10 verbose #2340 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:03:10 verbose #2341 > > │                                                                              │
00:03:10 verbose #2342 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #2343 > >
00:03:10 verbose #2344 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #2345 > > //// test
00:03:10 verbose #2346 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:03:10 verbose #2347 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:03:10 verbose #2348 > >
00:03:10 verbose #2349 > > inl file_name = "main.fs"
00:03:10 verbose #2350 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:03:10 verbose #2351 > >
00:03:10 verbose #2352 > > inl temp_dir, disposable =
00:03:10 verbose #2353 > >     (file_name, code)
00:03:10 verbose #2354 > >     |> sm'.format_debug
00:03:10 verbose #2355 > >     |> crypto.hash_text
00:03:10 verbose #2356 > >     |> file_system.create_temp_dir'
00:03:10 verbose #2357 > > inl fs_path = temp_dir </> file_name
00:03:10 verbose #2358 > >
00:03:10 verbose #2359 > > code |> file_system.write_all_text fs_path
00:03:10 verbose #2360 > >
00:03:10 verbose #2361 > > get_command ()
00:03:10 verbose #2362 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:03:10 verbose #2363 > > \\\"python\\\""' |> runtime.split_args |> resultm.get)
00:03:10 verbose #2364 > > |> run Verbose
00:03:10 verbose #2365 > > |> async.block_on
00:03:10 verbose #2366 > > |> resultm.unwrap'
00:03:10 verbose #2367 > > |> sm'.deserialize
00:03:10 verbose #2368 > > |> resultm.unwrap'
00:03:10 verbose #2369 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:03:10 verbose #2370 > > |> optionm'.unwrap
00:03:10 verbose #2371 > > |> sm'.from_std_string
00:03:10 verbose #2372 > > |> sm'.deserialize
00:03:10 verbose #2373 > > |> resultm.unwrap'
00:03:10 verbose #2374 > > |> fun result =>
00:03:10 verbose #2375 > >     result
00:03:10 verbose #2376 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:03:10 verbose #2377 > >     |> optionm'.unwrap
00:03:10 verbose #2378 > >     |> sm'.from_std_string
00:03:10 verbose #2379 > >     |> _assert_eq "py"
00:03:10 verbose #2380 > >     result
00:03:10 verbose #2381 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:03:10 verbose #2382 > >     |> optionm'.unwrap
00:03:10 verbose #2383 > >     |> sm'.from_std_string
00:03:10 verbose #2384 > >     |> _assert_eq "-3"
00:03:10 verbose #2385 > >
00:03:10 verbose #2386 > > disposable |> use |> ignore
00:04:15 verbose #2387 > >
00:04:15 verbose #2388 > > ╭─[ 1.08m - return value ]─────────────────────────────────────────────────────╮
00:04:15 verbose #2389 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:04:15 verbose #2390 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_9763f6db │
00:04:15 verbose #2391 > > │ 1b5a0a77afb8b172db441de90079f22bf774fb94135a71eaf735876f\c6422374-71e4-07d4- │
00:04:15 verbose #2392 > > │ 0ba4-c3084b24fbba }                                                          │
00:04:15 verbose #2393 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:04:15 verbose #2394 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:04:15 verbose #2395 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce }             │
00:04:15 verbose #2396 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:04:15 verbose #2397 > > │ dotnet; arguments = [                                                        │
00:04:15 verbose #2398 > > │     "fable",                                                                 │
00:04:15 verbose #2399 > > │                                                                              │
00:04:15 verbose #2400 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:04:15 verbose #2401 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:04:15 verbose #2402 > > │ er.fsproj",                                                                  │
00:04:15 verbose #2403 > > │     "--optimize",                                                            │
00:04:15 verbose #2404 > > │     "--lang",                                                                │
00:04:15 verbose #2405 > > │     "py",                                                                    │
00:04:15 verbose #2406 > > │     "--extension",                                                           │
00:04:15 verbose #2407 > > │     ".py",                                                                   │
00:04:15 verbose #2408 > > │     "--outDir",                                                              │
00:04:15 verbose #2409 > > │                                                                              │
00:04:15 verbose #2410 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:04:15 verbose #2411 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce",    │
00:04:15 verbose #2412 > > │     "--define",                                                              │
00:04:15 verbose #2413 > > │     "_WINDOWS",                                                              │
00:04:15 verbose #2414 > > │ ]; options = { command = dotnet fable                                        │
00:04:15 verbose #2415 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:04:15 verbose #2416 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:04:15 verbose #2417 > > │ er.fsproj" --optimize --lang py --extension .py --outDir                     │
00:04:15 verbose #2418 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:04:15 verbose #2419 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce" --define    │
00:04:15 verbose #2420 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:04:15 verbose #2421 > > │ ])); on_line = None; stdin = None; ... issues run `dotnet fable clean` or    │
00:04:15 verbose #2422 > > │ try `--noCache` option.                                                      │
00:04:15 verbose #2423 > > │ 00:00:01 verbose #11 > Project and references (1 source files) parsed  │
00:04:15 verbose #2424 > > │ in 203ms                                                                     │
00:04:15 verbose #2425 > > │ 00:00:01 verbose #12 >                                                 │
00:04:15 verbose #2426 > > │ 00:00:01 verbose #13 > Skipped compilation because all generated files │
00:04:15 verbose #2427 > > │ are up-to-date!                                                              │
00:04:15 verbose #2428 > > │ 00:00:01 verbose #14 runtime.execute_with_options / result / {         │
00:04:15 verbose #2429 > > │ exit_code = 0; std_trace_length = 536 }                                      │
00:04:15 verbose #2430 > > │ 00:00:01   debug #15 spiral_builder.process_python / { new_code_path = │
00:04:15 verbose #2431 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:04:15 verbose #2432 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_builde │
00:04:15 verbose #2433 > > │ r.py }                                                                       │
00:04:15 verbose #2434 > > │ 00:00:01   debug #16 runtime.execute_with_options / { file_name =      │
00:04:15 verbose #2435 > > │ python; arguments = [                                                        │
00:04:15 verbose #2436 > > │                                                                              │
00:04:15 verbose #2437 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:04:15 verbose #2438 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\\spi │
00:04:15 verbose #2439 > > │ ral_builder.py",                                                             │
00:04:15 verbose #2440 > > │ ]; options = { command = python                                              │
00:04:15 verbose #2441 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:04:15 verbose #2442 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_build │
00:04:15 verbose #2443 > > │ er.py"; cancellation_token = None; environment_variables = Array(MutCell([   │
00:04:15 verbose #2444 > > │ ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None; trace = true;   │
00:04:15 verbose #2445 > > │ working_directory = None } }                                                 │
00:04:15 verbose #2446 > > │ 00:00:01 verbose #17 > -3                                              │
00:04:15 verbose #2447 > > │ 00:00:01 verbose #18 runtime.execute_with_options / result / {         │
00:04:15 verbose #2448 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:04:15 verbose #2449 > > │ __assert_eq / actual: "py" / expected: "py"                                  │
00:04:15 verbose #2450 > > │ __assert_eq / actual: "-3" / expected: "-3"                                  │
00:04:15 verbose #2451 > > │                                                                              │
00:04:15 verbose #2452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:15 verbose #2453 > >
00:04:15 verbose #2454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:15 verbose #2455 > > //// test
00:04:15 verbose #2456 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io rand rayon
00:04:15 verbose #2457 > > regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:04:15 verbose #2458 > >
00:04:15 verbose #2459 > > inl file_name = "test.dib"
00:04:15 verbose #2460 > > inl code =
00:04:15 verbose #2461 > >
00:04:15 verbose #2462 > > "#!meta\n\n{\"kernelInfo\":{\"defaultKernelName\":\"fsharp\",\"items\":[[]]}}\n\
00:04:15 verbose #2463 > > n#!fsharp\n\n3 - 6\n"
00:04:15 verbose #2464 > >
00:04:15 verbose #2465 > > inl temp_dir, disposable =
00:04:15 verbose #2466 > >     (file_name, code)
00:04:15 verbose #2467 > >     |> sm'.format_debug
00:04:15 verbose #2468 > >     |> crypto.hash_text
00:04:15 verbose #2469 > >     |> file_system.create_temp_dir'
00:04:15 verbose #2470 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:04:15 verbose #2471 > >
00:04:15 verbose #2472 > > code
00:04:15 verbose #2473 > > |> file_system.write_all_text path
00:04:15 verbose #2474 > >
00:04:15 verbose #2475 > > get_command ()
00:04:15 verbose #2476 > > |> runtime.command_get_matches_from ($'$"_ dib -p {!path}"' |>
00:04:15 verbose #2477 > > runtime.split_args |> resultm.get)
00:04:15 verbose #2478 > > |> run Verbose
00:04:15 verbose #2479 > > |> async.block_on
00:04:15 verbose #2480 > > |> resultm.unwrap'
00:04:15 verbose #2481 > > |> __assert_string_contains Silent "<pre>-3 "
00:04:15 verbose #2482 > >
00:04:15 verbose #2483 > > $'$"{!path}.html"'
00:04:15 verbose #2484 > > |> file_system.read_all_text
00:04:15 verbose #2485 > > |> __assert_string_contains Silent "\"cell-id=1\""
00:04:15 verbose #2486 > >
00:04:15 verbose #2487 > > disposable |> use |> ignore
00:05:31 verbose #2488 > >
00:05:31 verbose #2489 > > ╭─[ 1.25m - return value ]─────────────────────────────────────────────────────╮
00:05:31 verbose #2490 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:05:31 verbose #2491 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c8b0c8ec │
00:05:31 verbose #2492 > > │ 29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962\af524e22-8e9a-5d18- │
00:05:31 verbose #2493 > > │ 99ed-bd86e1b74623 }                                                          │
00:05:31 verbose #2494 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name =       │
00:05:31 verbose #2495 > > │ dotnet; arguments = [                                                        │
00:05:31 verbose #2496 > > │     "repl",                                                                  │
00:05:31 verbose #2497 > > │     "--exit-after-run",                                                      │
00:05:31 verbose #2498 > > │     "--run",                                                                 │
00:05:31 verbose #2499 > > │                                                                              │
00:05:31 verbose #2500 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2501 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2502 > > │ -99ed-bd86e1b74623/test.dib",                                                │
00:05:31 verbose #2503 > > │     "--output-path",                                                         │
00:05:31 verbose #2504 > > │                                                                              │
00:05:31 verbose #2505 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2506 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2507 > > │ -99ed-bd86e1b74623/test.dib.ipynb",                                          │
00:05:31 verbose #2508 > > │ ]; options = { command = dotnet repl --exit-after-run --run                  │
00:05:31 verbose #2509 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2510 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2511 > > │ -99ed-bd86e1b74623/test.dib" --output-path                                   │
00:05:31 verbose #2512 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2513 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2514 > > │ -99ed-bd86e1b74623/test.dib.ipynb"; cancellation_token = None;               │
00:05:31 verbose #2515 > > │ environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"),           │
00:05:31 verbose #2516 > > │ ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false;      │
00:05:31 verbose #2517 > > │ working_directory = None } }                                                 │
00:05:31 verbose #2518 > > │ >                                                                            │
00:05:31 verbose #2519 > > │ > ── fsharp                                                                  │
00:05:31 verbose #2520 > > │ ──────────────────────────────────────────────────────────────────...ime.exe │
00:05:31 verbose #2521 > > │ cute_with_options / result / { exit_code = 0; std_trace_length = 915 }       │
00:05:31 verbose #2522 > > │ 00:00:11   debug #10 spiral_builder.run / dib / jupyter nbconvert / {  │
00:05:31 verbose #2523 > > │ exit_code = 0; jupyter_result_length = 915 }                                 │
00:05:31 verbose #2524 > > │ 00:00:11   debug #11 runtime.execute_with_options / { file_name =      │
00:05:31 verbose #2525 > > │ pwsh; arguments = [                                                          │
00:05:31 verbose #2526 > > │     "-c",                                                                    │
00:05:31 verbose #2527 > > │     "$counter = 1; $path =                                                   │
00:05:31 verbose #2528 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2529 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2530 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:05:31 verbose #2531 > > │ '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |     │
00:05:31 verbose #2532 > > │ Set-Content $path",                                                          │
00:05:31 verbose #2533 > > │ ]; options = { command = pwsh -c "$counter = 1; $path =                      │
00:05:31 verbose #2534 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_c8b0c8e │
00:05:31 verbose #2535 > > │ c29f2a189c145d573c261d7bbdc037a4272cf42036e516452d2569962/af524e22-8e9a-5d18 │
00:05:31 verbose #2536 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:05:31 verbose #2537 > > │ '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |       │
00:05:31 verbose #2538 > > │ Set-Content $path"; cancellation_token = None; environment_variables =       │
00:05:31 verbose #2539 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:05:31 verbose #2540 > > │ working_directory = None } }                                                 │
00:05:31 verbose #2541 > > │ 00:00:11 verbose #12 runtime.execute_with_options / result / {         │
00:05:31 verbose #2542 > > │ exit_code = 0; std_trace_length = 0 }                                        │
00:05:31 verbose #2543 > > │ 00:00:11   debug #13 spiral_builder.run / dib / html cell ids / {      │
00:05:31 verbose #2544 > > │ exit_code = 0; pwsh_replace_html_result_length = 0 }                         │
00:05:31 verbose #2545 > > │ 00:00:11   debug #14 spiral_builder.run / dib / { exit_code = 0;       │
00:05:31 verbose #2546 > > │ result_length = 3897 }                                                       │
00:05:31 verbose #2547 > > │                                                                              │
00:05:31 verbose #2548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:31 verbose #2549 > >
00:05:31 verbose #2550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:31 verbose #2551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:31 verbose #2552 > > │ ## tests                                                                     │
00:05:31 verbose #2553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:31 verbose #2554 > >
00:05:31 verbose #2555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:31 verbose #2556 > > inl tests () =
00:05:31 verbose #2557 > >     testing.run_tests {
00:05:31 verbose #2558 > >         verify_app = get_command >> runtime.command_debug_assert
00:05:31 verbose #2559 > >     }
00:05:31 verbose #2560 > >
00:05:31 verbose #2561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:31 verbose #2562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:31 verbose #2563 > > │ ## main                                                                      │
00:05:31 verbose #2564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:31 verbose #2565 > >
00:05:31 verbose #2566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:31 verbose #2567 > > ///! _
00:05:31 verbose #2568 > >
00:05:31 verbose #2569 > > inl main (args : array_base string) =
00:05:31 verbose #2570 > >     inl trace_state = get_trace_state_or_init None
00:05:31 verbose #2571 > >
00:05:31 verbose #2572 > >     trace Debug
00:05:31 verbose #2573 > >         fun () => $'$"spiral_builder.main"'
00:05:31 verbose #2574 > >         fun () => { args }
00:05:31 verbose #2575 > >
00:05:31 verbose #2576 > >     inl command = get_command ()
00:05:31 verbose #2577 > >     inl arg_matches = command |> runtime.command_get_matches
00:05:31 verbose #2578 > >
00:05:31 verbose #2579 > >     inl trace_state_level = trace_state.level
00:05:31 verbose #2580 > >
00:05:31 verbose #2581 > >     inl result =
00:05:31 verbose #2582 > >         arg_matches
00:05:31 verbose #2583 > >         |> run *trace_state_level
00:05:31 verbose #2584 > >         |> async.block_on
00:05:31 verbose #2585 > >         |> resultm.unwrap'
00:05:31 verbose #2586 > >
00:05:31 verbose #2587 > >     if *trace_state_level = Info
00:05:31 verbose #2588 > >     then result |> console.write_line
00:05:31 verbose #2589 > >
00:05:31 verbose #2590 > >     0i32
00:05:31 verbose #2591 > >
00:05:31 verbose #2592 > > inl main () =
00:05:31 verbose #2593 > >     $'let tests () = !tests ()' : ()
00:05:31 verbose #2594 > >     $'let main args = !main args' : ()
00:05:48 verbose #2595 > 00:05:47 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 114289 }
00:05:48 verbose #2596 > 00:05:47   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:05:48 verbose #2597 >     "nbconvert",
00:05:48 verbose #2598 >     "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb",
00:05:48 verbose #2599 >     "--to",
00:05:48 verbose #2600 >     "html",
00:05:48 verbose #2601 >     "--HTMLExporter.theme=dark",
00:05:48 verbose #2602 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:50 verbose #2603 > 00:05:49 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb to html
00:05:50 verbose #2604 > 00:05:49 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:50 verbose #2605 > 00:05:49 verbose #7 !   validate(nb)
00:05:54 verbose #2606 > 00:05:53 verbose #8 ! [NbConvertApp] Writing 592686 bytes to c:\home\git\polyglot\apps\spiral\builder\spiral_builder.dib.html
00:05:54 verbose #2607 > 00:05:53 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 677 }
00:05:54 verbose #2608 > 00:05:53   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 677 }
00:05:54 verbose #2609 > 00:05:53   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:05:54 verbose #2610 >     "-c",
00:05:54 verbose #2611 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:05:54 verbose #2612 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:54 verbose #2613 > 00:05:53 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:54 verbose #2614 > 00:05:53   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:54 verbose #2615 > 00:05:53   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 115025 }
00:05:54   debug #2616 runtime.execute_with_options_async / { exit_code = 0; output_length = 122999 }
00:05:54   debug #1 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: spiral_builder.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: spiral_builder.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:01   debug #2 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:01   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:01 verbose #4 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_builder\nopen file_system_operators\nopen rust.rust_operators\n...ain args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:01 verbose #5 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:01   debug #6 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:01   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #28 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07   debug #29 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #30 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07   debug #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:08   debug #34 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:08   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09   debug #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09   debug #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:09   debug #38 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:09   debug #39 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:10   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:10   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:11   debug #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:11   debug #45 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:11   debug #46 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:11   debug #47 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:12   debug #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:12   debug #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:12   debug #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:12   debug #51 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:13   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:13   debug #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:13   debug #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:13   debug #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:14   debug #56 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:14   debug #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:14   debug #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:14   debug #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:15   debug #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:15   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:15   debug #62 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:15   debug #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:16   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:16   debug #65 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:16   debug #66 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:16   debug #67 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:17   debug #68 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:17   debug #69 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:17   debug #70 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...()
        ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:17   debug #71 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...()
        ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure1()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:17   debug #72 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1646281
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.20.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @xdaDaveShaw
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 187ms

Started Fable compilation...

Fable compilation finished in 19087ms

.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(145,0): (145,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1012,0): (1012,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1391,0): (1391,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(414,0): (414,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1300,0): (1300,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4639,0): (4639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1333,0): (1333,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(6776,0): (6776,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11018,0): (11018,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 28.36s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-26021c3efad21c2f.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Program Files\\Wasmtime\\bin;C:\\Program Files\\Perforce\\;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\python\\current\\.;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Program Files\\Wasmtime\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo build --release'

In [ ]:
{ pwsh ../apps/spiral/wasm/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_wasm.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_wasm.dib"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib" --output-path "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #11 > >
00:00:03 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #14 > > │ # spiral_wasm                                                                │
00:00:03 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:06 verbose #16 > >
00:00:06 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:06 verbose #18 > > open rust.rust_operators
00:00:06 verbose #19 > > open rust
00:00:06 verbose #20 > > open sm'_operators
00:00:08 verbose #21 > >
00:00:08 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 verbose #24 > > │ ## spiral_wasm                                                               │
00:00:08 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #26 > >
00:00:08 verbose #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 verbose #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 verbose #29 > > │ ### get_args                                                                 │
00:00:08 verbose #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #31 > >
00:00:08 verbose #32 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #33 > > inl get_args () =
00:00:08 verbose #34 > >     {
00:00:08 verbose #35 > >         exception = "exception", 'e'
00:00:08 verbose #36 > >         trace_level = "trace_level", 't'
00:00:08 verbose #37 > >         wasm = "wasm", 'w'
00:00:08 verbose #38 > >     }
00:00:08 verbose #39 > >
00:00:08 verbose #40 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:08 verbose #41 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:08 verbose #42 > > │ ### get_command                                                              │
00:00:08 verbose #43 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #44 > >
00:00:08 verbose #45 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #46 > > let get_command () =
00:00:08 verbose #47 > >     ##"command"
00:00:08 verbose #48 > >     |> runtime.new_command
00:00:08 verbose #49 > >     |> runtime.command_args_override_self true
00:00:08 verbose #50 > >     |> runtime.command_init_arg (get_args () .exception) (
00:00:08 verbose #51 > >         runtime.arg_action runtime.SetTrue
00:00:08 verbose #52 > >     )
00:00:08 verbose #53 > >     |> runtime.command_init_arg (get_args () .trace_level) (
00:00:08 verbose #54 > >         real runtime.arg_union `trace_level ignore
00:00:08 verbose #55 > >     )
00:00:08 verbose #56 > >     |> runtime.command_init_arg (get_args () .wasm) (
00:00:08 verbose #57 > >         runtime.arg_required true
00:00:08 verbose #58 > >     )
00:00:09 verbose #59 > >
00:00:09 verbose #60 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 verbose #61 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 verbose #62 > > │ ### run                                                                      │
00:00:09 verbose #63 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #64 > >
00:00:09 verbose #65 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #66 > > let rec run (matches : runtime.arg_matches) : async.future_pin (resultm.result'
00:00:09 verbose #67 > > u8 resultm.anyhow_error) =
00:00:09 verbose #68 > >     fun () =>
00:00:09 verbose #69 > >         inl wasm_path =
00:00:09 verbose #70 > >             matches
00:00:09 verbose #71 > >             |> runtime.matches_get_one (get_args () .wasm |> fst)
00:00:09 verbose #72 > >             |> optionm'.unbox
00:00:09 verbose #73 > >             |> optionm.value
00:00:09 verbose #74 > >             |> sm'.from_std_string
00:00:09 verbose #75 > >
00:00:09 verbose #76 > >         trace Verbose (fun () => "spiral_wasm.run") fun () => { wasm_path }
00:00:09 verbose #77 > >
00:00:09 verbose #78 > >         inl wasm = wasm_path |> file_system.read |> resultm.try'
00:00:09 verbose #79 > >
00:00:09 verbose #80 > >         let fn (retry : u8) =
00:00:09 verbose #81 > >             fun () =>
00:00:09 verbose #82 > >                 inl worker = near_workspaces.sandbox_worker () |> resultm.try'
00:00:09 verbose #83 > >
00:00:09 verbose #84 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { retry
00:00:09 verbose #85 > > worker }
00:00:09 verbose #86 > >
00:00:09 verbose #87 > >                 inl contract = worker |> near_workspaces.dev_deploy wasm |>
00:00:09 verbose #88 > > async.await |> resultm.try'
00:00:09 verbose #89 > >
00:00:09 verbose #90 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { retry
00:00:09 verbose #91 > > contract }
00:00:09 verbose #92 > >
00:00:09 verbose #93 > >                 inl result =
00:00:09 verbose #94 > >                     contract
00:00:09 verbose #95 > >                     |> near_workspaces.call "state_main"
00:00:09 verbose #96 > >                     |> near_workspaces.transact
00:00:09 verbose #97 > >                     |> async.await
00:00:09 verbose #98 > >                     |> resultm.try'
00:00:09 verbose #99 > >
00:00:09 verbose #100 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { retry
00:00:09 verbose #101 > > result }
00:00:09 verbose #102 > >
00:00:09 verbose #103 > >                 result
00:00:09 verbose #104 > >                 |> near_workspaces.logs
00:00:09 verbose #105 > >                 |> am'.vec_map sm'.ref_to_std_string
00:00:09 verbose #106 > >                 |> am'.vec_for_each console.write_line
00:00:09 verbose #107 > >
00:00:09 verbose #108 > >                 result |> near_workspaces.print_usd retry
00:00:09 verbose #109 > >
00:00:09 verbose #110 > >                 inl result2 = result |> near_workspaces.into_result
00:00:09 verbose #111 > >
00:00:09 verbose #112 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { result2
00:00:09 verbose #113 > > }
00:00:09 verbose #114 > >
00:00:09 verbose #115 > >                 inl receipt_failures = result |>
00:00:09 verbose #116 > > near_workspaces.receipt_failures
00:00:09 verbose #117 > >                 inl receipt_failures_len = receipt_failures |> am'.vec_len |>
00:00:09 verbose #118 > > i32
00:00:09 verbose #119 > >
00:00:09 verbose #120 > >                 trace Verbose
00:00:09 verbose #121 > >                     fun () => "spiral_wasm.run"
00:00:09 verbose #122 > >                     fun () => { receipt_failures_len receipt_failures }
00:00:09 verbose #123 > >
00:00:09 verbose #124 > >                 inl receipt_outcomes = result |>
00:00:09 verbose #125 > > near_workspaces.receipt_outcomes
00:00:09 verbose #126 > >                 inl receipt_outcomes_len = receipt_outcomes |> am'.vec_len |>
00:00:09 verbose #127 > > i32
00:00:09 verbose #128 > >
00:00:09 verbose #129 > >                 trace Verbose
00:00:09 verbose #130 > >                     fun () => "spiral_wasm.run"
00:00:09 verbose #131 > >                     fun () => { receipt_outcomes_len receipt_outcomes }
00:00:09 verbose #132 > >
00:00:09 verbose #133 > >                 inl json = result |> near_workspaces.json
00:00:09 verbose #134 > >
00:00:09 verbose #135 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { json }
00:00:09 verbose #136 > >
00:00:09 verbose #137 > >                 inl borsh = result |> near_workspaces.borsh
00:00:09 verbose #138 > >
00:00:09 verbose #139 > >                 trace Verbose (fun () => "spiral_wasm.run") fun () => { borsh }
00:00:09 verbose #140 > >
00:00:09 verbose #141 > >                 inl error = { receipt_failures receipt_outcomes_len retry } |>
00:00:09 verbose #142 > > sm'.format
00:00:09 verbose #143 > >                 if receipt_failures_len > 0
00:00:09 verbose #144 > >                 then (Ok (Some error) : _ _ resultm.anyhow_error) |> resultm.box
00:00:09 verbose #145 > >                 elif receipt_outcomes_len > 1
00:00:09 verbose #146 > >                 then (Ok None : _ _ resultm.anyhow_error) |> resultm.box
00:00:09 verbose #147 > >                 else error |> resultm.anyhow_error |> resultm.err
00:00:09 verbose #148 > >             |> async.new_future_move
00:00:09 verbose #149 > >
00:00:09 verbose #150 > >         inl rec loop (retry : u8) =
00:00:09 verbose #151 > >             inl max = 30
00:00:09 verbose #152 > >             inl init () =
00:00:09 verbose #153 > >                 fun () =>
00:00:09 verbose #154 > >                     retry
00:00:09 verbose #155 > >                 |> async.new_future_move
00:00:09 verbose #156 > >             if retry >= max then
00:00:09 verbose #157 > >                 fun () =>
00:00:09 verbose #158 > >                     init ()
00:00:09 verbose #159 > >                     |> async.await
00:00:09 verbose #160 > >                     |> Error
00:00:09 verbose #161 > >                 |> async.new_future_move
00:00:09 verbose #162 > >             else
00:00:09 verbose #163 > >                 inl result =
00:00:09 verbose #164 > >                     fn retry
00:00:09 verbose #165 > >                     |> async.await
00:00:09 verbose #166 > >                     |> resultm.map_error' sm'.format'
00:00:09 verbose #167 > >                     |> resultm.unbox
00:00:09 verbose #168 > >                 match result with
00:00:09 verbose #169 > >                 | Ok (None) =>
00:00:09 verbose #170 > >                     fun () =>
00:00:09 verbose #171 > >                         init ()
00:00:09 verbose #172 > >                         |> async.await
00:00:09 verbose #173 > >                         |> Ok
00:00:09 verbose #174 > >                     |> async.new_future_move
00:00:09 verbose #175 > >                 | Ok (Some error) =>
00:00:09 verbose #176 > >                     trace Critical (fun () => "spiral_wasm.run / Ok (Some
00:00:09 verbose #177 > > error)") fun () => { retry error }
00:00:09 verbose #178 > >                     fun () =>
00:00:09 verbose #179 > >                         init ()
00:00:09 verbose #180 > >                         |> async.await
00:00:09 verbose #181 > >                         |> Error
00:00:09 verbose #182 > >                     |> async.new_future_move
00:00:09 verbose #183 > >                 | Error error =>
00:00:09 verbose #184 > >                     trace Warning (fun () => "spiral_wasm.run / Error error")
00:00:09 verbose #185 > > fun () => { retry error }
00:00:09 verbose #186 > >                     loop (retry + 1)
00:00:09 verbose #187 > >         inl retries =
00:00:09 verbose #188 > >             loop 1
00:00:09 verbose #189 > >             |> async.await
00:00:09 verbose #190 > >
00:00:09 verbose #191 > >         trace Verbose (fun () => "spiral_wasm.run") fun () => { retries }
00:00:09 verbose #192 > >
00:00:09 verbose #193 > >         match retries with
00:00:09 verbose #194 > >         | Ok retries => Ok retries |> resultm.box
00:00:09 verbose #195 > >         | Error retries => { retries } |> sm'.format |> resultm.anyhow_error |>
00:00:09 verbose #196 > > resultm.err
00:00:09 verbose #197 > >
00:00:09 verbose #198 > >     |> async.new_future_move
00:00:09 verbose #199 > >
00:00:09 verbose #200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 verbose #201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 verbose #202 > > │ ### main                                                                     │
00:00:09 verbose #203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #204 > >
00:00:09 verbose #205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #206 > > ///! _
00:00:09 verbose #207 > >
00:00:09 verbose #208 > > inl main (args : array_base string) =
00:00:09 verbose #209 > >     inl command = get_command ()
00:00:09 verbose #210 > >     inl arg_matches = command |> runtime.command_get_matches
00:00:09 verbose #211 > >
00:00:09 verbose #212 > >     inl trace_level =
00:00:09 verbose #213 > >         arg_matches
00:00:09 verbose #214 > >         |> runtime.matches_get_one (get_args () .trace_level |> fst)
00:00:09 verbose #215 > >         |> optionm'.unbox
00:00:09 verbose #216 > >         |> optionm.map (
00:00:09 verbose #217 > >             sm'.from_std_string
00:00:09 verbose #218 > >             >> reflection.union_try_pick
00:00:09 verbose #219 > >         )
00:00:09 verbose #220 > >         |> optionm'.flatten
00:00:09 verbose #221 > >         |> optionm'.default_value Verbose
00:00:09 verbose #222 > >
00:00:09 verbose #223 > >     inl trace_state = get_trace_state_or_init (Some trace_level)
00:00:09 verbose #224 > >
00:00:09 verbose #225 > >     trace Verbose
00:00:09 verbose #226 > >         fun () => $'$"spiral_wasm.main"'
00:00:09 verbose #227 > >         fun () => { args }
00:00:09 verbose #228 > >
00:00:09 verbose #229 > >     inl exception : bool =
00:00:09 verbose #230 > >         arg_matches
00:00:09 verbose #231 > >         |> runtime.matches_get_flag (get_args () .exception |> fst)
00:00:09 verbose #232 > >
00:00:09 verbose #233 > >     inl result =
00:00:09 verbose #234 > >         arg_matches
00:00:09 verbose #235 > >         |> run
00:00:09 verbose #236 > >         |> async.block_on
00:00:09 verbose #237 > >         |> resultm.map_error' sm'.format'
00:00:09 verbose #238 > >
00:00:09 verbose #239 > >     match result |> resultm.ok' |> optionm'.unbox with
00:00:09 verbose #240 > >     | Some retries when exception => "spiral_wasm.main / exception=true" |>
00:00:09 verbose #241 > > resultm.err |> resultm.unwrap'
00:00:09 verbose #242 > >     | None when exception => ()
00:00:09 verbose #243 > >     | Some retries => retries |> ignore
00:00:09 verbose #244 > >     | None => result |> resultm.unwrap' |> ignore
00:00:09 verbose #245 > >
00:00:09 verbose #246 > >     0i32
00:00:09 verbose #247 > >
00:00:09 verbose #248 > > inl main () =
00:00:09 verbose #249 > >     $'let main args = !main args' : ()
00:00:25 verbose #250 > 00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 8786 }
00:00:25 verbose #251 > 00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:25 verbose #252 >     "nbconvert",
00:00:25 verbose #253 >     "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb",
00:00:25 verbose #254 >     "--to",
00:00:25 verbose #255 >     "html",
00:00:25 verbose #256 >     "--HTMLExporter.theme=dark",
00:00:25 verbose #257 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 verbose #258 > 00:00:26 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.ipynb to html
00:00:27 verbose #259 > 00:00:26 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:27 verbose #260 > 00:00:26 verbose #7 !   validate(nb)
00:00:28 verbose #261 > 00:00:27 verbose #8 ! [NbConvertApp] Writing 302458 bytes to c:\home\git\polyglot\apps\spiral\wasm\spiral_wasm.dib.html
00:00:29 verbose #262 > 00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 665 }
00:00:29 verbose #263 > 00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 665 }
00:00:29 verbose #264 > 00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:00:29 verbose #265 >     "-c",
00:00:29 verbose #266 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:00:29 verbose #267 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 verbose #268 > 00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:29 verbose #269 > 00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29 verbose #270 > 00:00:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 9510 }
00:00:29   debug #271 runtime.execute_with_options_async / { exit_code = 0; output_length = 12739 }
00:00:29   debug #1 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_wasm.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: spiral_wasm.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: spiral_wasm.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:01   debug #2 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:01   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:01 verbose #4 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_wasm\nopen rust.rust_operators\nopen rust\nopen sm\u0027_operat...s = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.spi"}} / result:
00:00:01 verbose #5 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/wasm/spiral_wasm.spi"}} / result:
00:00:01   debug #6 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:01   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:02   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:02   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:03   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:03   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:03   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:04   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:04   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:04   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:04   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:05   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:05   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:05   debug #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:05   debug #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:06   debug #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:06   debug #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:06   debug #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:06   debug #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:07   debug #28 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:07   debug #29 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:07   debug #30 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:07   debug #31 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:08   debug #32 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:08   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:08   debug #34 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:08   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:09   debug #36 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:09   debug #37 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:09   debug #38 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:09   debug #39 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:10   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:10   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:10   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:10   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:11   debug #44 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:11   debug #45 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:11   debug #46 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:11   debug #47 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:12   debug #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:12   debug #49 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:12   debug #50 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:12   debug #51 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:13   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:13   debug #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:13   debug #54 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:13   debug #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:14   debug #56 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:14   debug #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:14   debug #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:14   debug #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:15   debug #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:15   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:15   debug #62 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:15   debug #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:16   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...          Fable.Core.RustInterop.emitRustExpr v973 v974 
            ()
    0
let v0 : ((string []) -> int32) = closure0()
let main args = v0 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_wasm.spi
00:00:16   debug #65 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit...          Fable.Core.RustInterop.emitRustExpr v973 v974 
            ()
    0
let v0 : ((string []) -> int32) = closure0()
let main args = v0 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_wasm.spi
00:00:16   debug #66 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:01   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_wasm / hash:  / code.Length: 1918351
targetDir: C:\home\git\polyglot\target\Builder\spiral_wasm
Fable 4.20.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @scitesy
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_wasm\spiral_wasm.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 219ms

Started Fable compilation...

Fable compilation finished in 18950ms

.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(145,0): (145,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1391,0): (1391,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1012,0): (1012,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1300,0): (1300,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(414,0): (414,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4639,0): (4639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1333,0): (1333,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(6776,0): (6776,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11018,0): (11018,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling fable_library_rust v0.1.0 (/mnt/c/home/git/polyglot/lib/rust/fable/fable_modules/fable-library-rust)
   Compiling spiral_wasm v0.0.1 (/mnt/c/home/git/polyglot/apps/spiral/wasm)
    Finished `release` profile [optimized] target(s) in 2m 53s
In [ ]:
{ pwsh ../lib/math/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "1"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/lib/math/math.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/lib/math/math.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/math/math.dib" --output-path "c:/home/git/polyglot/lib/math/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ # math                                                                       │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #16 > >
00:00:09 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #18 > > open testing
00:00:09 verbose #19 > > open rust.rust_operators
00:00:09 verbose #20 > > open rust
00:00:10 verbose #21 > >
00:00:10 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 verbose #24 > > │ ## complex                                                                   │
00:00:10 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #26 > >
00:00:10 verbose #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #28 > > nominal complex t =
00:00:10 verbose #29 > >     `(
00:00:10 verbose #30 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:10 verbose #31 > > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]]\n#endif\ntype
00:00:10 verbose #32 > > num_complex_Complex<'T> = class end"
00:00:10 verbose #33 > >         $'' : $'num_complex_Complex<`t>'
00:00:10 verbose #34 > >     )
00:00:10 verbose #35 > >
00:00:10 verbose #36 > > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:10 verbose #37 > >     !\\((re, im), $'"num_complex::Complex::new($0, $1)"')
00:00:11 verbose #38 > >
00:00:11 verbose #39 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #40 > > //// test
00:00:11 verbose #41 > > ///! rust -d num-complex
00:00:11 verbose #42 > >
00:00:11 verbose #43 > > complex (0f64, 0f64)
00:00:11 verbose #44 > > |> sm'.format'
00:00:11 verbose #45 > > |> sm'.from_std_string
00:00:11 verbose #46 > > |> _assert_eq "0+0i"
00:00:18 verbose #47 > >
00:00:18 verbose #48 > > ╭─[ 7.08s - return value ]─────────────────────────────────────────────────────╮
00:00:18 verbose #49 > > │ __assert_eq / actual: "0+0i" / expected: "0+0i"                              │
00:00:18 verbose #50 > > │                                                                              │
00:00:18 verbose #51 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #52 > >
00:00:18 verbose #53 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #54 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #55 > > │ ## re                                                                        │
00:00:18 verbose #56 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #57 > >
00:00:18 verbose #58 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #59 > > inl re forall t. (c : complex t) : t =
00:00:18 verbose #60 > >     !\\(c, $'"$0.re"')
00:00:18 verbose #61 > >
00:00:18 verbose #62 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #63 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #64 > > │ ## im                                                                        │
00:00:18 verbose #65 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #66 > >
00:00:18 verbose #67 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #68 > > inl im forall t. (c : complex t) : t =
00:00:18 verbose #69 > >     !\\(c, $'"$0.im"')
00:00:19 verbose #70 > >
00:00:19 verbose #71 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #72 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #73 > > │ ## complex_unbox                                                             │
00:00:19 verbose #74 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #75 > >
00:00:19 verbose #76 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #77 > > inl complex_unbox forall t. (c : complex t) =
00:00:19 verbose #78 > >     re c, im c
00:00:20 verbose #79 > >
00:00:20 verbose #80 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #81 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #82 > > │ ## (~.^)                                                                     │
00:00:20 verbose #83 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #84 > >
00:00:20 verbose #85 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #86 > > inl (~.^) c = complex c
00:00:21 verbose #87 > >
00:00:21 verbose #88 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #89 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #90 > > │ ## complex_eq                                                                │
00:00:21 verbose #91 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #92 > >
00:00:21 verbose #93 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #94 > > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:21 verbose #95 > >     !\\((a, b), $'"$0 == $1"')
00:00:21 verbose #96 > >
00:00:21 verbose #97 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #98 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #99 > > │ ## (.=)                                                                      │
00:00:21 verbose #100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #101 > >
00:00:21 verbose #102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #103 > > inl (.=) a b = complex_eq a b
00:00:22 verbose #104 > >
00:00:22 verbose #105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #107 > > │ ## equable complex                                                           │
00:00:22 verbose #108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #109 > >
00:00:22 verbose #110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #111 > > instance equable complex t = complex_eq
00:00:22 verbose #112 > >
00:00:22 verbose #113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #115 > > │ ## complex_add                                                               │
00:00:22 verbose #116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #117 > >
00:00:22 verbose #118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #119 > > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:22 verbose #120 > >     !\\((a, b), $'"$0 + $1"')
00:00:23 verbose #121 > >
00:00:23 verbose #122 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #123 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #124 > > │ ## (.+)                                                                      │
00:00:23 verbose #125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #126 > >
00:00:23 verbose #127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #128 > > inl (.+) a b = complex_add a b
00:00:23 verbose #129 > >
00:00:23 verbose #130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #132 > > │ ## complex_sub                                                               │
00:00:23 verbose #133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #134 > >
00:00:23 verbose #135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #136 > > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:23 verbose #137 > >     !\\((a, b), $'"$0 - $1"')
00:00:24 verbose #138 > >
00:00:24 verbose #139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #141 > > │ ## (.-)                                                                      │
00:00:24 verbose #142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #143 > >
00:00:24 verbose #144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #145 > > inl (.-) a b = complex_sub a b
00:00:24 verbose #146 > >
00:00:24 verbose #147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #149 > > │ ## complex_mult                                                              │
00:00:24 verbose #150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #151 > >
00:00:24 verbose #152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #153 > > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:24 verbose #154 > >     !\\((a, b), $'"$0 * $1"')
00:00:25 verbose #155 > >
00:00:25 verbose #156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #158 > > │ ## (.*)                                                                      │
00:00:25 verbose #159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #160 > >
00:00:25 verbose #161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #162 > > inl (.*) a b = complex_mult a b
00:00:25 verbose #163 > >
00:00:25 verbose #164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #166 > > │ ## complex_div                                                               │
00:00:25 verbose #167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #168 > >
00:00:25 verbose #169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #170 > > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:25 verbose #171 > >     !\\((a, b), $'"$0 / $1"')
00:00:26 verbose #172 > >
00:00:26 verbose #173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #175 > > │ ## (./)                                                                      │
00:00:26 verbose #176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #177 > >
00:00:26 verbose #178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #179 > > inl (./) a b = complex_div a b
00:00:26 verbose #180 > >
00:00:26 verbose #181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #183 > > │ ## powc                                                                      │
00:00:26 verbose #184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #185 > >
00:00:26 verbose #186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #187 > > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:26 verbose #188 > >     !\\((c, s), $'"num_complex::Complex::powc($0, $1)"')
00:00:27 verbose #189 > >
00:00:27 verbose #190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #192 > > │ ## (.**)                                                                     │
00:00:27 verbose #193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #194 > >
00:00:27 verbose #195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #196 > > inl (.**) a b = powc b a
00:00:27 verbose #197 > >
00:00:27 verbose #198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #200 > > │ ## complex_sin                                                               │
00:00:27 verbose #201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #202 > >
00:00:27 verbose #203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #204 > > inl complex_sin forall t. (c : complex t) : complex t =
00:00:27 verbose #205 > >     !\\(c, $'"$0.sin()"')
00:00:28 verbose #206 > >
00:00:28 verbose #207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 verbose #208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 verbose #209 > > │ ## conj                                                                      │
00:00:28 verbose #210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #211 > >
00:00:28 verbose #212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 verbose #213 > > inl conj forall t. (c : complex t) : complex t =
00:00:28 verbose #214 > >     !\\(c, $'"$0.conj()"')
00:00:28 verbose #215 > >
00:00:28 verbose #216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 verbose #217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 verbose #218 > > │ ## zeta                                                                      │
00:00:28 verbose #219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #220 > >
00:00:28 verbose #221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 verbose #222 > > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:28 verbose #223 > > f64 =
00:00:28 verbose #224 > >     inl rec zeta count gamma s =
00:00:28 verbose #225 > >         if log then
00:00:28 verbose #226 > >             !\\((count, s), $'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\",
00:00:28 verbose #227 > > $0, $1)"')
00:00:28 verbose #228 > >         if re s > 1 then
00:00:28 verbose #229 > >             (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:28 verbose #230 > >             ||> am.fold fun acc n =>
00:00:28 verbose #231 > >                 acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:28 verbose #232 > >         else
00:00:28 verbose #233 > >             inl gamma_term = gamma (.^(1, 0) .- s)
00:00:28 verbose #234 > >             inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:28 verbose #235 > >             inl one_minus_s = .^(1 - re s, -(im s))
00:00:28 verbose #236 > >             inl mirror_term =
00:00:28 verbose #237 > >                 if re one_minus_s <= 1
00:00:28 verbose #238 > >                 then .^(0, 0)
00:00:28 verbose #239 > >                 else
00:00:28 verbose #240 > >                     if count <= 3
00:00:28 verbose #241 > >                     then zeta (count + 1) gamma one_minus_s
00:00:28 verbose #242 > >                     else one_minus_s
00:00:28 verbose #243 > >             inl reflection_formula =
00:00:28 verbose #244 > >                 .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:28 verbose #245 > > mirror_term
00:00:28 verbose #246 > >             reflection_formula
00:00:28 verbose #247 > >     join zeta 0i32 gamma s
00:00:29 verbose #248 > >
00:00:29 verbose #249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #251 > > │ ## bound                                                                     │
00:00:29 verbose #252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #253 > >
00:00:29 verbose #254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #255 > > nominal bound t =
00:00:29 verbose #256 > >     `(
00:00:29 verbose #257 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:29 verbose #258 > > Fable.Core.Emit(\"pyo3::Bound<$0>\")>]]\n#endif\ntype pyo3_Bound<'T> = class
00:00:29 verbose #259 > > end"
00:00:29 verbose #260 > >         $'' : $'pyo3_Bound<`t>'
00:00:29 verbose #261 > >     )
00:00:29 verbose #262 > >
00:00:29 verbose #263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #265 > > │ ## python                                                                    │
00:00:29 verbose #266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #267 > >
00:00:29 verbose #268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #269 > > nominal python =
00:00:29 verbose #270 > >     `(
00:00:29 verbose #271 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:29 verbose #272 > > Fable.Core.Emit(\"pyo3::Python\")>]]\n#endif\ntype pyo3_Python = class end"
00:00:29 verbose #273 > >         $'' : $'pyo3_Python'
00:00:29 verbose #274 > >     )
00:00:29 verbose #275 > >
00:00:29 verbose #276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #278 > > │ ## pymodule                                                                  │
00:00:29 verbose #279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #280 > >
00:00:29 verbose #281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #282 > > nominal pymodule =
00:00:29 verbose #283 > >     `(
00:00:29 verbose #284 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:29 verbose #285 > > Fable.Core.Emit(\"pyo3::types::PyModule\")>]]\n#endif\ntype pyo3_types_PyModule
00:00:29 verbose #286 > > = class end"
00:00:29 verbose #287 > >         $'' : $'pyo3_types_PyModule'
00:00:29 verbose #288 > >     )
00:00:30 verbose #289 > >
00:00:30 verbose #290 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #291 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #292 > > │ ## pyany                                                                     │
00:00:30 verbose #293 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #294 > >
00:00:30 verbose #295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #296 > > nominal pyany =
00:00:30 verbose #297 > >     `(
00:00:30 verbose #298 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:30 verbose #299 > > Fable.Core.Emit(\"pyo3::PyAny\")>]]\n#endif\ntype pyo3_PyAny = class end"
00:00:30 verbose #300 > >         $'' : $'pyo3_PyAny'
00:00:30 verbose #301 > >     )
00:00:30 verbose #302 > >
00:00:30 verbose #303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #305 > > │ ## pyerr                                                                     │
00:00:30 verbose #306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #307 > >
00:00:30 verbose #308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #309 > > nominal pyerr =
00:00:30 verbose #310 > >     `(
00:00:30 verbose #311 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:30 verbose #312 > > Fable.Core.Emit(\"pyo3::PyErr\")>]]\n#endif\ntype pyo3_PyErr = class end"
00:00:30 verbose #313 > >         $'' : $'pyo3_PyErr'
00:00:30 verbose #314 > >     )
00:00:31 verbose #315 > >
00:00:31 verbose #316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #318 > > │ ## eval                                                                      │
00:00:31 verbose #319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #320 > >
00:00:31 verbose #321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #322 > > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:31 verbose #323 > >     inl py = join py
00:00:31 verbose #324 > >     inl code = code |> sm'.as_str
00:00:31 verbose #325 > >     !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:31 verbose #326 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:31 verbose #327 > >
00:00:31 verbose #328 > > inl use_pyanymethods () =
00:00:31 verbose #329 > >     global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:31 verbose #330 > > pyo3::prelude::PyAnyMethods;\n//\""
00:00:31 verbose #331 > >
00:00:31 verbose #332 > > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:31 verbose #333 > >     inl attr = join attr
00:00:31 verbose #334 > >     inl attr = attr |> sm'.as_str
00:00:31 verbose #335 > >     inl module = join module
00:00:31 verbose #336 > >     use_pyanymethods ()
00:00:31 verbose #337 > >     !\($'"!module.getattr(!attr)"')
00:00:31 verbose #338 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:31 verbose #339 > >
00:00:31 verbose #340 > > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:31 verbose #341 > >     inl args = join args
00:00:31 verbose #342 > >     inl module = join module
00:00:31 verbose #343 > >     !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:31 verbose #344 > > None)"')
00:00:31 verbose #345 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:31 verbose #346 > >
00:00:31 verbose #347 > > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:31 verbose #348 > >     inl result = join result
00:00:31 verbose #349 > >     use_pyanymethods ()
00:00:31 verbose #350 > >     !\($'"!result.extract()"')
00:00:31 verbose #351 > >     |> resultm.map_error'' fun (x : pyerr) => x |> sm'.format'
00:00:31 verbose #352 > >
00:00:31 verbose #353 > > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:31 verbose #354 > >     inl code =
00:00:31 verbose #355 > >         code
00:00:31 verbose #356 > >         |> module_from_code py
00:00:31 verbose #357 > >         |> resultm.unwrap'
00:00:31 verbose #358 > >     inl fn =
00:00:31 verbose #359 > >         code
00:00:31 verbose #360 > >         |> getattr "fn"
00:00:31 verbose #361 > >         |> resultm.unwrap'
00:00:31 verbose #362 > >
00:00:31 verbose #363 > >     fn
00:00:31 verbose #364 > >     |> call args
00:00:31 verbose #365 > >     |> resultm.try'
00:00:31 verbose #366 > >     |> extract
00:00:31 verbose #367 > >     |> resultm.try'
00:00:31 verbose #368 > >     |> complex
00:00:31 verbose #369 > >     |> Ok
00:00:31 verbose #370 > >     |> resultm.box
00:00:31 verbose #371 > >
00:00:31 verbose #372 > > inl call1_ log py s code =
00:00:31 verbose #373 > >     inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:31 verbose #374 > >
00:00:31 verbose #375 > >     inl s = new_pair (re s) (im s)
00:00:31 verbose #376 > >     inl args = new_pair log s
00:00:31 verbose #377 > >
00:00:31 verbose #378 > >     eval py code args
00:00:31 verbose #379 > >
00:00:31 verbose #380 > > inl call1_ log name py s line =
00:00:31 verbose #381 > >     inl s = join s
00:00:31 verbose #382 > >     join
00:00:31 verbose #383 > >         ;[[
00:00:31 verbose #384 > >             $'$"import sys"'
00:00:31 verbose #385 > >             $'$"import traceback"'
00:00:31 verbose #386 > >             $'$"import re"'
00:00:31 verbose #387 > >             $'$"count = 0"'
00:00:31 verbose #388 > >             $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:31 verbose #389 > >             $'$"def trace_calls(frame, event, arg):"'
00:00:31 verbose #390 > >             $'$"    global count"'
00:00:31 verbose #391 > >             $'$"    count += 1"'
00:00:31 verbose #392 > >             $'$"    if count < 200:"'
00:00:31 verbose #393 > >             $'$"        try:"'
00:00:31 verbose #394 > >             $'$"            args = {{ k: v for k, v in frame.f_locals.items() if
00:00:31 verbose #395 > > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:31 verbose #396 > > callable(v) }}"'
00:00:31 verbose #397 > >             $'$"            args_str = \', \'.join([[
00:00:31 verbose #398 > > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:31 verbose #399 > > v in args.items() ]])"'
00:00:31 verbose #400 > >             $'$"            print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:31 verbose #401 > > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:31 verbose #402 > > / f_code.co_filename:
00:00:31 verbose #403 > > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:31 verbose #404 > > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:31 verbose #405 > > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:31 verbose #406 > > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:31 verbose #407 > > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'
00:00:31 verbose #408 > >             $'$"        except ValueError as e:"'
00:00:31 verbose #409 > >             $'$"            print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:31 verbose #410 > >             $'$"        return trace_calls"'
00:00:31 verbose #411 > >             $'$"import mpmath"'
00:00:31 verbose #412 > >             $'$"def fn(log, s):"'
00:00:31 verbose #413 > >             $'$"    global count"'
00:00:31 verbose #414 > >             $'$"    if log:"'
00:00:31 verbose #415 > >             $'$"        print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:31 verbose #416 > > flush=True)"'
00:00:31 verbose #417 > >             $'$"    s = complex(*s)"'
00:00:31 verbose #418 > >             $'$"    try:"'
00:00:31 verbose #419 > >             $'$"        if log: sys.settrace(trace_calls)"'
00:00:31 verbose #420 > >             line
00:00:31 verbose #421 > >             $'$"        if log:"'
00:00:31 verbose #422 > >             $'$"            sys.settrace(None)"'
00:00:31 verbose #423 > >             $'$"            print(f\'{!name} / result: {{s}} / count:
00:00:31 verbose #424 > > {{count}}\', flush=True)"'
00:00:31 verbose #425 > >             $'$"    except ValueError as e:"'
00:00:31 verbose #426 > >             $'$"        if s.real == 1:"'
00:00:31 verbose #427 > >             $'$"            s = complex(float(\'inf\'), 0)"'
00:00:31 verbose #428 > >             $'$"    return (s.real, s.imag)"'
00:00:31 verbose #429 > >         ]]
00:00:31 verbose #430 > >         |> call1_ log py s
00:00:31 verbose #431 > >
00:00:31 verbose #432 > > inl gamma_ log py s =
00:00:31 verbose #433 > >     call1_ log "gamma_" py s $'$"        s = mpmath.gamma(s)"'
00:00:31 verbose #434 > >
00:00:31 verbose #435 > > inl zeta_ log py s =
00:00:31 verbose #436 > >     call1_ log "zeta_" py s $'$"        s = mpmath.zeta(s)"'
00:00:31 verbose #437 > >
00:00:31 verbose #438 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #439 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #440 > > │ ## run_test                                                                  │
00:00:31 verbose #441 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #442 > >
00:00:31 verbose #443 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #444 > > inl run_test log (fn : (complex f64 -> complex f64) * (complex f64 -> complex
00:00:31 verbose #445 > > f64) -> ()) =
00:00:31 verbose #446 > >     inl fn_ (py : python) : resultm.result' () pyerr =
00:00:31 verbose #447 > >         inl nan () =
00:00:31 verbose #448 > >             !\($'"f64::NAN"')
00:00:31 verbose #449 > >         inl gamma__ = fun (s : complex f64) =>
00:00:31 verbose #450 > >             inl result = gamma_ log py s
00:00:31 verbose #451 > >             if log then
00:00:31 verbose #452 > >                 inl s = join s
00:00:31 verbose #453 > >                 !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:31 verbose #454 > > !result)"')
00:00:31 verbose #455 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:31 verbose #456 > > .^(nan (), nan ())
00:00:31 verbose #457 > >         inl zeta__ = fun (s : complex f64) =>
00:00:31 verbose #458 > >             inl result = zeta_ log py s
00:00:31 verbose #459 > >
00:00:31 verbose #460 > >             inl z = zeta true gamma__ s
00:00:31 verbose #461 > >
00:00:31 verbose #462 > >             if log then
00:00:31 verbose #463 > >                 inl s = join s
00:00:31 verbose #464 > >                 !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:31 verbose #465 > > {:?}\\\", !s, !result, !z)"')
00:00:31 verbose #466 > >
00:00:31 verbose #467 > >     //             re result - re x |> abs
00:00:31 verbose #468 > >     //             |> _assert_lt 0.001
00:00:31 verbose #469 > >
00:00:31 verbose #470 > >     //             im result - im x |> abs
00:00:31 verbose #471 > >     //             |> _assert_lt 0.001
00:00:31 verbose #472 > >
00:00:31 verbose #473 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:31 verbose #474 > > .^(nan (), nan ())
00:00:31 verbose #475 > >         join fn (zeta__, gamma__)
00:00:31 verbose #476 > >
00:00:31 verbose #477 > >         Ok ()
00:00:31 verbose #478 > >         |> resultm.box
00:00:31 verbose #479 > >
00:00:31 verbose #480 > >     join
00:00:31 verbose #481 > >         !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:31 verbose #482 > >
00:00:31 verbose #483 > >         !\($'"let __run_test = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()>
00:00:31 verbose #484 > > { //"')
00:00:31 verbose #485 > >
00:00:31 verbose #486 > >         let x' = fn_ (!\($'"py"') : python)
00:00:31 verbose #487 > >         inl x' = join x'
00:00:31 verbose #488 > >
00:00:31 verbose #489 > >         inl closure_fix = 2u8, 1u8
00:00:31 verbose #490 > >         x' |> rust.fix_closure closure_fix
00:00:31 verbose #491 > >
00:00:31 verbose #492 > >         (!\($'"__run_test"') : _ () pyerr)
00:00:31 verbose #493 > >         |> resultm.unwrap'
00:00:32 verbose #494 > >
00:00:32 verbose #495 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 verbose #496 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 verbose #497 > > │ ## test_zeta_at_known_values_                                                │
00:00:32 verbose #498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #499 > >
00:00:32 verbose #500 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #501 > > inl test_zeta_at_known_values_ log = run_test log fun zeta, gamma =>
00:00:32 verbose #502 > >     ;[[
00:00:32 verbose #503 > >         .^(2, 0), pi ** 2 / 6
00:00:32 verbose #504 > >         .^(-1, 0), -1 / 12
00:00:32 verbose #505 > >     ]]
00:00:32 verbose #506 > >     |> fun x => a x : _ i32 _
00:00:32 verbose #507 > >     |> am.iter fun s, e =>
00:00:32 verbose #508 > >         inl result = zeta s
00:00:32 verbose #509 > >
00:00:32 verbose #510 > >         result |> im |> _assert_eq 0
00:00:32 verbose #511 > >         re result - e |> abs |> _assert_lt 0.0001
00:00:32 verbose #512 > >
00:00:32 verbose #513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #514 > > //// test
00:00:32 verbose #515 > > ///! rust -d num-complex pyo3
00:00:32 verbose #516 > >
00:00:32 verbose #517 > > test_zeta_at_known_values_ true
00:00:41 verbose #518 > >
00:00:41 verbose #519 > > ╭─[ 9.03s - return value ]─────────────────────────────────────────────────────╮
00:00:41 verbose #520 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:00:41 verbose #521 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:41 verbose #522 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:41 verbose #523 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 verbose #524 > > │ / arg: None                                                                  │
00:00:41 verbose #525 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:41 verbose #526 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:41 verbose #527 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 verbose #528 > > │ / arg: None                                                                  │
00:00:41 verbose #529 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:41 verbose #530 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:41 verbose #531 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 verbose #532 > > │ / arg: None                                                                  │
00:00:41 verbose #533 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:41 verbose #534 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:41 verbose #535 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 verbose #536 > > │ / arg: None                                                                  │
00:00:41 verbose #537 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:41 verbose #538 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:41 verbose #539 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:41 verbose #540 > > │ / arg: None                                                                  │
00:00:41 verbose #541 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:41 verbose #542 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:41 verbose #543 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:41 verbose #544 > > │ / arg: None                                                                  │
00:00:41 verbose #545 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:41 verbose #546 > > │ / f_line...me: make_mpc / f_locals:  / f_lineno: 768 / f_code.co_filename:   │
00:00:41 verbose #547 > > │ \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /                           │
00:00:41 verbose #548 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:41 verbose #549 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:00:41 verbose #550 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:41 verbose #551 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:41 verbose #552 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:00:41 verbose #553 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:41 verbose #554 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:41 verbose #555 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:00:41 verbose #556 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:41 verbose #557 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: mpc(real='1.0',   │
00:00:41 verbose #558 > > │ imag='0.0')                                                                  │
00:00:41 verbose #559 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='2.0',             │
00:00:41 verbose #560 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:41 verbose #561 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:41 verbose #562 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0', imag='0.0')               │
00:00:41 verbose #563 > > │ gamma_ / result: (1.0 + 0.0j) / count: 161                                   │
00:00:41 verbose #564 > > │ gamma__ / s: Complex { re: 2.0, im: 0.0 } / result: Ok(Complex { re: 1.0,    │
00:00:41 verbose #565 > > │ im: 0.0 })                                                                   │
00:00:41 verbose #566 > > │ zeta / count: 1 / s: Complex { re: 2.0, im: -0.0 }                           │
00:00:41 verbose #567 > > │ zeta__ / s: Complex { re: -1.0, im: 0.0 } / result: Ok(Complex { re:         │
00:00:41 verbose #568 > > │ -0.08333333333333333, im: 0.0 }) / z: Complex { re: NaN, im: NaN }           │
00:00:41 verbose #569 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:00:41 verbose #570 > > │ __assert_lt / actual: 0.0 / expected: 0.0001                                 │
00:00:41 verbose #571 > > │                                                                              │
00:00:41 verbose #572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #573 > >
00:00:41 verbose #574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #576 > > │ ## test_zeta_at_2_minus2                                                     │
00:00:41 verbose #577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #578 > >
00:00:41 verbose #579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #580 > > inl test_zeta_at_2_minus2 log = run_test log fun zeta, gamma =>
00:00:41 verbose #581 > >     inl s = .^(2, -2)
00:00:41 verbose #582 > >     inl result = zeta s
00:00:41 verbose #583 > >
00:00:41 verbose #584 > >     (re result - 0.8673) |> abs |> _assert_lt 0.001
00:00:41 verbose #585 > >     (im result - 0.2750) |> abs |> _assert_lt 0.001
00:00:42 verbose #586 > >
00:00:42 verbose #587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #588 > > //// test
00:00:42 verbose #589 > > ///! rust -d num-complex pyo3
00:00:42 verbose #590 > >
00:00:42 verbose #591 > > test_zeta_at_2_minus2 true
00:00:47 verbose #592 > >
00:00:47 verbose #593 > > ╭─[ 4.79s - return value ]─────────────────────────────────────────────────────╮
00:00:47 verbose #594 > > │ zeta_ / s: (2.0, -2.0) / count: 0                                            │
00:00:47 verbose #595 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:47 verbose #596 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:47 verbose #597 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #598 > > │ / arg: None                                                                  │
00:00:47 verbose #599 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:47 verbose #600 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:47 verbose #601 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #602 > > │ / arg: None                                                                  │
00:00:47 verbose #603 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:47 verbose #604 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:47 verbose #605 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #606 > > │ / arg: None                                                                  │
00:00:47 verbose #607 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:47 verbose #608 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:47 verbose #609 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #610 > > │ / arg: None                                                                  │
00:00:47 verbose #611 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:47 verbose #612 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:47 verbose #613 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:47 verbose #614 > > │ / arg: None                                                                  │
00:00:47 verbose #615 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:47 verbose #616 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:47 verbose #617 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:47 verbose #618 > > │ / arg: None                                                                  │
00:00:47 verbose #619 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:47 verbose #620 > > │ / f_lin... 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1,  │
00:00:47 verbose #621 > > │ tsign=0, tman=1, texp=2, tbc=1, offset=0, man=2 / f_lineno: 665 /            │
00:00:47 verbose #622 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:47 verbose #623 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:47 verbose #624 > > │ line(zeta_) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, 1,   │
00:00:47 verbose #625 > > │ 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1, tsign=0,    │
00:00:47 verbose #626 > > │ tman=1, texp=2, tbc=1, offset=0, man=2, bc=2 / f_lineno: 666 /               │
00:00:47 verbose #627 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:47 verbose #628 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:47 verbose #629 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:47 verbose #630 > > │ bc=2, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:00:47 verbose #631 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:47 verbose #632 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:47 verbose #633 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:47 verbose #634 > > │ bc=2, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:00:47 verbose #635 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:47 verbose #636 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:47 verbose #637 > > │ zeta_ / result: (0.867351829635993 + 0.275127238807858j) / count: 1553       │
00:00:47 verbose #638 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -2.0 }                           │
00:00:47 verbose #639 > > │ zeta__ / s: Complex { re: 2.0, im: -2.0 } / result: Ok(Complex { re:         │
00:00:47 verbose #640 > > │ 0.8673518296359931, im: 0.27512723880785767 }) / z: Complex { re: NaN, im:   │
00:00:47 verbose #641 > > │ NaN }                                                                        │
00:00:47 verbose #642 > > │ __assert_lt / actual: 5.182963599315027e-5 / expected: 0.001                 │
00:00:47 verbose #643 > > │ __assert_lt / actual: 0.00012723880785764363 / expected: 0.001               │
00:00:47 verbose #644 > > │                                                                              │
00:00:47 verbose #645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #646 > >
00:00:47 verbose #647 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #648 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #649 > > │ ## test_trivial_zero_at_negative_even___                                     │
00:00:47 verbose #650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #651 > >
00:00:47 verbose #652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #653 > > inl test_trivial_zero_at_negative_even___ log = run_test log fun zeta, gamma =>
00:00:47 verbose #654 > >     (join listm'.init_series -2f64 -40 -2)
00:00:47 verbose #655 > >     |> listm.iter fun n =>
00:00:47 verbose #656 > >         inl s = .^(n, 0)
00:00:47 verbose #657 > >         inl result = zeta s
00:00:47 verbose #658 > >
00:00:47 verbose #659 > >         result |> re |> _assert_eq 0
00:00:47 verbose #660 > >         result |> im |> _assert_eq 0
00:00:47 verbose #661 > >
00:00:47 verbose #662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #663 > > //// test
00:00:47 verbose #664 > > ///! rust -d num-complex pyo3
00:00:47 verbose #665 > >
00:00:47 verbose #666 > > test_trivial_zero_at_negative_even___ true
00:00:53 verbose #667 > >
00:00:53 verbose #668 > > ╭─[ 6.05s - return value ]─────────────────────────────────────────────────────╮
00:00:53 verbose #669 > > │ zeta_ / s: (-2.0, 0.0) / count: 0                                            │
00:00:53 verbose #670 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:53 verbose #671 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:53 verbose #672 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #673 > > │ / arg: None                                                                  │
00:00:53 verbose #674 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:53 verbose #675 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:53 verbose #676 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #677 > > │ / arg: None                                                                  │
00:00:53 verbose #678 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:53 verbose #679 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:53 verbose #680 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #681 > > │ / arg: None                                                                  │
00:00:53 verbose #682 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:53 verbose #683 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:53 verbose #684 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #685 > > │ / arg: None                                                                  │
00:00:53 verbose #686 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:00:53 verbose #687 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:53 verbose #688 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #689 > > │ / arg: None                                                                  │
00:00:53 verbose #690 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:00:53 verbose #691 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:53 verbose #692 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:53 verbose #693 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:53 verbose #694 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:00:53 verbose #695 > > │ name='zeta' ...lename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /    │
00:00:53 verbose #696 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:53 verbose #697 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:00:53 verbose #698 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:53 verbose #699 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:53 verbose #700 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:00:53 verbose #701 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:53 verbose #702 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:53 verbose #703 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:00:53 verbose #704 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:53 verbose #705 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:00:53 verbose #706 > > │ mpc(real='8.1591528324789768e+47', imag='0.0')                               │
00:00:53 verbose #707 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='41.0',            │
00:00:53 verbose #708 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:53 verbose #709 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:53 verbose #710 > > │ f_back.f_code.co_filename:  / arg: mpc(real='8.1591528324789768e+47',        │
00:00:53 verbose #711 > > │ imag='0.0')                                                                  │
00:00:53 verbose #712 > > │ gamma_ / result: (8.15915283247898e+47 + 0.0j) / count: 166                  │
00:00:53 verbose #713 > > │ gamma__ / s: Complex { re: 41.0, im: 0.0 } / result: Ok(Complex { re:        │
00:00:53 verbose #714 > > │ 8.159152832478977e47, im: 0.0 })                                             │
00:00:53 verbose #715 > > │ zeta / count: 1 / s: Complex { re: 41.0, im: -0.0 }                          │
00:00:53 verbose #716 > > │ zeta__ / s: Complex { re: -40.0, im: 0.0 } / result: Ok(Complex { re: 0.0,   │
00:00:53 verbose #717 > > │ im: 0.0 }) / z: Complex { re: NaN, im: NaN }                                 │
00:00:53 verbose #718 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:00:53 verbose #719 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:00:53 verbose #720 > > │                                                                              │
00:00:53 verbose #721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #722 > >
00:00:53 verbose #723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #725 > > │ ## test_non_trivial_zero___                                                  │
00:00:53 verbose #726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #727 > >
00:00:53 verbose #728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #729 > > inl test_non_trivial_zero___ log = run_test log fun zeta, gamma =>
00:00:53 verbose #730 > >     ;[[
00:00:53 verbose #731 > >         .^(0.5, 14.134725)
00:00:53 verbose #732 > >         .^(0.5, 21.022040)
00:00:53 verbose #733 > >         .^(0.5, 25.010857)
00:00:53 verbose #734 > >         .^(0.5, 30.424876)
00:00:53 verbose #735 > >         .^(0.5, 32.935062)
00:00:53 verbose #736 > >         .^(0.5, 37.586178)
00:00:53 verbose #737 > >     ]]
00:00:53 verbose #738 > >     |> fun x => a x : _ i32 _
00:00:53 verbose #739 > >     |> am.iter fun x =>
00:00:53 verbose #740 > >             inl result = zeta x
00:00:53 verbose #741 > >             result |> re |> abs |> _assert_lt 0.0001
00:00:53 verbose #742 > >             result |> im |> abs |> _assert_lt 0.0001
00:00:54 verbose #743 > >
00:00:54 verbose #744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #745 > > //// test
00:00:54 verbose #746 > > ///! rust -d num-complex pyo3
00:00:54 verbose #747 > >
00:00:54 verbose #748 > > test_non_trivial_zero___ true
00:00:59 verbose #749 > >
00:00:59 verbose #750 > > ╭─[ 5.19s - return value ]─────────────────────────────────────────────────────╮
00:00:59 verbose #751 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:00:59 verbose #752 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:59 verbose #753 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:00:59 verbose #754 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:59 verbose #755 > > │ / arg: None                                                                  │
00:00:59 verbose #756 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:59 verbose #757 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:00:59 verbose #758 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:59 verbose #759 > > │ / arg: None                                                                  │
00:00:59 verbose #760 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:59 verbose #761 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:00:59 verbose #762 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:59 verbose #763 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:59 verbose #764 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:59 verbose #765 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:00:59 verbose #766 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:59 verbose #767 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:59 verbose #768 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:00:59 verbose #769 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:00:59 verbose #770 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:00:59 verbose #771 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:00:59 verbose #772 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:00:59 verbose #773 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:00:59 verbose #774 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:00:59 verbose #775 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:00:59 verbose #776 > > │ line(zeta_) / f_cod...y / arg: None                                          │
00:00:59 verbose #777 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:00:59 verbose #778 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:00:59 verbose #779 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:00:59 verbose #780 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:00:59 verbose #781 > > │ uim=45518868236127668552, sre=1013002518538853602038572,                     │
00:00:59 verbose #782 > > │ sim=90883161825546323029600502 / f_lineno: 1629 / f_code.co_filename:        │
00:00:59 verbose #783 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:00:59 verbose #784 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:00:59 verbose #785 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:00:59 verbose #786 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:00:59 verbose #787 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:00:59 verbose #788 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:00:59 verbose #789 > > │ uim=45518868236127668552, sre=1013002523583718975524892,                     │
00:00:59 verbose #790 > > │ sim=90883161951898137545566669 / f_lineno: 1630 / f_code.co_filename:        │
00:00:59 verbose #791 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:00:59 verbose #792 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:00:59 verbose #793 > > │ gamma_ / result: (-1.32798420042152e-26 + 5.5751975252688e-26j) / count: 301 │
00:00:59 verbose #794 > > │ gamma__ / s: Complex { re: 0.5, im: -37.586178 } / result: Ok(Complex { re:  │
00:00:59 verbose #795 > > │ -1.3279842004215153e-26, im: 5.575197525268802e-26 })                        │
00:00:59 verbose #796 > > │ zeta__ / s: Complex { re: 0.5, im: 37.586178 } / result: Ok(Complex { re:    │
00:00:59 verbose #797 > > │ -8.910186507947958e-8, im: -2.943780446402868e-7 }) / z: Complex { re: -0.0, │
00:00:59 verbose #798 > > │ im: 0.0 }                                                                    │
00:00:59 verbose #799 > > │ __assert_lt / actual: 8.910186507947958e-8 / expected: 0.0001                │
00:00:59 verbose #800 > > │ __assert_lt / actual: 2.943780446402868e-7 / expected: 0.0001                │
00:00:59 verbose #801 > > │                                                                              │
00:00:59 verbose #802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 verbose #803 > >
00:00:59 verbose #804 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 verbose #805 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 verbose #806 > > │ ## test_real_part_greater_than_one___                                        │
00:00:59 verbose #807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 verbose #808 > >
00:00:59 verbose #809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 verbose #810 > > inl test_real_part_greater_than_one___ log = run_test log fun zeta, gamma =>
00:00:59 verbose #811 > >     inl points = ;[[ 2; 3; 4; 5; 10; 20; 50 ]]
00:00:59 verbose #812 > >     (a points : _ i32 _)
00:00:59 verbose #813 > >     |> am.iter fun point =>
00:00:59 verbose #814 > >         inl s = .^(point, 0)
00:00:59 verbose #815 > >         inl result = zeta s
00:00:59 verbose #816 > >         result |> re |> _assert_gt 0
00:00:59 verbose #817 > >         result |> im |> _assert_eq 0
00:01:00 verbose #818 > >
00:01:00 verbose #819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #820 > > //// test
00:01:00 verbose #821 > > ///! rust -d num-complex pyo3
00:01:00 verbose #822 > >
00:01:00 verbose #823 > > test_real_part_greater_than_one___ true
00:01:05 verbose #824 > >
00:01:05 verbose #825 > > ╭─[ 5.03s - return value ]─────────────────────────────────────────────────────╮
00:01:05 verbose #826 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:01:05 verbose #827 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:05 verbose #828 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:05 verbose #829 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:05 verbose #830 > > │ / arg: None                                                                  │
00:01:05 verbose #831 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:05 verbose #832 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:05 verbose #833 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:05 verbose #834 > > │ / arg: None                                                                  │
00:01:05 verbose #835 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:05 verbose #836 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:05 verbose #837 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:05 verbose #838 > > │ / arg: None                                                                  │
00:01:05 verbose #839 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:05 verbose #840 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:05 verbose #841 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:05 verbose #842 > > │ / arg: None                                                                  │
00:01:05 verbose #843 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:05 verbose #844 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:05 verbose #845 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:05 verbose #846 > > │ / arg: None                                                                  │
00:01:05 verbose #847 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:05 verbose #848 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:05 verbose #849 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:05 verbose #850 > > │ / arg: None                                                                  │
00:01:05 verbose #851 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:05 verbose #852 > > │ / f_line...f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno:   │
00:01:05 verbose #853 > > │ 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None       │
00:01:05 verbose #854 > > │ line(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /        │
00:01:05 verbose #855 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:05 verbose #856 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:05 verbose #857 > > │ return(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /      │
00:01:05 verbose #858 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:05 verbose #859 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:01:05 verbose #860 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:01:05 verbose #861 > > │ return(zeta_) / f_code.co_name: f / f_locals: x=mpc(real='50.0',             │
00:01:05 verbose #862 > > │ imag='0.0'), kwargs={}, name='zeta', prec=53, rounding='n' / f_lineno: 1131  │
00:01:05 verbose #863 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 535 /      │
00:01:05 verbose #864 > > │ f_back.f_code.co_filename: \mpmath\functions\zeta.py / arg:                  │
00:01:05 verbose #865 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:01:05 verbose #866 > > │ return(zeta_) / f_code.co_name: zeta / f_locals: s=(50+0j), a=1,             │
00:01:05 verbose #867 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:01:05 verbose #868 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:05 verbose #869 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0000000000000009',            │
00:01:05 verbose #870 > > │ imag='0.0')                                                                  │
00:01:05 verbose #871 > > │ zeta_ / result: (1.0 + 0.0j) / count: 193                                    │
00:01:05 verbose #872 > > │ zeta / count: 0 / s: Complex { re: 50.0, im: 0.0 }                           │
00:01:05 verbose #873 > > │ zeta__ / s: Complex { re: 50.0, im: 0.0 } / result: Ok(Complex { re:         │
00:01:05 verbose #874 > > │ 1.0000000000000009, im: 0.0 }) / z: Complex { re: NaN, im: NaN }             │
00:01:05 verbose #875 > > │ __assert_gt / actual: 1.0000000000000009 / expected: 0.0                     │
00:01:05 verbose #876 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:01:05 verbose #877 > > │                                                                              │
00:01:05 verbose #878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #879 > >
00:01:05 verbose #880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:05 verbose #881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:05 verbose #882 > > │ ## test_zeta_at_1___                                                         │
00:01:05 verbose #883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 verbose #884 > >
00:01:05 verbose #885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 verbose #886 > > inl test_zeta_at_1___ log = run_test log fun zeta, gamma =>
00:01:05 verbose #887 > >     inl s = .^(1, 0)
00:01:05 verbose #888 > >     inl result = zeta s
00:01:05 verbose #889 > >     result |> re |> _assert_eq limit.max
00:01:05 verbose #890 > >     result |> im |> _assert_eq 0
00:01:05 verbose #891 > >
00:01:05 verbose #892 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 verbose #893 > > //// test
00:01:05 verbose #894 > > ///! rust -d num-complex pyo3
00:01:05 verbose #895 > >
00:01:05 verbose #896 > > test_zeta_at_1___ true
00:01:10 verbose #897 > >
00:01:10 verbose #898 > > ╭─[ 4.63s - return value ]─────────────────────────────────────────────────────╮
00:01:10 verbose #899 > > │ zeta_ / s: (1.0, 0.0) / count: 0                                             │
00:01:10 verbose #900 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:01:10 verbose #901 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:10 verbose #902 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:10 verbose #903 > > │ / arg: None                                                                  │
00:01:10 verbose #904 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:01:10 verbose #905 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:10 verbose #906 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:10 verbose #907 > > │ / arg: None                                                                  │
00:01:10 verbose #908 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:01:10 verbose #909 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:10 verbose #910 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:10 verbose #911 > > │ / arg: None                                                                  │
00:01:10 verbose #912 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:01:10 verbose #913 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:10 verbose #914 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:10 verbose #915 > > │ / arg: None                                                                  │
00:01:10 verbose #916 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:01:10 verbose #917 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:10 verbose #918 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:10 verbose #919 > > │ / arg: None                                                                  │
00:01:10 verbose #920 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:01:10 verbose #921 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:10 verbose #922 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:10 verbose #923 > > │ / arg: None                                                                  │
00:01:10 verbose #924 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:01:10 verbose #925 > > │ / f_line...back object at 0x<?>>)                                            │
00:01:10 verbose #926 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='0.0',             │
00:01:10 verbose #927 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:01:10 verbose #928 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:01:10 verbose #929 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:10 verbose #930 > > │ exception(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j /          │
00:01:10 verbose #931 > > │ f_lineno: 25 / f_code.co_filename:  / f_back.f_lineno:  /                    │
00:01:10 verbose #932 > > │ f_back.f_code.co_filename:  / arg: (<class 'ValueError'>, ValueError('gamma  │
00:01:10 verbose #933 > > │ function pole'), <traceback object at 0x<?>>)                                │
00:01:10 verbose #934 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 29  │
00:01:10 verbose #935 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:01:10 verbose #936 > > │ arg: None                                                                    │
00:01:10 verbose #937 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j,                │
00:01:10 verbose #938 > > │ e=ValueError('gamma function pole') / f_lineno: 30 / f_code.co_filename:  /  │
00:01:10 verbose #939 > > │ f_back.f_lineno:  / f_back.f_code.co_filename:  / arg: None                  │
00:01:10 verbose #940 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 32  │
00:01:10 verbose #941 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:01:10 verbose #942 > > │ arg: None                                                                    │
00:01:10 verbose #943 > > │ return(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno:   │
00:01:10 verbose #944 > > │ 32 / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:   │
00:01:10 verbose #945 > > │ / arg: (0.0, 0.0)                                                            │
00:01:10 verbose #946 > > │ gamma__ / s: Complex { re: 0.0, im: 0.0 } / result: Ok(Complex { re: 0.0,    │
00:01:10 verbose #947 > > │ im: 0.0 })                                                                   │
00:01:10 verbose #948 > > │ zeta__ / s: Complex { re: 1.0, im: 0.0 } / result: Ok(Complex { re: inf, im: │
00:01:10 verbose #949 > > │ 0.0 }) / z: Complex { re: 0.0, im: 0.0 }                                     │
00:01:10 verbose #950 > > │ __assert_eq / actual: inf / expected: inf                                    │
00:01:10 verbose #951 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:01:10 verbose #952 > > │                                                                              │
00:01:10 verbose #953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 verbose #954 > >
00:01:10 verbose #955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 verbose #956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 verbose #957 > > │ ## test_symmetry_across_real_axis___                                         │
00:01:10 verbose #958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 verbose #959 > >
00:01:10 verbose #960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 verbose #961 > > inl test_symmetry_across_real_axis___ log = run_test log fun zeta, gamma =>
00:01:10 verbose #962 > >     inl s = .^(2, 10)
00:01:10 verbose #963 > >     inl result_positive_im = zeta s
00:01:10 verbose #964 > >     inl result_negative_im = zeta .^(re s, -(im s))
00:01:10 verbose #965 > >     inl conj = result_negative_im |> conj
00:01:10 verbose #966 > >     result_positive_im |> re |> _assert_eq (conj |> re)
00:01:10 verbose #967 > >     result_positive_im |> im |> _assert_eq (conj |> im)
00:01:10 verbose #968 > >
00:01:10 verbose #969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 verbose #970 > > //// test
00:01:10 verbose #971 > > ///! rust -d num-complex pyo3
00:01:10 verbose #972 > >
00:01:10 verbose #973 > > test_symmetry_across_real_axis___ true
00:01:16 verbose #974 > >
00:01:16 verbose #975 > > ╭─[ 5.47s - return value ]─────────────────────────────────────────────────────╮
00:01:16 verbose #976 > > │ zeta_ / s: (2.0, 10.0) / count: 0                                            │
00:01:16 verbose #977 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:16 verbose #978 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:16 verbose #979 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:16 verbose #980 > > │ / arg: None                                                                  │
00:01:16 verbose #981 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:16 verbose #982 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:16 verbose #983 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:16 verbose #984 > > │ / arg: None                                                                  │
00:01:16 verbose #985 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:16 verbose #986 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:16 verbose #987 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:16 verbose #988 > > │ / arg: None                                                                  │
00:01:16 verbose #989 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:16 verbose #990 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:16 verbose #991 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:16 verbose #992 > > │ / arg: None                                                                  │
00:01:16 verbose #993 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:01:16 verbose #994 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:16 verbose #995 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:16 verbose #996 > > │ / arg: None                                                                  │
00:01:16 verbose #997 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:01:16 verbose #998 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:16 verbose #999 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:01:16 verbose #1000 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:01:16 verbose #1001 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:01:16 verbose #1002 > > │ name='zeta' ...f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, 25, │
00:01:16 verbose #1003 > > │ 2, 5), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1, tsign=0,    │
00:01:16 verbose #1004 > > │ tman=25, texp=2, tbc=5, offset=0, man=26, bc=5 / f_lineno: 666 /             │
00:01:16 verbose #1005 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:01:16 verbose #1006 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:01:16 verbose #1007 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:01:16 verbose #1008 > > │ bc=5, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:01:16 verbose #1009 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:01:16 verbose #1010 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:01:16 verbose #1011 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:01:16 verbose #1012 > > │ bc=5, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:01:16 verbose #1013 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:01:16 verbose #1014 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:01:16 verbose #1015 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:01:16 verbose #1016 > > │ bc=5, prec=14, rnd='d' / f_lineno: 187 / f_code.co_filename:                 │
00:01:16 verbose #1017 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:01:16 verbose #1018 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:01:16 verbose #1019 > > │ zeta_ / result: (1.19798250067418 + 0.0791704917205257j) / count: 1031       │
00:01:16 verbose #1020 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -10.0 }                          │
00:01:16 verbose #1021 > > │ zeta__ / s: Complex { re: 2.0, im: -10.0 } / result: Ok(Complex { re:        │
00:01:16 verbose #1022 > > │ 1.1979825006741847, im: 0.07917049172052575 }) / z: Complex { re: NaN, im:   │
00:01:16 verbose #1023 > > │ NaN }                                                                        │
00:01:16 verbose #1024 > > │ __assert_eq / actual: 1.1979825006741847 / expected: 1.1979825006741847      │
00:01:16 verbose #1025 > > │ __assert_eq / actual: -0.07917049172052575 / expected: -0.07917049172052575  │
00:01:16 verbose #1026 > > │                                                                              │
00:01:16 verbose #1027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1028 > >
00:01:16 verbose #1029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1031 > > │ ## test_behavior_near_origin___                                              │
00:01:16 verbose #1032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1033 > >
00:01:16 verbose #1034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1035 > > inl test_behavior_near_origin___ log = run_test log fun zeta, gamma =>
00:01:16 verbose #1036 > >     inl s = .^(0.01, 0.01)
00:01:16 verbose #1037 > >     inl result = zeta s
00:01:16 verbose #1038 > >     result |> re |> _assert_lt limit.max
00:01:16 verbose #1039 > >     result |> im |> _assert_lt limit.max
00:01:16 verbose #1040 > >
00:01:16 verbose #1041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1042 > > //// test
00:01:16 verbose #1043 > > ///! rust -d num-complex pyo3
00:01:16 verbose #1044 > >
00:01:16 verbose #1045 > > test_behavior_near_origin___ true
00:01:21 verbose #1046 > >
00:01:21 verbose #1047 > > ╭─[ 4.55s - return value ]─────────────────────────────────────────────────────╮
00:01:21 verbose #1048 > > │ zeta_ / s: (0.01, 0.01) / count: 0                                           │
00:01:21 verbose #1049 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:01:21 verbose #1050 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:01:21 verbose #1051 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:21 verbose #1052 > > │ / arg: None                                                                  │
00:01:21 verbose #1053 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:01:21 verbose #1054 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:01:21 verbose #1055 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:21 verbose #1056 > > │ / arg: None                                                                  │
00:01:21 verbose #1057 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:01:21 verbose #1058 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:01:21 verbose #1059 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:21 verbose #1060 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:21 verbose #1061 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:01:21 verbose #1062 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:01:21 verbose #1063 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:21 verbose #1064 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:21 verbose #1065 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:01:21 verbose #1066 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:01:21 verbose #1067 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:21 verbose #1068 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:21 verbose #1069 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.01+0.01j), kwargs={},       │
00:01:21 verbose #1070 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:21 verbose #1071 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:01:21 verbose #1072 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:01:21 verbose #1073 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(...py / f_back.f_lineno: 1131 │
00:01:21 verbose #1074 > > │ / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None            │
00:01:21 verbose #1075 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0,                  │
00:01:21 verbose #1076 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), prec=53,        │
00:01:21 verbose #1077 > > │ rnd='n', type=0, a=(0, 4458563631096791, -52, 52), b=(1, 5764607523034235,   │
00:01:21 verbose #1078 > > │ -59, 53), asign=0, aman=4458563631096791, aexp=-52, abc=52, bsign=1,         │
00:01:21 verbose #1079 > > │ bman=5764607523034235, bexp=-59, bbc=53, wp=73, amag=0, bmag=-6, mag=0,      │
00:01:21 verbose #1080 > > │ an=0, bn=0, absn=0j, gamma_size=0, need_reflection=0, zorig=((0,             │
00:01:21 verbose #1081 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), yfinal=0,       │
00:01:21 verbose #1082 > > │ balance_prec=0, n_for_stirling=14, need_reduction=True,                      │
00:01:21 verbose #1083 > > │ afix=132131814190692672995328, bfix=-94447329657392906240, r=0, zprered=((0, │
00:01:21 verbose #1084 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), d=14,           │
00:01:21 verbose #1085 > > │ rre=56942610883563778729574216337150, one=9444732965739290427392,            │
00:01:21 verbose #1086 > > │ rim=-1820461636508155576115177658065, k=13 / f_lineno: 2035 /                │
00:01:21 verbose #1087 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 1131 /     │
00:01:21 verbose #1088 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:21 verbose #1089 > > │ gamma_ / result: (1.00577030202902 + 0.0059717824054102j) / count: 357       │
00:01:21 verbose #1090 > > │ gamma__ / s: Complex { re: 0.99, im: -0.01 } / result: Ok(Complex { re:      │
00:01:21 verbose #1091 > > │ 1.005770302029023, im: 0.005971782405410201 })                               │
00:01:21 verbose #1092 > > │ zeta__ / s: Complex { re: 0.01, im: 0.01 } / result: Ok(Complex { re:        │
00:01:21 verbose #1093 > > │ -0.5091873433665667, im: -0.00939202213994577 }) / z: Complex { re: 0.0, im: │
00:01:21 verbose #1094 > > │ 0.0 }                                                                        │
00:01:21 verbose #1095 > > │ __assert_lt / actual: -0.5091873433665667 / expected: inf                    │
00:01:21 verbose #1096 > > │ __assert_lt / actual: -0.00939202213994577 / expected: inf                   │
00:01:21 verbose #1097 > > │                                                                              │
00:01:21 verbose #1098 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1099 > >
00:01:21 verbose #1100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:21 verbose #1101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:21 verbose #1102 > > │ ## test_imaginary_axis                                                       │
00:01:21 verbose #1103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1104 > >
00:01:21 verbose #1105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:21 verbose #1106 > > inl test_imaginary_axis log = run_test log fun zeta, gamma =>
00:01:21 verbose #1107 > >     (join [[ 10; 20; 30; 40; 50; 60; 70; 80; 90; 100 ]])
00:01:21 verbose #1108 > >     |> listm.iter fun s =>
00:01:21 verbose #1109 > >         inl s = .^(0, s)
00:01:21 verbose #1110 > >         inl result = zeta s
00:01:21 verbose #1111 > >         result |> re |> _assert_ne 0
00:01:21 verbose #1112 > >         result |> im |> _assert_ne 0
00:01:21 verbose #1113 > >
00:01:21 verbose #1114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:21 verbose #1115 > > //// test
00:01:21 verbose #1116 > > ///! rust -d num-complex pyo3
00:01:21 verbose #1117 > >
00:01:21 verbose #1118 > > test_imaginary_axis true
00:01:27 verbose #1119 > >
00:01:27 verbose #1120 > > ╭─[ 5.32s - return value ]─────────────────────────────────────────────────────╮
00:01:27 verbose #1121 > > │ zeta_ / s: (0.0, 10.0) / count: 0                                            │
00:01:27 verbose #1122 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:01:27 verbose #1123 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:27 verbose #1124 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 verbose #1125 > > │ / arg: None                                                                  │
00:01:27 verbose #1126 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:01:27 verbose #1127 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:27 verbose #1128 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 verbose #1129 > > │ / arg: None                                                                  │
00:01:27 verbose #1130 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:01:27 verbose #1131 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:27 verbose #1132 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 verbose #1133 > > │ / arg: None                                                                  │
00:01:27 verbose #1134 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:01:27 verbose #1135 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:27 verbose #1136 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 verbose #1137 > > │ / arg: None                                                                  │
00:01:27 verbose #1138 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:01:27 verbose #1139 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:27 verbose #1140 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:27 verbose #1141 > > │ / arg: None                                                                  │
00:01:27 verbose #1142 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:01:27 verbose #1143 > > │ f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /              │
00:01:27 verbose #1144 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:27 verbose #1145 > > │ / arg: None                                                                  │
00:01:27 verbose #1146 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:01:27 verbose #1147 > > │ f_lineno: 1114 / f_code.co...(0, 1, 0, 1), prec=83, sign=0, man=1, exp=0,    │
00:01:27 verbose #1148 > > │ bc=1 / f_lineno: 409 / f_code.co_filename: \mpmath\libmp\libmpf.py /         │
00:01:27 verbose #1149 > > │ f_back.f_lineno: 2022 / f_back.f_code.co_filename:                           │
00:01:27 verbose #1150 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:01:27 verbose #1151 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:01:27 verbose #1152 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 410 / f_code.co_filename:  │
00:01:27 verbose #1153 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:01:27 verbose #1154 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:01:27 verbose #1155 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:01:27 verbose #1156 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 / f_code.co_filename:  │
00:01:27 verbose #1157 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:01:27 verbose #1158 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:01:27 verbose #1159 > > │ return(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1),        │
00:01:27 verbose #1160 > > │ prec=83, sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 /             │
00:01:27 verbose #1161 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 /        │
00:01:27 verbose #1162 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg:                 │
00:01:27 verbose #1163 > > │ 9671406556917033397649408                                                    │
00:01:27 verbose #1164 > > │ gamma_ / result: (-1.51425318049776e-67 + 2.79082155561748e-69j) / count:    │
00:01:27 verbose #1165 > > │ 289                                                                          │
00:01:27 verbose #1166 > > │ gamma__ / s: Complex { re: 1.0, im: -100.0 } / result: Ok(Complex { re:      │
00:01:27 verbose #1167 > > │ -1.514253180497756e-67, im: 2.7908215556174775e-69 })                        │
00:01:27 verbose #1168 > > │ zeta__ / s: Complex { re: 0.0, im: 100.0 } / result: Ok(Complex { re:        │
00:01:27 verbose #1169 > > │ 6.51721042625301, im: 0.18128842533791736 }) / z: Complex { re: 0.0, im: 0.0 │
00:01:27 verbose #1170 > > │ }                                                                            │
00:01:27 verbose #1171 > > │ __assert_ne / actual: 6.51721042625301 / expected: 0.0                       │
00:01:27 verbose #1172 > > │ __assert_ne / actual: 0.18128842533791736 / expected: 0.0                    │
00:01:27 verbose #1173 > > │                                                                              │
00:01:27 verbose #1174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 verbose #1175 > >
00:01:27 verbose #1176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:27 verbose #1177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:27 verbose #1178 > > │ ## test_critical_strip                                                       │
00:01:27 verbose #1179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 verbose #1180 > >
00:01:27 verbose #1181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 verbose #1182 > > inl test_critical_strip log = run_test log fun zeta, gamma =>
00:01:27 verbose #1183 > >     (join [[
00:01:27 verbose #1184 > >         .^(0.5, 14.134725)
00:01:27 verbose #1185 > >         .^(0.75, 20.5)
00:01:27 verbose #1186 > >         .^(1.25, 30.1)
00:01:27 verbose #1187 > >         .^(0.25, 40.0)
00:01:27 verbose #1188 > >         .^(1.0, 50.0)
00:01:27 verbose #1189 > >     ]])
00:01:27 verbose #1190 > >     |> listm.iter fun s =>
00:01:27 verbose #1191 > >         inl result = zeta s
00:01:27 verbose #1192 > >         result |> re |> _assert_ne 0
00:01:27 verbose #1193 > >         result |> im |> _assert_ne 0
00:01:27 verbose #1194 > >
00:01:27 verbose #1195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 verbose #1196 > > //// test
00:01:27 verbose #1197 > > ///! rust -d num-complex pyo3
00:01:27 verbose #1198 > >
00:01:27 verbose #1199 > > test_critical_strip true
00:01:32 verbose #1200 > >
00:01:32 verbose #1201 > > ╭─[ 4.81s - return value ]─────────────────────────────────────────────────────╮
00:01:32 verbose #1202 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:01:32 verbose #1203 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:32 verbose #1204 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:01:32 verbose #1205 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:32 verbose #1206 > > │ / arg: None                                                                  │
00:01:32 verbose #1207 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:32 verbose #1208 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:01:32 verbose #1209 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:32 verbose #1210 > > │ / arg: None                                                                  │
00:01:32 verbose #1211 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:32 verbose #1212 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:01:32 verbose #1213 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:32 verbose #1214 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:32 verbose #1215 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:32 verbose #1216 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:01:32 verbose #1217 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:32 verbose #1218 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:32 verbose #1219 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:32 verbose #1220 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:01:32 verbose #1221 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:32 verbose #1222 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:32 verbose #1223 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:01:32 verbose #1224 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:32 verbose #1225 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:01:32 verbose #1226 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:01:32 verbose #1227 > > │ line(zeta_) / f_cod...3223535862290159229021 / f_lineno: 1635 /              │
00:01:32 verbose #1228 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /     │
00:01:32 verbose #1229 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:01:32 verbose #1230 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:01:32 verbose #1231 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:01:32 verbose #1232 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:01:32 verbose #1233 > > │ sre=4443714077719696485012210, sim=241793223535862290159229021 / f_lineno:   │
00:01:32 verbose #1234 > > │ 1636 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:01:32 verbose #1235 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:01:32 verbose #1236 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:01:32 verbose #1237 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:01:32 verbose #1238 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:01:32 verbose #1239 > > │ sre=4443714077719696485012210, sim=241793223535862290161313095 / f_lineno:   │
00:01:32 verbose #1240 > > │ 1637 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:01:32 verbose #1241 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:01:32 verbose #1242 > > │ gamma_ / result: (2.63173210619768e-35 - 8.16464935465334e-36j) / count: 266 │
00:01:32 verbose #1243 > > │ gamma__ / s: Complex { re: 0.0, im: -50.0 } / result: Ok(Complex { re:       │
00:01:32 verbose #1244 > > │ 2.6317321061976804e-35, im: -8.164649354653339e-36 })                        │
00:01:32 verbose #1245 > > │ zeta__ / s: Complex { re: 1.0, im: 50.0 } / result: Ok(Complex { re:         │
00:01:32 verbose #1246 > > │ 0.44103873082309397, im: 0.281582455029683 }) / z: Complex { re: 0.0, im:    │
00:01:32 verbose #1247 > > │ 0.0 }                                                                        │
00:01:32 verbose #1248 > > │ __assert_ne / actual: 0.44103873082309397 / expected: 0.0                    │
00:01:32 verbose #1249 > > │ __assert_ne / actual: 0.281582455029683 / expected: 0.0                      │
00:01:32 verbose #1250 > > │                                                                              │
00:01:32 verbose #1251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:32 verbose #1252 > >
00:01:32 verbose #1253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:32 verbose #1254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:32 verbose #1255 > > │ ## test_reflection_formula_for_specific_value                                │
00:01:32 verbose #1256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:32 verbose #1257 > >
00:01:32 verbose #1258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:32 verbose #1259 > > inl test_reflection_formula_for_specific_value log = run_test log fun zeta,
00:01:32 verbose #1260 > > gamma =>
00:01:32 verbose #1261 > >     (join [[
00:01:32 verbose #1262 > >         .^(3, 4)
00:01:32 verbose #1263 > >         .^(2.5, -3.5)
00:01:32 verbose #1264 > >         .^(1.5, 2.5)
00:01:32 verbose #1265 > >         .^(0.5, 14.134725)
00:01:32 verbose #1266 > >     ]])
00:01:32 verbose #1267 > >     |> listm.iter fun s =>
00:01:32 verbose #1268 > >         inl lhs = zeta s
00:01:32 verbose #1269 > >         inl reflection_coefficient =
00:01:32 verbose #1270 > >             (.^(2, 0) .** s)
00:01:32 verbose #1271 > >             .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:01:32 verbose #1272 > >             .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:01:32 verbose #1273 > >             .* gamma (.^(1, 0) .- s)
00:01:32 verbose #1274 > >
00:01:32 verbose #1275 > >         inl one_minus_s = .^(1 - re s, -(im s))
00:01:32 verbose #1276 > >         inl rhs = reflection_coefficient .* zeta one_minus_s
00:01:32 verbose #1277 > >
00:01:32 verbose #1278 > >         re lhs - re rhs |> abs |> _assert_lt 0.0001
00:01:32 verbose #1279 > >         im lhs - im rhs |> abs |> _assert_lt 0.0001
00:01:32 verbose #1280 > >
00:01:32 verbose #1281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:32 verbose #1282 > > //// test
00:01:32 verbose #1283 > > ///! rust -d num-complex pyo3
00:01:32 verbose #1284 > >
00:01:32 verbose #1285 > > test_reflection_formula_for_specific_value true
00:01:38 verbose #1286 > >
00:01:38 verbose #1287 > > ╭─[ 5.25s - return value ]─────────────────────────────────────────────────────╮
00:01:38 verbose #1288 > > │ zeta_ / s: (3.0, 4.0) / count: 0                                             │
00:01:38 verbose #1289 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:38 verbose #1290 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:38 verbose #1291 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 verbose #1292 > > │ / arg: None                                                                  │
00:01:38 verbose #1293 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:38 verbose #1294 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:38 verbose #1295 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 verbose #1296 > > │ / arg: None                                                                  │
00:01:38 verbose #1297 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:38 verbose #1298 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:38 verbose #1299 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 verbose #1300 > > │ / arg: None                                                                  │
00:01:38 verbose #1301 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:38 verbose #1302 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:38 verbose #1303 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 verbose #1304 > > │ / arg: None                                                                  │
00:01:38 verbose #1305 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:01:38 verbose #1306 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:38 verbose #1307 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:38 verbose #1308 > > │ / arg: None                                                                  │
00:01:38 verbose #1309 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:01:38 verbose #1310 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:38 verbose #1311 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:38 verbose #1312 > > │ / arg: None                                                                  │
00:01:38 verbose #1313 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:01:38 verbose #1314 > > │ / f_line...034 / f_code.co_filename: \mpmath\libmp\gammazeta.py /            │
00:01:38 verbose #1315 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:38 verbose #1316 > > │ / arg: None                                                                  │
00:01:38 verbose #1317 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0, 1, -1, 1), (0,   │
00:01:38 verbose #1318 > > │ 3978571390186527, -48, 52)), prec=53, rnd='n', type=0, a=(0, 1, -1, 1),      │
00:01:38 verbose #1319 > > │ b=(0, 3978571390186527, -48, 52), asign=0, aman=1, aexp=-1, abc=1, bsign=0,  │
00:01:38 verbose #1320 > > │ bman=3978571390186527, bexp=-48, bbc=52, wp=79, amag=0, bmag=4, mag=4, an=0, │
00:01:38 verbose #1321 > > │ bn=14, absn=14j, gamma_size=56, need_reflection=0, zorig=((0, 1, -1, 1), (0, │
00:01:38 verbose #1322 > > │ 3978571390186527, -48, 52)), yfinal=0, balance_prec=0, n_for_stirling=15,    │
00:01:38 verbose #1323 > > │ need_reduction=True, afix=2115620184325601055735808,                         │
00:01:38 verbose #1324 > > │ bfix=8543917002826194402410496, r=0, zprered=((0, 1, -1, 1), (0,             │
00:01:38 verbose #1325 > > │ 3978571390186527, -48, 52)), d=5, rre=-542313259704087430481959845,          │
00:01:38 verbose #1326 > > │ one=604462909807314587353088, rim=-1657865507045117397880679064, k=3 /       │
00:01:38 verbose #1327 > > │ f_lineno: 2035 / f_code.co_filename: \mpmath\libmp\gammazeta.py /            │
00:01:38 verbose #1328 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:38 verbose #1329 > > │ / arg: None                                                                  │
00:01:38 verbose #1330 > > │ gamma_ / result: (-1.4455538437607e-10 - 5.52278876877407e-10j) / count: 314 │
00:01:38 verbose #1331 > > │ gamma__ / s: Complex { re: 0.5, im: 14.134725 } / result: Ok(Complex { re:   │
00:01:38 verbose #1332 > > │ -1.4455538437606964e-10, im: -5.522788768774066e-10 })                       │
00:01:38 verbose #1333 > > │ zeta__ / s: Complex { re: 0.5, im: -14.134725 } / result: Ok(Complex { re:   │
00:01:38 verbose #1334 > > │ 1.7674298413849186e-8, im: 1.1102028930923156e-7 }) / z: Complex { re: 0.0,  │
00:01:38 verbose #1335 > > │ im: 0.0 }                                                                    │
00:01:38 verbose #1336 > > │ __assert_lt / actual: 4.499862532288471e-22 / expected: 0.0001               │
00:01:38 verbose #1337 > > │ __assert_lt / actual: 1.4558378780933287e-22 / expected: 0.0001              │
00:01:38 verbose #1338 > > │                                                                              │
00:01:38 verbose #1339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #1340 > >
00:01:38 verbose #1341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 verbose #1342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 verbose #1343 > > │ ## test_euler_product_formula                                                │
00:01:38 verbose #1344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 verbose #1345 > >
00:01:38 verbose #1346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 verbose #1347 > > inl test_euler_product_formula log = run_test log fun zeta, gamma =>
00:01:38 verbose #1348 > >     inl s_values = join [[ 2; 2.5; 3; 3.5; 4; 4.5; 5 ]]
00:01:38 verbose #1349 > >     inl primes = join [[ 2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47;
00:01:38 verbose #1350 > > 53; 59; 61; 67; 71 ]]
00:01:38 verbose #1351 > >     s_values
00:01:38 verbose #1352 > >     |> listm.iter fun s_re =>
00:01:38 verbose #1353 > >         inl s = .^(s_re, 0)
00:01:38 verbose #1354 > >         inl product =
00:01:38 verbose #1355 > >             (1, primes)
00:01:38 verbose #1356 > >             ||> listm.fold fun acc x =>
00:01:38 verbose #1357 > >                 acc * 1 / (1 - x ** -s_re)
00:01:38 verbose #1358 > >
00:01:38 verbose #1359 > >         inl result = zeta s
00:01:38 verbose #1360 > >         re result - product |> abs |> _assert_lt 0.01
00:01:38 verbose #1361 > >         result |> im |> _assert_lt 0.01
00:01:38 verbose #1362 > >
00:01:38 verbose #1363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:38 verbose #1364 > > //// test
00:01:38 verbose #1365 > > ///! rust -d num-complex pyo3
00:01:38 verbose #1366 > >
00:01:38 verbose #1367 > > test_euler_product_formula true
00:01:43 verbose #1368 > >
00:01:43 verbose #1369 > > ╭─[ 4.88s - return value ]─────────────────────────────────────────────────────╮
00:01:43 verbose #1370 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:01:43 verbose #1371 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:43 verbose #1372 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:43 verbose #1373 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:43 verbose #1374 > > │ / arg: None                                                                  │
00:01:43 verbose #1375 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:43 verbose #1376 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:43 verbose #1377 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:43 verbose #1378 > > │ / arg: None                                                                  │
00:01:43 verbose #1379 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:43 verbose #1380 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:43 verbose #1381 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:43 verbose #1382 > > │ / arg: None                                                                  │
00:01:43 verbose #1383 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:43 verbose #1384 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:43 verbose #1385 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:43 verbose #1386 > > │ / arg: None                                                                  │
00:01:43 verbose #1387 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:43 verbose #1388 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:43 verbose #1389 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:43 verbose #1390 > > │ / arg: None                                                                  │
00:01:43 verbose #1391 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:43 verbose #1392 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:43 verbose #1393 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:43 verbose #1394 > > │ / arg: None                                                                  │
00:01:43 verbose #1395 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:43 verbose #1396 > > │ / f_line...k.f_lineno: 976 / f_back.f_code.co_filename:                      │
00:01:43 verbose #1397 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:01:43 verbose #1398 > > │ line(zeta_) / f_code.co_name: mpf_zeta_int / f_locals: s=5, prec=53,         │
00:01:43 verbose #1399 > > │ rnd='n', wp=73, m=19.25, needed_terms=623488, n=33, d=[1, 2179, 792067,      │
00:01:43 verbose #1400 > > │ 115062531, 8930212611, 429314925315, 13983537177347, 327666966438659,        │
00:01:43 verbose #1401 > > │ 5764846406968067, 78615943485956867, 851604426176701187,                     │
00:01:43 verbose #1402 > > │ 7470527451121689347, 53898915046387983107, 323897845985013506819,            │
00:01:43 verbose #1403 > > │ 1638178356374090130179, 7034281785235908174595, 25833609859980306522883,     │
00:01:43 verbose #1404 > > │ 81661917475887913739011, 223448095548034217779971, 532029677981012660429571, │
00:01:43 verbose #1405 > > │ 1108048631855905753375491, 2029946562680066824315651,                        │
00:01:43 verbose #1406 > > │ 3292927237466655352791811, 4769455369342763680768771,                        │
00:01:43 verbose #1407 > > │ 6235511670496346417767171, 7463408621503347142796035,                        │
00:01:43 verbose #1408 > > │ 8322751284048216428487427, 8818779962777819524211459,                        │
00:01:43 verbose #1409 > > │ 9050689474911140452082435, 9136270117622166323831555,                        │
00:01:43 verbose #1410 > > │ 9160252037839493347779331, 9165045885455648617505539,                        │
00:01:43 verbose #1411 > > │ 9165654628010081032708867, 9165691521498228451812099],                       │
00:01:43 verbose #1412 > > │ t=-84153981556310142931811887755527036638996681066, k=21 / f_lineno: 944 /   │
00:01:43 verbose #1413 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 976 /      │
00:01:43 verbose #1414 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:01:43 verbose #1415 > > │ zeta_ / result: (1.03692775514337 + 0.0j) / count: 236                       │
00:01:43 verbose #1416 > > │ zeta / count: 0 / s: Complex { re: 5.0, im: 0.0 }                            │
00:01:43 verbose #1417 > > │ zeta__ / s: Complex { re: 5.0, im: 0.0 } / result: Ok(Complex { re:          │
00:01:43 verbose #1418 > > │ 1.03692775514337, im: 0.0 }) / z: Complex { re: NaN, im: NaN }               │
00:01:43 verbose #1419 > > │ __assert_lt / actual: 2.0033654735129858e-9 / expected: 0.01                 │
00:01:43 verbose #1420 > > │ __assert_lt / actual: 0.0 / expected: 0.01                                   │
00:01:43 verbose #1421 > > │                                                                              │
00:01:43 verbose #1422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1423 > >
00:01:43 verbose #1424 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #1425 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #1426 > > │ ## graph                                                                     │
00:01:43 verbose #1427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1428 > >
00:01:43 verbose #1429 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:43 verbose #1430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #1431 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:01:43 verbose #1432 > > │ <link rel="stylesheet"                                                       │
00:01:43 verbose #1433 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:43 verbose #1434 > > │ css">                                                                        │
00:01:43 verbose #1435 > > │ <div id="e23049c5fc0249c1afd99ee383ddddcf"></div>                            │
00:01:43 verbose #1436 > > │ <script type="module">                                                       │
00:01:43 verbose #1437 > > │                                                                              │
00:01:43 verbose #1438 > > │             import mermaid from                                              │
00:01:43 verbose #1439 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:01:43 verbose #1440 > > │             let renderTarget =                                               │
00:01:43 verbose #1441 > > │ document.getElementById('e23049c5fc0249c1afd99ee383ddddcf');                 │
00:01:43 verbose #1442 > > │             try {                                                            │
00:01:43 verbose #1443 > > │                 const {svg, bindFunctions} = await                           │
00:01:43 verbose #1444 > > │ mermaid.mermaidAPI.render(                                                   │
00:01:43 verbose #1445 > > │                     'mermaid_e23049c5fc0249c1afd99ee383ddddcf',              │
00:01:43 verbose #1446 > > │                     `graph TD                                                │
00:01:43 verbose #1447 > > │     zeta("zeta()") --> convert                                               │
00:01:43 verbose #1448 > > │     zeta --> f["f()"]                                                        │
00:01:43 verbose #1449 > > │     f --> mpc_f["mpc_zeta()"]                                                │
00:01:43 verbose #1450 > > │     f --> mpf_f["mpf_zeta()"]                                                │
00:01:43 verbose #1451 > > │     convert --> from_float                                                   │
00:01:43 verbose #1452 > > │     from_float --> from_man_exp                                              │
00:01:43 verbose #1453 > > │     from_man_exp --> python_bitcount                                         │
00:01:43 verbose #1454 > > │     python_bitcount --> _normalize                                           │
00:01:43 verbose #1455 > > │     _normalize --> make_mpc                                                  │
00:01:43 verbose #1456 > > │     make_mpc --> mpc_zeta["mpc_zeta()"]                                      │
00:01:43 verbose #1457 > > │     mpc_zeta --> mpf_zeta["mpf_zeta()"]                                      │
00:01:43 verbose #1458 > > │     mpf_zeta --> to_int                                                      │
00:01:43 verbose #1459 > > │     to_int --> mpf_zeta_int["mpf_zeta_int()"]                                │
00:01:43 verbose #1460 > > │     mpf_zeta_int --> borwein_coefficients                                    │
00:01:43 verbose #1461 > > │     borwein_coefficients --> from_man_exp_2("from_man_exp()")                │
00:01:43 verbose #1462 > > │     from_man_exp_2 --> python_bitcount_2("python_bitcount()")                │
00:01:43 verbose #1463 > > │     python_bitcount_2 --> _normalize_2("_normalize()")                       │
00:01:43 verbose #1464 > > │     _normalize_2 --> make_mpc_2("make_mpc()")                                │
00:01:43 verbose #1465 > > │     make_mpc_2 --> stop_trace                                                │
00:01:43 verbose #1466 > > │     mpf_zeta_int --> mpf_bernoulli                                           │
00:01:43 verbose #1467 > > │     mpf_bernoulli --> bernoulli_size                                         │
00:01:43 verbose #1468 > > │     bernoulli_size --> mpf_rdiv_int                                          │
00:01:43 verbose #1469 > > │     mpf_rdiv_int --> python_bitcount_3("python_bitcount()")                  │
00:01:43 verbose #1470 > > │     python_bitcount_3 --> _normalize1                                        │
00:01:43 verbose #1471 > > │     _normalize1 --> from_man_exp_3("from_man_exp()")                         │
00:01:43 verbose #1472 > > │     from_man_exp_3 --> _normalize_3("_normalize()")                          │
00:01:43 verbose #1473 > > │     _normalize_3 --> mpf_sub                                                 │
00:01:43 verbose #1474 > > │     mpf_sub --> mpf_add                                                      │
00:01:43 verbose #1475 > > │     mpf_add --> mpf_neg                                                      │
00:01:43 verbose #1476 > > │     mpf_neg --> _normalize1_2("_normalize1()")                               │
00:01:43 verbose #1477 > > │     _normalize1_2 --> from_int                                               │
00:01:43 verbose #1478 > > │     from_int --> mpf_div                                                     │
00:01:43 verbose #1479 > > │     mpf_div --> python_bitcount_4("python_bitcount()")                       │
00:01:43 verbose #1480 > > │     python_bitcount_4 --> _normalize1_3("_normalize1()")                     │
00:01:43 verbose #1481 > > │     _normalize1_3 --> make_mpc_3("make_mpc()")                               │
00:01:43 verbose #1482 > > │     make_mpc_3 --> final_stop["stop_trace()"]`);                             │
00:01:43 verbose #1483 > > │                 renderTarget.innerHTML = svg;                                │
00:01:43 verbose #1484 > > │                 bindFunctions?.(renderTarget);                               │
00:01:43 verbose #1485 > > │             }                                                                │
00:01:43 verbose #1486 > > │             catch (error) {                                                  │
00:01:43 verbose #1487 > > │                 console.log(error);                                          │
00:01:43 verbose #1488 > > │             }                                                                │
00:01:43 verbose #1489 > > │ </script>                                                                    │
00:01:43 verbose #1490 > > │ </div>                                                                       │
00:01:43 verbose #1491 > > │                                                                              │
00:01:43 verbose #1492 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1493 > >
00:01:43 verbose #1494 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:01:43 verbose #1495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #1496 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:01:43 verbose #1497 > > │ <link rel="stylesheet"                                                       │
00:01:43 verbose #1498 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:01:43 verbose #1499 > > │ css">                                                                        │
00:01:43 verbose #1500 > > │ <div id="739fed5690dc439dbf9839ce0990553d"></div>                            │
00:01:43 verbose #1501 > > │ <script type="module">                                                       │
00:01:43 verbose #1502 > > │                                                                              │
00:01:43 verbose #1503 > > │             import mermaid from                                              │
00:01:43 verbose #1504 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:01:43 verbose #1505 > > │             let renderTarget =                                               │
00:01:43 verbose #1506 > > │ document.getElementById('739fed5690dc439dbf9839ce0990553d');                 │
00:01:43 verbose #1507 > > │             try {                                                            │
00:01:43 verbose #1508 > > │                 const {svg, bindFunctions} = await                           │
00:01:43 verbose #1509 > > │ mermaid.mermaidAPI.render(                                                   │
00:01:43 verbose #1510 > > │                     'mermaid_739fed5690dc439dbf9839ce0990553d',              │
00:01:43 verbose #1511 > > │                     `graph TD                                                │
00:01:43 verbose #1512 > > │     zeta_rust("zeta() - Rust") --> num_traits("num-traits")                  │
00:01:43 verbose #1513 > > │     zeta_rust --> num_bigint("num-bigint")                                   │
00:01:43 verbose #1514 > > │     zeta_rust --> rust_decimal("rust_decimal for precision")                 │
00:01:43 verbose #1515 > > │     zeta_rust --> error_handling("Rust Error Handling")                      │
00:01:43 verbose #1516 > > │                                                                              │
00:01:43 verbose #1517 > > │     num_traits --> num_traits_usage("Use for common traits")                 │
00:01:43 verbose #1518 > > │     num_bigint --> bigint_operations("Arbitrary-precision arithmetic         │
00:01:43 verbose #1519 > > │ operations")                                                                 │
00:01:43 verbose #1520 > > │     rust_decimal --> decimal_operations("High-precision decimal operations") │
00:01:43 verbose #1521 > > │     error_handling --> result_type("Use Result<T, E> for error handling")    │
00:01:43 verbose #1522 > > │                                                                              │
00:01:43 verbose #1523 > > │     bigint_operations --> convert_rust("convert() - Rust")                   │
00:01:43 verbose #1524 > > │     bigint_operations --> normalize_rust("_normalize() - Rust")              │
00:01:43 verbose #1525 > > │                                                                              │
00:01:43 verbose #1526 > > │     convert_rust --> from_float_rust("from_float() - Rust")                  │
00:01:43 verbose #1527 > > │     from_float_rust --> from_man_exp_rust("from_man_exp() - Rust")           │
00:01:43 verbose #1528 > > │     from_man_exp_rust --> bitcount_rust("bitcount() - Rust")                 │
00:01:43 verbose #1529 > > │     bitcount_rust --> normalize_rust                                         │
00:01:43 verbose #1530 > > │     normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust")                    │
00:01:43 verbose #1531 > > │     mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust")                     │
00:01:43 verbose #1532 > > │     mpf_zeta_rust --> to_int_rust("to_int() - Rust")                         │
00:01:43 verbose #1533 > > │     to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust")               │
00:01:43 verbose #1534 > > │                                                                              │
00:01:43 verbose #1535 > > │     mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients()  │
00:01:43 verbose #1536 > > │ - Rust")                                                                     │
00:01:43 verbose #1537 > > │     borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() -      │
00:01:43 verbose #1538 > > │ Rust")                                                                       │
00:01:43 verbose #1539 > > │     from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust")             │
00:01:43 verbose #1540 > > │     bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust")              │
00:01:43 verbose #1541 > > │     normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust")                  │
00:01:43 verbose #1542 > > │                                                                              │
00:01:43 verbose #1543 > > │     mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust")       │
00:01:43 verbose #1544 > > │     mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust")    │
00:01:43 verbose #1545 > > │     bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust")       │
00:01:43 verbose #1546 > > │     mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust")               │
00:01:43 verbose #1547 > > │     bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust")              │
00:01:43 verbose #1548 > > │     normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust")         │
00:01:43 verbose #1549 > > │     from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust")          │
00:01:43 verbose #1550 > > │     normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust")                    │
00:01:43 verbose #1551 > > │     mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust")                        │
00:01:43 verbose #1552 > > │     mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust")                        │
00:01:43 verbose #1553 > > │     mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust")               │
00:01:43 verbose #1554 > > │     normalize1_rust_2 --> from_int_rust("from_int() - Rust")                 │
00:01:43 verbose #1555 > > │     from_int_rust --> mpf_div_rust("mpf_div() - Rust")                       │
00:01:43 verbose #1556 > > │     mpf_div_rust --> bitcount_rust_4("bitcount() - Rust")                    │
00:01:43 verbose #1557 > > │     bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust")            │
00:01:43 verbose #1558 > > │                                                                              │
00:01:43 verbose #1559 > > │     style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px                   │
00:01:43 verbose #1560 > > │     style num_traits fill:#bbf,stroke:#333,stroke-width:2px                  │
00:01:43 verbose #1561 > > │     style num_bigint fill:#bbf,stroke:#333,stroke-width:2px                  │
00:01:43 verbose #1562 > > │     style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px                │
00:01:43 verbose #1563 > > │     style error_handling fill:#bbf,stroke:#333,stroke-width:2px              │
00:01:43 verbose #1564 > > │     style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px           │
00:01:43 verbose #1565 > > │     style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px          │
00:01:43 verbose #1566 > > │     style result_type fill:#bfb,stroke:#333,stroke-width:2px`);              │
00:01:43 verbose #1567 > > │                 renderTarget.innerHTML = svg;                                │
00:01:43 verbose #1568 > > │                 bindFunctions?.(renderTarget);                               │
00:01:43 verbose #1569 > > │             }                                                                │
00:01:43 verbose #1570 > > │             catch (error) {                                                  │
00:01:43 verbose #1571 > > │                 console.log(error);                                          │
00:01:43 verbose #1572 > > │             }                                                                │
00:01:43 verbose #1573 > > │ </script>                                                                    │
00:01:43 verbose #1574 > > │ </div>                                                                       │
00:01:43 verbose #1575 > > │                                                                              │
00:01:43 verbose #1576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1577 > >
00:01:43 verbose #1578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #1579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #1580 > > │ ## tests                                                                     │
00:01:43 verbose #1581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1582 > >
00:01:43 verbose #1583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #1584 > > inl tests () =
00:01:43 verbose #1585 > >     testing.run_tests_log {
00:01:43 verbose #1586 > >         test_zeta_at_known_values_
00:01:43 verbose #1587 > >         test_zeta_at_2_minus2
00:01:43 verbose #1588 > >         test_trivial_zero_at_negative_even___
00:01:43 verbose #1589 > >         test_non_trivial_zero___
00:01:43 verbose #1590 > >         test_real_part_greater_than_one___
00:01:43 verbose #1591 > >         test_zeta_at_1___
00:01:43 verbose #1592 > >         test_symmetry_across_real_axis___
00:01:43 verbose #1593 > >         test_behavior_near_origin___
00:01:43 verbose #1594 > >         test_imaginary_axis
00:01:43 verbose #1595 > >         test_critical_strip
00:01:43 verbose #1596 > >         test_reflection_formula_for_specific_value
00:01:43 verbose #1597 > >         test_euler_product_formula
00:01:43 verbose #1598 > >     }
00:01:43 verbose #1599 > >
00:01:43 verbose #1600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #1601 > > ///! _
00:01:43 verbose #1602 > >
00:01:43 verbose #1603 > > inl main (_args : array_base string) =
00:01:43 verbose #1604 > >     inl value = 1i32
00:01:43 verbose #1605 > >     console.write_line ($'$"value: {!value}"' : string)
00:01:43 verbose #1606 > >     0i32
00:01:43 verbose #1607 > >
00:01:43 verbose #1608 > > inl main () =
00:01:43 verbose #1609 > >     $'let tests () = !tests ()' : ()
00:01:43 verbose #1610 > >     $'let main args = !main args' : ()
00:01:45 verbose #1611 > 00:01:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 97974 }
00:01:45 verbose #1612 > 00:01:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:01:45 verbose #1613 >     "nbconvert",
00:01:45 verbose #1614 >     "c:/home/git/polyglot/lib/math/math.dib.ipynb",
00:01:45 verbose #1615 >     "--to",
00:01:45 verbose #1616 >     "html",
00:01:45 verbose #1617 >     "--HTMLExporter.theme=dark",
00:01:45 verbose #1618 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/math/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:48 verbose #1619 > 00:01:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/math/math.dib.ipynb to html
00:01:48 verbose #1620 > 00:01:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:48 verbose #1621 > 00:01:46 verbose #7 !   validate(nb)
00:01:52 verbose #1622 > 00:01:50 verbose #8 ! [NbConvertApp] Writing 7295235 bytes to c:\home\git\polyglot\lib\math\math.dib.html
00:01:52 verbose #1623 > 00:01:51 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 636 }
00:01:52 verbose #1624 > 00:01:51   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 636 }
00:01:52 verbose #1625 > 00:01:51   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:52 verbose #1626 >     "-c",
00:01:52 verbose #1627 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:52 verbose #1628 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:53 verbose #1629 > 00:01:51 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:53 verbose #1630 > 00:01:51   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:53 verbose #1631 > 00:01:51   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 98669 }
00:01:53   debug #1632 runtime.execute_with_options_async / { exit_code = 0; output_length = 104513 }
00:01:53   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1
00:00:00   debug #1 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: math.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:01   debug #2 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:01   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:01 verbose #4 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # math\nopen testing\nopen rust.rust_operators\nopen rust\n\n/// ## comp...027let main args = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:01 verbose #5 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02   debug #6 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...v3 (); v2) ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure4()
let main args = v1 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>]
#endif
type pyo3_Python = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa...v3 (); v2) ()
    0
let v0 : (unit -> unit) = closure0()
let tests () = v0 ()
let v1 : ((string []) -> int32) = closure4()
let main args = v1 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02   debug #10 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: math / hash:  / code.Length: 139519
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\math\math.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:01 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:03 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 578 ms).
00:00:03 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:21 verbose #6 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:22 verbose #7 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:23   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 637 }
00:00:23   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:23 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:24 verbose #11 >   Determining projects to restore...
00:00:25 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 618 ms).
00:00:25 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:43 verbose #14 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:45 verbose #15 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:45   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 635 }
targetDir: C:\home\git\polyglot\target\Builder\math
Fable 4.20.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @davidpodhola
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 253ms

Started Fable compilation...

Fable compilation finished in 12934ms

.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(145,0): (145,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1012,0): (1012,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1391,0): (1391,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1300,0): (1300,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(414,0): (414,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4639,0): (4639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1333,0): (1333,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(6776,0): (6776,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11018,0): (11018,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\math\math.fs(33,0): (35,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
    Finished `release` profile [optimized] target(s) in 33.82s
     Running unittests math.rs (C:\home\git\polyglot\workspace\target\release\deps\math-9b1f9bad46170197.exe)

running 12 tests
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.74s

In [ ]:
{ pwsh ../apps/plot/build.ps1 } | Invoke-Block
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling plot v0.0.1 (C:\home\git\polyglot\apps\plot)
    Finished `release` profile [optimized] target(s) in 31.37s
In [ ]:
{ pwsh ../apps/perf/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Perf.dib", "--retries", "3"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/perf/Perf.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/perf/Perf.dib" --output-path "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ # Perf (Polyglot)                                                            │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #16 > >
00:00:31 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #18 > > //// test
00:00:31 verbose #19 > >
00:00:31 verbose #20 > > open testing
00:00:31 verbose #21 > > open benchmark
00:00:33 verbose #22 > >
00:00:33 verbose #23 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #24 > > #if !INTERACTIVE
00:00:33 verbose #25 > > open Lib
00:00:33 verbose #26 > > #endif
00:00:33 verbose #27 > >
00:00:33 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #30 > > │ ## TestCaseResult                                                            │
00:00:33 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #32 > >
00:00:33 verbose #33 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #34 > > type TestCaseResult =
00:00:33 verbose #35 > >     {
00:00:33 verbose #36 > >         Input: string
00:00:33 verbose #37 > >         Expected: string
00:00:33 verbose #38 > >         Result: string
00:00:33 verbose #39 > >         TimeList: int64 list
00:00:33 verbose #40 > >     }
00:00:33 verbose #41 > >
00:00:33 verbose #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #44 > > │ ## run                                                                       │
00:00:33 verbose #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #46 > >
00:00:33 verbose #47 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #48 > > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:33 verbose #49 > > expected) =
00:00:33 verbose #50 > >     let inputStr =
00:00:33 verbose #51 > >         match box input with
00:00:33 verbose #52 > >         | :? System.Collections.ICollection as input ->
00:00:33 verbose #53 > >             System.Linq.Enumerable.Cast<obj> input
00:00:33 verbose #54 > >             |> Seq.map string
00:00:33 verbose #55 > >             |> SpiralSm.concat ","
00:00:33 verbose #56 > >         | _ -> input.ToString ()
00:00:33 verbose #57 > >
00:00:33 verbose #58 > >     printfn ""
00:00:33 verbose #59 > >     printfn $"Solution: {inputStr}  "
00:00:33 verbose #60 > >
00:00:33 verbose #61 > >     let performanceInvoke (fn: unit -> 'T) =
00:00:33 verbose #62 > >         GC.Collect ()
00:00:33 verbose #63 > >         let stopwatch = System.Diagnostics.Stopwatch ()
00:00:33 verbose #64 > >         stopwatch.Start ()
00:00:33 verbose #65 > >         let time1 = stopwatch.ElapsedMilliseconds
00:00:33 verbose #66 > >
00:00:33 verbose #67 > >         let result =
00:00:33 verbose #68 > >             [[| 0 .. count |]]
00:00:33 verbose #69 > >             |> Array.Parallel.map (fun _ ->
00:00:33 verbose #70 > >                 fn ()
00:00:33 verbose #71 > >             )
00:00:33 verbose #72 > >             |> Array.last
00:00:33 verbose #73 > >
00:00:33 verbose #74 > >         let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:33 verbose #75 > >
00:00:33 verbose #76 > >         result, time2
00:00:33 verbose #77 > >
00:00:33 verbose #78 > >     let resultsWithTime =
00:00:33 verbose #79 > >         solutions
00:00:33 verbose #80 > >         |> List.mapi (fun i (testName, solution) ->
00:00:33 verbose #81 > >             let result, time = performanceInvoke (fun () -> solution input)
00:00:33 verbose #82 > >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "
00:00:33 verbose #83 > >             result, time
00:00:33 verbose #84 > >         )
00:00:33 verbose #85 > >
00:00:33 verbose #86 > >
00:00:33 verbose #87 > >     match resultsWithTime |> List.map fst with
00:00:33 verbose #88 > >     | ([[]] | [[ _ ]]) -> ()
00:00:33 verbose #89 > >     | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:33 verbose #90 > >     | results -> failwithf $"Challenge error: %A{results}"
00:00:33 verbose #91 > >
00:00:33 verbose #92 > >     {
00:00:33 verbose #93 > >         Input = inputStr
00:00:33 verbose #94 > >         Expected = expected.ToString ()
00:00:33 verbose #95 > >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:33 verbose #96 > >         TimeList = resultsWithTime |> List.map snd
00:00:33 verbose #97 > >     }
00:00:33 verbose #98 > >
00:00:33 verbose #99 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #101 > > │ ## runAll                                                                    │
00:00:33 verbose #102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #103 > >
00:00:33 verbose #104 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #105 > > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:33 verbose #106 > > testCases =
00:00:33 verbose #107 > >     printfn ""
00:00:33 verbose #108 > >     printfn ""
00:00:33 verbose #109 > >     printfn $"Test: {testName}"
00:00:33 verbose #110 > >     testCases
00:00:33 verbose #111 > >     |> Seq.map (run count solutions)
00:00:33 verbose #112 > >     |> Seq.toList
00:00:33 verbose #113 > >
00:00:33 verbose #114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #116 > > │ ## sortResultList                                                            │
00:00:33 verbose #117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #118 > >
00:00:33 verbose #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #120 > > let sortResultList resultList =
00:00:33 verbose #121 > >     let table =
00:00:33 verbose #122 > >         let rows =
00:00:33 verbose #123 > >             resultList
00:00:33 verbose #124 > >             |> List.map (fun result ->
00:00:33 verbose #125 > >                 let best =
00:00:33 verbose #126 > >                     result.TimeList
00:00:33 verbose #127 > >                     |> List.mapi (fun i time ->
00:00:33 verbose #128 > >                         i + 1, time
00:00:33 verbose #129 > >                     )
00:00:33 verbose #130 > >                     |> List.sortBy snd
00:00:33 verbose #131 > >                     |> List.head
00:00:33 verbose #132 > >                     |> _.ToString()
00:00:33 verbose #133 > >                 let row =
00:00:33 verbose #134 > >                     [[
00:00:33 verbose #135 > >                         result.Input
00:00:33 verbose #136 > >                         result.Expected
00:00:33 verbose #137 > >                         result.Result
00:00:33 verbose #138 > >                         best
00:00:33 verbose #139 > >                     ]]
00:00:33 verbose #140 > >                 let color =
00:00:33 verbose #141 > >                     match result.Expected = result.Result with
00:00:33 verbose #142 > >                     | true -> Some ConsoleColor.DarkGreen
00:00:33 verbose #143 > >                     | false -> Some ConsoleColor.DarkRed
00:00:33 verbose #144 > >                 row, color
00:00:33 verbose #145 > >             )
00:00:33 verbose #146 > >         let header =
00:00:33 verbose #147 > >             [[
00:00:33 verbose #148 > >                 [[
00:00:33 verbose #149 > >                     "Input"
00:00:33 verbose #150 > >                     "Expected"
00:00:33 verbose #151 > >                     "Result"
00:00:33 verbose #152 > >                     "Best"
00:00:33 verbose #153 > >                 ]]
00:00:33 verbose #154 > >                 [[
00:00:33 verbose #155 > >                     "---"
00:00:33 verbose #156 > >                     "---"
00:00:33 verbose #157 > >                     "---"
00:00:33 verbose #158 > >                     "---"
00:00:33 verbose #159 > >                 ]]
00:00:33 verbose #160 > >             ]]
00:00:33 verbose #161 > >             |> List.map (fun row -> row, None)
00:00:33 verbose #162 > >         header @ rows
00:00:33 verbose #163 > >
00:00:33 verbose #164 > >     let formattedTable =
00:00:33 verbose #165 > >         let lengthMap =
00:00:33 verbose #166 > >             table
00:00:33 verbose #167 > >             |> List.map fst
00:00:33 verbose #168 > >             |> List.transpose
00:00:33 verbose #169 > >             |> List.map (fun column ->
00:00:33 verbose #170 > >                 column
00:00:33 verbose #171 > >                 |> List.map String.length
00:00:33 verbose #172 > >                 |> List.sortDescending
00:00:33 verbose #173 > >                 |> List.tryHead
00:00:33 verbose #174 > >                 |> Option.defaultValue 0
00:00:33 verbose #175 > >             )
00:00:33 verbose #176 > >             |> List.indexed
00:00:33 verbose #177 > >             |> Map.ofList
00:00:33 verbose #178 > >         table
00:00:33 verbose #179 > >         |> List.map (fun (row, color) ->
00:00:33 verbose #180 > >             let newRow =
00:00:33 verbose #181 > >                 row
00:00:33 verbose #182 > >                 |> List.mapi (fun i cell ->
00:00:33 verbose #183 > >                     cell.PadRight lengthMap.[[i]]
00:00:33 verbose #184 > >                 )
00:00:33 verbose #185 > >             newRow, color
00:00:33 verbose #186 > >         )
00:00:33 verbose #187 > >
00:00:33 verbose #188 > >     printfn ""
00:00:33 verbose #189 > >     formattedTable
00:00:33 verbose #190 > >     |> List.iter (fun (row, color) ->
00:00:33 verbose #191 > >         match color with
00:00:33 verbose #192 > >         | Some color -> Console.ForegroundColor <- color
00:00:33 verbose #193 > >         | None -> Console.ResetColor ()
00:00:33 verbose #194 > >
00:00:33 verbose #195 > >         printfn "%s" (String.Join ("\t| ", row))
00:00:33 verbose #196 > >
00:00:33 verbose #197 > >         Console.ResetColor ()
00:00:33 verbose #198 > >     )
00:00:33 verbose #199 > >
00:00:33 verbose #200 > >     let averages =
00:00:33 verbose #201 > >         resultList
00:00:33 verbose #202 > >         |> List.map (fun result -> result.TimeList |> List.map float)
00:00:33 verbose #203 > >         |> List.transpose
00:00:33 verbose #204 > >         |> List.map List.average
00:00:33 verbose #205 > >         |> List.map int64
00:00:33 verbose #206 > >         |> List.indexed
00:00:33 verbose #207 > >
00:00:33 verbose #208 > >     printfn ""
00:00:33 verbose #209 > >     printfn "Average Ranking  "
00:00:33 verbose #210 > >     averages
00:00:33 verbose #211 > >     |> List.sortBy snd
00:00:33 verbose #212 > >     |> List.iter (fun (i, avg) ->
00:00:33 verbose #213 > >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "
00:00:33 verbose #214 > >     )
00:00:33 verbose #215 > >
00:00:33 verbose #216 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #217 > > let mutable _count =
00:00:33 verbose #218 > >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:33 verbose #219 > > <> "<null>"
00:00:33 verbose #220 > >     then 2000000
00:00:33 verbose #221 > >     else 2000
00:00:33 verbose #222 > >
00:00:33 verbose #223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #224 > > inl is_fast () =
00:00:33 verbose #225 > >     false
00:00:34 verbose #226 > >
00:00:34 verbose #227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #229 > > │ ## empty3Tests                                                               │
00:00:34 verbose #230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #231 > >
00:00:34 verbose #232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #234 > > │ Test: Empty3                                                                 │
00:00:34 verbose #235 > > │                                                                              │
00:00:34 verbose #236 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #237 > > │ Test case 1. A. Time: 91L                                                    │
00:00:34 verbose #238 > > │                                                                              │
00:00:34 verbose #239 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #240 > > │ Test case 1. A. Time: 56L                                                    │
00:00:34 verbose #241 > > │                                                                              │
00:00:34 verbose #242 > > │ Input  | Expected      | Result | Best                                       │
00:00:34 verbose #243 > > │ ---    | ---           | ---    | ---                                        │
00:00:34 verbose #244 > > │ (a, a) | a             | a      | (1, 91)                                    │
00:00:34 verbose #245 > > │ (a, a) | a             | a      | (1, 56)                                    │
00:00:34 verbose #246 > > │                                                                              │
00:00:34 verbose #247 > > │ Averages                                                                     │
00:00:34 verbose #248 > > │ Test case 1. Average Time: 73L                                               │
00:00:34 verbose #249 > > │                                                                              │
00:00:34 verbose #250 > > │ Ranking                                                                      │
00:00:34 verbose #251 > > │ Test case 1. Average Time: 73L                                               │
00:00:34 verbose #252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #253 > >
00:00:34 verbose #254 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #255 > > //// test
00:00:34 verbose #256 > >
00:00:34 verbose #257 > > let solutions = [[
00:00:34 verbose #258 > >     "A",
00:00:34 verbose #259 > >     fun (a, _b) ->
00:00:34 verbose #260 > >         a
00:00:34 verbose #261 > > ]]
00:00:34 verbose #262 > > let testCases = seq {
00:00:34 verbose #263 > >     ("a", "a"), "a"
00:00:34 verbose #264 > >     ("a", "a"), "a"
00:00:34 verbose #265 > > }
00:00:34 verbose #266 > > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:34 verbose #267 > > empty3Tests
00:00:34 verbose #268 > > |> sortResultList
00:00:34 verbose #269 > >
00:00:34 verbose #270 > > ╭─[ 800.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 verbose #271 > > │                                                                              │
00:00:34 verbose #272 > > │                                                                              │
00:00:34 verbose #273 > > │ Test: empty3Tests                                                            │
00:00:34 verbose #274 > > │                                                                              │
00:00:34 verbose #275 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #276 > > │ Test case 1. A. Time: 2L                                                     │
00:00:34 verbose #277 > > │                                                                              │
00:00:34 verbose #278 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #279 > > │ Test case 1. A. Time: 0L                                                     │
00:00:34 verbose #280 > > │                                                                              │
00:00:34 verbose #281 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:34 verbose #282 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:34 verbose #283 > > │ (a, a)	| a       	| a     	| (1, 2)                                                │
00:00:34 verbose #284 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:34 verbose #285 > > │                                                                              │
00:00:34 verbose #286 > > │ Average Ranking                                                              │
00:00:34 verbose #287 > > │ Test case 1. Average Time: 1L                                                │
00:00:34 verbose #288 > > │                                                                              │
00:00:34 verbose #289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #290 > >
00:00:34 verbose #291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #293 > > │ ## empty2Tests                                                               │
00:00:34 verbose #294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #295 > >
00:00:34 verbose #296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #298 > > │ Test: Empty2                                                                 │
00:00:34 verbose #299 > > │                                                                              │
00:00:34 verbose #300 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #301 > > │ Test case 1. A. Time: 59L                                                    │
00:00:34 verbose #302 > > │                                                                              │
00:00:34 verbose #303 > > │ Solution: (a, a)                                                             │
00:00:34 verbose #304 > > │ Test case 1. A. Time: 53L                                                    │
00:00:34 verbose #305 > > │                                                                              │
00:00:34 verbose #306 > > │ Input   | Expected        | Result  | Best                                   │
00:00:34 verbose #307 > > │ ---     | ---             | ---     | ---                                    │
00:00:34 verbose #308 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:00:34 verbose #309 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:00:34 verbose #310 > > │                                                                              │
00:00:34 verbose #311 > > │ Averages                                                                     │
00:00:34 verbose #312 > > │ Test case 1. Average Time: 56L                                               │
00:00:34 verbose #313 > > │                                                                              │
00:00:34 verbose #314 > > │ Ranking                                                                      │
00:00:34 verbose #315 > > │ Test case 1. Average Time: 56L                                               │
00:00:34 verbose #316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #317 > >
00:00:34 verbose #318 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #319 > > //// test
00:00:34 verbose #320 > >
00:00:34 verbose #321 > > let solutions = [[
00:00:34 verbose #322 > >     "A",
00:00:34 verbose #323 > >     fun (a, _b) ->
00:00:34 verbose #324 > >         a
00:00:34 verbose #325 > > ]]
00:00:34 verbose #326 > > let testCases = seq {
00:00:34 verbose #327 > >     ("a", "a"), "a"
00:00:34 verbose #328 > >     ("a", "a"), "a"
00:00:34 verbose #329 > > }
00:00:34 verbose #330 > > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:34 verbose #331 > > empty2Tests
00:00:34 verbose #332 > > |> sortResultList
00:00:35 verbose #333 > >
00:00:35 verbose #334 > > ╭─[ 726.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 verbose #335 > > │                                                                              │
00:00:35 verbose #336 > > │                                                                              │
00:00:35 verbose #337 > > │ Test: empty2Tests                                                            │
00:00:35 verbose #338 > > │                                                                              │
00:00:35 verbose #339 > > │ Solution: (a, a)                                                             │
00:00:35 verbose #340 > > │ Test case 1. A. Time: 0L                                                     │
00:00:35 verbose #341 > > │                                                                              │
00:00:35 verbose #342 > > │ Solution: (a, a)                                                             │
00:00:35 verbose #343 > > │ Test case 1. A. Time: 0L                                                     │
00:00:35 verbose #344 > > │                                                                              │
00:00:35 verbose #345 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:35 verbose #346 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:35 verbose #347 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:35 verbose #348 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:35 verbose #349 > > │                                                                              │
00:00:35 verbose #350 > > │ Average Ranking                                                              │
00:00:35 verbose #351 > > │ Test case 1. Average Time: 0L                                                │
00:00:35 verbose #352 > > │                                                                              │
00:00:35 verbose #353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #354 > >
00:00:35 verbose #355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #357 > > │ ## emptyTests                                                                │
00:00:35 verbose #358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #359 > >
00:00:35 verbose #360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #362 > > │ Test: Empty                                                                  │
00:00:35 verbose #363 > > │                                                                              │
00:00:35 verbose #364 > > │ Solution: 0                                                                  │
00:00:35 verbose #365 > > │ Test case 1. A. Time: 61L                                                    │
00:00:35 verbose #366 > > │                                                                              │
00:00:35 verbose #367 > > │ Solution: 2                                                                  │
00:00:35 verbose #368 > > │ Test case 1. A. Time: 62L                                                    │
00:00:35 verbose #369 > > │                                                                              │
00:00:35 verbose #370 > > │ Solution: 5                                                                  │
00:00:35 verbose #371 > > │ Test case 1. A. Time: 70L                                                    │
00:00:35 verbose #372 > > │                                                                              │
00:00:35 verbose #373 > > │ Input   | Expected        | Result  | Best                                   │
00:00:35 verbose #374 > > │ ---     | ---             | ---     | ---                                    │
00:00:35 verbose #375 > > │ 0       | 0               | 0       | (1, 61)                                │
00:00:35 verbose #376 > > │ 2       | 2               | 2       | (1, 62)                                │
00:00:35 verbose #377 > > │ 5       | 5               | 5       | (1, 70)                                │
00:00:35 verbose #378 > > │                                                                              │
00:00:35 verbose #379 > > │ Averages                                                                     │
00:00:35 verbose #380 > > │ Test case 1. Average Time: 64L                                               │
00:00:35 verbose #381 > > │                                                                              │
00:00:35 verbose #382 > > │ Ranking                                                                      │
00:00:35 verbose #383 > > │ Test case 1. Average Time: 64L                                               │
00:00:35 verbose #384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #385 > >
00:00:35 verbose #386 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #387 > > //// test
00:00:35 verbose #388 > >
00:00:35 verbose #389 > > let solutions = [[
00:00:35 verbose #390 > >     "A",
00:00:35 verbose #391 > >     fun n ->
00:00:35 verbose #392 > >         n + 0
00:00:35 verbose #393 > > ]]
00:00:35 verbose #394 > > let testCases = seq {
00:00:35 verbose #395 > >     0, 0
00:00:35 verbose #396 > >     2, 2
00:00:35 verbose #397 > >     5, 5
00:00:35 verbose #398 > > }
00:00:35 verbose #399 > > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:35 verbose #400 > > emptyTests
00:00:35 verbose #401 > > |> sortResultList
00:00:36 verbose #402 > >
00:00:36 verbose #403 > > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮
00:00:36 verbose #404 > > │                                                                              │
00:00:36 verbose #405 > > │                                                                              │
00:00:36 verbose #406 > > │ Test: emptyTests                                                             │
00:00:36 verbose #407 > > │                                                                              │
00:00:36 verbose #408 > > │ Solution: 0                                                                  │
00:00:36 verbose #409 > > │ Test case 1. A. Time: 4L                                                     │
00:00:36 verbose #410 > > │                                                                              │
00:00:36 verbose #411 > > │ Solution: 2                                                                  │
00:00:36 verbose #412 > > │ Test case 1. A. Time: 0L                                                     │
00:00:36 verbose #413 > > │                                                                              │
00:00:36 verbose #414 > > │ Solution: 5                                                                  │
00:00:36 verbose #415 > > │ Test case 1. A. Time: 0L                                                     │
00:00:36 verbose #416 > > │                                                                              │
00:00:36 verbose #417 > > │ Input	| Expected	| Result	| Best                                                   │
00:00:36 verbose #418 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:00:36 verbose #419 > > │ 0    	| 0       	| 0     	| (1, 4)                                                 │
00:00:36 verbose #420 > > │ 2    	| 2       	| 2     	| (1, 0)                                                 │
00:00:36 verbose #421 > > │ 5    	| 5       	| 5     	| (1, 0)                                                 │
00:00:36 verbose #422 > > │                                                                              │
00:00:36 verbose #423 > > │ Average Ranking                                                              │
00:00:36 verbose #424 > > │ Test case 1. Average Time: 1L                                                │
00:00:36 verbose #425 > > │                                                                              │
00:00:36 verbose #426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #427 > >
00:00:36 verbose #428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #430 > > │ ## uniqueLettersTests                                                        │
00:00:36 verbose #431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #432 > >
00:00:36 verbose #433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #435 > > │ Test: UniqueLetters                                                          │
00:00:36 verbose #436 > > │                                                                              │
00:00:36 verbose #437 > > │ Solution: abc                                                                │
00:00:36 verbose #438 > > │ Test case 1. A. Time: 1512L                                                  │
00:00:36 verbose #439 > > │ Test case 2. B. Time: 1947L                                                  │
00:00:36 verbose #440 > > │ Test case 3. C. Time: 2023L                                                  │
00:00:36 verbose #441 > > │ Test case 4. D. Time: 1358L                                                  │
00:00:36 verbose #442 > > │ Test case 5. E. Time: 1321L                                                  │
00:00:36 verbose #443 > > │ Test case 6. F. Time: 1346L                                                  │
00:00:36 verbose #444 > > │ Test case 7. G. Time: 1304L                                                  │
00:00:36 verbose #445 > > │ Test case 8. H. Time: 1383L                                                  │
00:00:36 verbose #446 > > │ Test case 9. I. Time: 1495L                                                  │
00:00:36 verbose #447 > > │ Test case 10. J. Time: 1245L                                                 │
00:00:36 verbose #448 > > │ Test case 11. K. Time: 1219L                                                 │
00:00:36 verbose #449 > > │                                                                              │
00:00:36 verbose #450 > > │ Solution: accabb                                                             │
00:00:36 verbose #451 > > │ Test case 1. A. Time: 1648L                                                  │
00:00:36 verbose #452 > > │ Test case 2. B. Time: 2061L                                                  │
00:00:36 verbose #453 > > │ Test case 3. C. Time: 2413L                                                  │
00:00:36 verbose #454 > > │ Test case 4. D. Time: 1561L                                                  │
00:00:36 verbose #455 > > │ Test case 5. E. Time: 1593L                                                  │
00:00:36 verbose #456 > > │ Test case 6. F. Time: 1518L                                                  │
00:00:36 verbose #457 > > │ Test case 7. G. Time: 1415L                                                  │
00:00:36 verbose #458 > > │ Test case 8. H. Time: 1510L                                                  │
00:00:36 verbose #459 > > │ Test case 9. I. Time: 1445L                                                  │
00:00:36 verbose #460 > > │ Test case 10. J. Time: 1636L                                                 │
00:00:36 verbose #461 > > │ Test case 11. K. Time: 1317L                                                 │
00:00:36 verbose #462 > > │                                                                              │
00:00:36 verbose #463 > > │ Solution: pprrqqpp                                                           │
00:00:36 verbose #464 > > │ Test case 1. A. Time: 2255L                                                  │
00:00:36 verbose #465 > > │ Test case 2. B. Time: 2408L                                                  │
00:00:36 verbose #466 > > │ Test case 3. C. Time: 2393L                                                  │
00:00:36 verbose #467 > > │ Test case 4. D. Time: 1675L                                                  │
00:00:36 verbose #468 > > │ Test case 5. E. Time: 1911L                                                  │
00:00:36 verbose #469 > > │ Test case 6. F. Time: 2126L                                                  │
00:00:36 verbose #470 > > │ Test case 7. G. Time: 1504L                                                  │
00:00:36 verbose #471 > > │ Test case 8. H. Time: 1715L                                                  │
00:00:36 verbose #472 > > │ Test case 9. I. Time: 1537L                                                  │
00:00:36 verbose #473 > > │ Test case 10. J. Time: 1522L                                                 │
00:00:36 verbose #474 > > │ Test case 11. K. Time: 1322L                                                 │
00:00:36 verbose #475 > > │                                                                              │
00:00:36 verbose #476 > > │ Solution:                                                                    │
00:00:36 verbose #477 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:36 verbose #478 > > │ bbb                                                                          │
00:00:36 verbose #479 > > │ Test case 1. A. Time: 13073L                                                 │
00:00:36 verbose #480 > > │ Test case 2. B. Time: 11519L                                                 │
00:00:36 verbose #481 > > │ Test case 3. C. Time: 8373L                                                  │
00:00:36 verbose #482 > > │ Test case 4. D. Time: 5860L                                                  │
00:00:36 verbose #483 > > │ Test case 5. E. Time: 6490L                                                  │
00:00:36 verbose #484 > > │ Test case 6. F. Time: 6325L                                                  │
00:00:36 verbose #485 > > │ Test case 7. G. Time: 5799L                                                  │
00:00:36 verbose #486 > > │ Test case 8. H. Time: 7099L                                                  │
00:00:36 verbose #487 > > │ Test case 9. I. Time: 6133L                                                  │
00:00:36 verbose #488 > > │ Test case 10. J. Time: 5993L                                                 │
00:00:36 verbose #489 > > │ Test case 11. K. Time: 2040L                                                 │
00:00:36 verbose #490 > > │                                                                              │
00:00:36 verbose #491 > > │ Input                                                                        │
00:00:36 verbose #492 > > │ | Expected        | Result  | Best                                           │
00:00:36 verbose #493 > > │ ---                                                                          │
00:00:36 verbose #494 > > │                                                                              │
00:00:36 verbose #495 > > │ | ---             | ---     | ---                                            │
00:00:36 verbose #496 > > │ abc                                                                          │
00:00:36 verbose #497 > > │                                                                              │
00:00:36 verbose #498 > > │ | abc             | abc     | (11, 1219)                                     │
00:00:36 verbose #499 > > │ accabb                                                                       │
00:00:36 verbose #500 > > │ | acb             | acb     | (11, 1317)                                     │
00:00:36 verbose #501 > > │ pprrqqpp                                                                     │
00:00:36 verbose #502 > > │ | prq             | prq     | (11, 1322)                                     │
00:00:36 verbose #503 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:36 verbose #504 > > │ bbb | acb             | acb     | (11, 2040)                                 │
00:00:36 verbose #505 > > │                                                                              │
00:00:36 verbose #506 > > │ Averages                                                                     │
00:00:36 verbose #507 > > │ Test case 1. Average Time: 4622L                                             │
00:00:36 verbose #508 > > │ Test case 2. Average Time: 4483L                                             │
00:00:36 verbose #509 > > │ Test case 3. Average Time: 3800L                                             │
00:00:36 verbose #510 > > │ Test case 4. Average Time: 2613L                                             │
00:00:36 verbose #511 > > │ Test case 5. Average Time: 2828L                                             │
00:00:36 verbose #512 > > │ Test case 6. Average Time: 2828L                                             │
00:00:36 verbose #513 > > │ Test case 7. Average Time: 2505L                                             │
00:00:36 verbose #514 > > │ Test case 8. Average Time: 2926L                                             │
00:00:36 verbose #515 > > │ Test case 9. Average Time: 2652L                                             │
00:00:36 verbose #516 > > │ Test case 10. Average Time: 2599L                                            │
00:00:36 verbose #517 > > │ Test case 11. Average Time: 1474L                                            │
00:00:36 verbose #518 > > │                                                                              │
00:00:36 verbose #519 > > │ Ranking                                                                      │
00:00:36 verbose #520 > > │ Test case 1. Average Time: 4622L                                             │
00:00:36 verbose #521 > > │ Test case 2. Average Time: 4483L                                             │
00:00:36 verbose #522 > > │ Test case 3. Average Time: 3800L                                             │
00:00:36 verbose #523 > > │ Test case 8. Average Time: 2926L                                             │
00:00:36 verbose #524 > > │ Test case 5. Average Time: 2828L                                             │
00:00:36 verbose #525 > > │ Test case 6. Average Time: 2828L                                             │
00:00:36 verbose #526 > > │ Test case 9. Average Time: 2652L                                             │
00:00:36 verbose #527 > > │ Test case 4. Average Time: 2613L                                             │
00:00:36 verbose #528 > > │ Test case 10. Average Time: 2599L                                            │
00:00:36 verbose #529 > > │ Test case 7. Average Time: 2505L                                             │
00:00:36 verbose #530 > > │ Test case 11. Average Time: 1474L                                            │
00:00:36 verbose #531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #532 > >
00:00:36 verbose #533 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #534 > > //// test
00:00:36 verbose #535 > >
00:00:36 verbose #536 > > let solutions = [[
00:00:36 verbose #537 > >     "A",
00:00:36 verbose #538 > >     fun input ->
00:00:36 verbose #539 > >         input
00:00:36 verbose #540 > >         |> Seq.toList
00:00:36 verbose #541 > >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:36 verbose #542 > > x ]]) [[]]
00:00:36 verbose #543 > >         |> Seq.toArray
00:00:36 verbose #544 > >         |> String
00:00:36 verbose #545 > >
00:00:36 verbose #546 > >     "B",
00:00:36 verbose #547 > >     fun input ->
00:00:36 verbose #548 > >         input
00:00:36 verbose #549 > >         |> Seq.rev
00:00:36 verbose #550 > >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:36 verbose #551 > > acc else x :: acc) list [[]]
00:00:36 verbose #552 > >         |> Seq.rev
00:00:36 verbose #553 > >         |> Seq.toArray
00:00:36 verbose #554 > >         |> String
00:00:36 verbose #555 > >
00:00:36 verbose #556 > >     "C",
00:00:36 verbose #557 > >     fun input ->
00:00:36 verbose #558 > >         input
00:00:36 verbose #559 > >         |> Seq.rev
00:00:36 verbose #560 > >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:36 verbose #561 > > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:36 verbose #562 > >         |> snd
00:00:36 verbose #563 > >         |> Seq.rev
00:00:36 verbose #564 > >         |> Seq.toArray
00:00:36 verbose #565 > >         |> String
00:00:36 verbose #566 > >
00:00:36 verbose #567 > >     "D",
00:00:36 verbose #568 > >     fun input ->
00:00:36 verbose #569 > >         input
00:00:36 verbose #570 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:36 verbose #571 > > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:36 verbose #572 > >         |> snd
00:00:36 verbose #573 > >         |> String
00:00:36 verbose #574 > >
00:00:36 verbose #575 > >     "E",
00:00:36 verbose #576 > >     fun input ->
00:00:36 verbose #577 > >         input
00:00:36 verbose #578 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:36 verbose #579 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:36 verbose #580 > >         |> snd
00:00:36 verbose #581 > >         |> List.rev
00:00:36 verbose #582 > >         |> List.toArray
00:00:36 verbose #583 > >         |> String
00:00:36 verbose #584 > >
00:00:36 verbose #585 > >     "F",
00:00:36 verbose #586 > >     fun input ->
00:00:36 verbose #587 > >         input
00:00:36 verbose #588 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:36 verbose #589 > > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:36 verbose #590 > >         |> snd
00:00:36 verbose #591 > >         |> List.toArray
00:00:36 verbose #592 > >         |> String
00:00:36 verbose #593 > >
00:00:36 verbose #594 > >     "G",
00:00:36 verbose #595 > >     fun input ->
00:00:36 verbose #596 > >         input
00:00:36 verbose #597 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:36 verbose #598 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:36 verbose #599 > >         |> snd
00:00:36 verbose #600 > >         |> List.toArray
00:00:36 verbose #601 > >         |> Array.rev
00:00:36 verbose #602 > >         |> String
00:00:36 verbose #603 > >
00:00:36 verbose #604 > >     "H",
00:00:36 verbose #605 > >     fun input ->
00:00:36 verbose #606 > >         input
00:00:36 verbose #607 > >         |> Seq.toList
00:00:36 verbose #608 > >         |> fun list ->
00:00:36 verbose #609 > >             let rec loop set = function
00:00:36 verbose #610 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:36 verbose #611 > >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:36 verbose #612 > >                 | [[]] -> [[]]
00:00:36 verbose #613 > >             loop Set.empty list
00:00:36 verbose #614 > >             |> List.rev
00:00:36 verbose #615 > >         |> List.toArray
00:00:36 verbose #616 > >         |> String
00:00:36 verbose #617 > >
00:00:36 verbose #618 > >     "I",
00:00:36 verbose #619 > >     fun input ->
00:00:36 verbose #620 > >         input
00:00:36 verbose #621 > >         |> Seq.toList
00:00:36 verbose #622 > >         |> fun list ->
00:00:36 verbose #623 > >             let rec loop set = function
00:00:36 verbose #624 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:36 verbose #625 > >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:36 verbose #626 > > head |]]
00:00:36 verbose #627 > >                 | [[]] -> [[||]]
00:00:36 verbose #628 > >             loop Set.empty list
00:00:36 verbose #629 > >         |> String
00:00:36 verbose #630 > >
00:00:36 verbose #631 > >     "J",
00:00:36 verbose #632 > >     fun input ->
00:00:36 verbose #633 > >         input
00:00:36 verbose #634 > >         |> Seq.toList
00:00:36 verbose #635 > >         |> fun list ->
00:00:36 verbose #636 > >             let rec loop set = function
00:00:36 verbose #637 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:36 verbose #638 > >                 | head :: tail -> head :: loop (set.Add head) tail
00:00:36 verbose #639 > >                 | [[]] -> [[]]
00:00:36 verbose #640 > >             loop Set.empty list
00:00:36 verbose #641 > >         |> List.toArray
00:00:36 verbose #642 > >         |> String
00:00:36 verbose #643 > >
00:00:36 verbose #644 > >     "K",
00:00:36 verbose #645 > >     fun input ->
00:00:36 verbose #646 > >         input
00:00:36 verbose #647 > >         |> Seq.distinct
00:00:36 verbose #648 > >         |> Seq.toArray
00:00:36 verbose #649 > >         |> String
00:00:36 verbose #650 > > ]]
00:00:36 verbose #651 > > let testCases = seq {
00:00:36 verbose #652 > >     "abc", "abc"
00:00:36 verbose #653 > >     "accabb", "acb"
00:00:36 verbose #654 > >     "pprrqqpp", "prq"
00:00:36 verbose #655 > >
00:00:36 verbose #656 > > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:36 verbose #657 > > ", "acb"
00:00:36 verbose #658 > > }
00:00:36 verbose #659 > > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:36 verbose #660 > > testCases
00:00:36 verbose #661 > > uniqueLettersTests
00:00:36 verbose #662 > > |> sortResultList
00:00:50 verbose #663 > >
00:00:50 verbose #664 > > ╭─[ 14.17s - stdout ]──────────────────────────────────────────────────────────╮
00:00:50 verbose #665 > > │                                                                              │
00:00:50 verbose #666 > > │                                                                              │
00:00:50 verbose #667 > > │ Test: uniqueLettersTests                                                     │
00:00:50 verbose #668 > > │                                                                              │
00:00:50 verbose #669 > > │ Solution: abc                                                                │
00:00:50 verbose #670 > > │ Test case 1. A. Time: 4L                                                     │
00:00:50 verbose #671 > > │ Test case 2. B. Time: 6L                                                     │
00:00:50 verbose #672 > > │ Test case 3. C. Time: 5L                                                     │
00:00:50 verbose #673 > > │ Test case 4. D. Time: 2L                                                     │
00:00:50 verbose #674 > > │ Test case 5. E. Time: 3L                                                     │
00:00:50 verbose #675 > > │ Test case 6. F. Time: 3L                                                     │
00:00:50 verbose #676 > > │ Test case 7. G. Time: 4L                                                     │
00:00:50 verbose #677 > > │ Test case 8. H. Time: 3L                                                     │
00:00:50 verbose #678 > > │ Test case 9. I. Time: 2L                                                     │
00:00:50 verbose #679 > > │ Test case 10. J. Time: 2L                                                    │
00:00:50 verbose #680 > > │ Test case 11. K. Time: 4L                                                    │
00:00:50 verbose #681 > > │                                                                              │
00:00:50 verbose #682 > > │ Solution: accabb                                                             │
00:00:50 verbose #683 > > │ Test case 1. A. Time: 1L                                                     │
00:00:50 verbose #684 > > │ Test case 2. B. Time: 2L                                                     │
00:00:50 verbose #685 > > │ Test case 3. C. Time: 2L                                                     │
00:00:50 verbose #686 > > │ Test case 4. D. Time: 1L                                                     │
00:00:50 verbose #687 > > │ Test case 5. E. Time: 2L                                                     │
00:00:50 verbose #688 > > │ Test case 6. F. Time: 2L                                                     │
00:00:50 verbose #689 > > │ Test case 7. G. Time: 1L                                                     │
00:00:50 verbose #690 > > │ Test case 8. H. Time: 1L                                                     │
00:00:50 verbose #691 > > │ Test case 9. I. Time: 1L                                                     │
00:00:50 verbose #692 > > │ Test case 10. J. Time: 2L                                                    │
00:00:50 verbose #693 > > │ Test case 11. K. Time: 1L                                                    │
00:00:50 verbose #694 > > │                                                                              │
00:00:50 verbose #695 > > │ Solution: pprrqqpp                                                           │
00:00:50 verbose #696 > > │ Test case 1. A. Time: 1L                                                     │
00:00:50 verbose #697 > > │ Test case 2. B. Time: 2L                                                     │
00:00:50 verbose #698 > > │ Test case 3. C. Time: 2L                                                     │
00:00:50 verbose #699 > > │ Test case 4. D. Time: 1L                                                     │
00:00:50 verbose #700 > > │ Test case 5. E. Time: 1L                                                     │
00:00:50 verbose #701 > > │ Test case 6. F. Time: 2L                                                     │
00:00:50 verbose #702 > > │ Test case 7. G. Time: 2L                                                     │
00:00:50 verbose #703 > > │ Test case 8. H. Time: 2L                                                     │
00:00:50 verbose #704 > > │ Test case 9. I. Time: 1L                                                     │
00:00:50 verbose #705 > > │ Test case 10. J. Time: 1L                                                    │
00:00:50 verbose #706 > > │ Test case 11. K. Time: 1L                                                    │
00:00:50 verbose #707 > > │                                                                              │
00:00:50 verbose #708 > > │ Solution:                                                                    │
00:00:50 verbose #709 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:50 verbose #710 > > │ bbb                                                                          │
00:00:50 verbose #711 > > │ Test case 1. A. Time: 22L                                                    │
00:00:50 verbose #712 > > │ Test case 2. B. Time: 11L                                                    │
00:00:50 verbose #713 > > │ Test case 3. C. Time: 20L                                                    │
00:00:50 verbose #714 > > │ Test case 4. D. Time: 11L                                                    │
00:00:50 verbose #715 > > │ Test case 5. E. Time: 20L                                                    │
00:00:50 verbose #716 > > │ Test case 6. F. Time: 14L                                                    │
00:00:50 verbose #717 > > │ Test case 7. G. Time: 15L                                                    │
00:00:50 verbose #718 > > │ Test case 8. H. Time: 8L                                                     │
00:00:50 verbose #719 > > │ Test case 9. I. Time: 8L                                                     │
00:00:50 verbose #720 > > │ Test case 10. J. Time: 10L                                                   │
00:00:50 verbose #721 > > │ Test case 11. K. Time: 3L                                                    │
00:00:50 verbose #722 > > │                                                                              │
00:00:50 verbose #723 > > │ Input                                                                        │
00:00:50 verbose #724 > > │ | Expected	| Result	| Best                                                       │
00:00:50 verbose #725 > > │ ---                                                                          │
00:00:50 verbose #726 > > │ | ---     	| ---   	| ---                                                        │
00:00:50 verbose #727 > > │ abc                                                                          │
00:00:50 verbose #728 > > │ | abc     	| abc   	| (4, 2)                                                     │
00:00:50 verbose #729 > > │ accabb                                                                       │
00:00:50 verbose #730 > > │ | acb     	| acb   	| (1, 1)                                                     │
00:00:50 verbose #731 > > │ pprrqqpp                                                                     │
00:00:50 verbose #732 > > │ | prq     	| prq   	| (1, 1)                                                     │
00:00:50 verbose #733 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:50 verbose #734 > > │ bbb	| acb     	| acb   	| (11, 3)                                                  │
00:00:50 verbose #735 > > │                                                                              │
00:00:50 verbose #736 > > │ Average Ranking                                                              │
00:00:50 verbose #737 > > │ Test case 11. Average Time: 2L                                               │
00:00:50 verbose #738 > > │ Test case 4. Average Time: 3L                                                │
00:00:50 verbose #739 > > │ Test case 8. Average Time: 3L                                                │
00:00:50 verbose #740 > > │ Test case 9. Average Time: 3L                                                │
00:00:50 verbose #741 > > │ Test case 10. Average Time: 3L                                               │
00:00:50 verbose #742 > > │ Test case 2. Average Time: 5L                                                │
00:00:50 verbose #743 > > │ Test case 6. Average Time: 5L                                                │
00:00:50 verbose #744 > > │ Test case 7. Average Time: 5L                                                │
00:00:50 verbose #745 > > │ Test case 5. Average Time: 6L                                                │
00:00:50 verbose #746 > > │ Test case 1. Average Time: 7L                                                │
00:00:50 verbose #747 > > │ Test case 3. Average Time: 7L                                                │
00:00:50 verbose #748 > > │                                                                              │
00:00:50 verbose #749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #750 > >
00:00:50 verbose #751 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #752 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #753 > > │ ## rotateStringsTests                                                        │
00:00:50 verbose #754 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #755 > >
00:00:50 verbose #756 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #757 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #758 > > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │
00:00:50 verbose #759 > > │                                                                              │
00:00:50 verbose #760 > > │ Test: RotateStrings                                                          │
00:00:50 verbose #761 > > │                                                                              │
00:00:50 verbose #762 > > │ Solution: abc                                                                │
00:00:50 verbose #763 > > │ Test case 1. A. Time: 1842L                                                  │
00:00:50 verbose #764 > > │ Test case 2. B. Time: 1846L                                                  │
00:00:50 verbose #765 > > │ Test case 3. C. Time: 1936L                                                  │
00:00:50 verbose #766 > > │ Test case 4. CA. Time: 2224L                                                 │
00:00:50 verbose #767 > > │ Test case 5. CB. Time: 2329L                                                 │
00:00:50 verbose #768 > > │ Test case 6. D. Time: 2474L                                                  │
00:00:50 verbose #769 > > │ Test case 7. E. Time: 1664L                                                  │
00:00:50 verbose #770 > > │ Test case 8. F. Time: 1517L                                                  │
00:00:50 verbose #771 > > │ Test case 9. FA. Time: 1651L                                                 │
00:00:50 verbose #772 > > │ Test case 10. FB. Time: 3764L                                                │
00:00:50 verbose #773 > > │ Test case 11. FC. Time: 5415L                                                │
00:00:50 verbose #774 > > │                                                                              │
00:00:50 verbose #775 > > │ Solution: abcde                                                              │
00:00:50 verbose #776 > > │ Test case 1. A. Time: 3356L                                                  │
00:00:50 verbose #777 > > │ Test case 2. B. Time: 2592L                                                  │
00:00:50 verbose #778 > > │ Test case 3. C. Time: 2346L                                                  │
00:00:50 verbose #779 > > │ Test case 4. CA. Time: 2997L                                                 │
00:00:50 verbose #780 > > │ Test case 5. CB. Time: 3061L                                                 │
00:00:50 verbose #781 > > │ Test case 6. D. Time: 4051L                                                  │
00:00:50 verbose #782 > > │ Test case 7. E. Time: 1905L                                                  │
00:00:50 verbose #783 > > │ Test case 8. F. Time: 1771L                                                  │
00:00:50 verbose #784 > > │ Test case 9. FA. Time: 2175L                                                 │
00:00:50 verbose #785 > > │ Test case 10. FB. Time: 3275L                                                │
00:00:50 verbose #786 > > │ Test case 11. FC. Time: 5266L                                                │
00:00:50 verbose #787 > > │                                                                              │
00:00:50 verbose #788 > > │ Solution: abcdefghi                                                          │
00:00:50 verbose #789 > > │ Test case 1. A. Time: 4492L                                                  │
00:00:50 verbose #790 > > │ Test case 2. B. Time: 3526L                                                  │
00:00:50 verbose #791 > > │ Test case 3. C. Time: 3583L                                                  │
00:00:50 verbose #792 > > │ Test case 4. CA. Time: 3711L                                                 │
00:00:50 verbose #793 > > │ Test case 5. CB. Time: 4783L                                                 │
00:00:50 verbose #794 > > │ Test case 6. D. Time: 7557L                                                  │
00:00:50 verbose #795 > > │ Test case 7. E. Time: 3452L                                                  │
00:00:50 verbose #796 > > │ Test case 8. F. Time: 3050L                                                  │
00:00:50 verbose #797 > > │ Test case 9. FA. Time: 3275L                                                 │
00:00:50 verbose #798 > > │ Test case 10. FB. Time: 4635L                                                │
00:00:50 verbose #799 > > │ Test case 11. FC. Time: 5616L                                                │
00:00:50 verbose #800 > > │                                                                              │
00:00:50 verbose #801 > > │ Solution: abab                                                               │
00:00:50 verbose #802 > > │ Test case 1. A. Time: 2093L                                                  │
00:00:50 verbose #803 > > │ Test case 2. B. Time: 1843L                                                  │
00:00:50 verbose #804 > > │ Test case 3. C. Time: 1746L                                                  │
00:00:50 verbose #805 > > │ Test case 4. CA. Time: 2085L                                                 │
00:00:50 verbose #806 > > │ Test case 5. CB. Time: 2139L                                                 │
00:00:50 verbose #807 > > │ Test case 6. D. Time: 2095L                                                  │
00:00:50 verbose #808 > > │ Test case 7. E. Time: 1723L                                                  │
00:00:50 verbose #809 > > │ Test case 8. F. Time: 1558L                                                  │
00:00:50 verbose #810 > > │ Test case 9. FA. Time: 1620L                                                 │
00:00:50 verbose #811 > > │ Test case 10. FB. Time: 2319L                                                │
00:00:50 verbose #812 > > │ Test case 11. FC. Time: 3918L                                                │
00:00:50 verbose #813 > > │                                                                              │
00:00:50 verbose #814 > > │ Solution: aa                                                                 │
00:00:50 verbose #815 > > │ Test case 1. A. Time: 1107L                                                  │
00:00:50 verbose #816 > > │ Test case 2. B. Time: 1241L                                                  │
00:00:50 verbose #817 > > │ Test case 3. C. Time: 1183L                                                  │
00:00:50 verbose #818 > > │ Test case 4. CA. Time: 1563L                                                 │
00:00:50 verbose #819 > > │ Test case 5. CB. Time: 1525L                                                 │
00:00:50 verbose #820 > > │ Test case 6. D. Time: 1591L                                                  │
00:00:50 verbose #821 > > │ Test case 7. E. Time: 1327L                                                  │
00:00:50 verbose #822 > > │ Test case 8. F. Time: 1151L                                                  │
00:00:50 verbose #823 > > │ Test case 9. FA. Time: 1180L                                                 │
00:00:50 verbose #824 > > │ Test case 10. FB. Time: 1733L                                                │
00:00:50 verbose #825 > > │ Test case 11. FC. Time: 2817L                                                │
00:00:50 verbose #826 > > │                                                                              │
00:00:50 verbose #827 > > │ Solution: z                                                                  │
00:00:50 verbose #828 > > │ Test case 1. A. Time: 816L                                                   │
00:00:50 verbose #829 > > │ Test case 2. B. Time: 745L                                                   │
00:00:50 verbose #830 > > │ Test case 3. C. Time: 928L                                                   │
00:00:50 verbose #831 > > │ Test case 4. CA. Time: 1375L                                                 │
00:00:50 verbose #832 > > │ Test case 5. CB. Time: 1029L                                                 │
00:00:50 verbose #833 > > │ Test case 6. D. Time: 852L                                                   │
00:00:50 verbose #834 > > │ Test case 7. E. Time: 712L                                                   │
00:00:50 verbose #835 > > │ Test case 8. F. Time: 263L                                                   │
00:00:50 verbose #836 > > │ Test case 9. FA. Time: 232L                                                  │
00:00:50 verbose #837 > > │ Test case 10. FB. Time: 773L                                                 │
00:00:50 verbose #838 > > │ Test case 11. FC. Time: 1789L                                                │
00:00:50 verbose #839 > > │                                                                              │
00:00:50 verbose #840 > > │ Input           | Expected                                                   │
00:00:50 verbose #841 > > │                                                                              │
00:00:50 verbose #842 > > │ | Result                                                                     │
00:00:50 verbose #843 > > │                                                                              │
00:00:50 verbose #844 > > │ | Best                                                                       │
00:00:50 verbose #845 > > │ ---             | ---                                                        │
00:00:50 verbose #846 > > │                                                                              │
00:00:50 verbose #847 > > │ | ---                                                                        │
00:00:50 verbose #848 > > │                                                                              │
00:00:50 verbose #849 > > │ | ---                                                                        │
00:00:50 verbose #850 > > │ abc             | bca cab abc                                                │
00:00:50 verbose #851 > > │                                                                              │
00:00:50 verbose #852 > > │ | bca cab abc                                                                │
00:00:50 verbose #853 > > │                                                                              │
00:00:50 verbose #854 > > │ | (8, 1517)                                                                  │
00:00:50 verbose #855 > > │ abcde           | bcdea cdeab deabc eabcd abcde                              │
00:00:50 verbose #856 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:50 verbose #857 > > │ | (8, 1771)                                                                  │
00:00:50 verbose #858 > > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │
00:00:50 verbose #859 > > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │
00:00:50 verbose #860 > > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │
00:00:50 verbose #861 > > │ | (8, 3050)                                                                  │
00:00:50 verbose #862 > > │ abab            | baba abab baba abab                                        │
00:00:50 verbose #863 > > │                                                                              │
00:00:50 verbose #864 > > │ | baba abab baba abab                                                        │
00:00:50 verbose #865 > > │                                                                              │
00:00:50 verbose #866 > > │ | (8, 1558)                                                                  │
00:00:50 verbose #867 > > │ aa              | aa aa                                                      │
00:00:50 verbose #868 > > │                                                                              │
00:00:50 verbose #869 > > │ | aa aa                                                                      │
00:00:50 verbose #870 > > │                                                                              │
00:00:50 verbose #871 > > │ | (1, 1107)                                                                  │
00:00:50 verbose #872 > > │ z               | z                                                          │
00:00:50 verbose #873 > > │                                                                              │
00:00:50 verbose #874 > > │ | z                                                                          │
00:00:50 verbose #875 > > │                                                                              │
00:00:50 verbose #876 > > │ | (9, 232)                                                                   │
00:00:50 verbose #877 > > │                                                                              │
00:00:50 verbose #878 > > │ Averages                                                                     │
00:00:50 verbose #879 > > │ Test case 1. Average Time: 2284L                                             │
00:00:50 verbose #880 > > │ Test case 2. Average Time: 1965L                                             │
00:00:50 verbose #881 > > │ Test case 3. Average Time: 1953L                                             │
00:00:50 verbose #882 > > │ Test case 4. Average Time: 2325L                                             │
00:00:50 verbose #883 > > │ Test case 5. Average Time: 2477L                                             │
00:00:50 verbose #884 > > │ Test case 6. Average Time: 3103L                                             │
00:00:50 verbose #885 > > │ Test case 7. Average Time: 1797L                                             │
00:00:50 verbose #886 > > │ Test case 8. Average Time: 1551L                                             │
00:00:50 verbose #887 > > │ Test case 9. Average Time: 1688L                                             │
00:00:50 verbose #888 > > │ Test case 10. Average Time: 2749L                                            │
00:00:50 verbose #889 > > │ Test case 11. Average Time: 4136L                                            │
00:00:50 verbose #890 > > │                                                                              │
00:00:50 verbose #891 > > │ Ranking                                                                      │
00:00:50 verbose #892 > > │ Test case 11. Average Time: 4136L                                            │
00:00:50 verbose #893 > > │ Test case 6. Average Time: 3103L                                             │
00:00:50 verbose #894 > > │ Test case 10. Average Time: 2749L                                            │
00:00:50 verbose #895 > > │ Test case 5. Average Time: 2477L                                             │
00:00:50 verbose #896 > > │ Test case 4. Average Time: 2325L                                             │
00:00:50 verbose #897 > > │ Test case 1. Average Time: 2284L                                             │
00:00:50 verbose #898 > > │ Test case 2. Average Time: 1965L                                             │
00:00:50 verbose #899 > > │ Test case 3. Average Time: 1953L                                             │
00:00:50 verbose #900 > > │ Test case 7. Average Time: 1797L                                             │
00:00:50 verbose #901 > > │ Test case 9. Average Time: 1688L                                             │
00:00:50 verbose #902 > > │ Test case 8. Average Time: 1551L                                             │
00:00:50 verbose #903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #904 > >
00:00:50 verbose #905 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #906 > > //// test
00:00:50 verbose #907 > >
00:00:50 verbose #908 > > let solutions = [[
00:00:50 verbose #909 > >     "A",
00:00:50 verbose #910 > >     fun (input: string) ->
00:00:50 verbose #911 > >         let resultList =
00:00:50 verbose #912 > >             List.fold (fun acc x ->
00:00:50 verbose #913 > >                 let rotate (text: string) (letter: string) = (text |>
00:00:50 verbose #914 > > SpiralSm.slice 1 (input.Length - 1)) + letter
00:00:50 verbose #915 > >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:50 verbose #916 > > ]] @ acc
00:00:50 verbose #917 > >             ) [[]] (Seq.toList input)
00:00:50 verbose #918 > >
00:00:50 verbose #919 > >         (resultList, "")
00:00:50 verbose #920 > >         ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:50 verbose #921 > >         |> _.TrimEnd()
00:00:50 verbose #922 > >
00:00:50 verbose #923 > >     "B",
00:00:50 verbose #924 > >     fun input ->
00:00:50 verbose #925 > >         input
00:00:50 verbose #926 > >         |> Seq.toList
00:00:50 verbose #927 > >         |> List.fold (fun (acc: string list) letter ->
00:00:50 verbose #928 > >             let last =
00:00:50 verbose #929 > >                 if acc.IsEmpty
00:00:50 verbose #930 > >                 then input
00:00:50 verbose #931 > >                 else acc.Head
00:00:50 verbose #932 > >
00:00:50 verbose #933 > >             let item = last.[[1 .. input.Length - 1]] + string letter
00:00:50 verbose #934 > >
00:00:50 verbose #935 > >             item :: acc
00:00:50 verbose #936 > >         ) [[]]
00:00:50 verbose #937 > >         |> List.rev
00:00:50 verbose #938 > >         |> SpiralSm.concat " "
00:00:50 verbose #939 > >
00:00:50 verbose #940 > >     "C",
00:00:50 verbose #941 > >     fun input ->
00:00:50 verbose #942 > >         input
00:00:50 verbose #943 > >         |> Seq.toList
00:00:50 verbose #944 > >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:50 verbose #945 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:50 verbose #946 > >         |> List.rev
00:00:50 verbose #947 > >         |> List.skip 1
00:00:50 verbose #948 > >         |> SpiralSm.concat " "
00:00:50 verbose #949 > >
00:00:50 verbose #950 > >     "CA",
00:00:50 verbose #951 > >     fun input ->
00:00:50 verbose #952 > >         input
00:00:50 verbose #953 > >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:50 verbose #954 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:50 verbose #955 > >         |> Seq.rev
00:00:50 verbose #956 > >         |> Seq.skip 1
00:00:50 verbose #957 > >         |> SpiralSm.concat " "
00:00:50 verbose #958 > >
00:00:50 verbose #959 > >     "CB",
00:00:50 verbose #960 > >     fun input ->
00:00:50 verbose #961 > >         input
00:00:50 verbose #962 > >         |> Seq.toArray
00:00:50 verbose #963 > >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:50 verbose #964 > > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:50 verbose #965 > >         |> Array.rev
00:00:50 verbose #966 > >         |> Array.skip 1
00:00:50 verbose #967 > >         |> SpiralSm.concat " "
00:00:50 verbose #968 > >
00:00:50 verbose #969 > >     "D",
00:00:50 verbose #970 > >     fun input ->
00:00:50 verbose #971 > >         input
00:00:50 verbose #972 > >         |> Seq.toList
00:00:50 verbose #973 > >         |> fun list ->
00:00:50 verbose #974 > >             let rec loop (acc: char list list) = function
00:00:50 verbose #975 > >                 | _ when acc.Length = list.Length -> acc
00:00:50 verbose #976 > >                 | head :: tail ->
00:00:50 verbose #977 > >                     let item = tail @ [[ head ]]
00:00:50 verbose #978 > >                     loop (item :: acc) item
00:00:50 verbose #979 > >                 | [[]] -> [[]]
00:00:50 verbose #980 > >             loop [[]] list
00:00:50 verbose #981 > >         |> List.rev
00:00:50 verbose #982 > >         |> List.map (List.toArray >> String)
00:00:50 verbose #983 > >         |> SpiralSm.concat " "
00:00:50 verbose #984 > >
00:00:50 verbose #985 > >     "E",
00:00:50 verbose #986 > >     fun input ->
00:00:50 verbose #987 > >         input
00:00:50 verbose #988 > >         |> Seq.toList
00:00:50 verbose #989 > >         |> fun list ->
00:00:50 verbose #990 > >             let rec loop (last: string) = function
00:00:50 verbose #991 > >                 | head :: tail ->
00:00:50 verbose #992 > >                     let item = last.[[1 .. input.Length - 1]] + string head
00:00:50 verbose #993 > >                     item :: loop item tail
00:00:50 verbose #994 > >                 | [[]] -> [[]]
00:00:50 verbose #995 > >             loop input list
00:00:50 verbose #996 > >         |> SpiralSm.concat " "
00:00:50 verbose #997 > >
00:00:50 verbose #998 > >     "F",
00:00:50 verbose #999 > >     fun input ->
00:00:50 verbose #1000 > >         Array.singleton 0
00:00:50 verbose #1001 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:50 verbose #1002 > >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:50 verbose #1003 > >         |> SpiralSm.concat " "
00:00:50 verbose #1004 > >
00:00:50 verbose #1005 > >     "FA",
00:00:50 verbose #1006 > >     fun input ->
00:00:50 verbose #1007 > >         List.singleton 0
00:00:50 verbose #1008 > >         |> List.append [[ 1 .. input.Length - 1 ]]
00:00:50 verbose #1009 > >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:50 verbose #1010 > >         |> SpiralSm.concat " "
00:00:50 verbose #1011 > >
00:00:50 verbose #1012 > >     "FB",
00:00:50 verbose #1013 > >     fun input ->
00:00:50 verbose #1014 > >         Seq.singleton 0
00:00:50 verbose #1015 > >         |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:50 verbose #1016 > >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:50 verbose #1017 > >         |> SpiralSm.concat " "
00:00:50 verbose #1018 > >
00:00:50 verbose #1019 > >     "FC",
00:00:50 verbose #1020 > >     fun input ->
00:00:50 verbose #1021 > >         Array.singleton 0
00:00:50 verbose #1022 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:50 verbose #1023 > >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:50 verbose #1024 > >         |> SpiralSm.concat " "
00:00:50 verbose #1025 > > ]]
00:00:50 verbose #1026 > > let testCases = seq {
00:00:50 verbose #1027 > >     "abc", "bca cab abc"
00:00:50 verbose #1028 > >     "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:50 verbose #1029 > >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:50 verbose #1030 > > hiabcdefg iabcdefgh abcdefghi"
00:00:50 verbose #1031 > >     "abab", "baba abab baba abab"
00:00:50 verbose #1032 > >     "aa", "aa aa"
00:00:50 verbose #1033 > >     "z", "z"
00:00:50 verbose #1034 > > }
00:00:50 verbose #1035 > > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:50 verbose #1036 > > testCases
00:00:50 verbose #1037 > > rotateStringsTests
00:00:50 verbose #1038 > > |> sortResultList
00:01:11 verbose #1039 > >
00:01:11 verbose #1040 > > ╭─[ 20.66s - stdout ]──────────────────────────────────────────────────────────╮
00:01:11 verbose #1041 > > │                                                                              │
00:01:11 verbose #1042 > > │                                                                              │
00:01:11 verbose #1043 > > │ Test: rotateStringsTests                                                     │
00:01:11 verbose #1044 > > │                                                                              │
00:01:11 verbose #1045 > > │ Solution: abc                                                                │
00:01:11 verbose #1046 > > │ Test case 1. A. Time: 3L                                                     │
00:01:11 verbose #1047 > > │ Test case 2. B. Time: 3L                                                     │
00:01:11 verbose #1048 > > │ Test case 3. C. Time: 3L                                                     │
00:01:11 verbose #1049 > > │ Test case 4. CA. Time: 7L                                                    │
00:01:11 verbose #1050 > > │ Test case 5. CB. Time: 2L                                                    │
00:01:11 verbose #1051 > > │ Test case 6. D. Time: 3L                                                     │
00:01:11 verbose #1052 > > │ Test case 7. E. Time: 2L                                                     │
00:01:11 verbose #1053 > > │ Test case 8. F. Time: 3L                                                     │
00:01:11 verbose #1054 > > │ Test case 9. FA. Time: 4L                                                    │
00:01:11 verbose #1055 > > │ Test case 10. FB. Time: 12L                                                  │
00:01:11 verbose #1056 > > │ Test case 11. FC. Time: 12L                                                  │
00:01:11 verbose #1057 > > │                                                                              │
00:01:11 verbose #1058 > > │ Solution: abcde                                                              │
00:01:11 verbose #1059 > > │ Test case 1. A. Time: 5L                                                     │
00:01:11 verbose #1060 > > │ Test case 2. B. Time: 2L                                                     │
00:01:11 verbose #1061 > > │ Test case 3. C. Time: 1L                                                     │
00:01:11 verbose #1062 > > │ Test case 4. CA. Time: 2L                                                    │
00:01:11 verbose #1063 > > │ Test case 5. CB. Time: 2L                                                    │
00:01:11 verbose #1064 > > │ Test case 6. D. Time: 6L                                                     │
00:01:11 verbose #1065 > > │ Test case 7. E. Time: 1L                                                     │
00:01:11 verbose #1066 > > │ Test case 8. F. Time: 0L                                                     │
00:01:11 verbose #1067 > > │ Test case 9. FA. Time: 1L                                                    │
00:01:11 verbose #1068 > > │ Test case 10. FB. Time: 6L                                                   │
00:01:11 verbose #1069 > > │ Test case 11. FC. Time: 7L                                                   │
00:01:11 verbose #1070 > > │                                                                              │
00:01:11 verbose #1071 > > │ Solution: abcdefghi                                                          │
00:01:11 verbose #1072 > > │ Test case 1. A. Time: 9L                                                     │
00:01:11 verbose #1073 > > │ Test case 2. B. Time: 3L                                                     │
00:01:11 verbose #1074 > > │ Test case 3. C. Time: 5L                                                     │
00:01:11 verbose #1075 > > │ Test case 4. CA. Time: 2L                                                    │
00:01:11 verbose #1076 > > │ Test case 5. CB. Time: 5L                                                    │
00:01:11 verbose #1077 > > │ Test case 6. D. Time: 8L                                                     │
00:01:11 verbose #1078 > > │ Test case 7. E. Time: 4L                                                     │
00:01:11 verbose #1079 > > │ Test case 8. F. Time: 1L                                                     │
00:01:11 verbose #1080 > > │ Test case 9. FA. Time: 5L                                                    │
00:01:11 verbose #1081 > > │ Test case 10. FB. Time: 4L                                                   │
00:01:11 verbose #1082 > > │ Test case 11. FC. Time: 6L                                                   │
00:01:11 verbose #1083 > > │                                                                              │
00:01:11 verbose #1084 > > │ Solution: abab                                                               │
00:01:11 verbose #1085 > > │ Test case 1. A. Time: 1L                                                     │
00:01:11 verbose #1086 > > │ Test case 2. B. Time: 1L                                                     │
00:01:11 verbose #1087 > > │ Test case 3. C. Time: 1L                                                     │
00:01:11 verbose #1088 > > │ Test case 4. CA. Time: 1L                                                    │
00:01:11 verbose #1089 > > │ Test case 5. CB. Time: 1L                                                    │
00:01:11 verbose #1090 > > │ Test case 6. D. Time: 2L                                                     │
00:01:11 verbose #1091 > > │ Test case 7. E. Time: 1L                                                     │
00:01:11 verbose #1092 > > │ Test case 8. F. Time: 1L                                                     │
00:01:11 verbose #1093 > > │ Test case 9. FA. Time: 1L                                                    │
00:01:11 verbose #1094 > > │ Test case 10. FB. Time: 2L                                                   │
00:01:11 verbose #1095 > > │ Test case 11. FC. Time: 7L                                                   │
00:01:11 verbose #1096 > > │                                                                              │
00:01:11 verbose #1097 > > │ Solution: aa                                                                 │
00:01:11 verbose #1098 > > │ Test case 1. A. Time: 1L                                                     │
00:01:11 verbose #1099 > > │ Test case 2. B. Time: 1L                                                     │
00:01:11 verbose #1100 > > │ Test case 3. C. Time: 1L                                                     │
00:01:11 verbose #1101 > > │ Test case 4. CA. Time: 1L                                                    │
00:01:11 verbose #1102 > > │ Test case 5. CB. Time: 1L                                                    │
00:01:11 verbose #1103 > > │ Test case 6. D. Time: 1L                                                     │
00:01:11 verbose #1104 > > │ Test case 7. E. Time: 0L                                                     │
00:01:11 verbose #1105 > > │ Test case 8. F. Time: 0L                                                     │
00:01:11 verbose #1106 > > │ Test case 9. FA. Time: 0L                                                    │
00:01:11 verbose #1107 > > │ Test case 10. FB. Time: 1L                                                   │
00:01:11 verbose #1108 > > │ Test case 11. FC. Time: 6L                                                   │
00:01:11 verbose #1109 > > │                                                                              │
00:01:11 verbose #1110 > > │ Solution: z                                                                  │
00:01:11 verbose #1111 > > │ Test case 1. A. Time: 1L                                                     │
00:01:11 verbose #1112 > > │ Test case 2. B. Time: 0L                                                     │
00:01:11 verbose #1113 > > │ Test case 3. C. Time: 0L                                                     │
00:01:11 verbose #1114 > > │ Test case 4. CA. Time: 0L                                                    │
00:01:11 verbose #1115 > > │ Test case 5. CB. Time: 0L                                                    │
00:01:11 verbose #1116 > > │ Test case 6. D. Time: 0L                                                     │
00:01:11 verbose #1117 > > │ Test case 7. E. Time: 0L                                                     │
00:01:11 verbose #1118 > > │ Test case 8. F. Time: 0L                                                     │
00:01:11 verbose #1119 > > │ Test case 9. FA. Time: 0L                                                    │
00:01:11 verbose #1120 > > │ Test case 10. FB. Time: 1L                                                   │
00:01:11 verbose #1121 > > │ Test case 11. FC. Time: 5L                                                   │
00:01:11 verbose #1122 > > │                                                                              │
00:01:11 verbose #1123 > > │ Input    	| Expected                                                           │
00:01:11 verbose #1124 > > │                                                                              │
00:01:11 verbose #1125 > > │ | Result                                                                     │
00:01:11 verbose #1126 > > │                                                                              │
00:01:11 verbose #1127 > > │ | Best                                                                       │
00:01:11 verbose #1128 > > │ ---      	| ---                                                                │
00:01:11 verbose #1129 > > │                                                                              │
00:01:11 verbose #1130 > > │ | ---                                                                        │
00:01:11 verbose #1131 > > │                                                                              │
00:01:11 verbose #1132 > > │ | ---                                                                        │
00:01:11 verbose #1133 > > │ abc      	| bca cab abc                                                        │
00:01:11 verbose #1134 > > │                                                                              │
00:01:11 verbose #1135 > > │ | bca cab abc                                                                │
00:01:11 verbose #1136 > > │                                                                              │
00:01:11 verbose #1137 > > │ | (5, 2)                                                                     │
00:01:11 verbose #1138 > > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │
00:01:11 verbose #1139 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:01:11 verbose #1140 > > │ | (8, 0)                                                                     │
00:01:11 verbose #1141 > > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │
00:01:11 verbose #1142 > > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │
00:01:11 verbose #1143 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (8, 1)                     │
00:01:11 verbose #1144 > > │ abab     	| baba abab baba abab                                                │
00:01:11 verbose #1145 > > │ | baba abab baba abab                                                        │
00:01:11 verbose #1146 > > │ | (1, 1)                                                                     │
00:01:11 verbose #1147 > > │ aa       	| aa aa                                                              │
00:01:11 verbose #1148 > > │                                                                              │
00:01:11 verbose #1149 > > │ | aa aa                                                                      │
00:01:11 verbose #1150 > > │                                                                              │
00:01:11 verbose #1151 > > │ | (7, 0)                                                                     │
00:01:11 verbose #1152 > > │ z        	| z                                                                  │
00:01:11 verbose #1153 > > │                                                                              │
00:01:11 verbose #1154 > > │ | z                                                                          │
00:01:11 verbose #1155 > > │                                                                              │
00:01:11 verbose #1156 > > │ | (2, 0)                                                                     │
00:01:11 verbose #1157 > > │                                                                              │
00:01:11 verbose #1158 > > │ Average Ranking                                                              │
00:01:11 verbose #1159 > > │ Test case 8. Average Time: 0L                                                │
00:01:11 verbose #1160 > > │ Test case 2. Average Time: 1L                                                │
00:01:11 verbose #1161 > > │ Test case 3. Average Time: 1L                                                │
00:01:11 verbose #1162 > > │ Test case 5. Average Time: 1L                                                │
00:01:11 verbose #1163 > > │ Test case 7. Average Time: 1L                                                │
00:01:11 verbose #1164 > > │ Test case 9. Average Time: 1L                                                │
00:01:11 verbose #1165 > > │ Test case 4. Average Time: 2L                                                │
00:01:11 verbose #1166 > > │ Test case 1. Average Time: 3L                                                │
00:01:11 verbose #1167 > > │ Test case 6. Average Time: 3L                                                │
00:01:11 verbose #1168 > > │ Test case 10. Average Time: 4L                                               │
00:01:11 verbose #1169 > > │ Test case 11. Average Time: 7L                                               │
00:01:11 verbose #1170 > > │                                                                              │
00:01:11 verbose #1171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1172 > >
00:01:11 verbose #1173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1175 > > │ ## rotate_strings_tests                                                      │
00:01:11 verbose #1176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1177 > >
00:01:11 verbose #1178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1180 > > │ ```                                                                          │
00:01:11 verbose #1181 > > │ 02:21:12 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:01:11 verbose #1182 > > │ rotate_strings_tests}                                                        │
00:01:11 verbose #1183 > > │                                                                              │
00:01:11 verbose #1184 > > │ 02:21:12 verbose #2 benchmark.run / {input_str = "abc"}                 │
00:01:11 verbose #1185 > > │ 02:21:13 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:11 verbose #1186 > > │ F; time = 638}                                                               │
00:01:11 verbose #1187 > > │ 02:21:14 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:11 verbose #1188 > > │ FA; time = 779}                                                              │
00:01:11 verbose #1189 > > │                                                                              │
00:01:11 verbose #1190 > > │ 02:21:14 verbose #5 benchmark.run / {input_str = "abcde"}               │
00:01:11 verbose #1191 > > │ 02:21:15 verbose #6 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:11 verbose #1192 > > │ F; time = 745}                                                               │
00:01:11 verbose #1193 > > │ 02:21:16 verbose #7 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:11 verbose #1194 > > │ FA; time = 809}                                                              │
00:01:11 verbose #1195 > > │                                                                              │
00:01:11 verbose #1196 > > │ 02:21:16 verbose #8 benchmark.run / {input_str = "abcdefghi"}           │
00:01:11 verbose #1197 > > │ 02:21:17 verbose #9 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:11 verbose #1198 > > │ F; time = 1092}                                                              │
00:01:11 verbose #1199 > > │ 02:21:18 verbose #10 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:11 verbose #1200 > > │ = FA; time = 1304}                                                           │
00:01:11 verbose #1201 > > │                                                                              │
00:01:11 verbose #1202 > > │ 02:21:18 verbose #11 benchmark.run / {input_str = "abab"}               │
00:01:11 verbose #1203 > > │ 02:21:19 verbose #12 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:11 verbose #1204 > > │ = F; time = 536}                                                             │
00:01:11 verbose #1205 > > │ 02:21:20 verbose #13 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:11 verbose #1206 > > │ = FA; time = 620}                                                            │
00:01:11 verbose #1207 > > │                                                                              │
00:01:11 verbose #1208 > > │ 02:21:20 verbose #14 benchmark.run / {input_str = "aa"}                 │
00:01:11 verbose #1209 > > │ 02:21:21 verbose #15 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:11 verbose #1210 > > │ = F; time = 365}                                                             │
00:01:11 verbose #1211 > > │ 02:21:21 verbose #16 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:11 verbose #1212 > > │ = FA; time = 396}                                                            │
00:01:11 verbose #1213 > > │                                                                              │
00:01:11 verbose #1214 > > │ 02:21:21 verbose #17 benchmark.run / {input_str = "z"}                  │
00:01:11 verbose #1215 > > │ 02:21:22 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:11 verbose #1216 > > │ = F; time = 158}                                                             │
00:01:11 verbose #1217 > > │ 02:21:22 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:11 verbose #1218 > > │ = FA; time = 143}                                                            │
00:01:11 verbose #1219 > > │ ```                                                                          │
00:01:11 verbose #1220 > > │ input      	| expected                                                         │
00:01:11 verbose #1221 > > │                                                                              │
00:01:11 verbose #1222 > > │ | result                                                                     │
00:01:11 verbose #1223 > > │                                                                              │
00:01:11 verbose #1224 > > │ | best                                                                       │
00:01:11 verbose #1225 > > │ ---        	| ---                                                              │
00:01:11 verbose #1226 > > │                                                                              │
00:01:11 verbose #1227 > > │ | ---                                                                        │
00:01:11 verbose #1228 > > │                                                                              │
00:01:11 verbose #1229 > > │ | ---                                                                        │
00:01:11 verbose #1230 > > │ "abc"      	| "bca cab abc"                                                    │
00:01:11 verbose #1231 > > │                                                                              │
00:01:11 verbose #1232 > > │ | "bca cab abc"                                                              │
00:01:11 verbose #1233 > > │                                                                              │
00:01:11 verbose #1234 > > │ | 1, 638                                                                     │
00:01:11 verbose #1235 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:01:11 verbose #1236 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:01:11 verbose #1237 > > │ | 1, 745                                                                     │
00:01:11 verbose #1238 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:01:11 verbose #1239 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:01:11 verbose #1240 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 1092                   │
00:01:11 verbose #1241 > > │ "abab"     	| "baba abab baba abab"                                            │
00:01:11 verbose #1242 > > │ | "baba abab baba abab"                                                      │
00:01:11 verbose #1243 > > │ | 1, 536                                                                     │
00:01:11 verbose #1244 > > │ "aa"       	| "aa aa"                                                          │
00:01:11 verbose #1245 > > │                                                                              │
00:01:11 verbose #1246 > > │ | "aa aa"                                                                    │
00:01:11 verbose #1247 > > │                                                                              │
00:01:11 verbose #1248 > > │ | 1, 365                                                                     │
00:01:11 verbose #1249 > > │ "z"        	| "z"                                                              │
00:01:11 verbose #1250 > > │                                                                              │
00:01:11 verbose #1251 > > │ | "z"                                                                        │
00:01:11 verbose #1252 > > │                                                                              │
00:01:11 verbose #1253 > > │ | 2, 143                                                                     │
00:01:11 verbose #1254 > > │ ```                                                                          │
00:01:11 verbose #1255 > > │ 02:21:22 verbose #20 benchmark.sort_result_list / averages.iter / {avg  │
00:01:11 verbose #1256 > > │ = 589; i = 1}                                                                │
00:01:11 verbose #1257 > > │ 02:21:22 verbose #21 benchmark.sort_result_list / averages.iter / {avg  │
00:01:11 verbose #1258 > > │ = 675; i = 2}                                                                │
00:01:11 verbose #1259 > > │ ```                                                                          │
00:01:11 verbose #1260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1261 > >
00:01:11 verbose #1262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1263 > > //// test
00:01:11 verbose #1264 > > //// timeout=60000
00:01:11 verbose #1265 > >
00:01:11 verbose #1266 > > inl get_solutions () =
00:01:11 verbose #1267 > >     [[
00:01:11 verbose #1268 > >         // "A",
00:01:11 verbose #1269 > >         // fun (input : string) =>
00:01:11 verbose #1270 > >         //     let resultList =
00:01:11 verbose #1271 > >         //         List.fold (fun acc x =>
00:01:11 verbose #1272 > >         //             let rotate (text : string) (letter : string) =
00:01:11 verbose #1273 > > text.Substring (1, input.Length - 1) + letter
00:01:11 verbose #1274 > >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)
00:01:11 verbose #1275 > > (string x) ]] ++ acc
00:01:11 verbose #1276 > >         //         ) [[]] (Seq.toList input)
00:01:11 verbose #1277 > >
00:01:11 verbose #1278 > >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""
00:01:11 verbose #1279 > >         //     |> fun x => x.TrimEnd ()
00:01:11 verbose #1280 > >
00:01:11 verbose #1281 > >         // "B",
00:01:11 verbose #1282 > >         // fun input =>
00:01:11 verbose #1283 > >         //     input
00:01:11 verbose #1284 > >         //     |> Seq.toList
00:01:11 verbose #1285 > >         //     |> List.fold (fun (acc : string list) letter =>
00:01:11 verbose #1286 > >         //         let last =
00:01:11 verbose #1287 > >         //             if acc.IsEmpty
00:01:11 verbose #1288 > >         //             then input
00:01:11 verbose #1289 > >         //             else acc.Head
00:01:11 verbose #1290 > >
00:01:11 verbose #1291 > >         //         let item = last.[[1 .. input.Length - 1]] + string letter
00:01:11 verbose #1292 > >
00:01:11 verbose #1293 > >         //         item :: acc
00:01:11 verbose #1294 > >         //     ) [[]]
00:01:11 verbose #1295 > >         //     |> List.rev
00:01:11 verbose #1296 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1297 > >
00:01:11 verbose #1298 > >         // "C",
00:01:11 verbose #1299 > >         // fun input =>
00:01:11 verbose #1300 > >         //     input
00:01:11 verbose #1301 > >         //     |> Seq.toList
00:01:11 verbose #1302 > >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:01:11 verbose #1303 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:01:11 verbose #1304 > >         //     |> List.rev
00:01:11 verbose #1305 > >         //     |> List.skip 1
00:01:11 verbose #1306 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1307 > >
00:01:11 verbose #1308 > >         // "CA",
00:01:11 verbose #1309 > >         // fun input =>
00:01:11 verbose #1310 > >         //     input
00:01:11 verbose #1311 > >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:01:11 verbose #1312 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:01:11 verbose #1313 > >         //     |> Seq.rev
00:01:11 verbose #1314 > >         //     |> Seq.skip 1
00:01:11 verbose #1315 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1316 > >
00:01:11 verbose #1317 > >         // "CB",
00:01:11 verbose #1318 > >         // fun input =>
00:01:11 verbose #1319 > >         //     input
00:01:11 verbose #1320 > >         //     |> Seq.toArray
00:01:11 verbose #1321 > >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>
00:01:11 verbose #1322 > > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:01:11 verbose #1323 > > (a ;[[ input ]])
00:01:11 verbose #1324 > >         //     |> Array.rev
00:01:11 verbose #1325 > >         //     |> Array.skip 1
00:01:11 verbose #1326 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1327 > >
00:01:11 verbose #1328 > >         // "D",
00:01:11 verbose #1329 > >         // fun input =>
00:01:11 verbose #1330 > >         //     input
00:01:11 verbose #1331 > >         //     |> Seq.toList
00:01:11 verbose #1332 > >         //     |> fun list =>
00:01:11 verbose #1333 > >         //         let rec loop (acc : list (list char)) = function
00:01:11 verbose #1334 > >         //             | _ when acc.Length = list.Length => acc
00:01:11 verbose #1335 > >         //             | head :: tail =>
00:01:11 verbose #1336 > >         //                 let item = tail ++ [[ head ]]
00:01:11 verbose #1337 > >         //                 loop (item :: acc) item
00:01:11 verbose #1338 > >         //             | [[]] => [[]]
00:01:11 verbose #1339 > >         //         loop [[]] list
00:01:11 verbose #1340 > >         //     |> List.rev
00:01:11 verbose #1341 > >         //     |> List.map (List.toArray >> String)
00:01:11 verbose #1342 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1343 > >
00:01:11 verbose #1344 > >         // "E",
00:01:11 verbose #1345 > >         // fun input =>
00:01:11 verbose #1346 > >         //     input
00:01:11 verbose #1347 > >         //     |> Seq.toList
00:01:11 verbose #1348 > >         //     |> fun list =>
00:01:11 verbose #1349 > >         //         let rec loop (last : string) = function
00:01:11 verbose #1350 > >         //             | head :: tail =>
00:01:11 verbose #1351 > >         //                 let item = last.[[1 .. input.Length - 1]] + string
00:01:11 verbose #1352 > > head
00:01:11 verbose #1353 > >         //                 item :: loop item tail
00:01:11 verbose #1354 > >         //             | [[]] => [[]]
00:01:11 verbose #1355 > >         //         loop input list
00:01:11 verbose #1356 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1357 > >
00:01:11 verbose #1358 > >         "F",
00:01:11 verbose #1359 > >         fun input =>
00:01:11 verbose #1360 > >         // Array.singleton 0
00:01:11 verbose #1361 > >         // |> Array.append [[| 1 .. input.Length - 1 |]]
00:01:11 verbose #1362 > >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:11 verbose #1363 > >         // |> SpiralSm.concat " "
00:01:11 verbose #1364 > >             inl input_length = input |> sm.length
00:01:11 verbose #1365 > >             am.singleton 0i32
00:01:11 verbose #1366 > >             |> am.append (am'.init_series 1 (input_length - 1) 1 |> fun x => a x
00:01:11 verbose #1367 > > : _ int _)
00:01:11 verbose #1368 > >             |> fun (a x) => x
00:01:11 verbose #1369 > >             |> am'.map_base fun i =>
00:01:11 verbose #1370 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:01:11 verbose #1371 > >                 inl b = input |> sm'.slice 0 (i - 1)
00:01:11 verbose #1372 > >                 a +. b
00:01:11 verbose #1373 > >             |> fun x => a x : _ int _
00:01:11 verbose #1374 > >             |> seq.of_array
00:01:11 verbose #1375 > >             |> sm'.concat " "
00:01:11 verbose #1376 > >
00:01:11 verbose #1377 > >         "FA",
00:01:11 verbose #1378 > >         fun input =>
00:01:11 verbose #1379 > >         //     List.singleton 0
00:01:11 verbose #1380 > >         //     |> List.append [[ 1 .. input.Length - 1 ]]
00:01:11 verbose #1381 > >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:11 verbose #1382 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1383 > >             inl input_length = input |> sm.length
00:01:11 verbose #1384 > >             listm.singleton 0i32
00:01:11 verbose #1385 > >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:01:11 verbose #1386 > >             |> listm.map (fun i =>
00:01:11 verbose #1387 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:01:11 verbose #1388 > >                 inl b = if i = 0 then "" else input |> sm'.slice 0 (i - 1)
00:01:11 verbose #1389 > >                 a +. b
00:01:11 verbose #1390 > >             )
00:01:11 verbose #1391 > >             |> listm'.box
00:01:11 verbose #1392 > >             |> listm'.to_array'
00:01:11 verbose #1393 > >             |> fun x => a x : _ int _
00:01:11 verbose #1394 > >             |> seq.of_array
00:01:11 verbose #1395 > >             |> sm'.concat " "
00:01:11 verbose #1396 > >
00:01:11 verbose #1397 > >         // "FB",
00:01:11 verbose #1398 > >         // fun input =>
00:01:11 verbose #1399 > >         //     Seq.singleton 0
00:01:11 verbose #1400 > >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })
00:01:11 verbose #1401 > >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:01:11 verbose #1402 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1403 > >
00:01:11 verbose #1404 > >         // "FC",
00:01:11 verbose #1405 > >         // fun input =>
00:01:11 verbose #1406 > >         //     Array.singleton 0
00:01:11 verbose #1407 > >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:01:11 verbose #1408 > >         ////    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ .. i
00:01:11 verbose #1409 > > - 1 ]])
00:01:11 verbose #1410 > >         //     |> SpiralSm.concat " "
00:01:11 verbose #1411 > >     ]]
00:01:11 verbose #1412 > >
00:01:11 verbose #1413 > > inl rec rotate_strings_tests () =
00:01:11 verbose #1414 > >     inl test_cases = [[
00:01:11 verbose #1415 > >         "abc", "bca cab abc"
00:01:11 verbose #1416 > >         "abcde", "bcdea cdeab deabc eabcd abcde"
00:01:11 verbose #1417 > >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:01:11 verbose #1418 > > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:01:11 verbose #1419 > >         "abab", "baba abab baba abab"
00:01:11 verbose #1420 > >         "aa", "aa aa"
00:01:11 verbose #1421 > >         "z", "z"
00:01:11 verbose #1422 > >     ]]
00:01:11 verbose #1423 > >
00:01:11 verbose #1424 > >     inl solutions = get_solutions ()
00:01:11 verbose #1425 > >
00:01:11 verbose #1426 > >     // inl is_fast () = true
00:01:11 verbose #1427 > >
00:01:11 verbose #1428 > >     inl count =
00:01:11 verbose #1429 > >         if is_fast ()
00:01:11 verbose #1430 > >         then 1000i32
00:01:11 verbose #1431 > >         else 2000000i32
00:01:11 verbose #1432 > >
00:01:11 verbose #1433 > >     run_all (reflection.nameof { rotate_strings_tests }) count solutions
00:01:11 verbose #1434 > > test_cases
00:01:11 verbose #1435 > >     |> sort_result_list
00:01:11 verbose #1436 > >
00:01:11 verbose #1437 > > rotate_strings_tests ()
00:01:47 verbose #1438 > >
00:01:47 verbose #1439 > > ╭─[ 35.73s - stdout ]──────────────────────────────────────────────────────────╮
00:01:47 verbose #1440 > > │                                                                              │
00:01:47 verbose #1441 > > │ ```                                                                          │
00:01:47 verbose #1442 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:01:47 verbose #1443 > > │ rotate_strings_tests; count = 2000000 }                                      │
00:01:47 verbose #1444 > > │                                                                              │
00:01:47 verbose #1445 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = "abc" }               │
00:01:47 verbose #1446 > > │ 00:00:02 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:47 verbose #1447 > > │ = F; time = 1794 }                                                           │
00:01:47 verbose #1448 > > │ 00:00:04 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:47 verbose #1449 > > │ = FA; time = 2109 }                                                          │
00:01:47 verbose #1450 > > │                                                                              │
00:01:47 verbose #1451 > > │ 00:00:04 verbose #5 benchmark.run / { input_str = "abcde" }             │
00:01:47 verbose #1452 > > │ 00:00:07 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:47 verbose #1453 > > │ = F; time = 2073 }                                                           │
00:01:47 verbose #1454 > > │ 00:00:10 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:47 verbose #1455 > > │ = FA; time = 3048 }                                                          │
00:01:47 verbose #1456 > > │                                                                              │
00:01:47 verbose #1457 > > │ 00:00:10 verbose #8 benchmark.run / { input_str = "abcdefghi" }         │
00:01:47 verbose #1458 > > │ 00:00:15 verbose #9 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:47 verbose #1459 > > │ = F; time = 3749 }                                                           │
00:01:47 verbose #1460 > > │ 00:00:21 verbose #10 benchmark.run / solutions.map / { i = 2; test_name │
00:01:47 verbose #1461 > > │ = FA; time = 5230 }                                                          │
00:01:47 verbose #1462 > > │                                                                              │
00:01:47 verbose #1463 > > │ 00:00:21 verbose #11 benchmark.run / { input_str = "abab" }             │
00:01:47 verbose #1464 > > │ 00:00:23 verbose #12 benchmark.run / solutions.map / { i = 1; test_name │
00:01:47 verbose #1465 > > │ = F; time = 1899 }                                                           │
00:01:47 verbose #1466 > > │ 00:00:26 verbose #13 benchmark.run / solutions.map / { i = 2; test_name │
00:01:47 verbose #1467 > > │ = FA; time = 2468 }                                                          │
00:01:47 verbose #1468 > > │                                                                              │
00:01:47 verbose #1469 > > │ 00:00:26 verbose #14 benchmark.run / { input_str = "aa" }               │
00:01:47 verbose #1470 > > │ 00:00:28 verbose #15 benchmark.run / solutions.map / { i = 1; test_name │
00:01:47 verbose #1471 > > │ = F; time = 1416 }                                                           │
00:01:47 verbose #1472 > > │ 00:00:30 verbose #16 benchmark.run / solutions.map / { i = 2; test_name │
00:01:47 verbose #1473 > > │ = FA; time = 1713 }                                                          │
00:01:47 verbose #1474 > > │                                                                              │
00:01:47 verbose #1475 > > │ 00:00:30 verbose #17 benchmark.run / { input_str = "z" }                │
00:01:47 verbose #1476 > > │ 00:00:31 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:01:47 verbose #1477 > > │ = F; time = 565 }                                                            │
00:01:47 verbose #1478 > > │ 00:00:32 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:01:47 verbose #1479 > > │ = FA; time = 554 }                                                           │
00:01:47 verbose #1480 > > │ ```                                                                          │
00:01:47 verbose #1481 > > │ input      	| expected                                                         │
00:01:47 verbose #1482 > > │                                                                              │
00:01:47 verbose #1483 > > │ | result                                                                     │
00:01:47 verbose #1484 > > │                                                                              │
00:01:47 verbose #1485 > > │ | best                                                                       │
00:01:47 verbose #1486 > > │ ---        	| ---                                                              │
00:01:47 verbose #1487 > > │                                                                              │
00:01:47 verbose #1488 > > │ | ---                                                                        │
00:01:47 verbose #1489 > > │                                                                              │
00:01:47 verbose #1490 > > │ | ---                                                                        │
00:01:47 verbose #1491 > > │ "abc"      	| "bca cab abc"                                                    │
00:01:47 verbose #1492 > > │                                                                              │
00:01:47 verbose #1493 > > │ | "bca cab abc"                                                              │
00:01:47 verbose #1494 > > │                                                                              │
00:01:47 verbose #1495 > > │ | 1, 1794                                                                    │
00:01:47 verbose #1496 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:01:47 verbose #1497 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:01:47 verbose #1498 > > │ | 1, 2073                                                                    │
00:01:47 verbose #1499 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:01:47 verbose #1500 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:01:47 verbose #1501 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 3749                   │
00:01:47 verbose #1502 > > │ "abab"     	| "baba abab baba abab"                                            │
00:01:47 verbose #1503 > > │ | "baba abab baba abab"                                                      │
00:01:47 verbose #1504 > > │ | 1, 1899                                                                    │
00:01:47 verbose #1505 > > │ "aa"       	| "aa aa"                                                          │
00:01:47 verbose #1506 > > │                                                                              │
00:01:47 verbose #1507 > > │ | "aa aa"                                                                    │
00:01:47 verbose #1508 > > │                                                                              │
00:01:47 verbose #1509 > > │ | 1, 1416                                                                    │
00:01:47 verbose #1510 > > │ "z"        	| "z"                                                              │
00:01:47 verbose #1511 > > │                                                                              │
00:01:47 verbose #1512 > > │ | "z"                                                                        │
00:01:47 verbose #1513 > > │                                                                              │
00:01:47 verbose #1514 > > │ | 2, 554                                                                     │
00:01:47 verbose #1515 > > │ ```                                                                          │
00:01:47 verbose #1516 > > │ 00:00:32 verbose #20 benchmark.sort_result_list / averages.iter / { i = │
00:01:47 verbose #1517 > > │ 1; avg = 1916 }                                                              │
00:01:47 verbose #1518 > > │ 00:00:32 verbose #21 benchmark.sort_result_list / averages.iter / { i = │
00:01:47 verbose #1519 > > │ 2; avg = 2520 }                                                              │
00:01:47 verbose #1520 > > │ ```                                                                          │
00:01:47 verbose #1521 > > │                                                                              │
00:01:47 verbose #1522 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #1523 > >
00:01:47 verbose #1524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #1525 > > //// test
00:01:47 verbose #1526 > >
00:01:47 verbose #1527 > > // rotate_strings_tests ()
00:01:47 verbose #1528 > > ()
00:01:47 verbose #1529 > >
00:01:47 verbose #1530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #1531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #1532 > > │ ## binary_search_tests                                                       │
00:01:47 verbose #1533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #1534 > >
00:01:47 verbose #1535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #1536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #1537 > > │ ```                                                                          │
00:01:47 verbose #1538 > > │ 02:19:29 verbose #1 benchmark.run_all / {count = 10000000; test_name =  │
00:01:47 verbose #1539 > > │ binary_search_tests}                                                         │
00:01:47 verbose #1540 > > │                                                                              │
00:01:47 verbose #1541 > > │ 02:19:29 verbose #2 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:47 verbose #1542 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:47 verbose #1543 > > │ 02:19:30 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:47 verbose #1544 > > │ semi_open_1; time = 662}                                                     │
00:01:47 verbose #1545 > > │ 02:19:30 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:47 verbose #1546 > > │ closed_1; time = 619}                                                        │
00:01:47 verbose #1547 > > │ 02:19:31 verbose #5 benchmark.run / solutions.map / {i = 3; test_name = │
00:01:47 verbose #1548 > > │ semi_open_2; time = 644}                                                     │
00:01:47 verbose #1549 > > │ 02:19:32 verbose #6 benchmark.run / solutions.map / {i = 4; test_name = │
00:01:47 verbose #1550 > > │ closed_2; time = 610}                                                        │
00:01:47 verbose #1551 > > │                                                                              │
00:01:47 verbose #1552 > > │ 02:19:32 verbose #7 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:47 verbose #1553 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:47 verbose #1554 > > │ 02:19:33 verbose #8 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:47 verbose #1555 > > │ semi_open_1; time = 607}                                                     │
00:01:47 verbose #1556 > > │ 02:19:33 verbose #9 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:47 verbose #1557 > > │ closed_1; time = 559}                                                        │
00:01:47 verbose #1558 > > │ 02:19:34 verbose #10 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1559 > > │ = semi_open_2; time = 612}                                                   │
00:01:47 verbose #1560 > > │ 02:19:35 verbose #11 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1561 > > │ = closed_2; time = 577}                                                      │
00:01:47 verbose #1562 > > │                                                                              │
00:01:47 verbose #1563 > > │ 02:19:35 verbose #12 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1564 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:47 verbose #1565 > > │ 02:19:35 verbose #13 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1566 > > │ = semi_open_1; time = 550}                                                   │
00:01:47 verbose #1567 > > │ 02:19:36 verbose #14 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1568 > > │ = closed_1; time = 580}                                                      │
00:01:47 verbose #1569 > > │ 02:19:37 verbose #15 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1570 > > │ = semi_open_2; time = 624}                                                   │
00:01:47 verbose #1571 > > │ 02:19:37 verbose #16 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1572 > > │ = closed_2; time = 590}                                                      │
00:01:47 verbose #1573 > > │                                                                              │
00:01:47 verbose #1574 > > │ 02:19:37 verbose #17 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1575 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:47 verbose #1576 > > │ 02:19:38 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1577 > > │ = semi_open_1; time = 574}                                                   │
00:01:47 verbose #1578 > > │ 02:19:39 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1579 > > │ = closed_1; time = 577}                                                      │
00:01:47 verbose #1580 > > │ 02:19:39 verbose #20 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1581 > > │ = semi_open_2; time = 582}                                                   │
00:01:47 verbose #1582 > > │ 02:19:40 verbose #21 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1583 > > │ = closed_2; time = 585}                                                      │
00:01:47 verbose #1584 > > │                                                                              │
00:01:47 verbose #1585 > > │ 02:19:40 verbose #22 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:47 verbose #1586 > > │ 4...00; ...|], 60, 1000)}                                                    │
00:01:47 verbose #1587 > > │ 02:19:41 verbose #23 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1588 > > │ = semi_open_1; time = 610}                                                   │
00:01:47 verbose #1589 > > │ 02:19:42 verbose #24 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1590 > > │ = closed_1; time = 672}                                                      │
00:01:47 verbose #1591 > > │ 02:19:42 verbose #25 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1592 > > │ = semi_open_2; time = 636}                                                   │
00:01:47 verbose #1593 > > │ 02:19:43 verbose #26 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1594 > > │ = closed_2; time = 629}                                                      │
00:01:47 verbose #1595 > > │                                                                              │
00:01:47 verbose #1596 > > │ 02:19:43 verbose #27 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1597 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:47 verbose #1598 > > │ 02:19:44 verbose #28 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1599 > > │ = semi_open_1; time = 599}                                                   │
00:01:47 verbose #1600 > > │ 02:19:44 verbose #29 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1601 > > │ = closed_1; time = 561}                                                      │
00:01:47 verbose #1602 > > │ 02:19:45 verbose #30 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1603 > > │ = semi_open_2; time = 604}                                                   │
00:01:47 verbose #1604 > > │ 02:19:46 verbose #31 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1605 > > │ = closed_2; time = 573}                                                      │
00:01:47 verbose #1606 > > │                                                                              │
00:01:47 verbose #1607 > > │ 02:19:46 verbose #32 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1608 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:47 verbose #1609 > > │ 02:19:47 verbose #33 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1610 > > │ = semi_open_1; time = 635}                                                   │
00:01:47 verbose #1611 > > │ 02:19:47 verbose #34 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1612 > > │ = closed_1; time = 603}                                                      │
00:01:47 verbose #1613 > > │ 02:19:48 verbose #35 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1614 > > │ = semi_open_2; time = 644}                                                   │
00:01:47 verbose #1615 > > │ 02:19:49 verbose #36 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1616 > > │ = closed_2; time = 628}                                                      │
00:01:47 verbose #1617 > > │                                                                              │
00:01:47 verbose #1618 > > │ 02:19:49 verbose #37 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1619 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:47 verbose #1620 > > │ 02:19:49 verbose #38 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1621 > > │ = semi_open_1; time = 643}                                                   │
00:01:47 verbose #1622 > > │ 02:19:50 verbose #39 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1623 > > │ = closed_1; time = 606}                                                      │
00:01:47 verbose #1624 > > │ 02:19:51 verbose #40 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1625 > > │ = semi_open_2; time = 636}                                                   │
00:01:47 verbose #1626 > > │ 02:19:52 verbose #41 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1627 > > │ = closed_2; time = 624}                                                      │
00:01:47 verbose #1628 > > │                                                                              │
00:01:47 verbose #1629 > > │ 02:19:52 verbose #42 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:47 verbose #1630 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:47 verbose #1631 > > │ 02:19:52 verbose #43 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1632 > > │ = semi_open_1; time = 689}                                                   │
00:01:47 verbose #1633 > > │ 02:19:53 verbose #44 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1634 > > │ = closed_1; time = 613}                                                      │
00:01:47 verbose #1635 > > │ 02:19:54 verbose #45 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1636 > > │ = semi_open_2; time = 623}                                                   │
00:01:47 verbose #1637 > > │ 02:19:55 verbose #46 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1638 > > │ = closed_2; time = 613}                                                      │
00:01:47 verbose #1639 > > │                                                                              │
00:01:47 verbose #1640 > > │ 02:19:55 verbose #47 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:47 verbose #1641 > > │ 4...100; ...|], 60, 100)}                                                    │
00:01:47 verbose #1642 > > │ 02:19:55 verbose #48 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:47 verbose #1643 > > │ = semi_open_1; time = 630}                                                   │
00:01:47 verbose #1644 > > │ 02:19:56 verbose #49 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:47 verbose #1645 > > │ = closed_1; time = 633}                                                      │
00:01:47 verbose #1646 > > │ 02:19:57 verbose #50 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:47 verbose #1647 > > │ = semi_open_2; time = 653}                                                   │
00:01:47 verbose #1648 > > │ 02:19:58 verbose #51 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:47 verbose #1649 > > │ = closed_2; time = 646}                                                      │
00:01:47 verbose #1650 > > │ ```                                                                          │
00:01:47 verbose #1651 > > │ input                                    	| expected	| result  	| best             │
00:01:47 verbose #1652 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:47 verbose #1653 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 4, 610           │
00:01:47 verbose #1654 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 559           │
00:01:47 verbose #1655 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 1, 550           │
00:01:47 verbose #1656 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 1, 574           │
00:01:47 verbose #1657 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 610           │
00:01:47 verbose #1658 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 561           │
00:01:47 verbose #1659 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 603           │
00:01:47 verbose #1660 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 2, 606           │
00:01:47 verbose #1661 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 613           │
00:01:47 verbose #1662 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 630           │
00:01:47 verbose #1663 > > │ ```                                                                          │
00:01:47 verbose #1664 > > │ 02:19:58 verbose #52 benchmark.sort_result_list / averages.iter / {avg  │
00:01:47 verbose #1665 > > │ = 602; i = 2}                                                                │
00:01:47 verbose #1666 > > │ 02:19:58 verbose #53 benchmark.sort_result_list / averages.iter / {avg  │
00:01:47 verbose #1667 > > │ = 607; i = 4}                                                                │
00:01:47 verbose #1668 > > │ 02:19:58 verbose #54 benchmark.sort_result_list / averages.iter / {avg  │
00:01:47 verbose #1669 > > │ = 619; i = 1}                                                                │
00:01:47 verbose #1670 > > │ 02:19:58 verbose #55 benchmark.sort_result_list / averages.iter / {avg  │
00:01:47 verbose #1671 > > │ = 625; i = 3}                                                                │
00:01:47 verbose #1672 > > │ ```                                                                          │
00:01:47 verbose #1673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #1674 > >
00:01:47 verbose #1675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #1676 > > //// test
00:01:47 verbose #1677 > > //// timeout=90000
00:01:47 verbose #1678 > >
00:01:47 verbose #1679 > > inl binary_search_semi_open_1 arr target left right =
00:01:47 verbose #1680 > >     inl rec body left right =
00:01:47 verbose #1681 > >         if left >= right
00:01:47 verbose #1682 > >         then None
00:01:47 verbose #1683 > >         else
00:01:47 verbose #1684 > >             inl mid = (left + right) / 2
00:01:47 verbose #1685 > >             inl item = index arr mid
00:01:47 verbose #1686 > >             if item = target
00:01:47 verbose #1687 > >             then Some mid
00:01:47 verbose #1688 > >             elif item < target
00:01:47 verbose #1689 > >             then loop (mid + 1) right
00:01:47 verbose #1690 > >             else loop left mid
00:01:47 verbose #1691 > >     and inl loop left right =
00:01:47 verbose #1692 > >         if var_is right |> not
00:01:47 verbose #1693 > >         then body left right
00:01:47 verbose #1694 > >         else
00:01:47 verbose #1695 > >             inl left = dyn left
00:01:47 verbose #1696 > >             join body left right
00:01:47 verbose #1697 > >     loop left right
00:01:47 verbose #1698 > >
00:01:47 verbose #1699 > > inl binary_search_closed_1 arr target left right =
00:01:47 verbose #1700 > >     inl rec body left right =
00:01:47 verbose #1701 > >         if left > right
00:01:47 verbose #1702 > >         then None
00:01:47 verbose #1703 > >         else
00:01:47 verbose #1704 > >             inl mid = (left + right) / 2
00:01:47 verbose #1705 > >             inl item = index arr mid
00:01:47 verbose #1706 > >             if item = target
00:01:47 verbose #1707 > >             then Some mid
00:01:47 verbose #1708 > >             elif item < target
00:01:47 verbose #1709 > >             then loop (mid + 1) right
00:01:47 verbose #1710 > >             else loop left (mid - 1)
00:01:47 verbose #1711 > >     and inl loop left right =
00:01:47 verbose #1712 > >         if var_is right |> not
00:01:47 verbose #1713 > >         then body left right
00:01:47 verbose #1714 > >         else
00:01:47 verbose #1715 > >             inl left = dyn left
00:01:47 verbose #1716 > >             join body left right
00:01:47 verbose #1717 > >     loop left right
00:01:47 verbose #1718 > >
00:01:47 verbose #1719 > > inl binary_search_semi_open_2 arr target left right =
00:01:47 verbose #1720 > >     let rec body left right =
00:01:47 verbose #1721 > >         if left >= right
00:01:47 verbose #1722 > >         then None
00:01:47 verbose #1723 > >         else
00:01:47 verbose #1724 > >             inl mid = (left + right) / 2
00:01:47 verbose #1725 > >             inl item = index arr mid
00:01:47 verbose #1726 > >             if item = target
00:01:47 verbose #1727 > >             then Some mid
00:01:47 verbose #1728 > >             elif item < target
00:01:47 verbose #1729 > >             then loop (mid + 1) right
00:01:47 verbose #1730 > >             else loop left mid
00:01:47 verbose #1731 > >     and inl loop left right = body left right
00:01:47 verbose #1732 > >     loop left right
00:01:47 verbose #1733 > >
00:01:47 verbose #1734 > > inl binary_search_closed_2 arr target left right =
00:01:47 verbose #1735 > >     let rec body left right =
00:01:47 verbose #1736 > >         if left > right
00:01:47 verbose #1737 > >         then None
00:01:47 verbose #1738 > >         else
00:01:47 verbose #1739 > >             inl mid = (left + right) / 2
00:01:47 verbose #1740 > >             inl item = index arr mid
00:01:47 verbose #1741 > >             if item = target
00:01:47 verbose #1742 > >             then Some mid
00:01:47 verbose #1743 > >             elif item < target
00:01:47 verbose #1744 > >             then loop (mid + 1) right
00:01:47 verbose #1745 > >             else loop left (mid - 1)
00:01:47 verbose #1746 > >     and inl loop left right = body left right
00:01:47 verbose #1747 > >     loop left right
00:01:47 verbose #1748 > >
00:01:47 verbose #1749 > > inl get_solutions () =
00:01:47 verbose #1750 > >     [[
00:01:47 verbose #1751 > >         "semi_open_1",
00:01:47 verbose #1752 > >         fun (arr, (target, len)) =>
00:01:47 verbose #1753 > >             binary_search_semi_open_1 arr target 0 len
00:01:47 verbose #1754 > >
00:01:47 verbose #1755 > >         "closed_1",
00:01:47 verbose #1756 > >         fun (arr, (target, len)) =>
00:01:47 verbose #1757 > >             binary_search_closed_1 arr target 0 (len - 1)
00:01:47 verbose #1758 > >
00:01:47 verbose #1759 > >         "semi_open_2",
00:01:47 verbose #1760 > >         fun (arr, (target, len)) =>
00:01:47 verbose #1761 > >             binary_search_semi_open_2 arr target 0 len
00:01:47 verbose #1762 > >
00:01:47 verbose #1763 > >         "closed_2",
00:01:47 verbose #1764 > >         fun (arr, (target, len)) =>
00:01:47 verbose #1765 > >             binary_search_closed_2 arr target 0 (len - 1)
00:01:47 verbose #1766 > >     ]]
00:01:47 verbose #1767 > >
00:01:47 verbose #1768 > > inl rec binary_search_tests () =
00:01:47 verbose #1769 > >     inl arr_with_len target len arr =
00:01:47 verbose #1770 > >         arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:47 verbose #1771 > >
00:01:47 verbose #1772 > >     inl test_cases = [[
00:01:47 verbose #1773 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:47 verbose #1774 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:47 verbose #1775 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:47 verbose #1776 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:47 verbose #1777 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:47 verbose #1778 > > 60 None), (Some 59)
00:01:47 verbose #1779 > >
00:01:47 verbose #1780 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:47 verbose #1781 > > 3i32)
00:01:47 verbose #1782 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:47 verbose #1783 > > 0i32)
00:01:47 verbose #1784 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:47 verbose #1785 > > 6i32)
00:01:47 verbose #1786 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:47 verbose #1787 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:47 verbose #1788 > > 60 (Some 100)), (Some 59)
00:01:47 verbose #1789 > >     ]]
00:01:47 verbose #1790 > >
00:01:47 verbose #1791 > >     inl solutions = get_solutions ()
00:01:47 verbose #1792 > >
00:01:47 verbose #1793 > >     // inl is_fast () = true
00:01:47 verbose #1794 > >
00:01:47 verbose #1795 > >     inl count =
00:01:47 verbose #1796 > >         if is_fast ()
00:01:47 verbose #1797 > >         then 1000i32
00:01:47 verbose #1798 > >         else 10000000i32
00:01:47 verbose #1799 > >
00:01:47 verbose #1800 > >     run_all (reflection.nameof { binary_search_tests }) count solutions
00:01:47 verbose #1801 > > test_cases
00:01:47 verbose #1802 > >     |> sort_result_list
00:01:47 verbose #1803 > >
00:01:47 verbose #1804 > >
00:01:47 verbose #1805 > > let main () =
00:01:47 verbose #1806 > >     binary_search_tests ()
00:02:41 verbose #1807 > >
00:02:41 verbose #1808 > > ╭─[ 53.70s - stdout ]──────────────────────────────────────────────────────────╮
00:02:41 verbose #1809 > > │                                                                              │
00:02:41 verbose #1810 > > │ ```                                                                          │
00:02:41 verbose #1811 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:02:41 verbose #1812 > > │ binary_search_tests; count = 10000000 }                                      │
00:02:41 verbose #1813 > > │                                                                              │
00:02:41 verbose #1814 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:02:41 verbose #1815 > > │ 8; 9; 11|], 6, 7) }                                                          │
00:02:41 verbose #1816 > > │ 00:00:01 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:02:41 verbose #1817 > > │ = semi_open_1; time = 1094 }                                                 │
00:02:41 verbose #1818 > > │ 00:00:02 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:02:41 verbose #1819 > > │ = closed_1; time = 979 }                                                     │
00:02:41 verbose #1820 > > │ 00:00:04 verbose #5 benchmark.run / solutions.map / { i = 3; test_name  │
00:02:41 verbose #1821 > > │ = semi_open_2; time = 1092 }                                                 │
00:02:41 verbose #1822 > > │ 00:00:05 verbose #6 benchmark.run / solutions.map / { i = 4; test_name  │
00:02:41 verbose #1823 > > │ = closed_2; time = 1018 }                                                    │
00:02:41 verbose #1824 > > │                                                                              │
00:02:41 verbose #1825 > > │ 00:00:05 verbose #7 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:02:41 verbose #1826 > > │ 8; 9; 11|], 1, 7) }                                                          │
00:02:41 verbose #1827 > > │ 00:00:06 verbose #8 benchmark.run / solutions.map / { i = 1; test_name  │
00:02:41 verbose #1828 > > │ = semi_open_1; time = 885 }                                                  │
00:02:41 verbose #1829 > > │ 00:00:07 verbose #9 benchmark.run / solutions.map / { i = 2; test_name  │
00:02:41 verbose #1830 > > │ = closed_1; time = 902 }                                                     │
00:02:41 verbose #1831 > > │ 00:00:09 verbose #10 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1832 > > │ = semi_open_2; time = 897 }                                                  │
00:02:41 verbose #1833 > > │ 00:00:10 verbose #11 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1834 > > │ = closed_2; time = 935 }                                                     │
00:02:41 verbose #1835 > > │                                                                              │
00:02:41 verbose #1836 > > │ 00:00:10 verbose #12 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1837 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:02:41 verbose #1838 > > │ 00:00:11 verbose #13 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1839 > > │ = semi_open_1; time = 918 }                                                  │
00:02:41 verbose #1840 > > │ 00:00:12 verbose #14 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1841 > > │ = closed_1; time = 933 }                                                     │
00:02:41 verbose #1842 > > │ 00:00:14 verbose #15 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1843 > > │ = semi_open_2; time = 976 }                                                  │
00:02:41 verbose #1844 > > │ 00:00:15 verbose #16 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1845 > > │ = closed_2; time = 942 }                                                     │
00:02:41 verbose #1846 > > │                                                                              │
00:02:41 verbose #1847 > > │ 00:00:15 verbose #17 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1848 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:02:41 verbose #1849 > > │ 00:00:16 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1850 > > │ = semi_open_1; time = 974 }                                                  │
00:02:41 verbose #1851 > > │ 00:00:18 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1852 > > │ = closed_1; time = 1014 }                                                    │
00:02:41 verbose #1853 > > │ 00:00:19 verbose #20 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1854 > > │ = semi_open_2; time = 935 }                                                  │
00:02:41 verbose #1855 > > │ 00:00:20 verbose #21 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1856 > > │ = closed_2; time = 901 }                                                     │
00:02:41 verbose #1857 > > │                                                                              │
00:02:41 verbose #1858 > > │ 00:00:20 verbose #22 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:02:41 verbose #1859 > > │ 4...00; ...|], 60, 1000) }                                                   │
00:02:41 verbose #1860 > > │ 00:00:21 verbose #23 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1861 > > │ = semi_open_1; time = 948 }                                                  │
00:02:41 verbose #1862 > > │ 00:00:23 verbose #24 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1863 > > │ = closed_1; time = 945 }                                                     │
00:02:41 verbose #1864 > > │ 00:00:24 verbose #25 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1865 > > │ = semi_open_2; time = 925 }                                                  │
00:02:41 verbose #1866 > > │ 00:00:25 verbose #26 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1867 > > │ = closed_2; time = 940 }                                                     │
00:02:41 verbose #1868 > > │                                                                              │
00:02:41 verbose #1869 > > │ 00:00:25 verbose #27 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1870 > > │ 6; 8; 9; 11|], 6, 7) }                                                       │
00:02:41 verbose #1871 > > │ 00:00:27 verbose #28 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1872 > > │ = semi_open_1; time = 884 }                                                  │
00:02:41 verbose #1873 > > │ 00:00:28 verbose #29 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1874 > > │ = closed_1; time = 884 }                                                     │
00:02:41 verbose #1875 > > │ 00:00:29 verbose #30 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1876 > > │ = semi_open_2; time = 918 }                                                  │
00:02:41 verbose #1877 > > │ 00:00:30 verbose #31 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1878 > > │ = closed_2; time = 889 }                                                     │
00:02:41 verbose #1879 > > │                                                                              │
00:02:41 verbose #1880 > > │ 00:00:30 verbose #32 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1881 > > │ 6; 8; 9; 11|], 1, 7) }                                                       │
00:02:41 verbose #1882 > > │ 00:00:31 verbose #33 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1883 > > │ = semi_open_1; time = 917 }                                                  │
00:02:41 verbose #1884 > > │ 00:00:33 verbose #34 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1885 > > │ = closed_1; time = 887 }                                                     │
00:02:41 verbose #1886 > > │ 00:00:34 verbose #35 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1887 > > │ = semi_open_2; time = 898 }                                                  │
00:02:41 verbose #1888 > > │ 00:00:35 verbose #36 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1889 > > │ = closed_2; time = 928 }                                                     │
00:02:41 verbose #1890 > > │                                                                              │
00:02:41 verbose #1891 > > │ 00:00:35 verbose #37 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1892 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:02:41 verbose #1893 > > │ 00:00:36 verbose #38 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1894 > > │ = semi_open_1; time = 879 }                                                  │
00:02:41 verbose #1895 > > │ 00:00:38 verbose #39 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1896 > > │ = closed_1; time = 866 }                                                     │
00:02:41 verbose #1897 > > │ 00:00:39 verbose #40 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1898 > > │ = semi_open_2; time = 922 }                                                  │
00:02:41 verbose #1899 > > │ 00:00:40 verbose #41 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1900 > > │ = closed_2; time = 930 }                                                     │
00:02:41 verbose #1901 > > │                                                                              │
00:02:41 verbose #1902 > > │ 00:00:40 verbose #42 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:02:41 verbose #1903 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:02:41 verbose #1904 > > │ 00:00:41 verbose #43 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1905 > > │ = semi_open_1; time = 943 }                                                  │
00:02:41 verbose #1906 > > │ 00:00:43 verbose #44 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1907 > > │ = closed_1; time = 910 }                                                     │
00:02:41 verbose #1908 > > │ 00:00:44 verbose #45 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1909 > > │ = semi_open_2; time = 900 }                                                  │
00:02:41 verbose #1910 > > │ 00:00:45 verbose #46 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1911 > > │ = closed_2; time = 899 }                                                     │
00:02:41 verbose #1912 > > │                                                                              │
00:02:41 verbose #1913 > > │ 00:00:45 verbose #47 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:02:41 verbose #1914 > > │ 4...100; ...|], 60, 100) }                                                   │
00:02:41 verbose #1915 > > │ 00:00:46 verbose #48 benchmark.run / solutions.map / { i = 1; test_name │
00:02:41 verbose #1916 > > │ = semi_open_1; time = 900 }                                                  │
00:02:41 verbose #1917 > > │ 00:00:48 verbose #49 benchmark.run / solutions.map / { i = 2; test_name │
00:02:41 verbose #1918 > > │ = closed_1; time = 931 }                                                     │
00:02:41 verbose #1919 > > │ 00:00:49 verbose #50 benchmark.run / solutions.map / { i = 3; test_name │
00:02:41 verbose #1920 > > │ = semi_open_2; time = 954 }                                                  │
00:02:41 verbose #1921 > > │ 00:00:50 verbose #51 benchmark.run / solutions.map / { i = 4; test_name │
00:02:41 verbose #1922 > > │ = closed_2; time = 960 }                                                     │
00:02:41 verbose #1923 > > │ ```                                                                          │
00:02:41 verbose #1924 > > │ input                                    	| expected	| result  	| best             │
00:02:41 verbose #1925 > > │ ---                                      	| ---     	| ---     	| ---              │
00:02:41 verbose #1926 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 979           │
00:02:41 verbose #1927 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 1, 885           │
00:02:41 verbose #1928 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 1, 918           │
00:02:41 verbose #1929 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 4, 901           │
00:02:41 verbose #1930 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 3, 925           │
00:02:41 verbose #1931 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 1, 884           │
00:02:41 verbose #1932 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 887           │
00:02:41 verbose #1933 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 2, 866           │
00:02:41 verbose #1934 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 4, 899           │
00:02:41 verbose #1935 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 900           │
00:02:41 verbose #1936 > > │ ```                                                                          │
00:02:41 verbose #1937 > > │ 00:00:50 verbose #52 benchmark.sort_result_list / averages.iter / { i = │
00:02:41 verbose #1938 > > │ 2; avg = 925 }                                                               │
00:02:41 verbose #1939 > > │ 00:00:50 verbose #53 benchmark.sort_result_list / averages.iter / { i = │
00:02:41 verbose #1940 > > │ 1; avg = 934 }                                                               │
00:02:41 verbose #1941 > > │ 00:00:50 verbose #54 benchmark.sort_result_list / averages.iter / { i = │
00:02:41 verbose #1942 > > │ 4; avg = 934 }                                                               │
00:02:41 verbose #1943 > > │ 00:00:50 verbose #55 benchmark.sort_result_list / averages.iter / { i = │
00:02:41 verbose #1944 > > │ 3; avg = 941 }                                                               │
00:02:41 verbose #1945 > > │ ```                                                                          │
00:02:41 verbose #1946 > > │                                                                              │
00:02:41 verbose #1947 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #1948 > >
00:02:41 verbose #1949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 verbose #1950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 verbose #1951 > > │ ## returnLettersWithOddCountTests                                            │
00:02:41 verbose #1952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #1953 > >
00:02:41 verbose #1954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 verbose #1955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 verbose #1956 > > │ Test: ReturnLettersWithOddCount                                              │
00:02:41 verbose #1957 > > │                                                                              │
00:02:41 verbose #1958 > > │ Solution: 1                                                                  │
00:02:41 verbose #1959 > > │ Test case 1. A. Time: 645L                                                   │
00:02:41 verbose #1960 > > │                                                                              │
00:02:41 verbose #1961 > > │ Solution: 2                                                                  │
00:02:41 verbose #1962 > > │ Test case 1. A. Time: 663L                                                   │
00:02:41 verbose #1963 > > │                                                                              │
00:02:41 verbose #1964 > > │ Solution: 3                                                                  │
00:02:41 verbose #1965 > > │ Test case 1. A. Time: 680L                                                   │
00:02:41 verbose #1966 > > │                                                                              │
00:02:41 verbose #1967 > > │ Solution: 9                                                                  │
00:02:41 verbose #1968 > > │ Test case 1. A. Time: 730L                                                   │
00:02:41 verbose #1969 > > │                                                                              │
00:02:41 verbose #1970 > > │ Solution: 10                                                                 │
00:02:41 verbose #1971 > > │ Test case 1. A. Time: 815L                                                   │
00:02:41 verbose #1972 > > │                                                                              │
00:02:41 verbose #1973 > > │ Input   | Expected        | Result          | Best                           │
00:02:41 verbose #1974 > > │ ---     | ---             | ---             | ---                            │
00:02:41 verbose #1975 > > │ 1       | a               | a               | (1, 645)                       │
00:02:41 verbose #1976 > > │ 2       | ba              | ba              | (1, 663)                       │
00:02:41 verbose #1977 > > │ 3       | aaa             | aaa             | (1, 680)                       │
00:02:41 verbose #1978 > > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │
00:02:41 verbose #1979 > > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │
00:02:41 verbose #1980 > > │                                                                              │
00:02:41 verbose #1981 > > │ Averages                                                                     │
00:02:41 verbose #1982 > > │ Test case 1. Average Time: 706L                                              │
00:02:41 verbose #1983 > > │                                                                              │
00:02:41 verbose #1984 > > │ Ranking                                                                      │
00:02:41 verbose #1985 > > │ Test case 1. Average Time: 706L                                              │
00:02:41 verbose #1986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #1987 > >
00:02:41 verbose #1988 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #1989 > > //// test
00:02:41 verbose #1990 > >
00:02:41 verbose #1991 > > let solutions = [[
00:02:41 verbose #1992 > >     "A",
00:02:41 verbose #1993 > >     fun n ->
00:02:41 verbose #1994 > >         let mutable _builder = StringBuilder (new string('a', n))
00:02:41 verbose #1995 > >         if n % 2 = 0 then
00:02:41 verbose #1996 > >             _builder.[[0]] <- 'b'
00:02:41 verbose #1997 > >
00:02:41 verbose #1998 > >         _builder.ToString ()
00:02:41 verbose #1999 > > ]]
00:02:41 verbose #2000 > > let testCases = seq {
00:02:41 verbose #2001 > >     1, "a"
00:02:41 verbose #2002 > >     2, "ba"
00:02:41 verbose #2003 > >     3, "aaa"
00:02:41 verbose #2004 > >     9, "aaaaaaaaa"
00:02:41 verbose #2005 > >     10, "baaaaaaaaa"
00:02:41 verbose #2006 > > }
00:02:41 verbose #2007 > > let rec returnLettersWithOddCountTests =
00:02:41 verbose #2008 > >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:02:41 verbose #2009 > > returnLettersWithOddCountTests
00:02:41 verbose #2010 > > |> sortResultList
00:02:43 verbose #2011 > >
00:02:43 verbose #2012 > > ╭─[ 1.64s - stdout ]───────────────────────────────────────────────────────────╮
00:02:43 verbose #2013 > > │                                                                              │
00:02:43 verbose #2014 > > │                                                                              │
00:02:43 verbose #2015 > > │ Test: returnLettersWithOddCountTests                                         │
00:02:43 verbose #2016 > > │                                                                              │
00:02:43 verbose #2017 > > │ Solution: 1                                                                  │
00:02:43 verbose #2018 > > │ Test case 1. A. Time: 0L                                                     │
00:02:43 verbose #2019 > > │                                                                              │
00:02:43 verbose #2020 > > │ Solution: 2                                                                  │
00:02:43 verbose #2021 > > │ Test case 1. A. Time: 0L                                                     │
00:02:43 verbose #2022 > > │                                                                              │
00:02:43 verbose #2023 > > │ Solution: 3                                                                  │
00:02:43 verbose #2024 > > │ Test case 1. A. Time: 0L                                                     │
00:02:43 verbose #2025 > > │                                                                              │
00:02:43 verbose #2026 > > │ Solution: 9                                                                  │
00:02:43 verbose #2027 > > │ Test case 1. A. Time: 0L                                                     │
00:02:43 verbose #2028 > > │                                                                              │
00:02:43 verbose #2029 > > │ Solution: 10                                                                 │
00:02:43 verbose #2030 > > │ Test case 1. A. Time: 4L                                                     │
00:02:43 verbose #2031 > > │                                                                              │
00:02:43 verbose #2032 > > │ Input	| Expected  	| Result    	| Best                                             │
00:02:43 verbose #2033 > > │ ---  	| ---       	| ---       	| ---                                              │
00:02:43 verbose #2034 > > │ 1    	| a         	| a         	| (1, 0)                                           │
00:02:43 verbose #2035 > > │ 2    	| ba        	| ba        	| (1, 0)                                           │
00:02:43 verbose #2036 > > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │
00:02:43 verbose #2037 > > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │
00:02:43 verbose #2038 > > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 4)                                           │
00:02:43 verbose #2039 > > │                                                                              │
00:02:43 verbose #2040 > > │ Average Ranking                                                              │
00:02:43 verbose #2041 > > │ Test case 1. Average Time: 0L                                                │
00:02:43 verbose #2042 > > │                                                                              │
00:02:43 verbose #2043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:43 verbose #2044 > >
00:02:43 verbose #2045 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:43 verbose #2046 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:43 verbose #2047 > > │ ## hasAnyPairCloseToEachotherTests                                           │
00:02:43 verbose #2048 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:43 verbose #2049 > >
00:02:43 verbose #2050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:43 verbose #2051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:43 verbose #2052 > > │ Test: HasAnyPairCloseToEachother                                             │
00:02:43 verbose #2053 > > │                                                                              │
00:02:43 verbose #2054 > > │ Solution: 0                                                                  │
00:02:43 verbose #2055 > > │ Test case 1. A. Time: 137L                                                   │
00:02:43 verbose #2056 > > │                                                                              │
00:02:43 verbose #2057 > > │ Solution: 1,2                                                                │
00:02:43 verbose #2058 > > │ Test case 1. A. Time: 186L                                                   │
00:02:43 verbose #2059 > > │                                                                              │
00:02:43 verbose #2060 > > │ Solution: 3,5                                                                │
00:02:43 verbose #2061 > > │ Test case 1. A. Time: 206L                                                   │
00:02:43 verbose #2062 > > │                                                                              │
00:02:43 verbose #2063 > > │ Solution: 3,4,6                                                              │
00:02:43 verbose #2064 > > │ Test case 1. A. Time: 149L                                                   │
00:02:43 verbose #2065 > > │                                                                              │
00:02:43 verbose #2066 > > │ Solution: 2,4,6                                                              │
00:02:43 verbose #2067 > > │ Test case 1. A. Time: 150L                                                   │
00:02:43 verbose #2068 > > │                                                                              │
00:02:43 verbose #2069 > > │ Input   | Expected        | Result  | Best                                   │
00:02:43 verbose #2070 > > │ ---     | ---             | ---     | ---                                    │
00:02:43 verbose #2071 > > │ 0       | False           | False   | (1, 137)                               │
00:02:43 verbose #2072 > > │ 1,2     | True            | True    | (1, 186)                               │
00:02:43 verbose #2073 > > │ 3,5     | False           | False   | (1, 206)                               │
00:02:43 verbose #2074 > > │ 3,4,6   | True            | True    | (1, 149)                               │
00:02:43 verbose #2075 > > │ 2,4,6   | False           | False   | (1, 150)                               │
00:02:43 verbose #2076 > > │                                                                              │
00:02:43 verbose #2077 > > │ Averages                                                                     │
00:02:43 verbose #2078 > > │ Test case 1. Average Time: 165L                                              │
00:02:43 verbose #2079 > > │                                                                              │
00:02:43 verbose #2080 > > │ Ranking                                                                      │
00:02:43 verbose #2081 > > │ Test case 1. Average Time: 165L                                              │
00:02:43 verbose #2082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:43 verbose #2083 > >
00:02:43 verbose #2084 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:43 verbose #2085 > > //// test
00:02:43 verbose #2086 > >
00:02:43 verbose #2087 > > let solutions = [[
00:02:43 verbose #2088 > >     "A",
00:02:43 verbose #2089 > >     fun (a: int[[]]) ->
00:02:43 verbose #2090 > >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:02:43 verbose #2091 > > System.Linq.Enumerable.ToArray
00:02:43 verbose #2092 > >         System.Array.Sort (a, indices)
00:02:43 verbose #2093 > >
00:02:43 verbose #2094 > >         indices
00:02:43 verbose #2095 > >         |> Array.take (a.Length - 1)
00:02:43 verbose #2096 > >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:02:43 verbose #2097 > > ]]
00:02:43 verbose #2098 > > let testCases = seq {
00:02:43 verbose #2099 > >     [[| 0 |]], false
00:02:43 verbose #2100 > >     [[| 1; 2 |]], true
00:02:43 verbose #2101 > >     [[| 3; 5 |]], false
00:02:43 verbose #2102 > >     [[| 3; 4; 6 |]], true
00:02:43 verbose #2103 > >     [[| 2; 4; 6 |]], false
00:02:43 verbose #2104 > > }
00:02:43 verbose #2105 > > let rec hasAnyPairCloseToEachotherTests =
00:02:43 verbose #2106 > >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:02:43 verbose #2107 > > hasAnyPairCloseToEachotherTests
00:02:43 verbose #2108 > > |> sortResultList
00:02:44 verbose #2109 > >
00:02:44 verbose #2110 > > ╭─[ 1.73s - stdout ]───────────────────────────────────────────────────────────╮
00:02:44 verbose #2111 > > │                                                                              │
00:02:44 verbose #2112 > > │                                                                              │
00:02:44 verbose #2113 > > │ Test: hasAnyPairCloseToEachotherTests                                        │
00:02:44 verbose #2114 > > │                                                                              │
00:02:44 verbose #2115 > > │ Solution: 0                                                                  │
00:02:44 verbose #2116 > > │ Test case 1. A. Time: 4L                                                     │
00:02:44 verbose #2117 > > │                                                                              │
00:02:44 verbose #2118 > > │ Solution: 1,2                                                                │
00:02:44 verbose #2119 > > │ Test case 1. A. Time: 0L                                                     │
00:02:44 verbose #2120 > > │                                                                              │
00:02:44 verbose #2121 > > │ Solution: 3,5                                                                │
00:02:44 verbose #2122 > > │ Test case 1. A. Time: 0L                                                     │
00:02:44 verbose #2123 > > │                                                                              │
00:02:44 verbose #2124 > > │ Solution: 3,4,6                                                              │
00:02:44 verbose #2125 > > │ Test case 1. A. Time: 0L                                                     │
00:02:44 verbose #2126 > > │                                                                              │
00:02:44 verbose #2127 > > │ Solution: 2,4,6                                                              │
00:02:44 verbose #2128 > > │ Test case 1. A. Time: 0L                                                     │
00:02:44 verbose #2129 > > │                                                                              │
00:02:44 verbose #2130 > > │ Input	| Expected	| Result	| Best                                                   │
00:02:44 verbose #2131 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:02:44 verbose #2132 > > │ 0    	| False   	| False 	| (1, 4)                                                 │
00:02:44 verbose #2133 > > │ 1,2  	| True    	| True  	| (1, 0)                                                 │
00:02:44 verbose #2134 > > │ 3,5  	| False   	| False 	| (1, 0)                                                 │
00:02:44 verbose #2135 > > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │
00:02:44 verbose #2136 > > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │
00:02:44 verbose #2137 > > │                                                                              │
00:02:44 verbose #2138 > > │ Average Ranking                                                              │
00:02:44 verbose #2139 > > │ Test case 1. Average Time: 0L                                                │
00:02:44 verbose #2140 > > │                                                                              │
00:02:44 verbose #2141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:45 verbose #2142 > 00:02:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 125147 }
00:02:45 verbose #2143 > 00:02:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:02:45 verbose #2144 >     "nbconvert",
00:02:45 verbose #2145 >     "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb",
00:02:45 verbose #2146 >     "--to",
00:02:45 verbose #2147 >     "html",
00:02:45 verbose #2148 >     "--HTMLExporter.theme=dark",
00:02:45 verbose #2149 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:48 verbose #2150 > 00:02:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/perf/Perf.dib.ipynb to html
00:02:48 verbose #2151 > 00:02:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:48 verbose #2152 > 00:02:46 verbose #7 !   validate(nb)
00:02:51 verbose #2153 > 00:02:50 verbose #8 ! [NbConvertApp] Writing 458551 bytes to c:\home\git\polyglot\apps\perf\Perf.dib.html
00:02:52 verbose #2154 > 00:02:50 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:02:52 verbose #2155 > 00:02:50   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:02:52 verbose #2156 > 00:02:50   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:02:52 verbose #2157 >     "-c",
00:02:52 verbose #2158 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:02:52 verbose #2159 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:52 verbose #2160 > 00:02:51 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:52 verbose #2161 > 00:02:51   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:52 verbose #2162 > 00:02:51   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 125843 }
00:02:52   debug #2163 runtime.execute_with_options_async / { exit_code = 0; output_length = 132759 }
00:02:52   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3
00:00:00   debug #1 writeDibCode / output: Fs / path: Perf.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ pwsh ../apps/dir-tree-html/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DirTreeHtml.dib"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib" --output-path "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ # DirTreeHtml (Polyglot)                                                     │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #16 > >
00:00:10 verbose #17 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #18 > > #r
00:00:10 verbose #19 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:10 verbose #20 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:10 verbose #21 > > #r
00:00:10 verbose #22 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:10 verbose #23 > > 0/System.Reactive.dll"
00:00:10 verbose #24 > > #r
00:00:10 verbose #25 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:10 verbose #26 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:10 verbose #27 > > #r
00:00:10 verbose #28 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:00:10 verbose #29 > > #r
00:00:10 verbose #30 > > @"../../../../../../../.nuget/packages/falco.markup/1.1.1/lib/netstandard2.0/Fal
00:00:10 verbose #31 > > co.Markup.dll"
00:00:37 verbose #32 > >
00:00:37 verbose #33 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #34 > > #if !INTERACTIVE
00:00:37 verbose #35 > > open Lib
00:00:37 verbose #36 > > #endif
00:00:37 verbose #37 > >
00:00:37 verbose #38 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #39 > > open SpiralFileSystem.Operators
00:00:37 verbose #40 > > open Falco.Markup
00:00:37 verbose #41 > >
00:00:37 verbose #42 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #43 > > type FileSystemNode =
00:00:37 verbose #44 > >     | File of string * string * int64
00:00:37 verbose #45 > >     | Folder of string * string * FileSystemNode list
00:00:37 verbose #46 > >     | Root of FileSystemNode list
00:00:37 verbose #47 > >
00:00:37 verbose #48 > > let rec scanDirectory isRoot (basePath : string) (path : string) =
00:00:37 verbose #49 > >     let relativePath =
00:00:37 verbose #50 > >         path
00:00:37 verbose #51 > >         |> SpiralSm.replace basePath ""
00:00:37 verbose #52 > >         |> SpiralSm.replace "\\" "/"
00:00:37 verbose #53 > >         |> SpiralSm.replace "//" "/"
00:00:37 verbose #54 > >         |> SpiralSm.trim_start [[| '/' |]]
00:00:37 verbose #55 > >
00:00:37 verbose #56 > >     let directories =
00:00:37 verbose #57 > >         path
00:00:37 verbose #58 > >         |> System.IO.Directory.GetDirectories
00:00:37 verbose #59 > >         |> Array.toList
00:00:37 verbose #60 > >         |> List.sort
00:00:37 verbose #61 > >         |> List.map (scanDirectory false basePath)
00:00:37 verbose #62 > >     let files =
00:00:37 verbose #63 > >         path
00:00:37 verbose #64 > >         |> System.IO.Directory.GetFiles
00:00:37 verbose #65 > >         |> Array.toList
00:00:37 verbose #66 > >         |> List.sort
00:00:37 verbose #67 > >         |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
00:00:37 verbose #68 > > System.IO.FileInfo(f).Length))
00:00:37 verbose #69 > >
00:00:37 verbose #70 > >     let children = directories @ files
00:00:37 verbose #71 > >     if isRoot
00:00:37 verbose #72 > >     then Root children
00:00:37 verbose #73 > >     else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
00:00:37 verbose #74 > >
00:00:37 verbose #75 > > let rec generateHtml fsNode =
00:00:37 verbose #76 > >     let sizeLabel size =
00:00:37 verbose #77 > >         match float size with
00:00:37 verbose #78 > >         | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
00:00:37 verbose #79 > >         | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
00:00:37 verbose #80 > >         | size -> $"%.2f{size} B"
00:00:37 verbose #81 > >     match fsNode with
00:00:37 verbose #82 > >     | File (fileName, relativePath, size) ->
00:00:37 verbose #83 > >         Elem.div [[]] [[
00:00:37 verbose #84 > >             Text.raw "&#128196; "
00:00:37 verbose #85 > >             Elem.a [[
00:00:37 verbose #86 > >                 Attr.href $"""{relativePath}{if relativePath = "" then "" else
00:00:37 verbose #87 > > "/"}{fileName}"""
00:00:37 verbose #88 > >             ]] [[
00:00:37 verbose #89 > >                 Text.raw fileName
00:00:37 verbose #90 > >             ]]
00:00:37 verbose #91 > >             Elem.span [[]] [[
00:00:37 verbose #92 > >                 Text.raw $" ({size |> sizeLabel})"
00:00:37 verbose #93 > >             ]]
00:00:37 verbose #94 > >         ]]
00:00:37 verbose #95 > >     | Folder (folderName, relativePath, children) ->
00:00:37 verbose #96 > >         let size =
00:00:37 verbose #97 > >             let rec loop children =
00:00:37 verbose #98 > >                 children
00:00:37 verbose #99 > >                 |> List.sumBy (function
00:00:37 verbose #100 > >                     | File (_, _, size) -> size
00:00:37 verbose #101 > >                     | Folder (_, _, children)
00:00:37 verbose #102 > >                     | Root children -> loop children
00:00:37 verbose #103 > >                 )
00:00:37 verbose #104 > >             loop children
00:00:37 verbose #105 > >         Elem.details [[
00:00:37 verbose #106 > >             Attr.open' "true"
00:00:37 verbose #107 > >         ]] [[
00:00:37 verbose #108 > >             Elem.summary [[]] [[
00:00:37 verbose #109 > >                 Text.raw "&#128194; "
00:00:37 verbose #110 > >                 Elem.a [[
00:00:37 verbose #111 > >                     Attr.href relativePath
00:00:37 verbose #112 > >                 ]] [[
00:00:37 verbose #113 > >                     Text.raw folderName
00:00:37 verbose #114 > >                 ]]
00:00:37 verbose #115 > >                 Elem.span [[]] [[
00:00:37 verbose #116 > >                     Text.raw $" ({size |> sizeLabel})"
00:00:37 verbose #117 > >                 ]]
00:00:37 verbose #118 > >             ]]
00:00:37 verbose #119 > >             Elem.div [[]] [[
00:00:37 verbose #120 > >                 yield! children |> List.map generateHtml
00:00:37 verbose #121 > >             ]]
00:00:37 verbose #122 > >         ]]
00:00:37 verbose #123 > >     | Root children ->
00:00:37 verbose #124 > >         Elem.div [[]] [[
00:00:37 verbose #125 > >             yield! children |> List.map generateHtml
00:00:37 verbose #126 > >         ]]
00:00:37 verbose #127 > >
00:00:37 verbose #128 > > let generateHtmlForFileSystem root =
00:00:37 verbose #129 > >     $"""<!DOCTYPE html>
00:00:37 verbose #130 > > <html lang="en">
00:00:37 verbose #131 > > <head>
00:00:37 verbose #132 > >   <meta charset="UTF-8">
00:00:37 verbose #133 > >   <style>
00:00:37 verbose #134 > > body {{
00:00:37 verbose #135 > >     background-color: #222;
00:00:37 verbose #136 > >     color: #ccc;
00:00:37 verbose #137 > > }}
00:00:37 verbose #138 > > a {{
00:00:37 verbose #139 > >   color: #777;
00:00:37 verbose #140 > >   font-size: 15px;
00:00:37 verbose #141 > > }}
00:00:37 verbose #142 > > span {{
00:00:37 verbose #143 > >   font-size: 11px;
00:00:37 verbose #144 > > }}
00:00:37 verbose #145 > > div > div {{
00:00:37 verbose #146 > >   padding-left: 10px;
00:00:37 verbose #147 > > }}
00:00:37 verbose #148 > > details > div {{
00:00:37 verbose #149 > >   padding-left: 19px;
00:00:37 verbose #150 > > }}
00:00:37 verbose #151 > >   </style>
00:00:37 verbose #152 > > </head>
00:00:37 verbose #153 > > <body>
00:00:37 verbose #154 > >   {root |> generateHtml |> renderNode}
00:00:37 verbose #155 > > </body>
00:00:37 verbose #156 > > </html>
00:00:37 verbose #157 > > """
00:00:37 verbose #158 > >
00:00:37 verbose #159 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #160 > > //// test
00:00:37 verbose #161 > >
00:00:37 verbose #162 > > let expected = """<!DOCTYPE html>
00:00:37 verbose #163 > > <html lang="en">
00:00:37 verbose #164 > > <head>
00:00:37 verbose #165 > >   <meta charset="UTF-8">
00:00:37 verbose #166 > >   <style>
00:00:37 verbose #167 > > body {
00:00:37 verbose #168 > >     background-color: #222;
00:00:37 verbose #169 > >     color: #ccc;
00:00:37 verbose #170 > > }
00:00:37 verbose #171 > > a {
00:00:37 verbose #172 > >   color: #777;
00:00:37 verbose #173 > >   font-size: 15px;
00:00:37 verbose #174 > > }
00:00:37 verbose #175 > > span {
00:00:37 verbose #176 > >   font-size: 11px;
00:00:37 verbose #177 > > }
00:00:37 verbose #178 > > div > div {
00:00:37 verbose #179 > >   padding-left: 10px;
00:00:37 verbose #180 > > }
00:00:37 verbose #181 > > details > div {
00:00:37 verbose #182 > >   padding-left: 19px;
00:00:37 verbose #183 > > }
00:00:37 verbose #184 > >   </style>
00:00:37 verbose #185 > > </head>
00:00:37 verbose #186 > > <body>
00:00:37 verbose #187 > >   <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>
00:00:37 verbose #188 > > (10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:37 verbose #189 > > href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
00:00:37 verbose #190 > > open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00
00:00:37 verbose #191 > > B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:37 verbose #192 > > href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a
00:00:37 verbose #193 > > href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
00:00:37 verbose #194 > > B)</span></div></div></details><div>&#128196; <a
00:00:37 verbose #195 > > href="_.root/3/2/file.txt">file.txt</a><span> (2.00
00:00:37 verbose #196 > > B)</span></div></div></details><div>&#128196; <a
00:00:37 verbose #197 > > href="_.root/3/file.txt">file.txt</a><span> (3.00
00:00:37 verbose #198 > > B)</span></div></div></details><div>&#128196; <a
00:00:37 verbose #199 > > href="_.root/file.txt">file.txt</a><span> (4.00
00:00:37 verbose #200 > > B)</span></div></div></details></div>
00:00:37 verbose #201 > > </body>
00:00:37 verbose #202 > > </html>
00:00:37 verbose #203 > > """
00:00:37 verbose #204 > >
00:00:37 verbose #205 > > let struct (tempFolder, disposable) = expected |> SpiralCrypto.hash_text |>
00:00:37 verbose #206 > > SpiralFileSystem.create_temp_dir'
00:00:37 verbose #207 > > let rec loop d n = async {
00:00:37 verbose #208 > >     if n >= 0 then
00:00:37 verbose #209 > >         tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
00:00:37 verbose #210 > >         do!
00:00:37 verbose #211 > >             n
00:00:37 verbose #212 > >             |> string
00:00:37 verbose #213 > >             |> String.replicate (n + 1)
00:00:37 verbose #214 > >             |> SpiralFileSystem.write_all_text_async (tempFolder </> d </>
00:00:37 verbose #215 > > $"file.txt")
00:00:37 verbose #216 > >         do! loop $"{d}/{n}" (n - 1)
00:00:37 verbose #217 > > }
00:00:37 verbose #218 > > loop "_.root" 3
00:00:37 verbose #219 > > |> Async.RunSynchronously
00:00:37 verbose #220 > >
00:00:37 verbose #221 > > let html =
00:00:37 verbose #222 > >     scanDirectory true tempFolder tempFolder
00:00:37 verbose #223 > >     |> generateHtmlForFileSystem
00:00:37 verbose #224 > >
00:00:37 verbose #225 > > html
00:00:37 verbose #226 > > |> _assertEqual expected
00:00:37 verbose #227 > >
00:00:37 verbose #228 > > disposable.Dispose ()
00:00:37 verbose #229 > >
00:00:37 verbose #230 > > html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
00:00:38 verbose #231 > >
00:00:38 verbose #232 > > ╭─[ 361.37ms - return value ]──────────────────────────────────────────────────╮
00:00:38 verbose #233 > > │ <!DOCTYPE html>                                                              │
00:00:38 verbose #234 > > │ <html lang="en">                                                             │
00:00:38 verbose #235 > > │ <head>                                                                       │
00:00:38 verbose #236 > > │   <meta charset="UTF-8">                                                     │
00:00:38 verbose #237 > > │   <style>                                                                    │
00:00:38 verbose #238 > > │ body {                                                                       │
00:00:38 verbose #239 > > │     background-color: #222;                                                  │
00:00:38 verbose #240 > > │     color: #ccc;                                                             │
00:00:38 verbose #241 > > │ }                                                                            │
00:00:38 verbose #242 > > │ a {                                                                          │
00:00:38 verbose #243 > > │   color: #777;                                                               │
00:00:38 verbose #244 > > │   font-size: 15px;                                                           │
00:00:38 verbose #245 > > │ }                                                                            │
00:00:38 verbose #246 > > │ span {                                                                       │
00:00:38 verbose #247 > > │   font-size: 11px;                                                           │
00:00:38 verbose #248 > > │ }                                                                            │
00:00:38 verbose #249 > > │ div > div {                                                                  │
00:00:38 verbose #250 > > │   padding-left: 10px;                                                        │
00:00:38 verbose #251 > > │ }                                                                            │
00:00:38 verbose #252 > > │ details > div {                                                              │
00:00:38 verbose #253 > > │   padding-left: 19px;                                                        │
00:00:38 verbose #254 > > │ }                                                                            │
00:00:38 verbose #255 > > │   </style>                                                                   │
00:00:38 verbose #256 > > │ </head>                                                                      │
00:00:38 verbose #257 > > │ <body>                                                                       │
00:00:38 verbose #258 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:38 verbose #259 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:38 verbose #260 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:38 verbose #261 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:38 verbose #262 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:38 verbose #263 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:38 verbose #264 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:38 verbose #265 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:38 verbose #266 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #267 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:38 verbose #268 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #269 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:38 verbose #270 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #271 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:38 verbose #272 > > │ B)</span></div></div></details></div>                                        │
00:00:38 verbose #273 > > │ </body>                                                                      │
00:00:38 verbose #274 > > │ </html>                                                                      │
00:00:38 verbose #275 > > │                                                                              │
00:00:38 verbose #276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #277 > >
00:00:38 verbose #278 > > ╭─[ 377.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 verbose #279 > > │ "<!DOCTYPE html>                                                             │
00:00:38 verbose #280 > > │ <html lang="en">                                                             │
00:00:38 verbose #281 > > │ <head>                                                                       │
00:00:38 verbose #282 > > │   <meta charset="UTF-8">                                                     │
00:00:38 verbose #283 > > │   <style>                                                                    │
00:00:38 verbose #284 > > │ body {                                                                       │
00:00:38 verbose #285 > > │     background-color: #222;                                                  │
00:00:38 verbose #286 > > │     color: #ccc;                                                             │
00:00:38 verbose #287 > > │ }                                                                            │
00:00:38 verbose #288 > > │ a {                                                                          │
00:00:38 verbose #289 > > │   color: #777;                                                               │
00:00:38 verbose #290 > > │   font-size: 15px;                                                           │
00:00:38 verbose #291 > > │ }                                                                            │
00:00:38 verbose #292 > > │ span {                                                                       │
00:00:38 verbose #293 > > │   font-size: 11px;                                                           │
00:00:38 verbose #294 > > │ }                                                                            │
00:00:38 verbose #295 > > │ div > div {                                                                  │
00:00:38 verbose #296 > > │   padding-left: 10px;                                                        │
00:00:38 verbose #297 > > │ }                                                                            │
00:00:38 verbose #298 > > │ details > div {                                                              │
00:00:38 verbose #299 > > │   padding-left: 19px;                                                        │
00:00:38 verbose #300 > > │ }                                                                            │
00:00:38 verbose #301 > > │   </style>                                                                   │
00:00:38 verbose #302 > > │ </head>                                                                      │
00:00:38 verbose #303 > > │ <body>                                                                       │
00:00:38 verbose #304 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:38 verbose #305 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:38 verbose #306 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:38 verbose #307 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:38 verbose #308 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:38 verbose #309 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:38 verbose #310 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:38 verbose #311 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:38 verbose #312 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #313 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:38 verbose #314 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #315 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:38 verbose #316 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:38 verbose #317 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:38 verbose #318 > > │ B)</span></div></div></details></div>                                        │
00:00:38 verbose #319 > > │ </body>                                                                      │
00:00:38 verbose #320 > > │ </html>                                                                      │
00:00:38 verbose #321 > > │ "                                                                            │
00:00:38 verbose #322 > > │                                                                              │
00:00:38 verbose #323 > > │                                                                              │
00:00:38 verbose #324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #325 > >
00:00:38 verbose #326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #328 > > │ ## Arguments                                                                 │
00:00:38 verbose #329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #330 > >
00:00:38 verbose #331 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #332 > > [[<RequireQualifiedAccess>]]
00:00:38 verbose #333 > > type Arguments =
00:00:38 verbose #334 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
00:00:38 verbose #335 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
00:00:38 verbose #336 > >
00:00:38 verbose #337 > >     interface Argu.IArgParserTemplate with
00:00:38 verbose #338 > >         member s.Usage =
00:00:38 verbose #339 > >             match s with
00:00:38 verbose #340 > >             | Dir _ -> nameof Dir
00:00:38 verbose #341 > >             | Html _ -> nameof Html
00:00:38 verbose #342 > >
00:00:38 verbose #343 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #344 > > //// test
00:00:38 verbose #345 > >
00:00:38 verbose #346 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:00:38 verbose #347 > >
00:00:38 verbose #348 > > ╭─[ 191.62ms - return value ]──────────────────────────────────────────────────╮
00:00:38 verbose #349 > > │ "USAGE: dotnet-repl [--help] --dir <string> --html <string>                  │
00:00:38 verbose #350 > > │                                                                              │
00:00:38 verbose #351 > > │ OPTIONS:                                                                     │
00:00:38 verbose #352 > > │                                                                              │
00:00:38 verbose #353 > > │     --dir <string>        Dir                                                │
00:00:38 verbose #354 > > │     --html <string>       Html                                               │
00:00:38 verbose #355 > > │     --help                display this list of options.                      │
00:00:38 verbose #356 > > │ "                                                                            │
00:00:38 verbose #357 > > │                                                                              │
00:00:38 verbose #358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #359 > >
00:00:38 verbose #360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #362 > > │ ## main                                                                      │
00:00:38 verbose #363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #364 > >
00:00:38 verbose #365 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #366 > > let main args =
00:00:38 verbose #367 > >     let argsMap = args |> Runtime.parseArgsMap<Arguments>
00:00:38 verbose #368 > >
00:00:38 verbose #369 > >     let dir =
00:00:38 verbose #370 > >         match argsMap.[[nameof Arguments.Dir]] with
00:00:38 verbose #371 > >         | [[ Arguments.Dir dir ]] -> Some dir
00:00:38 verbose #372 > >         | _ -> None
00:00:38 verbose #373 > >         |> Option.get
00:00:38 verbose #374 > >
00:00:38 verbose #375 > >     let htmlPath =
00:00:38 verbose #376 > >         match argsMap.[[nameof Arguments.Html]] with
00:00:38 verbose #377 > >         | [[ Arguments.Html html ]] -> Some html
00:00:38 verbose #378 > >         | _ -> None
00:00:38 verbose #379 > >         |> Option.get
00:00:38 verbose #380 > >
00:00:38 verbose #381 > >     let fileSystem = scanDirectory true dir dir
00:00:38 verbose #382 > >     let html = generateHtmlForFileSystem fileSystem
00:00:38 verbose #383 > >
00:00:38 verbose #384 > >     html |> SpiralFileSystem.write_all_text_async htmlPath
00:00:38 verbose #385 > >     |> Async.runWithTimeout 30000
00:00:38 verbose #386 > >     |> function
00:00:38 verbose #387 > >         | Some () -> 0
00:00:38 verbose #388 > >         | None -> 1
00:00:38 verbose #389 > >
00:00:38 verbose #390 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #391 > > //// test
00:00:38 verbose #392 > >
00:00:38 verbose #393 > > let args =
00:00:38 verbose #394 > >     System.Environment.GetEnvironmentVariable "ARGS"
00:00:38 verbose #395 > >     |> SpiralRuntime.split_args
00:00:38 verbose #396 > >     |> Result.toArray
00:00:38 verbose #397 > >     |> Array.collect id
00:00:38 verbose #398 > >
00:00:38 verbose #399 > > match args with
00:00:38 verbose #400 > > | [[||]] -> 0
00:00:38 verbose #401 > > | args -> if main args = 0 then 0 else failwith "main failed"
00:00:38 verbose #402 > >
00:00:38 verbose #403 > > ╭─[ 154.67ms - return value ]──────────────────────────────────────────────────╮
00:00:38 verbose #404 > > │ <div class="dni-plaintext"><pre>0                                            │
00:00:38 verbose #405 > > │ </pre></div><style>                                                          │
00:00:38 verbose #406 > > │ .dni-code-hint {                                                             │
00:00:38 verbose #407 > > │     font-style: italic;                                                      │
00:00:38 verbose #408 > > │     overflow: hidden;                                                        │
00:00:38 verbose #409 > > │     white-space: nowrap;                                                     │
00:00:38 verbose #410 > > │ }                                                                            │
00:00:38 verbose #411 > > │ .dni-treeview {                                                              │
00:00:38 verbose #412 > > │     white-space: nowrap;                                                     │
00:00:38 verbose #413 > > │ }                                                                            │
00:00:38 verbose #414 > > │ .dni-treeview td {                                                           │
00:00:38 verbose #415 > > │     vertical-align: top;                                                     │
00:00:38 verbose #416 > > │     text-align: start;                                                       │
00:00:38 verbose #417 > > │ }                                                                            │
00:00:38 verbose #418 > > │ details.dni-treeview {                                                       │
00:00:38 verbose #419 > > │     padding-left: 1em;                                                       │
00:00:38 verbose #420 > > │ }                                                                            │
00:00:38 verbose #421 > > │ table td {                                                                   │
00:00:38 verbose #422 > > │     text-align: start;                                                       │
00:00:38 verbose #423 > > │ }                                                                            │
00:00:38 verbose #424 > > │ table tr {                                                                   │
00:00:38 verbose #425 > > │     vertical-align: top;                                                     │
00:00:38 verbose #426 > > │     margin: 0em 0px;                                                         │
00:00:38 verbose #427 > > │ }                                                                            │
00:00:38 verbose #428 > > │ table tr td pre                                                              │
00:00:38 verbose #429 > > │ {                                                                            │
00:00:38 verbose #430 > > │     vertical-align: top !important;                                          │
00:00:38 verbose #431 > > │     margin: 0em 0px !important;                                              │
00:00:38 verbose #432 > > │ }                                                                            │
00:00:38 verbose #433 > > │ table th {                                                                   │
00:00:38 verbose #434 > > │     text-align: start;                                                       │
00:00:38 verbose #435 > > │ }                                                                            │
00:00:38 verbose #436 > > │ </style>                                                                     │
00:00:38 verbose #437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #438 > 00:00:37 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19755 }
00:00:38 verbose #439 > 00:00:37   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:38 verbose #440 >     "nbconvert",
00:00:38 verbose #441 >     "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb",
00:00:38 verbose #442 >     "--to",
00:00:38 verbose #443 >     "html",
00:00:38 verbose #444 >     "--HTMLExporter.theme=dark",
00:00:38 verbose #445 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:42 verbose #446 > 00:00:41 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb to html
00:00:42 verbose #447 > 00:00:41 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:42 verbose #448 > 00:00:41 verbose #7 !   validate(nb)
00:00:46 verbose #449 > 00:00:44 verbose #8 ! [NbConvertApp] Writing 309931 bytes to c:\home\git\polyglot\apps\dir-tree-html\DirTreeHtml.dib.html
00:00:46 verbose #450 > 00:00:44 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 669 }
00:00:46 verbose #451 > 00:00:44   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 669 }
00:00:46 verbose #452 > 00:00:44   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:00:46 verbose #453 >     "-c",
00:00:46 verbose #454 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:00:46 verbose #455 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:47 verbose #456 > 00:00:45 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:47 verbose #457 > 00:00:45   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:47 verbose #458 > 00:00:45   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 20483 }
00:00:47   debug #459 runtime.execute_with_options_async / { exit_code = 0; output_length = 24106 }
00:00:47   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]
#endif
type Mut<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
module TraceState = let mutable trace_state = None
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
type IOsEnviron = abstract environ: x: unit -> obj
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("str")>]
#endif
type Str = class end
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
    | US0_3
    | US0_4
and Mut0 = {mutable l0 : int64}
and Mut1 = {mutable l0 : (string -> unit)}
and Mut2 = {mutable l0 : bool}
and Mut3 = {mutable l0 : string}
and Mut4 = {mutable l0 : US0}
and [<Struct>] US1 =
    | US1_0 of f0_0 : string
    | US1_1
and [<Struct>] US2 =
    | US2_0 of f0_0 : US0
    | US2_1
and [<Struct>] US3 =
    | US3_0 of f0_0 : int64
    | US3_1
and [<Struct>] US4 =
    | US4_0 of f0_0 : bool
    | US4_1
and [<Struct>] US5 =
    | US5_0 of f0_0 : bool
    | US5_1 of f1_0 : exn
and [<Struct>] US6 =
    | US6_0 of f0_0 : bool
    | US6_1 of f1_0 : exn
and [<Struct>] US7 =
    | US7_0 of f0_0 : int32
    | US7_1
let rec method1 () : string =
    let v0 : string = "TRACE_LEVEL"
    v0
and method3 () : string =
    let v0 : string = ""
    v0
and closure1 (v0 : US1 option ref) (v1 : US1 option) : US1 option ref =
    v0.Value <- v1 
    v0
and closure2 (v0 : string option, v1 : (US1 option -> US1 option ref)) () : unit =
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v2 : string = x
    let v3 : US1 = US1_0(v2)
    v3 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> v1 |> ignore
    ()
and method2 (v0 : string) : string =
    let v1 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v2 : string = "std::env::var(&*$0)"
    let v3 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v2 
    let v4 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v5 : bool = Fable.Core.RustInterop.emitRustExpr v3 v4 
    let v6 : string = "x"
    let v7 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v6 
    let v8 : string = "fable_library_rust::String_::fromString($0)"
    let v9 : string = Fable.Core.RustInterop.emitRustExpr v7 v8 
    let v10 : string = "true; $0 })"
    let v11 : bool = Fable.Core.RustInterop.emitRustExpr v9 v10 
    let v12 : string = "_result_map_"
    let v13 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v12 
    let v14 : string = method3()
    let v15 : string = "$0.unwrap_or($1)"
    let v16 : string = Fable.Core.RustInterop.emitRustExpr struct (v13, v14) v15 
    let _v1 = v16 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : string = "std::env::var(&*$0)"
    let v18 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v17 
    let v19 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v20 : bool = Fable.Core.RustInterop.emitRustExpr v18 v19 
    let v21 : string = "x"
    let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 
    let v23 : string = "fable_library_rust::String_::fromString($0)"
    let v24 : string = Fable.Core.RustInterop.emitRustExpr v22 v23 
    let v25 : string = "true; $0 })"
    let v26 : bool = Fable.Core.RustInterop.emitRustExpr v24 v25 
    let v27 : string = "_result_map_"
    let v28 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v27 
    let v29 : string = method3()
    let v30 : string = "$0.unwrap_or($1)"
    let v31 : string = Fable.Core.RustInterop.emitRustExpr struct (v28, v29) v30 
    let _v1 = v31 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v32 : string = "std::env::var(&*$0)"
    let v33 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v32 
    let v34 : string = "true; let _result_map_ = $0.map(|x| { //"
    let v35 : bool = Fable.Core.RustInterop.emitRustExpr v33 v34 
    let v36 : string = "x"
    let v37 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v36 
    let v38 : string = "fable_library_rust::String_::fromString($0)"
    let v39 : string = Fable.Core.RustInterop.emitRustExpr v37 v38 
    let v40 : string = "true; $0 })"
    let v41 : bool = Fable.Core.RustInterop.emitRustExpr v39 v40 
    let v42 : string = "_result_map_"
    let v43 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v42 
    let v44 : string = method3()
    let v45 : string = "$0.unwrap_or($1)"
    let v46 : string = Fable.Core.RustInterop.emitRustExpr struct (v43, v44) v45 
    let _v1 = v46 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v47 : string = "process.env[$0] ?? \"\""
    let v48 : string = Fable.Core.JsInterop.emitJsExpr v0 v47 
    let _v1 = v48 
    #endif
#if FABLE_COMPILER_PYTHON
    let v49 : string = "os"
    let v50 : IOsEnviron = Fable.Core.PyInterop.importAll v49 
    let v51 : string = "v50.environ"
    let v52 : obj = Fable.Core.PyInterop.emitPyExpr () v51 
    let v55 : string = "v52.get($0)"
    let v56 : string = Fable.Core.PyInterop.emitPyExpr v0 v55 
    let mutable _v56 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v59 : (string -> string option) = Option.ofObj
    let v60 : string option = v59 v56
    v60 
    #else
    Some v56 
    #endif
    |> fun x -> _v56 <- Some x
    let v61 : string option = match _v56 with Some x -> x | None -> failwith "optionm'.of_obj / _v56=None"
    let v64 : US1 option = None
    let _v64 = ref v64 
    let v65 : US1 option ref = _v64 
    let v66 : (US1 option -> US1 option ref) = closure1(v65)
    let v67 : unit = ()
    let v68 : (unit -> unit) = closure2(v61, v66)
    let v69 : unit = (fun () -> v68 (); v67) ()
    let v72 : US1 option = _v64.Value 
    let v83 : US1 = US1_1
    let v84 : US1 = v72 |> Option.defaultValue v83 
    let v91 : string =
        match v84 with
        | US1_1 -> (* None *)
            let v89 : string = ""
            v89
        | US1_0(v88) -> (* Some *)
            v88
    let _v1 = v91 
    #endif
#else
    let v92 : (string -> string) = System.Environment.GetEnvironmentVariable
    let v93 : string = v92 v0
    let mutable _v93 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v94 : (string -> string option) = Option.ofObj
    let v95 : string option = v94 v93
    v95 
    #else
    Some v93 
    #endif
    |> fun x -> _v93 <- Some x
    let v96 : string option = match _v93 with Some x -> x | None -> failwith "optionm'.of_obj / _v93=None"
    let v99 : US1 option = None
    let _v99 = ref v99 
    let v100 : US1 option ref = _v99 
    let v101 : (US1 option -> US1 option ref) = closure1(v100)
    let v102 : unit = ()
    let v103 : (unit -> unit) = closure2(v96, v101)
    let v104 : unit = (fun () -> v103 (); v102) ()
    let v107 : US1 option = _v99.Value 
    let v118 : US1 = US1_1
    let v119 : US1 = v107 |> Option.defaultValue v118 
    let v126 : string =
        match v119 with
        | US1_1 -> (* None *)
            let v124 : string = ""
            v124
        | US1_0(v123) -> (* Some *)
            v123
    let _v1 = v126 
    #endif
    let v127 : string = _v1 
    v127
and method4 () : string =
    let v0 : string = "AUTOMATION"
    v0
and closure3 () (v0 : string) : unit =
    ()
and method0 (v0 : US0) : struct (Mut0 * Mut1 * Mut2 * Mut3 * Mut4 * int64 option) =
    let v1 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v2 : string = method1()
    let v3 : string = method2(v2)
    
    
    
    
    
    let v4 : bool = "Verbose" = v3
    let v8 : US2 =
        if v4 then
            let v5 : US0 = US0_0
            US2_0(v5)
        else
            US2_1
    let v49 : US2 =
        match v8 with
        | US2_1 -> (* None *)
            let v11 : bool = "Debug" = v3
            let v15 : US2 =
                if v11 then
                    let v12 : US0 = US0_1
                    US2_0(v12)
                else
                    US2_1
            match v15 with
            | US2_1 -> (* None *)
                let v18 : bool = "Info" = v3
                let v22 : US2 =
                    if v18 then
                        let v19 : US0 = US0_2
                        US2_0(v19)
                    else
                        US2_1
                match v22 with
                | US2_1 -> (* None *)
                    let v25 : bool = "Warning" = v3
                    let v29 : US2 =
                        if v25 then
                            let v26 : US0 = US0_3
                            US2_0(v26)
                        else
                            US2_1
                    match v29 with
                    | US2_1 -> (* None *)
                        let v32 : bool = "Critical" = v3
                        let v36 : US2 =
                            if v32 then
                                let v33 : US0 = US0_4
                                US2_0(v33)
                            else
                                US2_1
                        match v36 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v37) -> (* Some *)
                            US2_0(v37)
                    | US2_0(v30) -> (* Some *)
                        US2_0(v30)
                | US2_0(v23) -> (* Some *)
                    US2_0(v23)
            | US2_0(v16) -> (* Some *)
                US2_0(v16)
        | US2_0(v9) -> (* Some *)
            US2_0(v9)
    let v50 : string = method4()
    let v51 : string = method2(v50)
    let v52 : bool = v51 = "True"
    let v62 : US3 =
        if v52 then
            let v53 : System.DateTime = System.DateTime.Now
            let v56 : (System.DateTime -> int64) = _.Ticks
            let v57 : int64 = v56 v53
            US3_0(v57)
        else
            US3_1
    let _v1 = struct (v49, v62) 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v63 : US2 = US2_1
    let v64 : US3 = US3_1
    let _v1 = struct (v63, v64) 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v65 : string = "AUTOMATION"
    let v66 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v67 : string = "env!(\"" + v65 + "\")"
    let v68 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v67 
    let v69 : string = "String::from($0)"
    let v70 : std_string_String = Fable.Core.RustInterop.emitRustExpr v68 v69 
    let v71 : string = "fable_library_rust::String_::fromString($0)"
    let v72 : string = Fable.Core.RustInterop.emitRustExpr v70 v71 
    let _v66 = v72 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v73 : string = "env!(\"" + v65 + "\")"
    let v74 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v73 
    let v75 : string = "String::from($0)"
    let v76 : std_string_String = Fable.Core.RustInterop.emitRustExpr v74 v75 
    let v77 : string = "fable_library_rust::String_::fromString($0)"
    let v78 : string = Fable.Core.RustInterop.emitRustExpr v76 v77 
    let _v66 = v78 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v79 : string = "env!(\"" + v65 + "\")"
    let v80 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v79 
    let v81 : string = "String::from($0)"
    let v82 : std_string_String = Fable.Core.RustInterop.emitRustExpr v80 v81 
    let v83 : string = "fable_library_rust::String_::fromString($0)"
    let v84 : string = Fable.Core.RustInterop.emitRustExpr v82 v83 
    let _v66 = v84 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v85 : string = null |> unbox<string>
    let _v66 = v85 
    #endif
#if FABLE_COMPILER_PYTHON
    let v88 : string = null |> unbox<string>
    let _v66 = v88 
    #endif
#else
    let v91 : string = null |> unbox<string>
    let _v66 = v91 
    #endif
    let v94 : string = _v66 
    let v99 : string = "True"
    let v100 : bool = v94 <> v99 
    let v109 : US3 =
        if v100 then
            US3_1
        else
            let v104 : string = $"near_sdk::env::block_timestamp()"
            let v105 : uint64 = Fable.Core.RustInterop.emitRustExpr () v104 
            let v106 : (uint64 -> int64) = int64
            let v107 : int64 = v106 v105
            US3_0(v107)
    let v110 : US2 = US2_1
    let _v1 = struct (v110, v109) 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v111 : string = method1()
    let v112 : string = method2(v111)
    
    
    
    
    
    let v113 : bool = "Verbose" = v112
    let v117 : US2 =
        if v113 then
            let v114 : US0 = US0_0
            US2_0(v114)
        else
            US2_1
    let v158 : US2 =
        match v117 with
        | US2_1 -> (* None *)
            let v120 : bool = "Debug" = v112
            let v124 : US2 =
                if v120 then
                    let v121 : US0 = US0_1
                    US2_0(v121)
                else
                    US2_1
            match v124 with
            | US2_1 -> (* None *)
                let v127 : bool = "Info" = v112
                let v131 : US2 =
                    if v127 then
                        let v128 : US0 = US0_2
                        US2_0(v128)
                    else
                        US2_1
                match v131 with
                | US2_1 -> (* None *)
                    let v134 : bool = "Warning" = v112
                    let v138 : US2 =
                        if v134 then
                            let v135 : US0 = US0_3
                            US2_0(v135)
                        else
                            US2_1
                    match v138 with
                    | US2_1 -> (* None *)
                        let v141 : bool = "Critical" = v112
                        let v145 : US2 =
                            if v141 then
                                let v142 : US0 = US0_4
                                US2_0(v142)
                            else
                                US2_1
                        match v145 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v146) -> (* Some *)
                            US2_0(v146)
                    | US2_0(v139) -> (* Some *)
                        US2_0(v139)
                | US2_0(v132) -> (* Some *)
                    US2_0(v132)
            | US2_0(v125) -> (* Some *)
                US2_0(v125)
        | US2_0(v118) -> (* Some *)
            US2_0(v118)
    let v159 : string = method4()
    let v160 : string = method2(v159)
    let v161 : bool = v160 = "True"
    let v171 : US3 =
        if v161 then
            let v162 : System.DateTime = System.DateTime.Now
            let v165 : (System.DateTime -> int64) = _.Ticks
            let v166 : int64 = v165 v162
            US3_0(v166)
        else
            US3_1
    let _v1 = struct (v158, v171) 
    #endif
#if FABLE_COMPILER_PYTHON
    let v172 : string = method1()
    let v173 : string = method2(v172)
    
    
    
    
    
    let v174 : bool = "Verbose" = v173
    let v178 : US2 =
        if v174 then
            let v175 : US0 = US0_0
            US2_0(v175)
        else
            US2_1
    let v219 : US2 =
        match v178 with
        | US2_1 -> (* None *)
            let v181 : bool = "Debug" = v173
            let v185 : US2 =
                if v181 then
                    let v182 : US0 = US0_1
                    US2_0(v182)
                else
                    US2_1
            match v185 with
            | US2_1 -> (* None *)
                let v188 : bool = "Info" = v173
                let v192 : US2 =
                    if v188 then
                        let v189 : US0 = US0_2
                        US2_0(v189)
                    else
                        US2_1
                match v192 with
                | US2_1 -> (* None *)
                    let v195 : bool = "Warning" = v173
                    let v199 : US2 =
                        if v195 then
                            let v196 : US0 = US0_3
                            US2_0(v196)
                        else
                            US2_1
                    match v199 with
                    | US2_1 -> (* None *)
                        let v202 : bool = "Critical" = v173
                        let v206 : US2 =
                            if v202 then
                                let v203 : US0 = US0_4
                                US2_0(v203)
                            else
                                US2_1
                        match v206 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v207) -> (* Some *)
                            US2_0(v207)
                    | US2_0(v200) -> (* Some *)
                        US2_0(v200)
                | US2_0(v193) -> (* Some *)
                    US2_0(v193)
            | US2_0(v186) -> (* Some *)
                US2_0(v186)
        | US2_0(v179) -> (* Some *)
            US2_0(v179)
    let v220 : string = method4()
    let v221 : string = method2(v220)
    let v222 : bool = v221 = "True"
    let v232 : US3 =
        if v222 then
            let v223 : System.DateTime = System.DateTime.Now
            let v226 : (System.DateTime -> int64) = _.Ticks
            let v227 : int64 = v226 v223
            US3_0(v227)
        else
            US3_1
    let _v1 = struct (v219, v232) 
    #endif
#else
    let v233 : string = method1()
    let v234 : string = method2(v233)
    
    
    
    
    
    let v235 : bool = "Verbose" = v234
    let v239 : US2 =
        if v235 then
            let v236 : US0 = US0_0
            US2_0(v236)
        else
            US2_1
    let v280 : US2 =
        match v239 with
        | US2_1 -> (* None *)
            let v242 : bool = "Debug" = v234
            let v246 : US2 =
                if v242 then
                    let v243 : US0 = US0_1
                    US2_0(v243)
                else
                    US2_1
            match v246 with
            | US2_1 -> (* None *)
                let v249 : bool = "Info" = v234
                let v253 : US2 =
                    if v249 then
                        let v250 : US0 = US0_2
                        US2_0(v250)
                    else
                        US2_1
                match v253 with
                | US2_1 -> (* None *)
                    let v256 : bool = "Warning" = v234
                    let v260 : US2 =
                        if v256 then
                            let v257 : US0 = US0_3
                            US2_0(v257)
                        else
                            US2_1
                    match v260 with
                    | US2_1 -> (* None *)
                        let v263 : bool = "Critical" = v234
                        let v267 : US2 =
                            if v263 then
                                let v264 : US0 = US0_4
                                US2_0(v264)
                            else
                                US2_1
                        match v267 with
                        | US2_1 -> (* None *)
                            US2_1
                        | US2_0(v268) -> (* Some *)
                            US2_0(v268)
                    | US2_0(v261) -> (* Some *)
                        US2_0(v261)
                | US2_0(v254) -> (* Some *)
                    US2_0(v254)
            | US2_0(v247) -> (* Some *)
                US2_0(v247)
        | US2_0(v240) -> (* Some *)
            US2_0(v240)
    let v281 : string = method4()
    let v282 : string = method2(v281)
    let v283 : bool = v282 = "True"
    let v293 : US3 =
        if v283 then
            let v284 : System.DateTime = System.DateTime.Now
            let v287 : (System.DateTime -> int64) = _.Ticks
            let v288 : int64 = v287 v284
            US3_0(v288)
        else
            US3_1
    let _v1 = struct (v280, v293) 
    #endif
    let struct (v294 : US2, v295 : US3) = _v1 
    let v359 : Mut0 = {l0 = 0L} : Mut0
    let v360 : (string -> unit) = closure3()
    let v361 : Mut1 = {l0 = v360} : Mut1
    let v362 : Mut2 = {l0 = true} : Mut2
    let v363 : string = ""
    let v364 : Mut3 = {l0 = v363} : Mut3
    let v367 : US0 =
        match v294 with
        | US2_1 -> (* None *)
            v0
        | US2_0(v365) -> (* Some *)
            v365
    let v368 : Mut4 = {l0 = v367} : Mut4
    let v375 : int64 option =
        match v295 with
        | US3_1 -> (* None *)
            let v373 : int64 option = None
            v373
        | US3_0(v369) -> (* Some *)
            let v370 : int64 option = Some v369 
            v370
    struct (v359, v361, v362, v364, v368, v375)
and closure0 () () : unit =
    let v0 : bool = TraceState.trace_state.IsNone
    if v0 then
        let v1 : US0 = US0_0
        let struct (v2 : Mut0, v3 : Mut1, v4 : Mut2, v5 : Mut3, v6 : Mut4, v7 : int64 option) = method0(v1)
        let v8 : struct (Mut0 * Mut1 * Mut2 * Mut3 * Mut4 * int64 option) option = Some struct (v2, v3, v4, v5, v6, v7) 
        TraceState.trace_state <- v8 
        ()
and closure7 (v0 : Mut0) () : unit =
    let v1 : int64 = v0.l0
    let v2 : int64 = v1 + 1L
    v0.l0 <- v2
    ()
and closure8 (v0 : US3 option ref) (v1 : US3 option) : US3 option ref =
    v0.Value <- v1 
    v0
and closure9 (v0 : int64 option, v1 : (US3 option -> US3 option ref)) () : unit =
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v2 : int64 = x
    let v3 : US3 = US3_0(v2)
    v3 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> v1 |> ignore
    ()
and method5 () : string =
    let v0 : string = "hh:mm:ss"
    v0
and method6 () : string =
    let v0 : string = "HH:mm:ss"
    v0
and method7 () : string =
    let v0 : string = "\u001b[0m"
    v0
and method8 () : string =
    let v0 : string = ""
    v0
and closure10 (v0 : Mut3, v1 : string) () : unit =
    let v2 : string = v0.l0
    let v3 : string = v2 + v1 
    v0.l0 <- v3
    ()
and closure12 (v0 : string) () : unit =
    let v1 : (string -> unit) = System.Console.WriteLine
    v1 v0
and closure11 () (v0 : string) : unit =
    let v1 : unit = ()
    let v2 : (unit -> unit) = closure12(v0)
    let v3 : unit = (fun () -> v2 (); v1) ()
    ()
and closure6 (v0 : int32, v1 : string) () : unit =
    let v2 : unit = ()
    let v3 : (unit -> unit) = closure0()
    let v4 : unit = (fun () -> v3 (); v2) ()
    let struct (v18 : Mut0, v19 : Mut1, v20 : Mut2, v21 : Mut3, v22 : Mut4, v23 : int64 option) = TraceState.trace_state.Value
    let v36 : unit = ()
    let v37 : unit = (fun () -> v3 (); v36) ()
    let struct (v51 : Mut0, v52 : Mut1, v53 : Mut2, v54 : Mut3, v55 : Mut4, v56 : int64 option) = TraceState.trace_state.Value
    let v69 : US0 = v55.l0
    let v70 : bool = v53.l0
    let v71 : bool = v70 = false
    let v74 : bool =
        if v71 then
            false
        else
            let v72 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v69
            let v73 : bool = 0 >= v72
            v73
    if v74 then
        let v75 : unit = ()
        let v76 : (unit -> unit) = closure7(v18)
        let v77 : unit = (fun () -> v76 (); v75) ()
        let v80 : unit = ()
        let v81 : unit = (fun () -> v3 (); v80) ()
        let struct (v95 : Mut0, v96 : Mut1, v97 : Mut2, v98 : Mut3, v99 : Mut4, v100 : int64 option) = TraceState.trace_state.Value
        let v113 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v114 : US3 option = None
        let _v114 = ref v114 
        let v115 : US3 option ref = _v114 
        let v116 : (US3 option -> US3 option ref) = closure8(v115)
        let v117 : unit = ()
        let v118 : (unit -> unit) = closure9(v100, v116)
        let v119 : unit = (fun () -> v118 (); v117) ()
        let v122 : US3 option = _v114.Value 
        let v133 : US3 = US3_1
        let v134 : US3 = v122 |> Option.defaultValue v133 
        let v174 : System.DateTime =
            match v134 with
            | US3_1 -> (* None *)
                let v170 : System.DateTime = System.DateTime.Now
                v170
            | US3_0(v138) -> (* Some *)
                let v139 : System.DateTime = System.DateTime.Now
                let v142 : (System.DateTime -> int64) = _.Ticks
                let v143 : int64 = v142 v139
                let v146 : int64 = v143 - v138
                let v147 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v148 : System.TimeSpan = v147 v146
                let v151 : (System.TimeSpan -> int32) = _.Hours
                let v152 : int32 = v151 v148
                let v155 : (System.TimeSpan -> int32) = _.Minutes
                let v156 : int32 = v155 v148
                let v159 : (System.TimeSpan -> int32) = _.Seconds
                let v160 : int32 = v159 v148
                let v163 : (System.TimeSpan -> int32) = _.Milliseconds
                let v164 : int32 = v163 v148
                let v167 : System.DateTime = System.DateTime (1, 1, 1, v152, v156, v160, v164)
                v167
        let v175 : string = method5()
        let v178 : (string -> string) = v174.ToString
        let v179 : string = v178 v175
        let _v113 = v179 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v182 : US3 option = None
        let _v182 = ref v182 
        let v183 : US3 option ref = _v182 
        let v184 : (US3 option -> US3 option ref) = closure8(v183)
        let v185 : unit = ()
        let v186 : (unit -> unit) = closure9(v100, v184)
        let v187 : unit = (fun () -> v186 (); v185) ()
        let v190 : US3 option = _v182.Value 
        let v201 : US3 = US3_1
        let v202 : US3 = v190 |> Option.defaultValue v201 
        let v242 : System.DateTime =
            match v202 with
            | US3_1 -> (* None *)
                let v238 : System.DateTime = System.DateTime.Now
                v238
            | US3_0(v206) -> (* Some *)
                let v207 : System.DateTime = System.DateTime.Now
                let v210 : (System.DateTime -> int64) = _.Ticks
                let v211 : int64 = v210 v207
                let v214 : int64 = v211 - v206
                let v215 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v216 : System.TimeSpan = v215 v214
                let v219 : (System.TimeSpan -> int32) = _.Hours
                let v220 : int32 = v219 v216
                let v223 : (System.TimeSpan -> int32) = _.Minutes
                let v224 : int32 = v223 v216
                let v227 : (System.TimeSpan -> int32) = _.Seconds
                let v228 : int32 = v227 v216
                let v231 : (System.TimeSpan -> int32) = _.Milliseconds
                let v232 : int32 = v231 v216
                let v235 : System.DateTime = System.DateTime (1, 1, 1, v220, v224, v228, v232)
                v235
        let v243 : string = method5()
        let v246 : (string -> string) = v242.ToString
        let v247 : string = v246 v243
        let _v113 = v247 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v250 : string = $"near_sdk::env::block_timestamp()"
        let v251 : uint64 = Fable.Core.RustInterop.emitRustExpr () v250 
        let v252 : US3 option = None
        let _v252 = ref v252 
        let v253 : US3 option ref = _v252 
        let v254 : (US3 option -> US3 option ref) = closure8(v253)
        let v255 : unit = ()
        let v256 : (unit -> unit) = closure9(v100, v254)
        let v257 : unit = (fun () -> v256 (); v255) ()
        let v260 : US3 option = _v252.Value 
        let v271 : US3 = US3_1
        let v272 : US3 = v260 |> Option.defaultValue v271 
        let v281 : uint64 =
            match v272 with
            | US3_1 -> (* None *)
                v251
            | US3_0(v276) -> (* Some *)
                let v277 : (int64 -> uint64) = uint64
                let v278 : uint64 = v277 v276
                let v279 : uint64 = v251 - v278
                v279
        let v282 : uint64 = v281 / 1000000000UL
        let v283 : uint64 = v282 % 60UL
        let v284 : uint64 = v282 / 60UL
        let v285 : uint64 = v284 % 60UL
        let v286 : uint64 = v282 / 3600UL
        let v287 : uint64 = v286 % 24UL
        let v288 : string = $"format!(\"{{:02}}:{{:02}}:{{:02}}\", $0, $1, $2)"
        let v289 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v287, v285, v283) v288 
        let v290 : string = "fable_library_rust::String_::fromString($0)"
        let v291 : string = Fable.Core.RustInterop.emitRustExpr v289 v290 
        let _v113 = v291 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v292 : US3 option = None
        let _v292 = ref v292 
        let v293 : US3 option ref = _v292 
        let v294 : (US3 option -> US3 option ref) = closure8(v293)
        let v295 : unit = ()
        let v296 : (unit -> unit) = closure9(v100, v294)
        let v297 : unit = (fun () -> v296 (); v295) ()
        let v300 : US3 option = _v292.Value 
        let v311 : US3 = US3_1
        let v312 : US3 = v300 |> Option.defaultValue v311 
        let v352 : System.DateTime =
            match v312 with
            | US3_1 -> (* None *)
                let v348 : System.DateTime = System.DateTime.Now
                v348
            | US3_0(v316) -> (* Some *)
                let v317 : System.DateTime = System.DateTime.Now
                let v320 : (System.DateTime -> int64) = _.Ticks
                let v321 : int64 = v320 v317
                let v324 : int64 = v321 - v316
                let v325 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v326 : System.TimeSpan = v325 v324
                let v329 : (System.TimeSpan -> int32) = _.Hours
                let v330 : int32 = v329 v326
                let v333 : (System.TimeSpan -> int32) = _.Minutes
                let v334 : int32 = v333 v326
                let v337 : (System.TimeSpan -> int32) = _.Seconds
                let v338 : int32 = v337 v326
                let v341 : (System.TimeSpan -> int32) = _.Milliseconds
                let v342 : int32 = v341 v326
                let v345 : System.DateTime = System.DateTime (1, 1, 1, v330, v334, v338, v342)
                v345
        let v353 : string = method6()
        let v356 : (string -> string) = v352.ToString
        let v357 : string = v356 v353
        let _v113 = v357 
        #endif
#if FABLE_COMPILER_PYTHON
        let v360 : US3 option = None
        let _v360 = ref v360 
        let v361 : US3 option ref = _v360 
        let v362 : (US3 option -> US3 option ref) = closure8(v361)
        let v363 : unit = ()
        let v364 : (unit -> unit) = closure9(v100, v362)
        let v365 : unit = (fun () -> v364 (); v363) ()
        let v368 : US3 option = _v360.Value 
        let v379 : US3 = US3_1
        let v380 : US3 = v368 |> Option.defaultValue v379 
        let v420 : System.DateTime =
            match v380 with
            | US3_1 -> (* None *)
                let v416 : System.DateTime = System.DateTime.Now
                v416
            | US3_0(v384) -> (* Some *)
                let v385 : System.DateTime = System.DateTime.Now
                let v388 : (System.DateTime -> int64) = _.Ticks
                let v389 : int64 = v388 v385
                let v392 : int64 = v389 - v384
                let v393 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v394 : System.TimeSpan = v393 v392
                let v397 : (System.TimeSpan -> int32) = _.Hours
                let v398 : int32 = v397 v394
                let v401 : (System.TimeSpan -> int32) = _.Minutes
                let v402 : int32 = v401 v394
                let v405 : (System.TimeSpan -> int32) = _.Seconds
                let v406 : int32 = v405 v394
                let v409 : (System.TimeSpan -> int32) = _.Milliseconds
                let v410 : int32 = v409 v394
                let v413 : System.DateTime = System.DateTime (1, 1, 1, v398, v402, v406, v410)
                v413
        let v421 : string = method6()
        let v424 : (string -> string) = v420.ToString
        let v425 : string = v424 v421
        let _v113 = v425 
        #endif
#else
        let v428 : US3 option = None
        let _v428 = ref v428 
        let v429 : US3 option ref = _v428 
        let v430 : (US3 option -> US3 option ref) = closure8(v429)
        let v431 : unit = ()
        let v432 : (unit -> unit) = closure9(v100, v430)
        let v433 : unit = (fun () -> v432 (); v431) ()
        let v436 : US3 option = _v428.Value 
        let v447 : US3 = US3_1
        let v448 : US3 = v436 |> Option.defaultValue v447 
        let v488 : System.DateTime =
            match v448 with
            | US3_1 -> (* None *)
                let v484 : System.DateTime = System.DateTime.Now
                v484
            | US3_0(v452) -> (* Some *)
                let v453 : System.DateTime = System.DateTime.Now
                let v456 : (System.DateTime -> int64) = _.Ticks
                let v457 : int64 = v456 v453
                let v460 : int64 = v457 - v452
                let v461 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v462 : System.TimeSpan = v461 v460
                let v465 : (System.TimeSpan -> int32) = _.Hours
                let v466 : int32 = v465 v462
                let v469 : (System.TimeSpan -> int32) = _.Minutes
                let v470 : int32 = v469 v462
                let v473 : (System.TimeSpan -> int32) = _.Seconds
                let v474 : int32 = v473 v462
                let v477 : (System.TimeSpan -> int32) = _.Milliseconds
                let v478 : int32 = v477 v462
                let v481 : System.DateTime = System.DateTime (1, 1, 1, v466, v470, v474, v478)
                v481
        let v489 : string = method6()
        let v492 : (string -> string) = v488.ToString
        let v493 : string = v492 v489
        let _v113 = v493 
        #endif
        let v496 : string = _v113 
        
        
        
        
        
        let v566 : string = "Verbose"
        let v567 : (unit -> string) = v566.ToLower
        let v568 : string = v567 ()
        let v571 : string = v568.PadLeft (7, ' ')
        let v585 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v586 : string = "inline_colorization::color_bright_black"
        let v587 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v586 
        let v588 : string = "&*$0"
        let v589 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v588 
        let v590 : string = "inline_colorization::color_reset"
        let v591 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v590 
        let v592 : string = "\"{v587}{v589}{v591}\""
        let v593 : string = @$"format!(" + v592 + ")"
        let v594 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v593 
        let v595 : string = "fable_library_rust::String_::fromString($0)"
        let v596 : string = Fable.Core.RustInterop.emitRustExpr v594 v595 
        let _v585 = v596 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v597 : string = "inline_colorization::color_bright_black"
        let v598 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v597 
        let v599 : string = "&*$0"
        let v600 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v599 
        let v601 : string = "inline_colorization::color_reset"
        let v602 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v601 
        let v603 : string = "\"{v598}{v600}{v602}\""
        let v604 : string = @$"format!(" + v603 + ")"
        let v605 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v604 
        let v606 : string = "fable_library_rust::String_::fromString($0)"
        let v607 : string = Fable.Core.RustInterop.emitRustExpr v605 v606 
        let _v585 = v607 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v608 : string = "inline_colorization::color_bright_black"
        let v609 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v608 
        let v610 : string = "&*$0"
        let v611 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v610 
        let v612 : string = "inline_colorization::color_reset"
        let v613 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v612 
        let v614 : string = "\"{v609}{v611}{v613}\""
        let v615 : string = @$"format!(" + v614 + ")"
        let v616 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v615 
        let v617 : string = "fable_library_rust::String_::fromString($0)"
        let v618 : string = Fable.Core.RustInterop.emitRustExpr v616 v617 
        let _v585 = v618 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v619 : string = "\u001b[90m"
        let v620 : string = method7()
        let v621 : string = v619 + v571 
        let v622 : string = v621 + v620 
        let _v585 = v622 
        #endif
#if FABLE_COMPILER_PYTHON
        let v623 : string = "\u001b[90m"
        let v624 : string = method7()
        let v625 : string = v623 + v571 
        let v626 : string = v625 + v624 
        let _v585 = v626 
        #endif
#else
        let v627 : string = "\u001b[90m"
        let v628 : string = method7()
        let v629 : string = v627 + v571 
        let v630 : string = v629 + v628 
        let _v585 = v630 
        #endif
        let v631 : string = _v585 
        let v637 : int64 = v95.l0
        let v638 : string = method8()
        let v639 : Mut3 = {l0 = v638} : Mut3
        let v640 : string = "{ "
        let v641 : string = $"{v640}"
        let v644 : unit = ()
        let v645 : (unit -> unit) = closure10(v639, v641)
        let v646 : unit = (fun () -> v645 (); v644) ()
        let v649 : string = "port"
        let v650 : string = $"{v649}"
        let v653 : unit = ()
        let v654 : (unit -> unit) = closure10(v639, v650)
        let v655 : unit = (fun () -> v654 (); v653) ()
        let v658 : string = " = "
        let v659 : string = $"{v658}"
        let v662 : unit = ()
        let v663 : (unit -> unit) = closure10(v639, v659)
        let v664 : unit = (fun () -> v663 (); v662) ()
        let v667 : string = $"{v0}"
        let v670 : unit = ()
        let v671 : (unit -> unit) = closure10(v639, v667)
        let v672 : unit = (fun () -> v671 (); v670) ()
        let v675 : string = "; "
        let v676 : string = $"{v675}"
        let v679 : unit = ()
        let v680 : (unit -> unit) = closure10(v639, v676)
        let v681 : unit = (fun () -> v680 (); v679) ()
        let v684 : string = "ex"
        let v685 : string = $"{v684}"
        let v688 : unit = ()
        let v689 : (unit -> unit) = closure10(v639, v685)
        let v690 : unit = (fun () -> v689 (); v688) ()
        let v693 : string = $"{v658}"
        let v696 : unit = ()
        let v697 : (unit -> unit) = closure10(v639, v693)
        let v698 : unit = (fun () -> v697 (); v696) ()
        let v701 : string = $"{v1}"
        let v704 : unit = ()
        let v705 : (unit -> unit) = closure10(v639, v701)
        let v706 : unit = (fun () -> v705 (); v704) ()
        let v709 : string = " }"
        let v710 : string = $"{v709}"
        let v713 : unit = ()
        let v714 : (unit -> unit) = closure10(v639, v710)
        let v715 : unit = (fun () -> v714 (); v713) ()
        let v718 : string = v639.l0
        let v719 : string = $"networking.test_port_open"
        let v720 : bool = v719 = ""
        let v777 : string =
            if v720 then
                let v721 : string = ""
                v721
            else
                let v722 : string = $"{v496} {v631} #{v637} %s{v719} / {v718}"
                let v725 : char list = []
                let v726 : (char list -> (char [])) = List.toArray
                let v727 : (char []) = v726 v725
                let v730 : string = v722.TrimStart v727 
                let v748 : char list = []
                let v749 : char list = '/' :: v748 
                let v752 : char list = ' ' :: v749 
                let v755 : (char list -> (char [])) = List.toArray
                let v756 : (char []) = v755 v752
                let v759 : string = v730.TrimEnd v756 
                v759
        let v778 : (string -> unit) = closure11()
        let v779 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v780 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v777 v780 
        let _v779 = () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v781 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v777 v781 
        let _v779 = () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v782 : string = v21.l0
        let v783 : bool = v782 = ""
        let v791 : string =
            if v783 then
                v777
            else
                let v784 : bool = v777 = ""
                if v784 then
                    let v785 : string = v21.l0
                    v785
                else
                    let v786 : string = v21.l0
                    let v787 : string = "\n"
                    let v788 : string = v786 + v787 
                    let v789 : string = v788 + v777 
                    v789
        let v792 : string = "&*$0"
        let v793 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v791 v792 
        let v794 : string = $"$0.chars()"
        let v795 : Mut<_> = Fable.Core.RustInterop.emitRustExpr v793 v794 
        let v796 : string = "v795"
        let v797 : _ = Fable.Core.RustInterop.emitRustExpr () v796 
        let v798 : string = "v797.collect::<Vec<_>>()"
        let v799 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v798 
        let v800 : string = "$0.chunks(15000).map(|x| x.into_iter().map(|x| x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"
        let v801 : Vec<Vec<char>> = Fable.Core.RustInterop.emitRustExpr v799 v800 
        let v802 : string = "true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"
        let v803 : bool = Fable.Core.RustInterop.emitRustExpr v801 v802 
        let v804 : string = "x"
        let v805 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v804 
        let v806 : string = "String::from_iter($0)"
        let v807 : std_string_String = Fable.Core.RustInterop.emitRustExpr v805 v806 
        let v808 : string = "true; $0 }).collect::<Vec<_>>()"
        let v809 : bool = Fable.Core.RustInterop.emitRustExpr v807 v808 
        let v810 : string = "_vec_map"
        let v811 : Vec<std_string_String> = Fable.Core.RustInterop.emitRustExpr () v810 
        let v812 : string = "$0.len()"
        let v813 : unativeint = Fable.Core.RustInterop.emitRustExpr v811 v812 
        let v814 : (unativeint -> int32) = int32
        let v815 : int32 = v814 v813
        let v816 : string = ""
        let v817 : bool = v777 <> v816 
        let v821 : bool =
            if v817 then
                let v820 : bool = v815 <= 1
                v820
            else
                false
        if v821 then
            v21.l0 <- v791
            ()
        else
            v21.l0 <- v816
            let v822 : string = "true; $0.into_iter().for_each(|x| { //"
            let v823 : bool = Fable.Core.RustInterop.emitRustExpr v811 v822 
            let v824 : string = "x"
            let v825 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v824 
            let v826 : string = $"near_sdk::log!(\"{{}}\", $0)"
            Fable.Core.RustInterop.emitRustExpr v825 v826 
            let v827 : string = $"true;"
            let v828 : bool = Fable.Core.RustInterop.emitRustExpr () v827 
            let v829 : string = "true; }}); { //"
            let v830 : bool = Fable.Core.RustInterop.emitRustExpr () v829 
            ()
        let _v779 = () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        v778 v777
        let _v779 = () 
        #endif
#if FABLE_COMPILER_PYTHON
        v778 v777
        let _v779 = () 
        #endif
#else
        v778 v777
        let _v779 = () 
        #endif
        _v779 
        let v831 : (string -> unit) = v19.l0
        v831 v777
and closure5 (v0 : string) (v1 : int32) : Async<bool> =
    let v2 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v3 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v3 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v6 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v6 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v9 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v9 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v12 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v12 
    #endif
#if FABLE_COMPILER_PYTHON
    let v15 : Async<bool> = null |> unbox<Async<bool>>
    let _v2 = v15 
    #endif
#else
    let v18 : Async<bool> option = None
    let mutable _v18 = v18 
    async {
    let v19 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v19 = v19 
    let v20 : System.Threading.CancellationToken = v19 
    let v21 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v21 = v21 
    let v22 : System.Net.Sockets.TcpClient = v21 
    try
    let v23 : System.Threading.Tasks.ValueTask = v22.ConnectAsync (v0, v1, v20)
    let v24 : (unit -> System.Threading.Tasks.Task) = v23.AsTask
    let v25 : System.Threading.Tasks.Task = v24 ()
    let v26 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v27 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v27 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v30 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v30 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v33 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v33 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v36 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v36 
    #endif
#if FABLE_COMPILER_PYTHON
    let v39 : Async<unit> = null |> unbox<Async<unit>>
    let _v26 = v39 
    #endif
#else
    let v42 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v43 : Async<unit> = v42 v25
    let _v26 = v43 
    #endif
    let v44 : Async<unit> = _v26 
    do! v44 
    return true 
    with ex ->
    let v49 : exn = ex
    let v50 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v51 : string = $"%A{v49}"
    let _v50 = v51 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v54 : string = $"%A{v49}"
    let _v50 = v54 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v57 : string = $"%A{v49}"
    let _v50 = v57 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v60 : string = $"%A{v49}"
    let _v50 = v60 
    #endif
#if FABLE_COMPILER_PYTHON
    let v63 : string = $"%A{v49}"
    let _v50 = v63 
    #endif
#else
    let v66 : string = $"{v49.GetType ()}: {v49.Message}"
    let _v50 = v66 
    #endif
    let v67 : string = _v50 
    let v72 : unit = ()
    let v73 : (unit -> unit) = closure6(v1, v67)
    let v74 : unit = (fun () -> v73 (); v72) ()
    return false 
    (*
    let v905 : bool = *)
    }
    |> fun x -> _v18 <- Some x
    let v906 : Async<bool> = match _v18 with Some x -> x | None -> failwith "async.new_async_unit / _v18=None"
    let _v2 = v906 
    #endif
    let v907 : Async<bool> = _v2 
    v907
and closure4 () (v0 : string) : (int32 -> Async<bool>) =
    closure5(v0)
and closure16 () (v0 : bool) : US5 =
    US5_0(v0)
and closure17 () (v0 : exn) : US5 =
    US5_1(v0)
and closure18 (v0 : int32) () : unit =
    let v1 : unit = ()
    let v2 : (unit -> unit) = closure0()
    let v3 : unit = (fun () -> v2 (); v1) ()
    let struct (v17 : Mut0, v18 : Mut1, v19 : Mut2, v20 : Mut3, v21 : Mut4, v22 : int64 option) = TraceState.trace_state.Value
    let v35 : unit = ()
    let v36 : unit = (fun () -> v2 (); v35) ()
    let struct (v50 : Mut0, v51 : Mut1, v52 : Mut2, v53 : Mut3, v54 : Mut4, v55 : int64 option) = TraceState.trace_state.Value
    let v68 : US0 = v54.l0
    let v69 : bool = v52.l0
    let v70 : bool = v69 = false
    let v73 : bool =
        if v70 then
            false
        else
            let v71 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v68
            let v72 : bool = 0 >= v71
            v72
    if v73 then
        let v74 : unit = ()
        let v75 : (unit -> unit) = closure7(v17)
        let v76 : unit = (fun () -> v75 (); v74) ()
        let v79 : unit = ()
        let v80 : unit = (fun () -> v2 (); v79) ()
        let struct (v94 : Mut0, v95 : Mut1, v96 : Mut2, v97 : Mut3, v98 : Mut4, v99 : int64 option) = TraceState.trace_state.Value
        let v112 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v113 : US3 option = None
        let _v113 = ref v113 
        let v114 : US3 option ref = _v113 
        let v115 : (US3 option -> US3 option ref) = closure8(v114)
        let v116 : unit = ()
        let v117 : (unit -> unit) = closure9(v99, v115)
        let v118 : unit = (fun () -> v117 (); v116) ()
        let v121 : US3 option = _v113.Value 
        let v132 : US3 = US3_1
        let v133 : US3 = v121 |> Option.defaultValue v132 
        let v173 : System.DateTime =
            match v133 with
            | US3_1 -> (* None *)
                let v169 : System.DateTime = System.DateTime.Now
                v169
            | US3_0(v137) -> (* Some *)
                let v138 : System.DateTime = System.DateTime.Now
                let v141 : (System.DateTime -> int64) = _.Ticks
                let v142 : int64 = v141 v138
                let v145 : int64 = v142 - v137
                let v146 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v147 : System.TimeSpan = v146 v145
                let v150 : (System.TimeSpan -> int32) = _.Hours
                let v151 : int32 = v150 v147
                let v154 : (System.TimeSpan -> int32) = _.Minutes
                let v155 : int32 = v154 v147
                let v158 : (System.TimeSpan -> int32) = _.Seconds
                let v159 : int32 = v158 v147
                let v162 : (System.TimeSpan -> int32) = _.Milliseconds
                let v163 : int32 = v162 v147
                let v166 : System.DateTime = System.DateTime (1, 1, 1, v151, v155, v159, v163)
                v166
        let v174 : string = method5()
        let v177 : (string -> string) = v173.ToString
        let v178 : string = v177 v174
        let _v112 = v178 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v181 : US3 option = None
        let _v181 = ref v181 
        let v182 : US3 option ref = _v181 
        let v183 : (US3 option -> US3 option ref) = closure8(v182)
        let v184 : unit = ()
        let v185 : (unit -> unit) = closure9(v99, v183)
        let v186 : unit = (fun () -> v185 (); v184) ()
        let v189 : US3 option = _v181.Value 
        let v200 : US3 = US3_1
        let v201 : US3 = v189 |> Option.defaultValue v200 
        let v241 : System.DateTime =
            match v201 with
            | US3_1 -> (* None *)
                let v237 : System.DateTime = System.DateTime.Now
                v237
            | US3_0(v205) -> (* Some *)
                let v206 : System.DateTime = System.DateTime.Now
                let v209 : (System.DateTime -> int64) = _.Ticks
                let v210 : int64 = v209 v206
                let v213 : int64 = v210 - v205
                let v214 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v215 : System.TimeSpan = v214 v213
                let v218 : (System.TimeSpan -> int32) = _.Hours
                let v219 : int32 = v218 v215
                let v222 : (System.TimeSpan -> int32) = _.Minutes
                let v223 : int32 = v222 v215
                let v226 : (System.TimeSpan -> int32) = _.Seconds
                let v227 : int32 = v226 v215
                let v230 : (System.TimeSpan -> int32) = _.Milliseconds
                let v231 : int32 = v230 v215
                let v234 : System.DateTime = System.DateTime (1, 1, 1, v219, v223, v227, v231)
                v234
        let v242 : string = method5()
        let v245 : (string -> string) = v241.ToString
        let v246 : string = v245 v242
        let _v112 = v246 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v249 : string = $"near_sdk::env::block_timestamp()"
        let v250 : uint64 = Fable.Core.RustInterop.emitRustExpr () v249 
        let v251 : US3 option = None
        let _v251 = ref v251 
        let v252 : US3 option ref = _v251 
        let v253 : (US3 option -> US3 option ref) = closure8(v252)
        let v254 : unit = ()
        let v255 : (unit -> unit) = closure9(v99, v253)
        let v256 : unit = (fun () -> v255 (); v254) ()
        let v259 : US3 option = _v251.Value 
        let v270 : US3 = US3_1
        let v271 : US3 = v259 |> Option.defaultValue v270 
        let v280 : uint64 =
            match v271 with
            | US3_1 -> (* None *)
                v250
            | US3_0(v275) -> (* Some *)
                let v276 : (int64 -> uint64) = uint64
                let v277 : uint64 = v276 v275
                let v278 : uint64 = v250 - v277
                v278
        let v281 : uint64 = v280 / 1000000000UL
        let v282 : uint64 = v281 % 60UL
        let v283 : uint64 = v281 / 60UL
        let v284 : uint64 = v283 % 60UL
        let v285 : uint64 = v281 / 3600UL
        let v286 : uint64 = v285 % 24UL
        let v287 : string = $"format!(\"{{:02}}:{{:02}}:{{:02}}\", $0, $1, $2)"
        let v288 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v286, v284, v282) v287 
        let v289 : string = "fable_library_rust::String_::fromString($0)"
        let v290 : string = Fable.Core.RustInterop.emitRustExpr v288 v289 
        let _v112 = v290 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v291 : US3 option = None
        let _v291 = ref v291 
        let v292 : US3 option ref = _v291 
        let v293 : (US3 option -> US3 option ref) = closure8(v292)
        let v294 : unit = ()
        let v295 : (unit -> unit) = closure9(v99, v293)
        let v296 : unit = (fun () -> v295 (); v294) ()
        let v299 : US3 option = _v291.Value 
        let v310 : US3 = US3_1
        let v311 : US3 = v299 |> Option.defaultValue v310 
        let v351 : System.DateTime =
            match v311 with
            | US3_1 -> (* None *)
                let v347 : System.DateTime = System.DateTime.Now
                v347
            | US3_0(v315) -> (* Some *)
                let v316 : System.DateTime = System.DateTime.Now
                let v319 : (System.DateTime -> int64) = _.Ticks
                let v320 : int64 = v319 v316
                let v323 : int64 = v320 - v315
                let v324 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v325 : System.TimeSpan = v324 v323
                let v328 : (System.TimeSpan -> int32) = _.Hours
                let v329 : int32 = v328 v325
                let v332 : (System.TimeSpan -> int32) = _.Minutes
                let v333 : int32 = v332 v325
                let v336 : (System.TimeSpan -> int32) = _.Seconds
                let v337 : int32 = v336 v325
                let v340 : (System.TimeSpan -> int32) = _.Milliseconds
                let v341 : int32 = v340 v325
                let v344 : System.DateTime = System.DateTime (1, 1, 1, v329, v333, v337, v341)
                v344
        let v352 : string = method6()
        let v355 : (string -> string) = v351.ToString
        let v356 : string = v355 v352
        let _v112 = v356 
        #endif
#if FABLE_COMPILER_PYTHON
        let v359 : US3 option = None
        let _v359 = ref v359 
        let v360 : US3 option ref = _v359 
        let v361 : (US3 option -> US3 option ref) = closure8(v360)
        let v362 : unit = ()
        let v363 : (unit -> unit) = closure9(v99, v361)
        let v364 : unit = (fun () -> v363 (); v362) ()
        let v367 : US3 option = _v359.Value 
        let v378 : US3 = US3_1
        let v379 : US3 = v367 |> Option.defaultValue v378 
        let v419 : System.DateTime =
            match v379 with
            | US3_1 -> (* None *)
                let v415 : System.DateTime = System.DateTime.Now
                v415
            | US3_0(v383) -> (* Some *)
                let v384 : System.DateTime = System.DateTime.Now
                let v387 : (System.DateTime -> int64) = _.Ticks
                let v388 : int64 = v387 v384
                let v391 : int64 = v388 - v383
                let v392 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v393 : System.TimeSpan = v392 v391
                let v396 : (System.TimeSpan -> int32) = _.Hours
                let v397 : int32 = v396 v393
                let v400 : (System.TimeSpan -> int32) = _.Minutes
                let v401 : int32 = v400 v393
                let v404 : (System.TimeSpan -> int32) = _.Seconds
                let v405 : int32 = v404 v393
                let v408 : (System.TimeSpan -> int32) = _.Milliseconds
                let v409 : int32 = v408 v393
                let v412 : System.DateTime = System.DateTime (1, 1, 1, v397, v401, v405, v409)
                v412
        let v420 : string = method6()
        let v423 : (string -> string) = v419.ToString
        let v424 : string = v423 v420
        let _v112 = v424 
        #endif
#else
        let v427 : US3 option = None
        let _v427 = ref v427 
        let v428 : US3 option ref = _v427 
        let v429 : (US3 option -> US3 option ref) = closure8(v428)
        let v430 : unit = ()
        let v431 : (unit -> unit) = closure9(v99, v429)
        let v432 : unit = (fun () -> v431 (); v430) ()
        let v435 : US3 option = _v427.Value 
        let v446 : US3 = US3_1
        let v447 : US3 = v435 |> Option.defaultValue v446 
        let v487 : System.DateTime =
            match v447 with
            | US3_1 -> (* None *)
                let v483 : System.DateTime = System.DateTime.Now
                v483
            | US3_0(v451) -> (* Some *)
                let v452 : System.DateTime = System.DateTime.Now
                let v455 : (System.DateTime -> int64) = _.Ticks
                let v456 : int64 = v455 v452
                let v459 : int64 = v456 - v451
                let v460 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v461 : System.TimeSpan = v460 v459
                let v464 : (System.TimeSpan -> int32) = _.Hours
                let v465 : int32 = v464 v461
                let v468 : (System.TimeSpan -> int32) = _.Minutes
                let v469 : int32 = v468 v461
                let v472 : (System.TimeSpan -> int32) = _.Seconds
                let v473 : int32 = v472 v461
                let v476 : (System.TimeSpan -> int32) = _.Milliseconds
                let v477 : int32 = v476 v461
                let v480 : System.DateTime = System.DateTime (1, 1, 1, v465, v469, v473, v477)
                v480
        let v488 : string = method6()
        let v491 : (string -> string) = v487.ToString
        let v492 : string = v491 v488
        let _v112 = v492 
        #endif
        let v495 : string = _v112 
        
        
        
        
        
        let v565 : string = "Verbose"
        let v566 : (unit -> string) = v565.ToLower
        let v567 : string = v566 ()
        let v570 : string = v567.PadLeft (7, ' ')
        let v584 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v585 : string = "inline_colorization::color_bright_black"
        let v586 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v585 
        let v587 : string = "&*$0"
        let v588 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v570 v587 
        let v589 : string = "inline_colorization::color_reset"
        let v590 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v589 
        let v591 : string = "\"{v586}{v588}{v590}\""
        let v592 : string = @$"format!(" + v591 + ")"
        let v593 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v592 
        let v594 : string = "fable_library_rust::String_::fromString($0)"
        let v595 : string = Fable.Core.RustInterop.emitRustExpr v593 v594 
        let _v584 = v595 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v596 : string = "inline_colorization::color_bright_black"
        let v597 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v596 
        let v598 : string = "&*$0"
        let v599 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v570 v598 
        let v600 : string = "inline_colorization::color_reset"
        let v601 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v600 
        let v602 : string = "\"{v597}{v599}{v601}\""
        let v603 : string = @$"format!(" + v602 + ")"
        let v604 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v603 
        let v605 : string = "fable_library_rust::String_::fromString($0)"
        let v606 : string = Fable.Core.RustInterop.emitRustExpr v604 v605 
        let _v584 = v606 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v607 : string = "inline_colorization::color_bright_black"
        let v608 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v607 
        let v609 : string = "&*$0"
        let v610 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v570 v609 
        let v611 : string = "inline_colorization::color_reset"
        let v612 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v611 
        let v613 : string = "\"{v608}{v610}{v612}\""
        let v614 : string = @$"format!(" + v613 + ")"
        let v615 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v614 
        let v616 : string = "fable_library_rust::String_::fromString($0)"
        let v617 : string = Fable.Core.RustInterop.emitRustExpr v615 v616 
        let _v584 = v617 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v618 : string = "\u001b[90m"
        let v619 : string = method7()
        let v620 : string = v618 + v570 
        let v621 : string = v620 + v619 
        let _v584 = v621 
        #endif
#if FABLE_COMPILER_PYTHON
        let v622 : string = "\u001b[90m"
        let v623 : string = method7()
        let v624 : string = v622 + v570 
        let v625 : string = v624 + v623 
        let _v584 = v625 
        #endif
#else
        let v626 : string = "\u001b[90m"
        let v627 : string = method7()
        let v628 : string = v626 + v570 
        let v629 : string = v628 + v627 
        let _v584 = v629 
        #endif
        let v630 : string = _v584 
        let v636 : int64 = v94.l0
        let v637 : string = method8()
        let v638 : Mut3 = {l0 = v637} : Mut3
        let v639 : string = "{ "
        let v640 : string = $"{v639}"
        let v643 : unit = ()
        let v644 : (unit -> unit) = closure10(v638, v640)
        let v645 : unit = (fun () -> v644 (); v643) ()
        let v648 : string = "timeout"
        let v649 : string = $"{v648}"
        let v652 : unit = ()
        let v653 : (unit -> unit) = closure10(v638, v649)
        let v654 : unit = (fun () -> v653 (); v652) ()
        let v657 : string = " = "
        let v658 : string = $"{v657}"
        let v661 : unit = ()
        let v662 : (unit -> unit) = closure10(v638, v658)
        let v663 : unit = (fun () -> v662 (); v661) ()
        let v666 : string = $"{v0}"
        let v669 : unit = ()
        let v670 : (unit -> unit) = closure10(v638, v666)
        let v671 : unit = (fun () -> v670 (); v669) ()
        let v674 : string = " }"
        let v675 : string = $"{v674}"
        let v678 : unit = ()
        let v679 : (unit -> unit) = closure10(v638, v675)
        let v680 : unit = (fun () -> v679 (); v678) ()
        let v683 : string = v638.l0
        let v684 : string = "async.run_with_timeout_async"
        let v685 : bool = v684 = ""
        let v742 : string =
            if v685 then
                let v686 : string = ""
                v686
            else
                let v687 : string = $"{v495} {v630} #{v636} %s{v684} / {v683}"
                let v690 : char list = []
                let v691 : (char list -> (char [])) = List.toArray
                let v692 : (char []) = v691 v690
                let v695 : string = v687.TrimStart v692 
                let v713 : char list = []
                let v714 : char list = '/' :: v713 
                let v717 : char list = ' ' :: v714 
                let v720 : (char list -> (char [])) = List.toArray
                let v721 : (char []) = v720 v717
                let v724 : string = v695.TrimEnd v721 
                v724
        let v743 : (string -> unit) = closure11()
        let v744 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v745 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v742 v745 
        let _v744 = () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v746 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v742 v746 
        let _v744 = () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v747 : string = v20.l0
        let v748 : bool = v747 = ""
        let v756 : string =
            if v748 then
                v742
            else
                let v749 : bool = v742 = ""
                if v749 then
                    let v750 : string = v20.l0
                    v750
                else
                    let v751 : string = v20.l0
                    let v752 : string = "\n"
                    let v753 : string = v751 + v752 
                    let v754 : string = v753 + v742 
                    v754
        let v757 : string = "&*$0"
        let v758 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v756 v757 
        let v759 : string = $"$0.chars()"
        let v760 : Mut<_> = Fable.Core.RustInterop.emitRustExpr v758 v759 
        let v761 : string = "v760"
        let v762 : _ = Fable.Core.RustInterop.emitRustExpr () v761 
        let v763 : string = "v762.collect::<Vec<_>>()"
        let v764 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v763 
        let v765 : string = "$0.chunks(15000).map(|x| x.into_iter().map(|x| x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"
        let v766 : Vec<Vec<char>> = Fable.Core.RustInterop.emitRustExpr v764 v765 
        let v767 : string = "true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"
        let v768 : bool = Fable.Core.RustInterop.emitRustExpr v766 v767 
        let v769 : string = "x"
        let v770 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v769 
        let v771 : string = "String::from_iter($0)"
        let v772 : std_string_String = Fable.Core.RustInterop.emitRustExpr v770 v771 
        let v773 : string = "true; $0 }).collect::<Vec<_>>()"
        let v774 : bool = Fable.Core.RustInterop.emitRustExpr v772 v773 
        let v775 : string = "_vec_map"
        let v776 : Vec<std_string_String> = Fable.Core.RustInterop.emitRustExpr () v775 
        let v777 : string = "$0.len()"
        let v778 : unativeint = Fable.Core.RustInterop.emitRustExpr v776 v777 
        let v779 : (unativeint -> int32) = int32
        let v780 : int32 = v779 v778
        let v781 : string = ""
        let v782 : bool = v742 <> v781 
        let v786 : bool =
            if v782 then
                let v785 : bool = v780 <= 1
                v785
            else
                false
        if v786 then
            v20.l0 <- v756
            ()
        else
            v20.l0 <- v781
            let v787 : string = "true; $0.into_iter().for_each(|x| { //"
            let v788 : bool = Fable.Core.RustInterop.emitRustExpr v776 v787 
            let v789 : string = "x"
            let v790 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v789 
            let v791 : string = $"near_sdk::log!(\"{{}}\", $0)"
            Fable.Core.RustInterop.emitRustExpr v790 v791 
            let v792 : string = $"true;"
            let v793 : bool = Fable.Core.RustInterop.emitRustExpr () v792 
            let v794 : string = "true; }}); { //"
            let v795 : bool = Fable.Core.RustInterop.emitRustExpr () v794 
            ()
        let _v744 = () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        v743 v742
        let _v744 = () 
        #endif
#if FABLE_COMPILER_PYTHON
        v743 v742
        let _v744 = () 
        #endif
#else
        v743 v742
        let _v744 = () 
        #endif
        _v744 
        let v796 : (string -> unit) = v18.l0
        v796 v742
and closure19 (v0 : int32, v1 : exn) () : unit =
    let v2 : unit = ()
    let v3 : (unit -> unit) = closure0()
    let v4 : unit = (fun () -> v3 (); v2) ()
    let struct (v18 : Mut0, v19 : Mut1, v20 : Mut2, v21 : Mut3, v22 : Mut4, v23 : int64 option) = TraceState.trace_state.Value
    let v36 : unit = ()
    let v37 : unit = (fun () -> v3 (); v36) ()
    let struct (v51 : Mut0, v52 : Mut1, v53 : Mut2, v54 : Mut3, v55 : Mut4, v56 : int64 option) = TraceState.trace_state.Value
    let v69 : US0 = v55.l0
    let v70 : bool = v53.l0
    let v71 : bool = v70 = false
    let v74 : bool =
        if v71 then
            false
        else
            let v72 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v69
            let v73 : bool = 4 >= v72
            v73
    if v74 then
        let v75 : unit = ()
        let v76 : (unit -> unit) = closure7(v18)
        let v77 : unit = (fun () -> v76 (); v75) ()
        let v80 : unit = ()
        let v81 : unit = (fun () -> v3 (); v80) ()
        let struct (v95 : Mut0, v96 : Mut1, v97 : Mut2, v98 : Mut3, v99 : Mut4, v100 : int64 option) = TraceState.trace_state.Value
        let v113 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v114 : US3 option = None
        let _v114 = ref v114 
        let v115 : US3 option ref = _v114 
        let v116 : (US3 option -> US3 option ref) = closure8(v115)
        let v117 : unit = ()
        let v118 : (unit -> unit) = closure9(v100, v116)
        let v119 : unit = (fun () -> v118 (); v117) ()
        let v122 : US3 option = _v114.Value 
        let v133 : US3 = US3_1
        let v134 : US3 = v122 |> Option.defaultValue v133 
        let v174 : System.DateTime =
            match v134 with
            | US3_1 -> (* None *)
                let v170 : System.DateTime = System.DateTime.Now
                v170
            | US3_0(v138) -> (* Some *)
                let v139 : System.DateTime = System.DateTime.Now
                let v142 : (System.DateTime -> int64) = _.Ticks
                let v143 : int64 = v142 v139
                let v146 : int64 = v143 - v138
                let v147 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v148 : System.TimeSpan = v147 v146
                let v151 : (System.TimeSpan -> int32) = _.Hours
                let v152 : int32 = v151 v148
                let v155 : (System.TimeSpan -> int32) = _.Minutes
                let v156 : int32 = v155 v148
                let v159 : (System.TimeSpan -> int32) = _.Seconds
                let v160 : int32 = v159 v148
                let v163 : (System.TimeSpan -> int32) = _.Milliseconds
                let v164 : int32 = v163 v148
                let v167 : System.DateTime = System.DateTime (1, 1, 1, v152, v156, v160, v164)
                v167
        let v175 : string = method5()
        let v178 : (string -> string) = v174.ToString
        let v179 : string = v178 v175
        let _v113 = v179 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v182 : US3 option = None
        let _v182 = ref v182 
        let v183 : US3 option ref = _v182 
        let v184 : (US3 option -> US3 option ref) = closure8(v183)
        let v185 : unit = ()
        let v186 : (unit -> unit) = closure9(v100, v184)
        let v187 : unit = (fun () -> v186 (); v185) ()
        let v190 : US3 option = _v182.Value 
        let v201 : US3 = US3_1
        let v202 : US3 = v190 |> Option.defaultValue v201 
        let v242 : System.DateTime =
            match v202 with
            | US3_1 -> (* None *)
                let v238 : System.DateTime = System.DateTime.Now
                v238
            | US3_0(v206) -> (* Some *)
                let v207 : System.DateTime = System.DateTime.Now
                let v210 : (System.DateTime -> int64) = _.Ticks
                let v211 : int64 = v210 v207
                let v214 : int64 = v211 - v206
                let v215 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v216 : System.TimeSpan = v215 v214
                let v219 : (System.TimeSpan -> int32) = _.Hours
                let v220 : int32 = v219 v216
                let v223 : (System.TimeSpan -> int32) = _.Minutes
                let v224 : int32 = v223 v216
                let v227 : (System.TimeSpan -> int32) = _.Seconds
                let v228 : int32 = v227 v216
                let v231 : (System.TimeSpan -> int32) = _.Milliseconds
                let v232 : int32 = v231 v216
                let v235 : System.DateTime = System.DateTime (1, 1, 1, v220, v224, v228, v232)
                v235
        let v243 : string = method5()
        let v246 : (string -> string) = v242.ToString
        let v247 : string = v246 v243
        let _v113 = v247 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v250 : string = $"near_sdk::env::block_timestamp()"
        let v251 : uint64 = Fable.Core.RustInterop.emitRustExpr () v250 
        let v252 : US3 option = None
        let _v252 = ref v252 
        let v253 : US3 option ref = _v252 
        let v254 : (US3 option -> US3 option ref) = closure8(v253)
        let v255 : unit = ()
        let v256 : (unit -> unit) = closure9(v100, v254)
        let v257 : unit = (fun () -> v256 (); v255) ()
        let v260 : US3 option = _v252.Value 
        let v271 : US3 = US3_1
        let v272 : US3 = v260 |> Option.defaultValue v271 
        let v281 : uint64 =
            match v272 with
            | US3_1 -> (* None *)
                v251
            | US3_0(v276) -> (* Some *)
                let v277 : (int64 -> uint64) = uint64
                let v278 : uint64 = v277 v276
                let v279 : uint64 = v251 - v278
                v279
        let v282 : uint64 = v281 / 1000000000UL
        let v283 : uint64 = v282 % 60UL
        let v284 : uint64 = v282 / 60UL
        let v285 : uint64 = v284 % 60UL
        let v286 : uint64 = v282 / 3600UL
        let v287 : uint64 = v286 % 24UL
        let v288 : string = $"format!(\"{{:02}}:{{:02}}:{{:02}}\", $0, $1, $2)"
        let v289 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v287, v285, v283) v288 
        let v290 : string = "fable_library_rust::String_::fromString($0)"
        let v291 : string = Fable.Core.RustInterop.emitRustExpr v289 v290 
        let _v113 = v291 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v292 : US3 option = None
        let _v292 = ref v292 
        let v293 : US3 option ref = _v292 
        let v294 : (US3 option -> US3 option ref) = closure8(v293)
        let v295 : unit = ()
        let v296 : (unit -> unit) = closure9(v100, v294)
        let v297 : unit = (fun () -> v296 (); v295) ()
        let v300 : US3 option = _v292.Value 
        let v311 : US3 = US3_1
        let v312 : US3 = v300 |> Option.defaultValue v311 
        let v352 : System.DateTime =
            match v312 with
            | US3_1 -> (* None *)
                let v348 : System.DateTime = System.DateTime.Now
                v348
            | US3_0(v316) -> (* Some *)
                let v317 : System.DateTime = System.DateTime.Now
                let v320 : (System.DateTime -> int64) = _.Ticks
                let v321 : int64 = v320 v317
                let v324 : int64 = v321 - v316
                let v325 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v326 : System.TimeSpan = v325 v324
                let v329 : (System.TimeSpan -> int32) = _.Hours
                let v330 : int32 = v329 v326
                let v333 : (System.TimeSpan -> int32) = _.Minutes
                let v334 : int32 = v333 v326
                let v337 : (System.TimeSpan -> int32) = _.Seconds
                let v338 : int32 = v337 v326
                let v341 : (System.TimeSpan -> int32) = _.Milliseconds
                let v342 : int32 = v341 v326
                let v345 : System.DateTime = System.DateTime (1, 1, 1, v330, v334, v338, v342)
                v345
        let v353 : string = method6()
        let v356 : (string -> string) = v352.ToString
        let v357 : string = v356 v353
        let _v113 = v357 
        #endif
#if FABLE_COMPILER_PYTHON
        let v360 : US3 option = None
        let _v360 = ref v360 
        let v361 : US3 option ref = _v360 
        let v362 : (US3 option -> US3 option ref) = closure8(v361)
        let v363 : unit = ()
        let v364 : (unit -> unit) = closure9(v100, v362)
        let v365 : unit = (fun () -> v364 (); v363) ()
        let v368 : US3 option = _v360.Value 
        let v379 : US3 = US3_1
        let v380 : US3 = v368 |> Option.defaultValue v379 
        let v420 : System.DateTime =
            match v380 with
            | US3_1 -> (* None *)
                let v416 : System.DateTime = System.DateTime.Now
                v416
            | US3_0(v384) -> (* Some *)
                let v385 : System.DateTime = System.DateTime.Now
                let v388 : (System.DateTime -> int64) = _.Ticks
                let v389 : int64 = v388 v385
                let v392 : int64 = v389 - v384
                let v393 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v394 : System.TimeSpan = v393 v392
                let v397 : (System.TimeSpan -> int32) = _.Hours
                let v398 : int32 = v397 v394
                let v401 : (System.TimeSpan -> int32) = _.Minutes
                let v402 : int32 = v401 v394
                let v405 : (System.TimeSpan -> int32) = _.Seconds
                let v406 : int32 = v405 v394
                let v409 : (System.TimeSpan -> int32) = _.Milliseconds
                let v410 : int32 = v409 v394
                let v413 : System.DateTime = System.DateTime (1, 1, 1, v398, v402, v406, v410)
                v413
        let v421 : string = method6()
        let v424 : (string -> string) = v420.ToString
        let v425 : string = v424 v421
        let _v113 = v425 
        #endif
#else
        let v428 : US3 option = None
        let _v428 = ref v428 
        let v429 : US3 option ref = _v428 
        let v430 : (US3 option -> US3 option ref) = closure8(v429)
        let v431 : unit = ()
        let v432 : (unit -> unit) = closure9(v100, v430)
        let v433 : unit = (fun () -> v432 (); v431) ()
        let v436 : US3 option = _v428.Value 
        let v447 : US3 = US3_1
        let v448 : US3 = v436 |> Option.defaultValue v447 
        let v488 : System.DateTime =
            match v448 with
            | US3_1 -> (* None *)
                let v484 : System.DateTime = System.DateTime.Now
                v484
            | US3_0(v452) -> (* Some *)
                let v453 : System.DateTime = System.DateTime.Now
                let v456 : (System.DateTime -> int64) = _.Ticks
                let v457 : int64 = v456 v453
                let v460 : int64 = v457 - v452
                let v461 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v462 : System.TimeSpan = v461 v460
                let v465 : (System.TimeSpan -> int32) = _.Hours
                let v466 : int32 = v465 v462
                let v469 : (System.TimeSpan -> int32) = _.Minutes
                let v470 : int32 = v469 v462
                let v473 : (System.TimeSpan -> int32) = _.Seconds
                let v474 : int32 = v473 v462
                let v477 : (System.TimeSpan -> int32) = _.Milliseconds
                let v478 : int32 = v477 v462
                let v481 : System.DateTime = System.DateTime (1, 1, 1, v466, v470, v474, v478)
                v481
        let v489 : string = method6()
        let v492 : (string -> string) = v488.ToString
        let v493 : string = v492 v489
        let _v113 = v493 
        #endif
        let v496 : string = _v113 
        
        
        
        
        
        let v566 : string = "Critical"
        let v567 : (unit -> string) = v566.ToLower
        let v568 : string = v567 ()
        let v571 : string = v568.PadLeft (7, ' ')
        let v585 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v586 : string = "inline_colorization::color_bright_red"
        let v587 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v586 
        let v588 : string = "&*$0"
        let v589 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v588 
        let v590 : string = "inline_colorization::color_reset"
        let v591 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v590 
        let v592 : string = "\"{v587}{v589}{v591}\""
        let v593 : string = @$"format!(" + v592 + ")"
        let v594 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v593 
        let v595 : string = "fable_library_rust::String_::fromString($0)"
        let v596 : string = Fable.Core.RustInterop.emitRustExpr v594 v595 
        let _v585 = v596 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v597 : string = "inline_colorization::color_bright_red"
        let v598 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v597 
        let v599 : string = "&*$0"
        let v600 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v599 
        let v601 : string = "inline_colorization::color_reset"
        let v602 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v601 
        let v603 : string = "\"{v598}{v600}{v602}\""
        let v604 : string = @$"format!(" + v603 + ")"
        let v605 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v604 
        let v606 : string = "fable_library_rust::String_::fromString($0)"
        let v607 : string = Fable.Core.RustInterop.emitRustExpr v605 v606 
        let _v585 = v607 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v608 : string = "inline_colorization::color_bright_red"
        let v609 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v608 
        let v610 : string = "&*$0"
        let v611 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v571 v610 
        let v612 : string = "inline_colorization::color_reset"
        let v613 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v612 
        let v614 : string = "\"{v609}{v611}{v613}\""
        let v615 : string = @$"format!(" + v614 + ")"
        let v616 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v615 
        let v617 : string = "fable_library_rust::String_::fromString($0)"
        let v618 : string = Fable.Core.RustInterop.emitRustExpr v616 v617 
        let _v585 = v618 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v619 : string = "\u001b[91m"
        let v620 : string = method7()
        let v621 : string = v619 + v571 
        let v622 : string = v621 + v620 
        let _v585 = v622 
        #endif
#if FABLE_COMPILER_PYTHON
        let v623 : string = "\u001b[91m"
        let v624 : string = method7()
        let v625 : string = v623 + v571 
        let v626 : string = v625 + v624 
        let _v585 = v626 
        #endif
#else
        let v627 : string = "\u001b[91m"
        let v628 : string = method7()
        let v629 : string = v627 + v571 
        let v630 : string = v629 + v628 
        let _v585 = v630 
        #endif
        let v631 : string = _v585 
        let v637 : int64 = v95.l0
        let v638 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v639 : string = $"%A{v1}"
        let _v638 = v639 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v642 : string = $"%A{v1}"
        let _v638 = v642 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v645 : string = $"%A{v1}"
        let _v638 = v645 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v648 : string = $"%A{v1}"
        let _v638 = v648 
        #endif
#if FABLE_COMPILER_PYTHON
        let v651 : string = $"%A{v1}"
        let _v638 = v651 
        #endif
#else
        let v654 : string = $"{v1.GetType ()}: {v1.Message}"
        let _v638 = v654 
        #endif
        let v655 : string = _v638 
        let v660 : string = method8()
        let v661 : Mut3 = {l0 = v660} : Mut3
        let v662 : string = "{ "
        let v663 : string = $"{v662}"
        let v666 : unit = ()
        let v667 : (unit -> unit) = closure10(v661, v663)
        let v668 : unit = (fun () -> v667 (); v666) ()
        let v671 : string = "timeout"
        let v672 : string = $"{v671}"
        let v675 : unit = ()
        let v676 : (unit -> unit) = closure10(v661, v672)
        let v677 : unit = (fun () -> v676 (); v675) ()
        let v680 : string = " = "
        let v681 : string = $"{v680}"
        let v684 : unit = ()
        let v685 : (unit -> unit) = closure10(v661, v681)
        let v686 : unit = (fun () -> v685 (); v684) ()
        let v689 : string = $"{v0}"
        let v692 : unit = ()
        let v693 : (unit -> unit) = closure10(v661, v689)
        let v694 : unit = (fun () -> v693 (); v692) ()
        let v697 : string = "; "
        let v698 : string = $"{v697}"
        let v701 : unit = ()
        let v702 : (unit -> unit) = closure10(v661, v698)
        let v703 : unit = (fun () -> v702 (); v701) ()
        let v706 : string = "ex"
        let v707 : string = $"{v706}"
        let v710 : unit = ()
        let v711 : (unit -> unit) = closure10(v661, v707)
        let v712 : unit = (fun () -> v711 (); v710) ()
        let v715 : string = $"{v680}"
        let v718 : unit = ()
        let v719 : (unit -> unit) = closure10(v661, v715)
        let v720 : unit = (fun () -> v719 (); v718) ()
        let v723 : string = $"{v655}"
        let v726 : unit = ()
        let v727 : (unit -> unit) = closure10(v661, v723)
        let v728 : unit = (fun () -> v727 (); v726) ()
        let v731 : string = " }"
        let v732 : string = $"{v731}"
        let v735 : unit = ()
        let v736 : (unit -> unit) = closure10(v661, v732)
        let v737 : unit = (fun () -> v736 (); v735) ()
        let v740 : string = v661.l0
        let v741 : string = $"async.run_with_timeout_async**"
        let v742 : bool = v741 = ""
        let v799 : string =
            if v742 then
                let v743 : string = ""
                v743
            else
                let v744 : string = $"{v496} {v631} #{v637} %s{v741} / {v740}"
                let v747 : char list = []
                let v748 : (char list -> (char [])) = List.toArray
                let v749 : (char []) = v748 v747
                let v752 : string = v744.TrimStart v749 
                let v770 : char list = []
                let v771 : char list = '/' :: v770 
                let v774 : char list = ' ' :: v771 
                let v777 : (char list -> (char [])) = List.toArray
                let v778 : (char []) = v777 v774
                let v781 : string = v752.TrimEnd v778 
                v781
        let v800 : (string -> unit) = closure11()
        let v801 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v802 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v799 v802 
        let _v801 = () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v803 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v799 v803 
        let _v801 = () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v804 : string = v21.l0
        let v805 : bool = v804 = ""
        let v813 : string =
            if v805 then
                v799
            else
                let v806 : bool = v799 = ""
                if v806 then
                    let v807 : string = v21.l0
                    v807
                else
                    let v808 : string = v21.l0
                    let v809 : string = "\n"
                    let v810 : string = v808 + v809 
                    let v811 : string = v810 + v799 
                    v811
        let v814 : string = "&*$0"
        let v815 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v813 v814 
        let v816 : string = $"$0.chars()"
        let v817 : Mut<_> = Fable.Core.RustInterop.emitRustExpr v815 v816 
        let v818 : string = "v817"
        let v819 : _ = Fable.Core.RustInterop.emitRustExpr () v818 
        let v820 : string = "v819.collect::<Vec<_>>()"
        let v821 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v820 
        let v822 : string = "$0.chunks(15000).map(|x| x.into_iter().map(|x| x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"
        let v823 : Vec<Vec<char>> = Fable.Core.RustInterop.emitRustExpr v821 v822 
        let v824 : string = "true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"
        let v825 : bool = Fable.Core.RustInterop.emitRustExpr v823 v824 
        let v826 : string = "x"
        let v827 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v826 
        let v828 : string = "String::from_iter($0)"
        let v829 : std_string_String = Fable.Core.RustInterop.emitRustExpr v827 v828 
        let v830 : string = "true; $0 }).collect::<Vec<_>>()"
        let v831 : bool = Fable.Core.RustInterop.emitRustExpr v829 v830 
        let v832 : string = "_vec_map"
        let v833 : Vec<std_string_String> = Fable.Core.RustInterop.emitRustExpr () v832 
        let v834 : string = "$0.len()"
        let v835 : unativeint = Fable.Core.RustInterop.emitRustExpr v833 v834 
        let v836 : (unativeint -> int32) = int32
        let v837 : int32 = v836 v835
        let v838 : string = ""
        let v839 : bool = v799 <> v838 
        let v843 : bool =
            if v839 then
                let v842 : bool = v837 <= 1
                v842
            else
                false
        if v843 then
            v21.l0 <- v813
            ()
        else
            v21.l0 <- v838
            let v844 : string = "true; $0.into_iter().for_each(|x| { //"
            let v845 : bool = Fable.Core.RustInterop.emitRustExpr v833 v844 
            let v846 : string = "x"
            let v847 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v846 
            let v848 : string = $"near_sdk::log!(\"{{}}\", $0)"
            Fable.Core.RustInterop.emitRustExpr v847 v848 
            let v849 : string = $"true;"
            let v850 : bool = Fable.Core.RustInterop.emitRustExpr () v849 
            let v851 : string = "true; }}); { //"
            let v852 : bool = Fable.Core.RustInterop.emitRustExpr () v851 
            ()
        let _v801 = () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        v800 v799
        let _v801 = () 
        #endif
#if FABLE_COMPILER_PYTHON
        v800 v799
        let _v801 = () 
        #endif
#else
        v800 v799
        let _v801 = () 
        #endif
        _v801 
        let v853 : (string -> unit) = v19.l0
        v853 v799
and closure15 (v0 : int32, v1 : string) (v2 : int32) : Async<bool> =
    let v3 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v4 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v7 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v7 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v10 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v10 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v13 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v13 
    #endif
#if FABLE_COMPILER_PYTHON
    let v16 : Async<bool> = null |> unbox<Async<bool>>
    let _v3 = v16 
    #endif
#else
    let v19 : Async<bool> option = None
    let mutable _v19 = v19 
    async {
    let v20 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v21 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v21 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v24 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v24 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v27 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v27 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v30 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v30 
    #endif
#if FABLE_COMPILER_PYTHON
    let v33 : Async<bool> = null |> unbox<Async<bool>>
    let _v20 = v33 
    #endif
#else
    let v36 : Async<bool> option = None
    let mutable _v36 = v36 
    async {
    let v37 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v37 = v37 
    let v38 : System.Threading.CancellationToken = v37 
    let v39 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v39 = v39 
    let v40 : System.Net.Sockets.TcpClient = v39 
    try
    let v41 : System.Threading.Tasks.ValueTask = v40.ConnectAsync (v1, v2, v38)
    let v42 : (unit -> System.Threading.Tasks.Task) = v41.AsTask
    let v43 : System.Threading.Tasks.Task = v42 ()
    let v44 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v45 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v45 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v48 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v48 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v51 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v51 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v54 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v54 
    #endif
#if FABLE_COMPILER_PYTHON
    let v57 : Async<unit> = null |> unbox<Async<unit>>
    let _v44 = v57 
    #endif
#else
    let v60 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v61 : Async<unit> = v60 v43
    let _v44 = v61 
    #endif
    let v62 : Async<unit> = _v44 
    do! v62 
    return true 
    with ex ->
    let v67 : exn = ex
    let v68 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v69 : string = $"%A{v67}"
    let _v68 = v69 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v72 : string = $"%A{v67}"
    let _v68 = v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v75 : string = $"%A{v67}"
    let _v68 = v75 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v78 : string = $"%A{v67}"
    let _v68 = v78 
    #endif
#if FABLE_COMPILER_PYTHON
    let v81 : string = $"%A{v67}"
    let _v68 = v81 
    #endif
#else
    let v84 : string = $"{v67.GetType ()}: {v67.Message}"
    let _v68 = v84 
    #endif
    let v85 : string = _v68 
    let v90 : unit = ()
    let v91 : (unit -> unit) = closure6(v2, v85)
    let v92 : unit = (fun () -> v91 (); v90) ()
    return false 
    (*
    let v923 : bool = *)
    }
    |> fun x -> _v36 <- Some x
    let v924 : Async<bool> = match _v36 with Some x -> x | None -> failwith "async.new_async_unit / _v36=None"
    let _v20 = v924 
    #endif
    let v925 : Async<bool> = _v20 
    let v930 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v931 : Async<US4> = null |> unbox<Async<US4>>
    let _v930 = v931 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v934 : Async<US4> = null |> unbox<Async<US4>>
    let _v930 = v934 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v937 : Async<US4> = null |> unbox<Async<US4>>
    let _v930 = v937 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v940 : Async<US4> = null |> unbox<Async<US4>>
    let _v930 = v940 
    #endif
#if FABLE_COMPILER_PYTHON
    let v943 : Async<US4> = null |> unbox<Async<US4>>
    let _v930 = v943 
    #endif
#else
    let v946 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v947 : Async<US4> = null |> unbox<Async<US4>>
    let _v946 = v947 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v950 : Async<US4> = null |> unbox<Async<US4>>
    let _v946 = v950 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v953 : Async<US4> = null |> unbox<Async<US4>>
    let _v946 = v953 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v956 : Async<US4> = null |> unbox<Async<US4>>
    let _v946 = v956 
    #endif
#if FABLE_COMPILER_PYTHON
    let v959 : Async<US4> = null |> unbox<Async<US4>>
    let _v946 = v959 
    #endif
#else
    let v962 : Async<US4> option = None
    let mutable _v962 = v962 
    async {
    let v963 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v964 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v963 = v964 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v967 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v963 = v967 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v970 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v963 = v970 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v973 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v963 = v973 
    #endif
#if FABLE_COMPILER_PYTHON
    let v976 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    let _v963 = v976 
    #endif
#else
    let v979 : Async<Async<bool>> = Async.StartChild (v925, v0)
    let _v963 = v979 
    #endif
    let v980 : Async<Async<bool>> = _v963 
    let! v980 = v980 
    let v985 : Async<bool> = v980 
    let v986 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v987 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v986 = v987 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v990 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v986 = v990 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v993 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v986 = v993 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v996 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v986 = v996 
    #endif
#if FABLE_COMPILER_PYTHON
    let v999 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    let _v986 = v999 
    #endif
#else
    let v1002 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
    let v1003 : Async<Choice<bool, exn>> = v1002 v985
    let _v986 = v1003 
    #endif
    let v1004 : Async<Choice<bool, exn>> = _v986 
    let v1009 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1010 : Async<US5> = null |> unbox<Async<US5>>
    let _v1009 = v1010 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1013 : Async<US5> = null |> unbox<Async<US5>>
    let _v1009 = v1013 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1016 : Async<US5> = null |> unbox<Async<US5>>
    let _v1009 = v1016 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1019 : Async<US5> = null |> unbox<Async<US5>>
    let _v1009 = v1019 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1022 : Async<US5> = null |> unbox<Async<US5>>
    let _v1009 = v1022 
    #endif
#else
    let v1025 : Async<US5> option = None
    let mutable _v1025 = v1025 
    async {
    let! v1004 = v1004 
    let v1026 : Choice<bool, exn> = v1004 
    let v1027 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1028 : US5 = null |> unbox<US5>
    let _v1027 = v1028 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1031 : US5 = null |> unbox<US5>
    let _v1027 = v1031 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1034 : US5 = null |> unbox<US5>
    let _v1027 = v1034 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1037 : US5 = null |> unbox<US5>
    let _v1027 = v1037 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1040 : US5 = null |> unbox<US5>
    let _v1027 = v1040 
    #endif
#else
    let v1043 : (bool -> US5) = closure16()
    let v1044 : (exn -> US5) = closure17()
    let v1045 : US5 = match v1026 with Choice1Of2 x -> v1043 x | Choice2Of2 x -> v1044 x
    let _v1027 = v1045 
    #endif
    let v1046 : US5 = _v1027 
    return v1046 
    }
    |> fun x -> _v1025 <- Some x
    let v1051 : Async<US5> = match _v1025 with Some x -> x | None -> failwith "async.new_async_unit / _v1025=None"
    let _v1009 = v1051 
    #endif
    let v1052 : Async<US5> = _v1009 
    let v1057 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1058 : Async<US6> = null |> unbox<Async<US6>>
    let _v1057 = v1058 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1061 : Async<US6> = null |> unbox<Async<US6>>
    let _v1057 = v1061 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1064 : Async<US6> = null |> unbox<Async<US6>>
    let _v1057 = v1064 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1067 : Async<US6> = null |> unbox<Async<US6>>
    let _v1057 = v1067 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1070 : Async<US6> = null |> unbox<Async<US6>>
    let _v1057 = v1070 
    #endif
#else
    let v1073 : Async<US6> option = None
    let mutable _v1073 = v1073 
    async {
    let! v1052 = v1052 
    let v1074 : US5 = v1052 
    let v1080 : US6 =
        match v1074 with
        | US5_0(v1075) -> (* C1of2 *)
            US6_0(v1075)
        | US5_1(v1077) -> (* C2of2 *)
            US6_1(v1077)
    return v1080 
    }
    |> fun x -> _v1073 <- Some x
    let v1081 : Async<US6> = match _v1073 with Some x -> x | None -> failwith "async.new_async_unit / _v1073=None"
    let _v1057 = v1081 
    #endif
    let v1082 : Async<US6> = _v1057 
    let v1087 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1088 : Async<US4> = null |> unbox<Async<US4>>
    let _v1087 = v1088 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1091 : Async<US4> = null |> unbox<Async<US4>>
    let _v1087 = v1091 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1094 : Async<US4> = null |> unbox<Async<US4>>
    let _v1087 = v1094 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1097 : Async<US4> = null |> unbox<Async<US4>>
    let _v1087 = v1097 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1100 : Async<US4> = null |> unbox<Async<US4>>
    let _v1087 = v1100 
    #endif
#else
    let v1103 : Async<US4> option = None
    let mutable _v1103 = v1103 
    async {
    let! v1082 = v1082 
    let v1104 : US6 = v1082 
    let v2773 : US4 =
        match v1104 with
        | US6_1(v1107) -> (* Error *)
            let v1108 : string = $"%A{v1107}"
            let v1111 : string = "System.TimeoutException"
            let v1112 : bool = v1108.Contains v1111 
            if v1112 then
                let v1115 : unit = ()
                let v1116 : (unit -> unit) = closure18(v0)
                let v1117 : unit = (fun () -> v1116 (); v1115) ()
                US4_1
            else
                let v1915 : unit = ()
                let v1916 : (unit -> unit) = closure19(v0, v1107)
                let v1917 : unit = (fun () -> v1916 (); v1915) ()
                US4_1
        | US6_0(v1105) -> (* Ok *)
            US4_0(v1105)
    return v2773 
    }
    |> fun x -> _v1103 <- Some x
    let v2774 : Async<US4> = match _v1103 with Some x -> x | None -> failwith "async.new_async_unit / _v1103=None"
    let _v1087 = v2774 
    #endif
    let v2775 : Async<US4> = _v1087 
    return! v2775 
    }
    |> fun x -> _v962 <- Some x
    let v2780 : Async<US4> = match _v962 with Some x -> x | None -> failwith "async.new_async_unit / _v962=None"
    let _v946 = v2780 
    #endif
    let v2781 : Async<US4> = _v946 
    let _v930 = v2781 
    #endif
    let v2786 : Async<US4> = _v930 
    let! v2786 = v2786 
    let v2791 : US4 = v2786 
    let v2794 : bool =
        match v2791 with
        | US4_1 -> (* None *)
            false
        | US4_0(v2792) -> (* Some *)
            v2792
    return v2794 
    }
    |> fun x -> _v19 <- Some x
    let v2795 : Async<bool> = match _v19 with Some x -> x | None -> failwith "async.new_async_unit / _v19=None"
    let _v3 = v2795 
    #endif
    let v2796 : Async<bool> = _v3 
    v2796
and closure14 (v0 : int32) (v1 : string) : (int32 -> Async<bool>) =
    closure15(v0, v1)
and closure13 () (v0 : int32) : (string -> (int32 -> Async<bool>)) =
    closure14(v0)
and closure24 (v0 : US7 option ref) (v1 : US7 option) : US7 option ref =
    v0.Value <- v1 
    v0
and closure25 (v0 : int32 option, v1 : (US7 option -> US7 option ref)) () : unit =
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v2 : int32 = x
    let v3 : US7 = US7_0(v2)
    v3 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> v1 |> ignore
    ()
and closure26 (v0 : int32 option, v1 : bool, v2 : int32, v3 : int64) () : unit =
    let v4 : unit = ()
    let v5 : (unit -> unit) = closure0()
    let v6 : unit = (fun () -> v5 (); v4) ()
    let struct (v20 : Mut0, v21 : Mut1, v22 : Mut2, v23 : Mut3, v24 : Mut4, v25 : int64 option) = TraceState.trace_state.Value
    let v38 : unit = ()
    let v39 : unit = (fun () -> v5 (); v38) ()
    let struct (v53 : Mut0, v54 : Mut1, v55 : Mut2, v56 : Mut3, v57 : Mut4, v58 : int64 option) = TraceState.trace_state.Value
    let v71 : US0 = v57.l0
    let v72 : bool = v55.l0
    let v73 : bool = v72 = false
    let v76 : bool =
        if v73 then
            false
        else
            let v74 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v71
            let v75 : bool = 0 >= v74
            v75
    if v76 then
        let v77 : unit = ()
        let v78 : (unit -> unit) = closure7(v20)
        let v79 : unit = (fun () -> v78 (); v77) ()
        let v82 : unit = ()
        let v83 : unit = (fun () -> v5 (); v82) ()
        let struct (v97 : Mut0, v98 : Mut1, v99 : Mut2, v100 : Mut3, v101 : Mut4, v102 : int64 option) = TraceState.trace_state.Value
        let v115 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v116 : US3 option = None
        let _v116 = ref v116 
        let v117 : US3 option ref = _v116 
        let v118 : (US3 option -> US3 option ref) = closure8(v117)
        let v119 : unit = ()
        let v120 : (unit -> unit) = closure9(v102, v118)
        let v121 : unit = (fun () -> v120 (); v119) ()
        let v124 : US3 option = _v116.Value 
        let v135 : US3 = US3_1
        let v136 : US3 = v124 |> Option.defaultValue v135 
        let v176 : System.DateTime =
            match v136 with
            | US3_1 -> (* None *)
                let v172 : System.DateTime = System.DateTime.Now
                v172
            | US3_0(v140) -> (* Some *)
                let v141 : System.DateTime = System.DateTime.Now
                let v144 : (System.DateTime -> int64) = _.Ticks
                let v145 : int64 = v144 v141
                let v148 : int64 = v145 - v140
                let v149 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v150 : System.TimeSpan = v149 v148
                let v153 : (System.TimeSpan -> int32) = _.Hours
                let v154 : int32 = v153 v150
                let v157 : (System.TimeSpan -> int32) = _.Minutes
                let v158 : int32 = v157 v150
                let v161 : (System.TimeSpan -> int32) = _.Seconds
                let v162 : int32 = v161 v150
                let v165 : (System.TimeSpan -> int32) = _.Milliseconds
                let v166 : int32 = v165 v150
                let v169 : System.DateTime = System.DateTime (1, 1, 1, v154, v158, v162, v166)
                v169
        let v177 : string = method5()
        let v180 : (string -> string) = v176.ToString
        let v181 : string = v180 v177
        let _v115 = v181 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v184 : US3 option = None
        let _v184 = ref v184 
        let v185 : US3 option ref = _v184 
        let v186 : (US3 option -> US3 option ref) = closure8(v185)
        let v187 : unit = ()
        let v188 : (unit -> unit) = closure9(v102, v186)
        let v189 : unit = (fun () -> v188 (); v187) ()
        let v192 : US3 option = _v184.Value 
        let v203 : US3 = US3_1
        let v204 : US3 = v192 |> Option.defaultValue v203 
        let v244 : System.DateTime =
            match v204 with
            | US3_1 -> (* None *)
                let v240 : System.DateTime = System.DateTime.Now
                v240
            | US3_0(v208) -> (* Some *)
                let v209 : System.DateTime = System.DateTime.Now
                let v212 : (System.DateTime -> int64) = _.Ticks
                let v213 : int64 = v212 v209
                let v216 : int64 = v213 - v208
                let v217 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v218 : System.TimeSpan = v217 v216
                let v221 : (System.TimeSpan -> int32) = _.Hours
                let v222 : int32 = v221 v218
                let v225 : (System.TimeSpan -> int32) = _.Minutes
                let v226 : int32 = v225 v218
                let v229 : (System.TimeSpan -> int32) = _.Seconds
                let v230 : int32 = v229 v218
                let v233 : (System.TimeSpan -> int32) = _.Milliseconds
                let v234 : int32 = v233 v218
                let v237 : System.DateTime = System.DateTime (1, 1, 1, v222, v226, v230, v234)
                v237
        let v245 : string = method5()
        let v248 : (string -> string) = v244.ToString
        let v249 : string = v248 v245
        let _v115 = v249 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v252 : string = $"near_sdk::env::block_timestamp()"
        let v253 : uint64 = Fable.Core.RustInterop.emitRustExpr () v252 
        let v254 : US3 option = None
        let _v254 = ref v254 
        let v255 : US3 option ref = _v254 
        let v256 : (US3 option -> US3 option ref) = closure8(v255)
        let v257 : unit = ()
        let v258 : (unit -> unit) = closure9(v102, v256)
        let v259 : unit = (fun () -> v258 (); v257) ()
        let v262 : US3 option = _v254.Value 
        let v273 : US3 = US3_1
        let v274 : US3 = v262 |> Option.defaultValue v273 
        let v283 : uint64 =
            match v274 with
            | US3_1 -> (* None *)
                v253
            | US3_0(v278) -> (* Some *)
                let v279 : (int64 -> uint64) = uint64
                let v280 : uint64 = v279 v278
                let v281 : uint64 = v253 - v280
                v281
        let v284 : uint64 = v283 / 1000000000UL
        let v285 : uint64 = v284 % 60UL
        let v286 : uint64 = v284 / 60UL
        let v287 : uint64 = v286 % 60UL
        let v288 : uint64 = v284 / 3600UL
        let v289 : uint64 = v288 % 24UL
        let v290 : string = $"format!(\"{{:02}}:{{:02}}:{{:02}}\", $0, $1, $2)"
        let v291 : std_string_String = Fable.Core.RustInterop.emitRustExpr struct (v289, v287, v285) v290 
        let v292 : string = "fable_library_rust::String_::fromString($0)"
        let v293 : string = Fable.Core.RustInterop.emitRustExpr v291 v292 
        let _v115 = v293 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v294 : US3 option = None
        let _v294 = ref v294 
        let v295 : US3 option ref = _v294 
        let v296 : (US3 option -> US3 option ref) = closure8(v295)
        let v297 : unit = ()
        let v298 : (unit -> unit) = closure9(v102, v296)
        let v299 : unit = (fun () -> v298 (); v297) ()
        let v302 : US3 option = _v294.Value 
        let v313 : US3 = US3_1
        let v314 : US3 = v302 |> Option.defaultValue v313 
        let v354 : System.DateTime =
            match v314 with
            | US3_1 -> (* None *)
                let v350 : System.DateTime = System.DateTime.Now
                v350
            | US3_0(v318) -> (* Some *)
                let v319 : System.DateTime = System.DateTime.Now
                let v322 : (System.DateTime -> int64) = _.Ticks
                let v323 : int64 = v322 v319
                let v326 : int64 = v323 - v318
                let v327 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v328 : System.TimeSpan = v327 v326
                let v331 : (System.TimeSpan -> int32) = _.Hours
                let v332 : int32 = v331 v328
                let v335 : (System.TimeSpan -> int32) = _.Minutes
                let v336 : int32 = v335 v328
                let v339 : (System.TimeSpan -> int32) = _.Seconds
                let v340 : int32 = v339 v328
                let v343 : (System.TimeSpan -> int32) = _.Milliseconds
                let v344 : int32 = v343 v328
                let v347 : System.DateTime = System.DateTime (1, 1, 1, v332, v336, v340, v344)
                v347
        let v355 : string = method6()
        let v358 : (string -> string) = v354.ToString
        let v359 : string = v358 v355
        let _v115 = v359 
        #endif
#if FABLE_COMPILER_PYTHON
        let v362 : US3 option = None
        let _v362 = ref v362 
        let v363 : US3 option ref = _v362 
        let v364 : (US3 option -> US3 option ref) = closure8(v363)
        let v365 : unit = ()
        let v366 : (unit -> unit) = closure9(v102, v364)
        let v367 : unit = (fun () -> v366 (); v365) ()
        let v370 : US3 option = _v362.Value 
        let v381 : US3 = US3_1
        let v382 : US3 = v370 |> Option.defaultValue v381 
        let v422 : System.DateTime =
            match v382 with
            | US3_1 -> (* None *)
                let v418 : System.DateTime = System.DateTime.Now
                v418
            | US3_0(v386) -> (* Some *)
                let v387 : System.DateTime = System.DateTime.Now
                let v390 : (System.DateTime -> int64) = _.Ticks
                let v391 : int64 = v390 v387
                let v394 : int64 = v391 - v386
                let v395 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v396 : System.TimeSpan = v395 v394
                let v399 : (System.TimeSpan -> int32) = _.Hours
                let v400 : int32 = v399 v396
                let v403 : (System.TimeSpan -> int32) = _.Minutes
                let v404 : int32 = v403 v396
                let v407 : (System.TimeSpan -> int32) = _.Seconds
                let v408 : int32 = v407 v396
                let v411 : (System.TimeSpan -> int32) = _.Milliseconds
                let v412 : int32 = v411 v396
                let v415 : System.DateTime = System.DateTime (1, 1, 1, v400, v404, v408, v412)
                v415
        let v423 : string = method6()
        let v426 : (string -> string) = v422.ToString
        let v427 : string = v426 v423
        let _v115 = v427 
        #endif
#else
        let v430 : US3 option = None
        let _v430 = ref v430 
        let v431 : US3 option ref = _v430 
        let v432 : (US3 option -> US3 option ref) = closure8(v431)
        let v433 : unit = ()
        let v434 : (unit -> unit) = closure9(v102, v432)
        let v435 : unit = (fun () -> v434 (); v433) ()
        let v438 : US3 option = _v430.Value 
        let v449 : US3 = US3_1
        let v450 : US3 = v438 |> Option.defaultValue v449 
        let v490 : System.DateTime =
            match v450 with
            | US3_1 -> (* None *)
                let v486 : System.DateTime = System.DateTime.Now
                v486
            | US3_0(v454) -> (* Some *)
                let v455 : System.DateTime = System.DateTime.Now
                let v458 : (System.DateTime -> int64) = _.Ticks
                let v459 : int64 = v458 v455
                let v462 : int64 = v459 - v454
                let v463 : (int64 -> System.TimeSpan) = System.TimeSpan 
                let v464 : System.TimeSpan = v463 v462
                let v467 : (System.TimeSpan -> int32) = _.Hours
                let v468 : int32 = v467 v464
                let v471 : (System.TimeSpan -> int32) = _.Minutes
                let v472 : int32 = v471 v464
                let v475 : (System.TimeSpan -> int32) = _.Seconds
                let v476 : int32 = v475 v464
                let v479 : (System.TimeSpan -> int32) = _.Milliseconds
                let v480 : int32 = v479 v464
                let v483 : System.DateTime = System.DateTime (1, 1, 1, v468, v472, v476, v480)
                v483
        let v491 : string = method6()
        let v494 : (string -> string) = v490.ToString
        let v495 : string = v494 v491
        let _v115 = v495 
        #endif
        let v498 : string = _v115 
        
        
        
        
        
        let v568 : string = "Verbose"
        let v569 : (unit -> string) = v568.ToLower
        let v570 : string = v569 ()
        let v573 : string = v570.PadLeft (7, ' ')
        let v587 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v588 : string = "inline_colorization::color_bright_black"
        let v589 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v588 
        let v590 : string = "&*$0"
        let v591 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v573 v590 
        let v592 : string = "inline_colorization::color_reset"
        let v593 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v592 
        let v594 : string = "\"{v589}{v591}{v593}\""
        let v595 : string = @$"format!(" + v594 + ")"
        let v596 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v595 
        let v597 : string = "fable_library_rust::String_::fromString($0)"
        let v598 : string = Fable.Core.RustInterop.emitRustExpr v596 v597 
        let _v587 = v598 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v599 : string = "inline_colorization::color_bright_black"
        let v600 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v599 
        let v601 : string = "&*$0"
        let v602 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v573 v601 
        let v603 : string = "inline_colorization::color_reset"
        let v604 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v603 
        let v605 : string = "\"{v600}{v602}{v604}\""
        let v606 : string = @$"format!(" + v605 + ")"
        let v607 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v606 
        let v608 : string = "fable_library_rust::String_::fromString($0)"
        let v609 : string = Fable.Core.RustInterop.emitRustExpr v607 v608 
        let _v587 = v609 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v610 : string = "inline_colorization::color_bright_black"
        let v611 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v610 
        let v612 : string = "&*$0"
        let v613 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v573 v612 
        let v614 : string = "inline_colorization::color_reset"
        let v615 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v614 
        let v616 : string = "\"{v611}{v613}{v615}\""
        let v617 : string = @$"format!(" + v616 + ")"
        let v618 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v617 
        let v619 : string = "fable_library_rust::String_::fromString($0)"
        let v620 : string = Fable.Core.RustInterop.emitRustExpr v618 v619 
        let _v587 = v620 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v621 : string = "\u001b[90m"
        let v622 : string = method7()
        let v623 : string = v621 + v573 
        let v624 : string = v623 + v622 
        let _v587 = v624 
        #endif
#if FABLE_COMPILER_PYTHON
        let v625 : string = "\u001b[90m"
        let v626 : string = method7()
        let v627 : string = v625 + v573 
        let v628 : string = v627 + v626 
        let _v587 = v628 
        #endif
#else
        let v629 : string = "\u001b[90m"
        let v630 : string = method7()
        let v631 : string = v629 + v573 
        let v632 : string = v631 + v630 
        let _v587 = v632 
        #endif
        let v633 : string = _v587 
        let v639 : int64 = v97.l0
        let v640 : string = method8()
        let v641 : Mut3 = {l0 = v640} : Mut3
        let v642 : string = "{ "
        let v643 : string = $"{v642}"
        let v646 : unit = ()
        let v647 : (unit -> unit) = closure10(v641, v643)
        let v648 : unit = (fun () -> v647 (); v646) ()
        let v651 : string = "port"
        let v652 : string = $"{v651}"
        let v655 : unit = ()
        let v656 : (unit -> unit) = closure10(v641, v652)
        let v657 : unit = (fun () -> v656 (); v655) ()
        let v660 : string = " = "
        let v661 : string = $"{v660}"
        let v664 : unit = ()
        let v665 : (unit -> unit) = closure10(v641, v661)
        let v666 : unit = (fun () -> v665 (); v664) ()
        let v669 : string = $"{v2}"
        let v672 : unit = ()
        let v673 : (unit -> unit) = closure10(v641, v669)
        let v674 : unit = (fun () -> v673 (); v672) ()
        let v677 : string = "; "
        let v678 : string = $"{v677}"
        let v681 : unit = ()
        let v682 : (unit -> unit) = closure10(v641, v678)
        let v683 : unit = (fun () -> v682 (); v681) ()
        let v686 : string = "retry"
        let v687 : string = $"{v686}"
        let v690 : unit = ()
        let v691 : (unit -> unit) = closure10(v641, v687)
        let v692 : unit = (fun () -> v691 (); v690) ()
        let v695 : string = $"{v660}"
        let v698 : unit = ()
        let v699 : (unit -> unit) = closure10(v641, v695)
        let v700 : unit = (fun () -> v699 (); v698) ()
        let v703 : string = $"{v3}"
        let v706 : unit = ()
        let v707 : (unit -> unit) = closure10(v641, v703)
        let v708 : unit = (fun () -> v707 (); v706) ()
        let v711 : string = $"{v677}"
        let v714 : unit = ()
        let v715 : (unit -> unit) = closure10(v641, v711)
        let v716 : unit = (fun () -> v715 (); v714) ()
        let v719 : string = "timeout"
        let v720 : string = $"{v719}"
        let v723 : unit = ()
        let v724 : (unit -> unit) = closure10(v641, v720)
        let v725 : unit = (fun () -> v724 (); v723) ()
        let v728 : string = $"{v660}"
        let v731 : unit = ()
        let v732 : (unit -> unit) = closure10(v641, v728)
        let v733 : unit = (fun () -> v732 (); v731) ()
        let v736 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v737 : string = "format!(\"{:#?}\", $0)"
        let v738 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v737 
        let v739 : string = "fable_library_rust::String_::fromString($0)"
        let v740 : string = Fable.Core.RustInterop.emitRustExpr v738 v739 
        let _v736 = v740 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v741 : string = "format!(\"{:#?}\", $0)"
        let v742 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v741 
        let v743 : string = "fable_library_rust::String_::fromString($0)"
        let v744 : string = Fable.Core.RustInterop.emitRustExpr v742 v743 
        let _v736 = v744 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v745 : string = "format!(\"{:#?}\", $0)"
        let v746 : std_string_String = Fable.Core.RustInterop.emitRustExpr v0 v745 
        let v747 : string = "fable_library_rust::String_::fromString($0)"
        let v748 : string = Fable.Core.RustInterop.emitRustExpr v746 v747 
        let _v736 = v748 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v749 : string = $"%A{v0}"
        let _v736 = v749 
        #endif
#if FABLE_COMPILER_PYTHON
        let v752 : string = $"%A{v0}"
        let _v736 = v752 
        #endif
#else
        let v755 : string = $"%A{v0}"
        let _v736 = v755 
        #endif
        let v758 : string = _v736 
        let v763 : string = $"{v758}"
        let v766 : unit = ()
        let v767 : (unit -> unit) = closure10(v641, v763)
        let v768 : unit = (fun () -> v767 (); v766) ()
        let v771 : string = $"{v677}"
        let v774 : unit = ()
        let v775 : (unit -> unit) = closure10(v641, v771)
        let v776 : unit = (fun () -> v775 (); v774) ()
        let v779 : string = "status"
        let v780 : string = $"{v779}"
        let v783 : unit = ()
        let v784 : (unit -> unit) = closure10(v641, v780)
        let v785 : unit = (fun () -> v784 (); v783) ()
        let v788 : string = $"{v660}"
        let v791 : unit = ()
        let v792 : (unit -> unit) = closure10(v641, v788)
        let v793 : unit = (fun () -> v792 (); v791) ()
        let v798 : string =
            if v1 then
                let v796 : string = "true"
                v796
            else
                let v797 : string = "false"
                v797
        let v799 : string = $"{v798}"
        let v802 : unit = ()
        let v803 : (unit -> unit) = closure10(v641, v799)
        let v804 : unit = (fun () -> v803 (); v802) ()
        let v807 : string = " }"
        let v808 : string = $"{v807}"
        let v811 : unit = ()
        let v812 : (unit -> unit) = closure10(v641, v808)
        let v813 : unit = (fun () -> v812 (); v811) ()
        let v816 : string = v641.l0
        let v817 : string = "networking.wait_for_port_access"
        let v818 : string = $"{v498} {v633} #{v639} %s{v817} / {v816}"
        let v821 : char list = []
        let v822 : (char list -> (char [])) = List.toArray
        let v823 : (char []) = v822 v821
        let v826 : string = v818.TrimStart v823 
        let v844 : char list = []
        let v845 : char list = '/' :: v844 
        let v848 : char list = ' ' :: v845 
        let v851 : (char list -> (char [])) = List.toArray
        let v852 : (char []) = v851 v848
        let v855 : string = v826.TrimEnd v852 
        let v873 : (string -> unit) = closure11()
        let v874 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v875 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v855 v875 
        let _v874 = () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v876 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v855 v876 
        let _v874 = () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v877 : string = v23.l0
        let v878 : bool = v877 = ""
        let v886 : string =
            if v878 then
                v855
            else
                let v879 : bool = v855 = ""
                if v879 then
                    let v880 : string = v23.l0
                    v880
                else
                    let v881 : string = v23.l0
                    let v882 : string = "\n"
                    let v883 : string = v881 + v882 
                    let v884 : string = v883 + v855 
                    v884
        let v887 : string = "&*$0"
        let v888 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v886 v887 
        let v889 : string = $"$0.chars()"
        let v890 : Mut<_> = Fable.Core.RustInterop.emitRustExpr v888 v889 
        let v891 : string = "v890"
        let v892 : _ = Fable.Core.RustInterop.emitRustExpr () v891 
        let v893 : string = "v892.collect::<Vec<_>>()"
        let v894 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v893 
        let v895 : string = "$0.chunks(15000).map(|x| x.into_iter().map(|x| x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"
        let v896 : Vec<Vec<char>> = Fable.Core.RustInterop.emitRustExpr v894 v895 
        let v897 : string = "true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"
        let v898 : bool = Fable.Core.RustInterop.emitRustExpr v896 v897 
        let v899 : string = "x"
        let v900 : Vec<char> = Fable.Core.RustInterop.emitRustExpr () v899 
        let v901 : string = "String::from_iter($0)"
        let v902 : std_string_String = Fable.Core.RustInterop.emitRustExpr v900 v901 
        let v903 : string = "true; $0 }).collect::<Vec<_>>()"
        let v904 : bool = Fable.Core.RustInterop.emitRustExpr v902 v903 
        let v905 : string = "_vec_map"
        let v906 : Vec<std_string_String> = Fable.Core.RustInterop.emitRustExpr () v905 
        let v907 : string = "$0.len()"
        let v908 : unativeint = Fable.Core.RustInterop.emitRustExpr v906 v907 
        let v909 : (unativeint -> int32) = int32
        let v910 : int32 = v909 v908
        let v911 : string = ""
        let v912 : bool = v855 <> v911 
        let v916 : bool =
            if v912 then
                let v915 : bool = v910 <= 1
                v915
            else
                false
        if v916 then
            v23.l0 <- v886
            ()
        else
            v23.l0 <- v911
            let v917 : string = "true; $0.into_iter().for_each(|x| { //"
            let v918 : bool = Fable.Core.RustInterop.emitRustExpr v906 v917 
            let v919 : string = "x"
            let v920 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v919 
            let v921 : string = $"near_sdk::log!(\"{{}}\", $0)"
            Fable.Core.RustInterop.emitRustExpr v920 v921 
            let v922 : string = $"true;"
            let v923 : bool = Fable.Core.RustInterop.emitRustExpr () v922 
            let v924 : string = "true; }}); { //"
            let v925 : bool = Fable.Core.RustInterop.emitRustExpr () v924 
            ()
        let _v874 = () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        v873 v855
        let _v874 = () 
        #endif
#if FABLE_COMPILER_PYTHON
        v873 v855
        let _v874 = () 
        #endif
#else
        v873 v855
        let _v874 = () 
        #endif
        _v874 
        let v926 : (string -> unit) = v21.l0
        v926 v855
and method9 (v0 : int32 option, v1 : bool, v2 : string, v3 : int32, v4 : int64) : Async<int64> =
    let v5 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v6 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v6 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v9 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v9 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v12 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v12 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v15 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v15 
    #endif
#if FABLE_COMPILER_PYTHON
    let v18 : Async<int64> = null |> unbox<Async<int64>>
    let _v5 = v18 
    #endif
#else
    let v21 : Async<int64> option = None
    let mutable _v21 = v21 
    async {
    let v22 : US7 option = None
    let _v22 = ref v22 
    let v23 : US7 option ref = _v22 
    let v24 : (US7 option -> US7 option ref) = closure24(v23)
    let v25 : unit = ()
    let v26 : (unit -> unit) = closure25(v0, v24)
    let v27 : unit = (fun () -> v26 (); v25) ()
    let v30 : US7 option = _v22.Value 
    let v41 : US7 = US7_1
    let v42 : US7 = v30 |> Option.defaultValue v41 
    let v3756 : Async<bool> =
        match v42 with
        | US7_1 -> (* None *)
            let v46 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v47 : Async<bool> = null |> unbox<Async<bool>>
            let _v46 = v47 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v50 : Async<bool> = null |> unbox<Async<bool>>
            let _v46 = v50 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v53 : Async<bool> = null |> unbox<Async<bool>>
            let _v46 = v53 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v56 : Async<bool> = null |> unbox<Async<bool>>
            let _v46 = v56 
            #endif
#if FABLE_COMPILER_PYTHON
            let v59 : Async<bool> = null |> unbox<Async<bool>>
            let _v46 = v59 
            #endif
#else
            let v62 : Async<bool> option = None
            let mutable _v62 = v62 
            async {
            let v63 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v63 = v63 
            let v64 : System.Threading.CancellationToken = v63 
            let v65 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v65 = v65 
            let v66 : System.Net.Sockets.TcpClient = v65 
            try
            let v67 : System.Threading.Tasks.ValueTask = v66.ConnectAsync (v2, v3, v64)
            let v68 : (unit -> System.Threading.Tasks.Task) = v67.AsTask
            let v69 : System.Threading.Tasks.Task = v68 ()
            let v70 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v71 : Async<unit> = null |> unbox<Async<unit>>
            let _v70 = v71 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v74 : Async<unit> = null |> unbox<Async<unit>>
            let _v70 = v74 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v77 : Async<unit> = null |> unbox<Async<unit>>
            let _v70 = v77 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v80 : Async<unit> = null |> unbox<Async<unit>>
            let _v70 = v80 
            #endif
#if FABLE_COMPILER_PYTHON
            let v83 : Async<unit> = null |> unbox<Async<unit>>
            let _v70 = v83 
            #endif
#else
            let v86 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v87 : Async<unit> = v86 v69
            let _v70 = v87 
            #endif
            let v88 : Async<unit> = _v70 
            do! v88 
            return true 
            with ex ->
            let v93 : exn = ex
            let v94 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v95 : string = $"%A{v93}"
            let _v94 = v95 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v98 : string = $"%A{v93}"
            let _v94 = v98 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v101 : string = $"%A{v93}"
            let _v94 = v101 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v104 : string = $"%A{v93}"
            let _v94 = v104 
            #endif
#if FABLE_COMPILER_PYTHON
            let v107 : string = $"%A{v93}"
            let _v94 = v107 
            #endif
#else
            let v110 : string = $"{v93.GetType ()}: {v93.Message}"
            let _v94 = v110 
            #endif
            let v111 : string = _v94 
            let v116 : unit = ()
            let v117 : (unit -> unit) = closure6(v3, v111)
            let v118 : unit = (fun () -> v117 (); v116) ()
            return false 
            (*
            let v949 : bool = *)
            }
            |> fun x -> _v62 <- Some x
            let v950 : Async<bool> = match _v62 with Some x -> x | None -> failwith "async.new_async_unit / _v62=None"
            let _v46 = v950 
            #endif
            let v951 : Async<bool> = _v46 
            v951
        | US7_0(v956) -> (* Some *)
            let v957 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v958 : Async<bool> = null |> unbox<Async<bool>>
            let _v957 = v958 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v961 : Async<bool> = null |> unbox<Async<bool>>
            let _v957 = v961 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v964 : Async<bool> = null |> unbox<Async<bool>>
            let _v957 = v964 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v967 : Async<bool> = null |> unbox<Async<bool>>
            let _v957 = v967 
            #endif
#if FABLE_COMPILER_PYTHON
            let v970 : Async<bool> = null |> unbox<Async<bool>>
            let _v957 = v970 
            #endif
#else
            let v973 : Async<bool> option = None
            let mutable _v973 = v973 
            async {
            let v974 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v975 : Async<bool> = null |> unbox<Async<bool>>
            let _v974 = v975 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v978 : Async<bool> = null |> unbox<Async<bool>>
            let _v974 = v978 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v981 : Async<bool> = null |> unbox<Async<bool>>
            let _v974 = v981 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v984 : Async<bool> = null |> unbox<Async<bool>>
            let _v974 = v984 
            #endif
#if FABLE_COMPILER_PYTHON
            let v987 : Async<bool> = null |> unbox<Async<bool>>
            let _v974 = v987 
            #endif
#else
            let v990 : Async<bool> option = None
            let mutable _v990 = v990 
            async {
            let v991 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v991 = v991 
            let v992 : System.Threading.CancellationToken = v991 
            let v993 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v993 = v993 
            let v994 : System.Net.Sockets.TcpClient = v993 
            try
            let v995 : System.Threading.Tasks.ValueTask = v994.ConnectAsync (v2, v3, v992)
            let v996 : (unit -> System.Threading.Tasks.Task) = v995.AsTask
            let v997 : System.Threading.Tasks.Task = v996 ()
            let v998 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v999 : Async<unit> = null |> unbox<Async<unit>>
            let _v998 = v999 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1002 : Async<unit> = null |> unbox<Async<unit>>
            let _v998 = v1002 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1005 : Async<unit> = null |> unbox<Async<unit>>
            let _v998 = v1005 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1008 : Async<unit> = null |> unbox<Async<unit>>
            let _v998 = v1008 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1011 : Async<unit> = null |> unbox<Async<unit>>
            let _v998 = v1011 
            #endif
#else
            let v1014 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v1015 : Async<unit> = v1014 v997
            let _v998 = v1015 
            #endif
            let v1016 : Async<unit> = _v998 
            do! v1016 
            return true 
            with ex ->
            let v1021 : exn = ex
            let v1022 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1023 : string = $"%A{v1021}"
            let _v1022 = v1023 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1026 : string = $"%A{v1021}"
            let _v1022 = v1026 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1029 : string = $"%A{v1021}"
            let _v1022 = v1029 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1032 : string = $"%A{v1021}"
            let _v1022 = v1032 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1035 : string = $"%A{v1021}"
            let _v1022 = v1035 
            #endif
#else
            let v1038 : string = $"{v1021.GetType ()}: {v1021.Message}"
            let _v1022 = v1038 
            #endif
            let v1039 : string = _v1022 
            let v1044 : unit = ()
            let v1045 : (unit -> unit) = closure6(v3, v1039)
            let v1046 : unit = (fun () -> v1045 (); v1044) ()
            return false 
            (*
            let v1877 : bool = *)
            }
            |> fun x -> _v990 <- Some x
            let v1878 : Async<bool> = match _v990 with Some x -> x | None -> failwith "async.new_async_unit / _v990=None"
            let _v974 = v1878 
            #endif
            let v1879 : Async<bool> = _v974 
            let v1884 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1885 : Async<US4> = null |> unbox<Async<US4>>
            let _v1884 = v1885 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1888 : Async<US4> = null |> unbox<Async<US4>>
            let _v1884 = v1888 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1891 : Async<US4> = null |> unbox<Async<US4>>
            let _v1884 = v1891 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1894 : Async<US4> = null |> unbox<Async<US4>>
            let _v1884 = v1894 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1897 : Async<US4> = null |> unbox<Async<US4>>
            let _v1884 = v1897 
            #endif
#else
            let v1900 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1901 : Async<US4> = null |> unbox<Async<US4>>
            let _v1900 = v1901 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1904 : Async<US4> = null |> unbox<Async<US4>>
            let _v1900 = v1904 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1907 : Async<US4> = null |> unbox<Async<US4>>
            let _v1900 = v1907 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1910 : Async<US4> = null |> unbox<Async<US4>>
            let _v1900 = v1910 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1913 : Async<US4> = null |> unbox<Async<US4>>
            let _v1900 = v1913 
            #endif
#else
            let v1916 : Async<US4> option = None
            let mutable _v1916 = v1916 
            async {
            let v1917 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1918 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1917 = v1918 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1921 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1917 = v1921 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1924 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1917 = v1924 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1927 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1917 = v1927 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1930 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1917 = v1930 
            #endif
#else
            let v1933 : Async<Async<bool>> = Async.StartChild (v1879, v956)
            let _v1917 = v1933 
            #endif
            let v1934 : Async<Async<bool>> = _v1917 
            let! v1934 = v1934 
            let v1939 : Async<bool> = v1934 
            let v1940 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1941 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1940 = v1941 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1944 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1940 = v1944 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1947 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1940 = v1947 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1950 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1940 = v1950 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1953 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1940 = v1953 
            #endif
#else
            let v1956 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v1957 : Async<Choice<bool, exn>> = v1956 v1939
            let _v1940 = v1957 
            #endif
            let v1958 : Async<Choice<bool, exn>> = _v1940 
            let v1963 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1964 : Async<US5> = null |> unbox<Async<US5>>
            let _v1963 = v1964 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1967 : Async<US5> = null |> unbox<Async<US5>>
            let _v1963 = v1967 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1970 : Async<US5> = null |> unbox<Async<US5>>
            let _v1963 = v1970 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1973 : Async<US5> = null |> unbox<Async<US5>>
            let _v1963 = v1973 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1976 : Async<US5> = null |> unbox<Async<US5>>
            let _v1963 = v1976 
            #endif
#else
            let v1979 : Async<US5> option = None
            let mutable _v1979 = v1979 
            async {
            let! v1958 = v1958 
            let v1980 : Choice<bool, exn> = v1958 
            let v1981 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1982 : US5 = null |> unbox<US5>
            let _v1981 = v1982 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1985 : US5 = null |> unbox<US5>
            let _v1981 = v1985 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1988 : US5 = null |> unbox<US5>
            let _v1981 = v1988 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1991 : US5 = null |> unbox<US5>
            let _v1981 = v1991 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1994 : US5 = null |> unbox<US5>
            let _v1981 = v1994 
            #endif
#else
            let v1997 : (bool -> US5) = closure16()
            let v1998 : (exn -> US5) = closure17()
            let v1999 : US5 = match v1980 with Choice1Of2 x -> v1997 x | Choice2Of2 x -> v1998 x
            let _v1981 = v1999 
            #endif
            let v2000 : US5 = _v1981 
            return v2000 
            }
            |> fun x -> _v1979 <- Some x
            let v2005 : Async<US5> = match _v1979 with Some x -> x | None -> failwith "async.new_async_unit / _v1979=None"
            let _v1963 = v2005 
            #endif
            let v2006 : Async<US5> = _v1963 
            let v2011 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v2012 : Async<US6> = null |> unbox<Async<US6>>
            let _v2011 = v2012 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v2015 : Async<US6> = null |> unbox<Async<US6>>
            let _v2011 = v2015 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v2018 : Async<US6> = null |> unbox<Async<US6>>
            let _v2011 = v2018 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v2021 : Async<US6> = null |> unbox<Async<US6>>
            let _v2011 = v2021 
            #endif
#if FABLE_COMPILER_PYTHON
            let v2024 : Async<US6> = null |> unbox<Async<US6>>
            let _v2011 = v2024 
            #endif
#else
            let v2027 : Async<US6> option = None
            let mutable _v2027 = v2027 
            async {
            let! v2006 = v2006 
            let v2028 : US5 = v2006 
            let v2034 : US6 =
                match v2028 with
                | US5_0(v2029) -> (* C1of2 *)
                    US6_0(v2029)
                | US5_1(v2031) -> (* C2of2 *)
                    US6_1(v2031)
            return v2034 
            }
            |> fun x -> _v2027 <- Some x
            let v2035 : Async<US6> = match _v2027 with Some x -> x | None -> failwith "async.new_async_unit / _v2027=None"
            let _v2011 = v2035 
            #endif
            let v2036 : Async<US6> = _v2011 
            let v2041 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v2042 : Async<US4> = null |> unbox<Async<US4>>
            let _v2041 = v2042 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v2045 : Async<US4> = null |> unbox<Async<US4>>
            let _v2041 = v2045 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v2048 : Async<US4> = null |> unbox<Async<US4>>
            let _v2041 = v2048 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v2051 : Async<US4> = null |> unbox<Async<US4>>
            let _v2041 = v2051 
            #endif
#if FABLE_COMPILER_PYTHON
            let v2054 : Async<US4> = null |> unbox<Async<US4>>
            let _v2041 = v2054 
            #endif
#else
            let v2057 : Async<US4> option = None
            let mutable _v2057 = v2057 
            async {
            let! v2036 = v2036 
            let v2058 : US6 = v2036 
            let v3727 : US4 =
                match v2058 with
                | US6_1(v2061) -> (* Error *)
                    let v2062 : string = $"%A{v2061}"
                    let v2065 : string = "System.TimeoutException"
                    let v2066 : bool = v2062.Contains v2065 
                    if v2066 then
                        let v2069 : unit = ()
                        let v2070 : (unit -> unit) = closure18(v956)
                        let v2071 : unit = (fun () -> v2070 (); v2069) ()
                        US4_1
                    else
                        let v2869 : unit = ()
                        let v2870 : (unit -> unit) = closure19(v956, v2061)
                        let v2871 : unit = (fun () -> v2870 (); v2869) ()
                        US4_1
                | US6_0(v2059) -> (* Ok *)
                    US4_0(v2059)
            return v3727 
            }
            |> fun x -> _v2057 <- Some x
            let v3728 : Async<US4> = match _v2057 with Some x -> x | None -> failwith "async.new_async_unit / _v2057=None"
            let _v2041 = v3728 
            #endif
            let v3729 : Async<US4> = _v2041 
            return! v3729 
            }
            |> fun x -> _v1916 <- Some x
            let v3734 : Async<US4> = match _v1916 with Some x -> x | None -> failwith "async.new_async_unit / _v1916=None"
            let _v1900 = v3734 
            #endif
            let v3735 : Async<US4> = _v1900 
            let _v1884 = v3735 
            #endif
            let v3740 : Async<US4> = _v1884 
            let! v3740 = v3740 
            let v3745 : US4 = v3740 
            let v3748 : bool =
                match v3745 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v3746) -> (* Some *)
                    v3746
            return v3748 
            }
            |> fun x -> _v973 <- Some x
            let v3749 : Async<bool> = match _v973 with Some x -> x | None -> failwith "async.new_async_unit / _v973=None"
            let _v957 = v3749 
            #endif
            let v3750 : Async<bool> = _v957 
            v3750
    let! v3756 = v3756 
    let v3757 : bool = v3756 
    let v3758 : bool = v3757 = v1
    if v3758 then
        return v4 
        (*
        ()
    else
        *) else
        let v3759 : int64 = v4 % 100L
        let v3760 : bool = v3759 = 0L
        if v3760 then
            let v3761 : unit = ()
            let v3762 : (unit -> unit) = closure26(v0, v1, v3, v4)
            let v3763 : unit = (fun () -> v3762 (); v3761) ()
            ()
        let v4687 : unit = ()
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v4688 : Async<unit> = null |> unbox<Async<unit>>
        let _v4687 = v4688 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v4691 : Async<unit> = null |> unbox<Async<unit>>
        let _v4687 = v4691 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v4694 : Async<unit> = null |> unbox<Async<unit>>
        let _v4687 = v4694 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v4697 : Async<unit> = null |> unbox<Async<unit>>
        let _v4687 = v4697 
        #endif
#if FABLE_COMPILER_PYTHON
        let v4700 : Async<unit> = null |> unbox<Async<unit>>
        let _v4687 = v4700 
        #endif
#else
        let v4703 : (int32 -> Async<unit>) = Async.Sleep
        let v4704 : Async<unit> = v4703 10
        let _v4687 = v4704 
        #endif
        let v4705 : Async<unit> = _v4687 
        do! v4705 
        let v4710 : int64 = v4 + 1L
        let v4711 : Async<int64> = method9(v0, v1, v2, v3, v4710)
        return! v4711 
        (*
        ()
    *)
    }
    |> fun x -> _v21 <- Some x
    let v4712 : Async<int64> = match _v21 with Some x -> x | None -> failwith "async.new_async_unit / _v21=None"
    let _v5 = v4712 
    #endif
    let v4713 : Async<int64> = _v5 
    v4713
and closure23 (v0 : int32 option, v1 : bool, v2 : string) (v3 : int32) : Async<int64> =
    let v4 : int64 = 0L
    method9(v0, v1, v2, v3, v4)
and closure22 (v0 : int32 option, v1 : bool) (v2 : string) : (int32 -> Async<int64>) =
    closure23(v0, v1, v2)
and closure21 (v0 : int32 option) (v1 : bool) : (string -> (int32 -> Async<int64>)) =
    closure22(v0, v1)
and closure20 () (v0 : int32 option) : (bool -> (string -> (int32 -> Async<int64>))) =
    closure21(v0)
and method10 (v0 : int32 option, v1 : string, v2 : int32) : Async<int32> =
    let v3 : unit = ()
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v4 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v7 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v7 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v10 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v10 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v13 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v13 
    #endif
#if FABLE_COMPILER_PYTHON
    let v16 : Async<int32> = null |> unbox<Async<int32>>
    let _v3 = v16 
    #endif
#else
    let v19 : Async<int32> option = None
    let mutable _v19 = v19 
    async {
    let v20 : US7 option = None
    let _v20 = ref v20 
    let v21 : US7 option ref = _v20 
    let v22 : (US7 option -> US7 option ref) = closure24(v21)
    let v23 : unit = ()
    let v24 : (unit -> unit) = closure25(v0, v22)
    let v25 : unit = (fun () -> v24 (); v23) ()
    let v28 : US7 option = _v20.Value 
    let v39 : US7 = US7_1
    let v40 : US7 = v28 |> Option.defaultValue v39 
    let v3754 : Async<bool> =
        match v40 with
        | US7_1 -> (* None *)
            let v44 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v45 : Async<bool> = null |> unbox<Async<bool>>
            let _v44 = v45 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v48 : Async<bool> = null |> unbox<Async<bool>>
            let _v44 = v48 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v51 : Async<bool> = null |> unbox<Async<bool>>
            let _v44 = v51 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v54 : Async<bool> = null |> unbox<Async<bool>>
            let _v44 = v54 
            #endif
#if FABLE_COMPILER_PYTHON
            let v57 : Async<bool> = null |> unbox<Async<bool>>
            let _v44 = v57 
            #endif
#else
            let v60 : Async<bool> option = None
            let mutable _v60 = v60 
            async {
            let v61 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v61 = v61 
            let v62 : System.Threading.CancellationToken = v61 
            let v63 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v63 = v63 
            let v64 : System.Net.Sockets.TcpClient = v63 
            try
            let v65 : System.Threading.Tasks.ValueTask = v64.ConnectAsync (v1, v2, v62)
            let v66 : (unit -> System.Threading.Tasks.Task) = v65.AsTask
            let v67 : System.Threading.Tasks.Task = v66 ()
            let v68 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v69 : Async<unit> = null |> unbox<Async<unit>>
            let _v68 = v69 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v72 : Async<unit> = null |> unbox<Async<unit>>
            let _v68 = v72 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v75 : Async<unit> = null |> unbox<Async<unit>>
            let _v68 = v75 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v78 : Async<unit> = null |> unbox<Async<unit>>
            let _v68 = v78 
            #endif
#if FABLE_COMPILER_PYTHON
            let v81 : Async<unit> = null |> unbox<Async<unit>>
            let _v68 = v81 
            #endif
#else
            let v84 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v85 : Async<unit> = v84 v67
            let _v68 = v85 
            #endif
            let v86 : Async<unit> = _v68 
            do! v86 
            return true 
            with ex ->
            let v91 : exn = ex
            let v92 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v93 : string = $"%A{v91}"
            let _v92 = v93 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v96 : string = $"%A{v91}"
            let _v92 = v96 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v99 : string = $"%A{v91}"
            let _v92 = v99 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v102 : string = $"%A{v91}"
            let _v92 = v102 
            #endif
#if FABLE_COMPILER_PYTHON
            let v105 : string = $"%A{v91}"
            let _v92 = v105 
            #endif
#else
            let v108 : string = $"{v91.GetType ()}: {v91.Message}"
            let _v92 = v108 
            #endif
            let v109 : string = _v92 
            let v114 : unit = ()
            let v115 : (unit -> unit) = closure6(v2, v109)
            let v116 : unit = (fun () -> v115 (); v114) ()
            return false 
            (*
            let v947 : bool = *)
            }
            |> fun x -> _v60 <- Some x
            let v948 : Async<bool> = match _v60 with Some x -> x | None -> failwith "async.new_async_unit / _v60=None"
            let _v44 = v948 
            #endif
            let v949 : Async<bool> = _v44 
            v949
        | US7_0(v954) -> (* Some *)
            let v955 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v956 : Async<bool> = null |> unbox<Async<bool>>
            let _v955 = v956 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v959 : Async<bool> = null |> unbox<Async<bool>>
            let _v955 = v959 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v962 : Async<bool> = null |> unbox<Async<bool>>
            let _v955 = v962 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v965 : Async<bool> = null |> unbox<Async<bool>>
            let _v955 = v965 
            #endif
#if FABLE_COMPILER_PYTHON
            let v968 : Async<bool> = null |> unbox<Async<bool>>
            let _v955 = v968 
            #endif
#else
            let v971 : Async<bool> option = None
            let mutable _v971 = v971 
            async {
            let v972 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v973 : Async<bool> = null |> unbox<Async<bool>>
            let _v972 = v973 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v976 : Async<bool> = null |> unbox<Async<bool>>
            let _v972 = v976 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v979 : Async<bool> = null |> unbox<Async<bool>>
            let _v972 = v979 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v982 : Async<bool> = null |> unbox<Async<bool>>
            let _v972 = v982 
            #endif
#if FABLE_COMPILER_PYTHON
            let v985 : Async<bool> = null |> unbox<Async<bool>>
            let _v972 = v985 
            #endif
#else
            let v988 : Async<bool> option = None
            let mutable _v988 = v988 
            async {
            let v989 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v989 = v989 
            let v990 : System.Threading.CancellationToken = v989 
            let v991 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v991 = v991 
            let v992 : System.Net.Sockets.TcpClient = v991 
            try
            let v993 : System.Threading.Tasks.ValueTask = v992.ConnectAsync (v1, v2, v990)
            let v994 : (unit -> System.Threading.Tasks.Task) = v993.AsTask
            let v995 : System.Threading.Tasks.Task = v994 ()
            let v996 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v997 : Async<unit> = null |> unbox<Async<unit>>
            let _v996 = v997 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1000 : Async<unit> = null |> unbox<Async<unit>>
            let _v996 = v1000 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1003 : Async<unit> = null |> unbox<Async<unit>>
            let _v996 = v1003 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1006 : Async<unit> = null |> unbox<Async<unit>>
            let _v996 = v1006 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1009 : Async<unit> = null |> unbox<Async<unit>>
            let _v996 = v1009 
            #endif
#else
            let v1012 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v1013 : Async<unit> = v1012 v995
            let _v996 = v1013 
            #endif
            let v1014 : Async<unit> = _v996 
            do! v1014 
            return true 
            with ex ->
            let v1019 : exn = ex
            let v1020 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1021 : string = $"%A{v1019}"
            let _v1020 = v1021 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1024 : string = $"%A{v1019}"
            let _v1020 = v1024 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1027 : string = $"%A{v1019}"
            let _v1020 = v1027 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1030 : string = $"%A{v1019}"
            let _v1020 = v1030 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1033 : string = $"%A{v1019}"
            let _v1020 = v1033 
            #endif
#else
            let v1036 : string = $"{v1019.GetType ()}: {v1019.Message}"
            let _v1020 = v1036 
            #endif
            let v1037 : string = _v1020 
            let v1042 : unit = ()
            let v1043 : (unit -> unit) = closure6(v2, v1037)
            let v1044 : unit = (fun () -> v1043 (); v1042) ()
            return false 
            (*
            let v1875 : bool = *)
            }
            |> fun x -> _v988 <- Some x
            let v1876 : Async<bool> = match _v988 with Some x -> x | None -> failwith "async.new_async_unit / _v988=None"
            let _v972 = v1876 
            #endif
            let v1877 : Async<bool> = _v972 
            let v1882 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1883 : Async<US4> = null |> unbox<Async<US4>>
            let _v1882 = v1883 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1886 : Async<US4> = null |> unbox<Async<US4>>
            let _v1882 = v1886 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1889 : Async<US4> = null |> unbox<Async<US4>>
            let _v1882 = v1889 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1892 : Async<US4> = null |> unbox<Async<US4>>
            let _v1882 = v1892 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1895 : Async<US4> = null |> unbox<Async<US4>>
            let _v1882 = v1895 
            #endif
#else
            let v1898 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1899 : Async<US4> = null |> unbox<Async<US4>>
            let _v1898 = v1899 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1902 : Async<US4> = null |> unbox<Async<US4>>
            let _v1898 = v1902 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1905 : Async<US4> = null |> unbox<Async<US4>>
            let _v1898 = v1905 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1908 : Async<US4> = null |> unbox<Async<US4>>
            let _v1898 = v1908 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1911 : Async<US4> = null |> unbox<Async<US4>>
            let _v1898 = v1911 
            #endif
#else
            let v1914 : Async<US4> option = None
            let mutable _v1914 = v1914 
            async {
            let v1915 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1916 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1915 = v1916 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1919 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1915 = v1919 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1922 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1915 = v1922 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1925 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1915 = v1925 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1928 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            let _v1915 = v1928 
            #endif
#else
            let v1931 : Async<Async<bool>> = Async.StartChild (v1877, v954)
            let _v1915 = v1931 
            #endif
            let v1932 : Async<Async<bool>> = _v1915 
            let! v1932 = v1932 
            let v1937 : Async<bool> = v1932 
            let v1938 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1939 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1938 = v1939 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1942 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1938 = v1942 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1945 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1938 = v1945 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1948 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1938 = v1948 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1951 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            let _v1938 = v1951 
            #endif
#else
            let v1954 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v1955 : Async<Choice<bool, exn>> = v1954 v1937
            let _v1938 = v1955 
            #endif
            let v1956 : Async<Choice<bool, exn>> = _v1938 
            let v1961 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1962 : Async<US5> = null |> unbox<Async<US5>>
            let _v1961 = v1962 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1965 : Async<US5> = null |> unbox<Async<US5>>
            let _v1961 = v1965 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1968 : Async<US5> = null |> unbox<Async<US5>>
            let _v1961 = v1968 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1971 : Async<US5> = null |> unbox<Async<US5>>
            let _v1961 = v1971 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1974 : Async<US5> = null |> unbox<Async<US5>>
            let _v1961 = v1974 
            #endif
#else
            let v1977 : Async<US5> option = None
            let mutable _v1977 = v1977 
            async {
            let! v1956 = v1956 
            let v1978 : Choice<bool, exn> = v1956 
            let v1979 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v1980 : US5 = null |> unbox<US5>
            let _v1979 = v1980 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v1983 : US5 = null |> unbox<US5>
            let _v1979 = v1983 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1986 : US5 = null |> unbox<US5>
            let _v1979 = v1986 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1989 : US5 = null |> unbox<US5>
            let _v1979 = v1989 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1992 : US5 = null |> unbox<US5>
            let _v1979 = v1992 
            #endif
#else
            let v1995 : (bool -> US5) = closure16()
            let v1996 : (exn -> US5) = closure17()
            let v1997 : US5 = match v1978 with Choice1Of2 x -> v1995 x | Choice2Of2 x -> v1996 x
            let _v1979 = v1997 
            #endif
            let v1998 : US5 = _v1979 
            return v1998 
            }
            |> fun x -> _v1977 <- Some x
            let v2003 : Async<US5> = match _v1977 with Some x -> x | None -> failwith "async.new_async_unit / _v1977=None"
            let _v1961 = v2003 
            #endif
            let v2004 : Async<US5> = _v1961 
            let v2009 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v2010 : Async<US6> = null |> unbox<Async<US6>>
            let _v2009 = v2010 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v2013 : Async<US6> = null |> unbox<Async<US6>>
            let _v2009 = v2013 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v2016 : Async<US6> = null |> unbox<Async<US6>>
            let _v2009 = v2016 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v2019 : Async<US6> = null |> unbox<Async<US6>>
            let _v2009 = v2019 
            #endif
#if FABLE_COMPILER_PYTHON
            let v2022 : Async<US6> = null |> unbox<Async<US6>>
            let _v2009 = v2022 
            #endif
#else
            let v2025 : Async<US6> option = None
            let mutable _v2025 = v2025 
            async {
            let! v2004 = v2004 
            let v2026 : US5 = v2004 
            let v2032 : US6 =
                match v2026 with
                | US5_0(v2027) -> (* C1of2 *)
                    US6_0(v2027)
                | US5_1(v2029) -> (* C2of2 *)
                    US6_1(v2029)
            return v2032 
            }
            |> fun x -> _v2025 <- Some x
            let v2033 : Async<US6> = match _v2025 with Some x -> x | None -> failwith "async.new_async_unit / _v2025=None"
            let _v2009 = v2033 
            #endif
            let v2034 : Async<US6> = _v2009 
            let v2039 : unit = ()
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v2040 : Async<US4> = null |> unbox<Async<US4>>
            let _v2039 = v2040 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v2043 : Async<US4> = null |> unbox<Async<US4>>
            let _v2039 = v2043 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v2046 : Async<US4> = null |> unbox<Async<US4>>
            let _v2039 = v2046 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v2049 : Async<US4> = null |> unbox<Async<US4>>
            let _v2039 = v2049 
            #endif
#if FABLE_COMPILER_PYTHON
            let v2052 : Async<US4> = null |> unbox<Async<US4>>
            let _v2039 = v2052 
            #endif
#else
            let v2055 : Async<US4> option = None
            let mutable _v2055 = v2055 
            async {
            let! v2034 = v2034 
            let v2056 : US6 = v2034 
            let v3725 : US4 =
                match v2056 with
                | US6_1(v2059) -> (* Error *)
                    let v2060 : string = $"%A{v2059}"
                    let v2063 : string = "System.TimeoutException"
                    let v2064 : bool = v2060.Contains v2063 
                    if v2064 then
                        let v2067 : unit = ()
                        let v2068 : (unit -> unit) = closure18(v954)
                        let v2069 : unit = (fun () -> v2068 (); v2067) ()
                        US4_1
                    else
                        let v2867 : unit = ()
                        let v2868 : (unit -> unit) = closure19(v954, v2059)
                        let v2869 : unit = (fun () -> v2868 (); v2867) ()
                        US4_1
                | US6_0(v2057) -> (* Ok *)
                    US4_0(v2057)
            return v3725 
            }
            |> fun x -> _v2055 <- Some x
            let v3726 : Async<US4> = match _v2055 with Some x -> x | None -> failwith "async.new_async_unit / _v2055=None"
            let _v2039 = v3726 
            #endif
            let v3727 : Async<US4> = _v2039 
            return! v3727 
            }
            |> fun x -> _v1914 <- Some x
            let v3732 : Async<US4> = match _v1914 with Some x -> x | None -> failwith "async.new_async_unit / _v1914=None"
            let _v1898 = v3732 
            #endif
            let v3733 : Async<US4> = _v1898 
            let _v1882 = v3733 
            #endif
            let v3738 : Async<US4> = _v1882 
            let! v3738 = v3738 
            let v3743 : US4 = v3738 
            let v3746 : bool =
                match v3743 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v3744) -> (* Some *)
                    v3744
            return v3746 
            }
            |> fun x -> _v971 <- Some x
            let v3747 : Async<bool> = match _v971 with Some x -> x | None -> failwith "async.new_async_unit / _v971=None"
            let _v955 = v3747 
            #endif
            let v3748 : Async<bool> = _v955 
            v3748
    let! v3754 = v3754 
    let v3755 : bool = v3754 
    let v3756 : bool = v3755 = false
    if v3756 then
        return v2 
        (*
        ()
    else
        *) else
        let v3757 : int32 = v2 + 1
        let v3758 : Async<int32> = method10(v0, v1, v3757)
        return! v3758 
        (*
        ()
    *)
    }
    |> fun x -> _v19 <- Some x
    let v3759 : Async<int32> = match _v19 with Some x -> x | None -> failwith "async.new_async_unit / _v19=None"
    let _v3 = v3759 
    #endif
    let v3760 : Async<int32> = _v3 
    v3760
and closure29 (v0 : int32 option, v1 : string) (v2 : int32) : Async<int32> =
    method10(v0, v1, v2)
and closure28 (v0 : int32 option) (v1 : string) : (int32 -> Async<int32>) =
    closure29(v0, v1)
and closure27 () (v0 : int32 option) : (string -> (int32 -> Async<int32>)) =
    closure28(v0)
let v0 : unit = ()
let v1 : (unit -> unit) = closure0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (string -> (int32 -> Async<bool>)) = closure4()
let test_port_open x = v16 x
let v17 : (int32 -> (string -> (int32 -> Async<bool>))) = closure13()
let test_port_open_timeout x = v17 x
let v18 : (int32 option -> (bool -> (string -> (int32 -> Async<int64>)))) = closure20()
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure27()
let get_available_port x = v19 x
()
00:00:00   debug #1 writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DirTreeHtml / hash:  / code.Length: 4638
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:01 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 621 ms).
00:00:03 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:18 verbose #6 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:19 verbose #7 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:20   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 703 }
00:00:20   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:20 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:21 verbose #11 >   Determining projects to restore...
00:00:22 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 567 ms).
00:00:22 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:38 verbose #14 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:00:40 verbose #15 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:40   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 701 }
In [ ]:
{ pwsh ../lib/spiral/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "parsing.dib", "--retries", "3"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/lib/spiral/parsing.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/parsing.dib" --output-path "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ # parsing                                                                    │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #16 > >
00:00:09 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #18 > > open rust.rust_operators
00:00:09 verbose #19 > > open sm'_operators
00:00:10 verbose #20 > >
00:00:10 verbose #21 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #22 > > //// test
00:00:10 verbose #23 > >
00:00:10 verbose #24 > > open testing
00:00:11 verbose #25 > >
00:00:11 verbose #26 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #27 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #28 > > │ ## fparsec                                                                   │
00:00:11 verbose #29 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #30 > >
00:00:11 verbose #31 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #32 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #33 > > │ <div><div></div><div><strong>Installing                                      │
00:00:11 verbose #34 > > │ Packages</strong><ul><li><span>FParsec</span></li></ul></div><div></div></di │
00:00:11 verbose #35 > > │ v>                                                                           │
00:00:11 verbose #36 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #37 > >
00:00:12 verbose #38 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #39 > > │ <div><div></div><div><strong>Installing                                      │
00:00:12 verbose #40 > > │ Packages</strong><ul><li><span>FParsec.</span></li></ul></div><div></div></d │
00:00:12 verbose #41 > > │ iv>                                                                          │
00:00:12 verbose #42 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #43 > >
00:00:12 verbose #44 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #45 > > │ <div><div></div><div><strong>Installing                                      │
00:00:12 verbose #46 > > │ Packages</strong><ul><li><span>FParsec..</span></li></ul></div><div></div></ │
00:00:12 verbose #47 > > │ div>                                                                         │
00:00:12 verbose #48 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #49 > >
00:00:13 verbose #50 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #51 > > │ <div><div></div><div><strong>Installing                                      │
00:00:13 verbose #52 > > │ Packages</strong><ul><li><span>FParsec...</span></li></ul></div><div></div>< │
00:00:13 verbose #53 > > │ /div>                                                                        │
00:00:13 verbose #54 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #55 > >
00:00:13 verbose #56 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #57 > > │ <div><div></div><div><strong>Installing                                      │
00:00:13 verbose #58 > > │ Packages</strong><ul><li><span>FParsec....</span></li></ul></div><div></div> │
00:00:13 verbose #59 > > │ </div>                                                                       │
00:00:13 verbose #60 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #61 > >
00:00:14 verbose #62 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #63 > > │ <div><div></div><div><strong>Installing                                      │
00:00:14 verbose #64 > > │ Packages</strong><ul><li><span>FParsec.....</span></li></ul></div><div></div │
00:00:14 verbose #65 > > │ ></div>                                                                      │
00:00:14 verbose #66 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #67 > >
00:00:14 verbose #68 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #69 > > │ <div><div></div><div><strong>Installing                                      │
00:00:14 verbose #70 > > │ Packages</strong><ul><li><span>FParsec......</span></li></ul></div><div></di │
00:00:14 verbose #71 > > │ v></div>                                                                     │
00:00:14 verbose #72 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #73 > >
00:00:15 verbose #74 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #75 > > │ <div><div></div><div><strong>Installing                                      │
00:00:15 verbose #76 > > │ Packages</strong><ul><li><span>FParsec.......</span></li></ul></div><div></d │
00:00:15 verbose #77 > > │ iv></div>                                                                    │
00:00:15 verbose #78 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #79 > >
00:00:15 verbose #80 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #81 > > │ <div><div></div><div><strong>Installing                                      │
00:00:15 verbose #82 > > │ Packages</strong><ul><li><span>FParsec........</span></li></ul></div><div></ │
00:00:15 verbose #83 > > │ div></div>                                                                   │
00:00:15 verbose #84 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #85 > >
00:00:15 verbose #86 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #87 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #88 > > │  Package added: fsharp.core,4.3.4                                            │
00:00:15 verbose #89 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #90 > >
00:00:15 verbose #91 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #92 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #93 > > │  Package added: FParsec,1.1.1                                                │
00:00:15 verbose #94 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #95 > >
00:00:15 verbose #96 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #97 > > │ <div><div></div><div></div><div><strong>Installed                            │
00:00:15 verbose #98 > > │ Packages</strong><ul><li><span>FParsec, 1.1.1</span></li></ul></div></div>   │
00:00:15 verbose #99 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #100 > >
00:00:16 verbose #101 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #102 > > //// test
00:00:16 verbose #103 > >
00:00:16 verbose #104 > > nominal position_ = $'FParsec.Position'
00:00:16 verbose #105 > > nominal parser_error_ = $'FParsec.Error.ParserError'
00:00:16 verbose #106 > >
00:00:16 verbose #107 > > nominal reply_ t = $'FParsec.Reply<`t>'
00:00:16 verbose #108 > >
00:00:16 verbose #109 > > nominal char_stream_ t = $'FParsec.CharStream<`t>'
00:00:16 verbose #110 > >
00:00:16 verbose #111 > > // nominal parser t u = char_stream u -> reply t
00:00:16 verbose #112 > > nominal parser_ t u = $'FParsec.Primitives.Parser<`t, `u>'
00:00:16 verbose #113 > >
00:00:16 verbose #114 > > inl p_char_ forall t. (x : char) : parser_ char t =
00:00:16 verbose #115 > >     x |> $'FParsec.CharParsers.pchar'
00:00:16 verbose #116 > >
00:00:16 verbose #117 > > inl p_string_ forall t. (x : string) : parser_ string t =
00:00:16 verbose #118 > >     x |> $'FParsec.CharParsers.pstring'
00:00:16 verbose #119 > >
00:00:16 verbose #120 > > inl (>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ u v =
00:00:16 verbose #121 > >     b |> $'FParsec.Primitives.(>>.)' a
00:00:16 verbose #122 > >
00:00:16 verbose #123 > > inl (.>>$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ t v =
00:00:16 verbose #124 > >     b |> $'FParsec.Primitives.(.>>)' a
00:00:16 verbose #125 > >
00:00:16 verbose #126 > > inl (.>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ (pair t
00:00:16 verbose #127 > > u) v =
00:00:16 verbose #128 > >     b |> $'FParsec.Primitives.(.>>.)' a
00:00:16 verbose #129 > >
00:00:16 verbose #130 > > inl (>>%$) forall t u v. (a : parser_ t v) (b : u) : parser_ u v =
00:00:16 verbose #131 > >     b |> $'FParsec.Primitives.(>>%)' a
00:00:16 verbose #132 > >
00:00:16 verbose #133 > > inl (>>=$) forall t u v. (a : parser_ t v) (b : t -> parser_ u v) : parser_ u v
00:00:16 verbose #134 > > =
00:00:16 verbose #135 > >     b |> $'FParsec.Primitives.(>>=)' a
00:00:16 verbose #136 > >
00:00:16 verbose #137 > > inl (|>>$) forall t u v. (a : parser_ t v) (b : t -> u) : parser_ u v =
00:00:16 verbose #138 > >     inl b = fun x => x |> b
00:00:16 verbose #139 > >     b |> $'FParsec.Primitives.(|>>)' a
00:00:16 verbose #140 > >
00:00:16 verbose #141 > > inl any_char_ () : parser_ char _ =
00:00:16 verbose #142 > >     $'FParsec.CharParsers.anyChar'
00:00:16 verbose #143 > >
00:00:16 verbose #144 > > inl any_string_ () : parser_ string _ =
00:00:16 verbose #145 > >     $'FParsec.CharParsers.anyString'
00:00:16 verbose #146 > >
00:00:16 verbose #147 > > inl any_string__ (n : i32) : parser_ string _ =
00:00:16 verbose #148 > >     n |> $'FParsec.CharParsers.anyString'
00:00:16 verbose #149 > >
00:00:16 verbose #150 > > inl eof_ () : parser_ () _ =
00:00:16 verbose #151 > >     $'FParsec.CharParsers.eof'
00:00:16 verbose #152 > >
00:00:16 verbose #153 > > inl spaces_ () : parser_ () () =
00:00:16 verbose #154 > >     $'FParsec.CharParsers.spaces'
00:00:16 verbose #155 > >
00:00:16 verbose #156 > > inl spaces1_ () : parser_ () () =
00:00:16 verbose #157 > >     $'FParsec.CharParsers.spaces1'
00:00:16 verbose #158 > >
00:00:16 verbose #159 > > inl (<|>$) forall t u. (a : parser_ t u) (b : parser_ t u) : parser_ t u =
00:00:16 verbose #160 > >     b |> $'FParsec.Primitives.(<|>)' a
00:00:16 verbose #161 > >
00:00:16 verbose #162 > > inl many_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:00:16 verbose #163 > >     x |> $'FParsec.CharParsers.manySatisfy'
00:00:16 verbose #164 > >
00:00:16 verbose #165 > > inl satisfy_ forall t. (x : char -> bool) : parser_ char t =
00:00:16 verbose #166 > >     x |> $'FParsec.CharParsers.satisfy'
00:00:16 verbose #167 > >
00:00:16 verbose #168 > > inl none_of_ (x : list char) : parser_ char () =
00:00:16 verbose #169 > >     x
00:00:16 verbose #170 > >     |> listm'.box
00:00:16 verbose #171 > >     |> listm'.to_array'
00:00:16 verbose #172 > >     |> $'FParsec.CharParsers.noneOf'
00:00:16 verbose #173 > >
00:00:16 verbose #174 > > inl any_of_ (x : list char) : parser_ char () =
00:00:16 verbose #175 > >     x
00:00:16 verbose #176 > >     |> listm'.box
00:00:16 verbose #177 > >     |> listm'.to_array'
00:00:16 verbose #178 > >     |> $'FParsec.CharParsers.anyOf'
00:00:16 verbose #179 > >
00:00:16 verbose #180 > > inl skip_any_of_ (x : list char) : parser_ () () =
00:00:16 verbose #181 > >     x
00:00:16 verbose #182 > >     |> listm'.box
00:00:16 verbose #183 > >     |> listm'.to_array'
00:00:16 verbose #184 > >     |> $'FParsec.CharParsers.skipAnyOf'
00:00:16 verbose #185 > >
00:00:16 verbose #186 > > inl between_ forall t u v x. (a : parser_ t x) (b : parser_ u x) (c : parser_ v
00:00:16 verbose #187 > > x) : parser_ v x =
00:00:16 verbose #188 > >     c |> $'FParsec.Primitives.between' a b
00:00:16 verbose #189 > >
00:00:16 verbose #190 > > inl many_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:00:16 verbose #191 > >     x |> $'FParsec.CharParsers.manyChars'
00:00:16 verbose #192 > >
00:00:16 verbose #193 > > inl many1_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:00:16 verbose #194 > >     x |> $'FParsec.CharParsers.many1Chars'
00:00:16 verbose #195 > >
00:00:16 verbose #196 > > inl many_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:00:16 verbose #197 > >     x |> $'FParsec.CharParsers.manyStrings'
00:00:16 verbose #198 > >
00:00:16 verbose #199 > > inl skip_any_string_ forall t. (n : i32) : parser_ () t =
00:00:16 verbose #200 > >     n |> $'FParsec.CharParsers.skipAnyString'
00:00:16 verbose #201 > >
00:00:16 verbose #202 > > inl many1_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:00:16 verbose #203 > >     x |> $'FParsec.CharParsers.many1Strings'
00:00:16 verbose #204 > >
00:00:16 verbose #205 > > inl opt_ forall t u. (a : parser_ t u) : parser_ (optionm'.option' t) u =
00:00:16 verbose #206 > >     a |> $'FParsec.Primitives.opt'
00:00:16 verbose #207 > >
00:00:16 verbose #208 > > inl choice_ forall t u. (a : list (parser_ t u)) : parser_ t u =
00:00:16 verbose #209 > >     a
00:00:16 verbose #210 > >     |> listm'.box
00:00:16 verbose #211 > >     |> seq.of_list'
00:00:16 verbose #212 > >     |> $'FParsec.Primitives.choice'
00:00:16 verbose #213 > >
00:00:16 verbose #214 > > inl delay_ forall t u. (fn : () -> parser_ t u) : parser_ t u =
00:00:16 verbose #215 > >     fn |> $'FParsec.Primitives.parse.Delay'
00:00:16 verbose #216 > >
00:00:16 verbose #217 > > inl peek_ forall t u. (a : parser_ t u) : parser_ char u =
00:00:16 verbose #218 > >     $'!a.Peek ()'
00:00:16 verbose #219 > >
00:00:16 verbose #220 > > inl not_followed_by_ forall t u. (a : parser_ t u) : parser_ () u =
00:00:16 verbose #221 > >     a |> $'FParsec.Primitives.notFollowedBy'
00:00:16 verbose #222 > >
00:00:16 verbose #223 > > inl sep_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:16 verbose #224 > > (listm'.list' t) v =
00:00:16 verbose #225 > >     b |> $'FParsec.Primitives.sepBy' a
00:00:16 verbose #226 > >
00:00:16 verbose #227 > > inl sep_by1_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:16 verbose #228 > > (listm'.list' t) v =
00:00:16 verbose #229 > >     b |> $'FParsec.Primitives.sepBy1' a
00:00:16 verbose #230 > >
00:00:16 verbose #231 > > inl sep_end_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:00:16 verbose #232 > > (listm'.list' t) v =
00:00:16 verbose #233 > >     b |> $'FParsec.Primitives.sepEndBy' a
00:00:16 verbose #234 > >
00:00:16 verbose #235 > > inl many_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:00:16 verbose #236 > >     a |> $'FParsec.Primitives.many'
00:00:16 verbose #237 > >
00:00:16 verbose #238 > > inl many1_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:00:16 verbose #239 > >     a |> $'FParsec.Primitives.many1'
00:00:16 verbose #240 > >
00:00:16 verbose #241 > > inl many1_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:00:16 verbose #242 > >     x |> $'FParsec.CharParsers.many1Satisfy'
00:00:16 verbose #243 > >
00:00:16 verbose #244 > > nominal parser_result'_ t u = $'FParsec.CharParsers.ParserResult<`t, `u>'
00:00:16 verbose #245 > >
00:00:16 verbose #246 > > inl run_ forall t. (parser : parser_ t ()) (x : string) : parser_result'_ t () =
00:00:16 verbose #247 > >     x |> $'FParsec.CharParsers.run' parser
00:00:16 verbose #248 > >
00:00:16 verbose #249 > > union parser_result_ t u =
00:00:16 verbose #250 > >     | Success : t * u * position_
00:00:16 verbose #251 > >     | Failure : string * parser_error_ * u
00:00:16 verbose #252 > >
00:00:16 verbose #253 > > inl parser_result_ forall t u. = function
00:00:16 verbose #254 > >     | Success (a, b, c) => $'`(parser_result'_ t u).Success (!a, !b, !c)' :
00:00:16 verbose #255 > > parser_result'_ t u
00:00:16 verbose #256 > >     | Failure (a, b, c) => $'`(parser_result'_ t u).Failure (!a, !b, !c)' :
00:00:16 verbose #257 > > parser_result'_ t u
00:00:16 verbose #258 > >
00:00:16 verbose #259 > > inl parser_result'_ forall t u. (x : parser_result'_ t u) : parser_result_ t u =
00:00:16 verbose #260 > >     $'let mutable _!x = None '
00:00:16 verbose #261 > >     $'match !x with'
00:00:16 verbose #262 > >     $'| FParsec.CharParsers.Success (a, b, c) -> (' : ()
00:00:16 verbose #263 > >     $'(fun () ->'
00:00:16 verbose #264 > >     $'(fun () ->'
00:00:16 verbose #265 > >     (Success ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:00:16 verbose #266 > >     $')'
00:00:16 verbose #267 > >     $'|> fun x -> x ()'
00:00:16 verbose #268 > >     $') () ) | FParsec.CharParsers.Failure (a, b, c) -> (' : ()
00:00:16 verbose #269 > >     $'(fun () ->'
00:00:16 verbose #270 > >     $'(fun () ->'
00:00:16 verbose #271 > >     (Failure ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:00:16 verbose #272 > >     $')'
00:00:16 verbose #273 > >     $'|> fun x -> x ()'
00:00:16 verbose #274 > >     $') () )' : ()
00:00:16 verbose #275 > >     $'|> fun x -> _!x <- Some x'
00:00:16 verbose #276 > >     $'match _!x with Some x -> x | None -> failwith "??? / _!x=None"'
00:00:16 verbose #277 > >
00:00:16 verbose #278 > > inl parse_ parser input : result _ _ =
00:00:16 verbose #279 > >     match input |> run_ parser |> parser_result'_ with
00:00:16 verbose #280 > >     | Success (result, b, c) => Ok (result, c)
00:00:16 verbose #281 > >     | Failure (error_msg, b, c) => Error (error_msg, b)
00:00:17 verbose #282 > >
00:00:17 verbose #283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #284 > > //// test
00:00:17 verbose #285 > >
00:00:17 verbose #286 > > inl split_args (args : string) : result (array_base (string * position_))
00:00:17 verbose #287 > > (string * parser_error_) =
00:00:17 verbose #288 > >     inl esc = [[ '\\'; '`' ]]
00:00:17 verbose #289 > >     inl quotes = [[ '"' ]]
00:00:17 verbose #290 > >     inl special = esc ++ quotes
00:00:17 verbose #291 > >     inl p_esc_char c =
00:00:17 verbose #292 > >         p_char_ c >>.$ any_char_ () |>>$ fun c' => $'$"{!c}{!c'}"'
00:00:17 verbose #293 > >     inl p_word = special |> none_of_ |>>$ sm'.obj_to_string
00:00:17 verbose #294 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of_ |> many1_chars_
00:00:17 verbose #295 > >     inl p_text = p_word |> many1_strings_
00:00:17 verbose #296 > >     inl p_esc = esc |> listm.map p_esc_char |> choice_
00:00:17 verbose #297 > >     inl p_quoted = (p_word <|>$ p_esc) |> many_ |>>$ (seq.of_list' >> sm'.concat
00:00:17 verbose #298 > > "")
00:00:17 verbose #299 > >     inl p_quoted_all = p_quoted |> between_ (p_char_ '"') (p_char_ '"')
00:00:17 verbose #300 > >     inl p_esc_root = p_esc |>>$ (fun _ => "") >>.$ (p_word |> many_) |>>$
00:00:17 verbose #301 > > (seq.of_list' >> sm'.concat "")
00:00:17 verbose #302 > >     inl p_content = p_plain <|>$ p_quoted_all <|>$ p_esc_root
00:00:17 verbose #303 > >     inl p_args = spaces1_ () |> sep_by_ p_content
00:00:17 verbose #304 > >     args
00:00:17 verbose #305 > >     |> parse_ p_args
00:00:17 verbose #306 > >     |> resultm.map fun (a', b') =>
00:00:17 verbose #307 > >         (
00:00:17 verbose #308 > >             (
00:00:17 verbose #309 > >                 a'
00:00:17 verbose #310 > >                 |> listm'.to_array'
00:00:17 verbose #311 > >                 |> a
00:00:17 verbose #312 > >                 |> am.map fun x => x, b'
00:00:17 verbose #313 > >                 |> fun (a x : _ i32 _) => x
00:00:17 verbose #314 > >             )
00:00:17 verbose #315 > >         )
00:00:17 verbose #316 > >
00:00:17 verbose #317 > > [[
00:00:17 verbose #318 > >     "a b c",
00:00:17 verbose #319 > >     ;[[ "a"; "b"; "c" ]]
00:00:17 verbose #320 > >
00:00:17 verbose #321 > >     "e f \"g h\" i",
00:00:17 verbose #322 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:00:17 verbose #323 > >
00:00:17 verbose #324 > >     "\"j k\" \"l\" \"m\"",
00:00:17 verbose #325 > >     ;[[ "j k"; "l"; "m" ]]
00:00:17 verbose #326 > >
00:00:17 verbose #327 > >     "s -t \"u \`\"v\`\" w\"",
00:00:17 verbose #328 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:00:17 verbose #329 > >
00:00:17 verbose #330 > >     "n -o \"p \\\"q\\\" r\"",
00:00:17 verbose #331 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:00:17 verbose #332 > >
00:00:17 verbose #333 > >     "r -s \"t \\\"u\\\"\"",
00:00:17 verbose #334 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:00:17 verbose #335 > >
00:00:17 verbose #336 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:00:17 verbose #337 > > \`$d++ }}\\\""',
00:00:17 verbose #338 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:00:17 verbose #339 > > ]]
00:00:17 verbose #340 > >
00:00:17 verbose #341 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:00:17 verbose #342 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:00:17 verbose #343 > > ]]
00:00:17 verbose #344 > >
00:00:17 verbose #345 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:00:17 verbose #346 > >     ;[[ "--l"; "''' m '''" ]]
00:00:17 verbose #347 > >
00:00:17 verbose #348 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:00:17 verbose #349 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:00:17 verbose #350 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:00:17 verbose #351 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:00:17 verbose #352 > >
00:00:17 verbose #353 > >     $'\@$"l ""m n:\\o.p"""',
00:00:17 verbose #354 > >     ;[[ "l"; "m n:\\o.p" ]]
00:00:17 verbose #355 > > ]]
00:00:17 verbose #356 > > |> listm.rev
00:00:17 verbose #357 > > |> listm.map fun input, expected =>
00:00:17 verbose #358 > >     input
00:00:17 verbose #359 > >     |> split_args
00:00:17 verbose #360 > >     |> fun x =>
00:00:17 verbose #361 > >         try
00:00:17 verbose #362 > >             fun () =>
00:00:17 verbose #363 > >                 ($'$"\ninput: {!input}"' : string)
00:00:17 verbose #364 > >                 |> console.write_line
00:00:17 verbose #365 > >                 x
00:00:17 verbose #366 > >                 |> resultm.get
00:00:17 verbose #367 > >                 |> am'.map_base fst
00:00:17 verbose #368 > >                 |> _assert_eq' expected
00:00:17 verbose #369 > >                 false
00:00:17 verbose #370 > >             fun ex =>
00:00:17 verbose #371 > >                 ($'$"error / expected: %A{!expected} / ex: %A{!ex}"' : string)
00:00:17 verbose #372 > >                 |> console.write_line
00:00:17 verbose #373 > >                 Some true
00:00:17 verbose #374 > >         |> optionm.value
00:00:17 verbose #375 > > |> listm'.filter id
00:00:17 verbose #376 > > |> function
00:00:17 verbose #377 > >     | [[]] => ()
00:00:17 verbose #378 > >     | x => failwith $'$"{!x}"'
00:00:22 verbose #379 > >
00:00:22 verbose #380 > > ╭─[ 5.58s - stdout ]───────────────────────────────────────────────────────────╮
00:00:22 verbose #381 > > │                                                                              │
00:00:22 verbose #382 > > │ input: a b c                                                                 │
00:00:22 verbose #383 > > │ __assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]       │
00:00:22 verbose #384 > > │                                                                              │
00:00:22 verbose #385 > > │ input: e f "g h" i                                                           │
00:00:22 verbose #386 > > │ __assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g   │
00:00:22 verbose #387 > > │ h"; "i"|]                                                                    │
00:00:22 verbose #388 > > │                                                                              │
00:00:22 verbose #389 > > │ input: "j k" "l" "m"                                                         │
00:00:22 verbose #390 > > │ __assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]   │
00:00:22 verbose #391 > > │                                                                              │
00:00:22 verbose #392 > > │ input: s -t "u `"v`" w"                                                      │
00:00:22 verbose #393 > > │ __assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t";   │
00:00:22 verbose #394 > > │ "u `"v`" w"|]                                                                │
00:00:22 verbose #395 > > │                                                                              │
00:00:22 verbose #396 > > │ input: n -o "p \"q\" r"                                                      │
00:00:22 verbose #397 > > │ __assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o";   │
00:00:22 verbose #398 > > │ "p \"q\" r"|]                                                                │
00:00:22 verbose #399 > > │                                                                              │
00:00:22 verbose #400 > > │ input: r -s "t \"u\""                                                        │
00:00:22 verbose #401 > > │ __assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t  │
00:00:22 verbose #402 > > │ \"u\""|]                                                                     │
00:00:22 verbose #403 > > │                                                                              │
00:00:22 verbose #404 > > │ input: x -y "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"          │
00:00:22 verbose #405 > > │ __assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', {    │
00:00:22 verbose #406 > > │ `$_[1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[            │
00:00:22 verbose #407 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"|]                                        │
00:00:22 verbose #408 > > │                                                                              │
00:00:22 verbose #409 > > │ input: e -f "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }"          │
00:00:22 verbose #410 > > │ __assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', {    │
00:00:22 verbose #411 > > │ `$_[1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[            │
00:00:22 verbose #412 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }"|]                                        │
00:00:22 verbose #413 > > │                                                                              │
00:00:22 verbose #414 > > │ input: --l \"''' m '''\"                                                     │
00:00:22 verbose #415 > > │ __assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m    │
00:00:22 verbose #416 > > │ '''"|]                                                                       │
00:00:22 verbose #417 > > │                                                                              │
00:00:22 verbose #418 > > │ input: n --o --p q --r "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j    │
00:00:22 verbose #419 > > │ (k)"                                                                         │
00:00:22 verbose #420 > > │ __assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; │
00:00:22 verbose #421 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:00:22 verbose #422 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:00:22 verbose #423 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:00:22 verbose #424 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:00:22 verbose #425 > > │                                                                              │
00:00:22 verbose #426 > > │ input: l "m n:\o.p"                                                          │
00:00:22 verbose #427 > > │ __assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]   │
00:00:22 verbose #428 > > │                                                                              │
00:00:22 verbose #429 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #430 > >
00:00:22 verbose #431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #433 > > │ ## parsing                                                                   │
00:00:22 verbose #434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #435 > >
00:00:22 verbose #436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #438 > > │ ### range                                                                    │
00:00:22 verbose #439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #440 > >
00:00:22 verbose #441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #442 > > type range =
00:00:22 verbose #443 > >     {
00:00:22 verbose #444 > >         from : int
00:00:22 verbose #445 > >         to : int
00:00:22 verbose #446 > >     }
00:00:23 verbose #447 > >
00:00:23 verbose #448 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #449 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #450 > > │ ### position                                                                 │
00:00:23 verbose #451 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #452 > >
00:00:23 verbose #453 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #454 > > type position =
00:00:23 verbose #455 > >     {
00:00:23 verbose #456 > >         line : int
00:00:23 verbose #457 > >         col : int
00:00:23 verbose #458 > >     }
00:00:23 verbose #459 > >
00:00:23 verbose #460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #462 > > │ ### parser_state                                                             │
00:00:23 verbose #463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #464 > >
00:00:23 verbose #465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #466 > > nominal parser_state =
00:00:23 verbose #467 > >     {
00:00:23 verbose #468 > >         line_text : sm'.string_builder
00:00:23 verbose #469 > >         position : position
00:00:23 verbose #470 > >     }
00:00:24 verbose #471 > >
00:00:24 verbose #472 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #473 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #474 > > │ ### parser                                                                   │
00:00:24 verbose #475 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #476 > >
00:00:24 verbose #477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #478 > > type parser t = string * parser_state -> result (t * string * parser_state)
00:00:24 verbose #479 > > string
00:00:24 verbose #480 > >
00:00:24 verbose #481 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #482 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #483 > > │ ### parse                                                                    │
00:00:24 verbose #484 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #485 > >
00:00:24 verbose #486 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #487 > > inl parse forall t. (p : parser t) (input : string) : result (t * string *
00:00:24 verbose #488 > > parser_state) string =
00:00:24 verbose #489 > >     inl input =
00:00:24 verbose #490 > >         input
00:00:24 verbose #491 > >         |> optionm'.of_obj
00:00:24 verbose #492 > >         |> optionm'.default_value' ""
00:00:24 verbose #493 > >     p (input, { line_text = "" |> sm'.string_builder; position = { line = 1; col
00:00:24 verbose #494 > > = 1 } } |> parser_state)
00:00:24 verbose #495 > >
00:00:24 verbose #496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 verbose #497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 verbose #498 > > │ ### inc                                                                      │
00:00:24 verbose #499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #500 > >
00:00:24 verbose #501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #502 > > inl inc c (parser_state s) =
00:00:24 verbose #503 > >     match c with
00:00:24 verbose #504 > >     | '\n' => { line = s.position.line + 1; col = 1 }
00:00:24 verbose #505 > >     | _ => { s.position with col = s.position.col + 1 }.position
00:00:25 verbose #506 > >
00:00:25 verbose #507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #509 > > │ ### update                                                                   │
00:00:25 verbose #510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #511 > >
00:00:25 verbose #512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #513 > > inl update result s =
00:00:25 verbose #514 > >     (s, result |> sm'.to_char_array |> a |> (fun x => x : _ int _) |>
00:00:25 verbose #515 > > am'.to_list' |> listm'.unbox)
00:00:25 verbose #516 > >     ||> listm.fold fun (parser_state s) c =>
00:00:25 verbose #517 > >         { s with
00:00:25 verbose #518 > >             position = s |> parser_state |> inc c
00:00:25 verbose #519 > >             line_text =
00:00:25 verbose #520 > >                 match c with
00:00:25 verbose #521 > >                 | '\n' => s.line_text |> sm'.builder_clear
00:00:25 verbose #522 > >                 | c => s.line_text |> sm'.builder_append (sm'.obj_to_string c)
00:00:25 verbose #523 > >         } |> parser_state
00:00:25 verbose #524 > >
00:00:25 verbose #525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #527 > > │ ### any_char                                                                 │
00:00:25 verbose #528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #529 > >
00:00:25 verbose #530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #531 > > inl any_char () : parser char = function
00:00:25 verbose #532 > >     | "", s => Error $'$"parsing.any_char / unexpected end of input / s:
00:00:25 verbose #533 > > %A{!s}"'
00:00:25 verbose #534 > >     | x, s =>
00:00:25 verbose #535 > >         inl first_char = x |> sm'.index 0i32
00:00:25 verbose #536 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:00:25 verbose #537 > >         in Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:00:26 verbose #538 > >
00:00:26 verbose #539 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #540 > > //// test
00:00:26 verbose #541 > >
00:00:26 verbose #542 > > "abc"
00:00:26 verbose #543 > > |> parse (any_char ())
00:00:26 verbose #544 > > |> resultm.get
00:00:26 verbose #545 > > |> sm'.format_debug
00:00:26 verbose #546 > > |> _assert_eq (
00:00:26 verbose #547 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:26 verbose #548 > > 1i32; col = 2i32 } })
00:00:26 verbose #549 > >     |> sm'.format_debug
00:00:26 verbose #550 > > )
00:00:27 verbose #551 > >
00:00:27 verbose #552 > > ╭─[ 822.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 verbose #553 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:27 verbose #554 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:27 verbose #555 > > │                                                                              │
00:00:27 verbose #556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #557 > >
00:00:27 verbose #558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #559 > > //// test
00:00:27 verbose #560 > >
00:00:27 verbose #561 > > "abc"
00:00:27 verbose #562 > > |> parse_ (any_char_ ())
00:00:27 verbose #563 > > |> resultm.get
00:00:27 verbose #564 > > |> sm'.format_debug
00:00:27 verbose #565 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:27 verbose #566 > > sm'.format_debug)
00:00:27 verbose #567 > >
00:00:27 verbose #568 > > ╭─[ 575.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 verbose #569 > > │ __assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct   │
00:00:27 verbose #570 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:00:27 verbose #571 > > │                                                                              │
00:00:27 verbose #572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #573 > >
00:00:27 verbose #574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #576 > > │ ### p_char                                                                   │
00:00:27 verbose #577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #578 > >
00:00:27 verbose #579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #580 > > inl p_char (c : char) : parser char = function
00:00:27 verbose #581 > >     | "", s => Error $'$"parsing.p_char / unexpected end of input / s: %A{!s}"'
00:00:27 verbose #582 > >     | input, parser_state ({ line_text position = { line col } } as s) =>
00:00:27 verbose #583 > >         inl first_char = input |> sm'.index 0i32
00:00:27 verbose #584 > >         if first_char = c
00:00:27 verbose #585 > >         then Ok (
00:00:27 verbose #586 > >             first_char,
00:00:27 verbose #587 > >             input |> sm'.range (am'.Start 1i32) (am'.End id),
00:00:27 verbose #588 > >             s |> parser_state |> update (sm'.obj_to_string first_char)
00:00:27 verbose #589 > >         )
00:00:27 verbose #590 > >         else
00:00:27 verbose #591 > >             inl message : string =
00:00:27 verbose #592 > >                 inl rest =
00:00:27 verbose #593 > >                     input
00:00:27 verbose #594 > >                     |> sm'.range
00:00:27 verbose #595 > >                         (am'.Start 0i32)
00:00:27 verbose #596 > >                         (am'.End fun l =>
00:00:27 verbose #597 > >                             match (input |> sm'.index_of "\n") - 1 with
00:00:27 verbose #598 > >                             | -2 => l
00:00:27 verbose #599 > >                             | l => l
00:00:27 verbose #600 > >                         )
00:00:27 verbose #601 > >                 $'$"parsing.p_char / expected: \'{!c}\' / line: {!line} / col:
00:00:27 verbose #602 > > {!col}\n{!line_text}{!rest}"'
00:00:27 verbose #603 > >             inl pointer_line = (sm'.replicate (col - 1) " ") +. "^"
00:00:27 verbose #604 > >             $'$"{!message}\n{!pointer_line}\n"' |> Error
00:00:28 verbose #605 > >
00:00:28 verbose #606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 verbose #607 > > //// test
00:00:28 verbose #608 > >
00:00:28 verbose #609 > > "abc"
00:00:28 verbose #610 > > |> parse (p_char 'a')
00:00:28 verbose #611 > > |> resultm.get
00:00:28 verbose #612 > > |> sm'.format_debug
00:00:28 verbose #613 > > |> _assert_eq (
00:00:28 verbose #614 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:28 verbose #615 > > 1i32; col = 2i32 } })
00:00:28 verbose #616 > >     |> sm'.format_debug
00:00:28 verbose #617 > > )
00:00:29 verbose #618 > >
00:00:29 verbose #619 > > ╭─[ 691.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 verbose #620 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:29 verbose #621 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:29 verbose #622 > > │                                                                              │
00:00:29 verbose #623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #624 > >
00:00:29 verbose #625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #626 > > //// test
00:00:29 verbose #627 > >
00:00:29 verbose #628 > > "abc"
00:00:29 verbose #629 > > |> parse_ (p_char_ 'a')
00:00:29 verbose #630 > > |> resultm.get
00:00:29 verbose #631 > > |> sm'.format_debug
00:00:29 verbose #632 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:29 verbose #633 > > sm'.format_debug)
00:00:29 verbose #634 > >
00:00:29 verbose #635 > > ╭─[ 693.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 verbose #636 > > │ __assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct   │
00:00:29 verbose #637 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:00:29 verbose #638 > > │                                                                              │
00:00:29 verbose #639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #640 > >
00:00:29 verbose #641 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #642 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #643 > > │ ### any_string                                                               │
00:00:29 verbose #644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #645 > >
00:00:29 verbose #646 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #647 > > inl any_string length : parser string = fun input, s =>
00:00:29 verbose #648 > >     if sm'.length input < length
00:00:29 verbose #649 > >     then Error $'$"parsing.any_string / unexpected end of input / s: %A{!s}"'
00:00:29 verbose #650 > >     else
00:00:29 verbose #651 > >         inl result = input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:00:29 verbose #652 > > length - 1)
00:00:29 verbose #653 > >         inl rest = input |> sm'.range (am'.Start length) (am'.End id)
00:00:29 verbose #654 > >         Ok (result, rest, s |> update result)
00:00:30 verbose #655 > >
00:00:30 verbose #656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #657 > > //// test
00:00:30 verbose #658 > >
00:00:30 verbose #659 > > "abcdef"
00:00:30 verbose #660 > > |> parse (any_string 3i32)
00:00:30 verbose #661 > > |> resultm.get
00:00:30 verbose #662 > > |> sm'.format_debug
00:00:30 verbose #663 > > |> _assert_eq (
00:00:30 verbose #664 > >     ("abc", "def", { line_text = "abc" |> sm'.string_builder; position = { line
00:00:30 verbose #665 > > = 1i32; col = 4i32 } })
00:00:30 verbose #666 > >     |> sm'.format_debug
00:00:30 verbose #667 > > )
00:00:30 verbose #668 > >
00:00:30 verbose #669 > > ╭─[ 732.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 verbose #670 > > │ __assert_eq / actual: "struct ("abc", "def", abc, 1, 4)" / expected: "struct │
00:00:30 verbose #671 > > │ ("abc", "def", abc, 1, 4)"                                                   │
00:00:30 verbose #672 > > │                                                                              │
00:00:30 verbose #673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #674 > >
00:00:30 verbose #675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 verbose #676 > > //// test
00:00:30 verbose #677 > >
00:00:30 verbose #678 > > "abcdef"
00:00:30 verbose #679 > > |> parse_ (any_string__ 3)
00:00:30 verbose #680 > > |> resultm.get
00:00:30 verbose #681 > > |> sm'.obj_to_string
00:00:30 verbose #682 > > |> _assert_eq' (("abc", ($'FParsec.Position (null, 0, 1, 4)' : position_)) |>
00:00:30 verbose #683 > > sm'.obj_to_string)
00:00:31 verbose #684 > >
00:00:31 verbose #685 > > ╭─[ 694.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 verbose #686 > > │ __assert_eq' / actual: "(abc, (Ln: 1, Col: 4))" / expected: "(abc, (Ln: 1,   │
00:00:31 verbose #687 > > │ Col: 4))"                                                                    │
00:00:31 verbose #688 > > │                                                                              │
00:00:31 verbose #689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #690 > >
00:00:31 verbose #691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #693 > > │ ### skip_any_string                                                          │
00:00:31 verbose #694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #695 > >
00:00:31 verbose #696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #697 > > inl skip_any_string length : parser () = fun input, s =>
00:00:31 verbose #698 > >     if sm'.length input < length
00:00:31 verbose #699 > >     then Error $'$"parsing.skip_any_string / unexpected end of input / s:
00:00:31 verbose #700 > > %A{!s}"'
00:00:31 verbose #701 > >     else Ok (
00:00:31 verbose #702 > >         (),
00:00:31 verbose #703 > >         input |> sm'.range (am'.Start length) (am'.End id),
00:00:31 verbose #704 > >         s |> update (input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:00:31 verbose #705 > > length - 1))
00:00:31 verbose #706 > >     )
00:00:32 verbose #707 > >
00:00:32 verbose #708 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #709 > > //// test
00:00:32 verbose #710 > >
00:00:32 verbose #711 > > "abcdef"
00:00:32 verbose #712 > > |> parse (skip_any_string 3i32)
00:00:32 verbose #713 > > |> resultm.get
00:00:32 verbose #714 > > |> sm'.format_debug
00:00:32 verbose #715 > > |> _assert_eq (
00:00:32 verbose #716 > >     ((), "def", { line_text = "abc" |> sm'.string_builder; position = { line =
00:00:32 verbose #717 > > 1i32; col = 4i32 } })
00:00:32 verbose #718 > >     |> sm'.format_debug
00:00:32 verbose #719 > > )
00:00:32 verbose #720 > >
00:00:32 verbose #721 > > ╭─[ 790.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 verbose #722 > > │ __assert_eq / actual: "struct ("def", abc, 1, 4)" / expected: "struct        │
00:00:32 verbose #723 > > │ ("def", abc, 1, 4)"                                                          │
00:00:32 verbose #724 > > │                                                                              │
00:00:32 verbose #725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #726 > >
00:00:32 verbose #727 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 verbose #728 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 verbose #729 > > │ ### (>>.)                                                                    │
00:00:32 verbose #730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #731 > >
00:00:32 verbose #732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #733 > > inl (>>.) forall t u. (a : parser t) (b : parser u) : parser u = fun input, s =>
00:00:32 verbose #734 > >     match a (input, s) with
00:00:32 verbose #735 > >     | Ok (_, rest, s) => b (rest, s)
00:00:32 verbose #736 > >     | Error e => Error e
00:00:33 verbose #737 > >
00:00:33 verbose #738 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #739 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #740 > > │ ### (>>.)                                                                    │
00:00:33 verbose #741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #742 > >
00:00:33 verbose #743 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #744 > > inl (.>>) forall t u. (a : parser t) (b : parser u) : parser t = fun input, s =>
00:00:33 verbose #745 > >     match a (input, s) with
00:00:33 verbose #746 > >     | Ok (result, rest, s) =>
00:00:33 verbose #747 > >         match b (rest, s) with
00:00:33 verbose #748 > >         | Ok (_, rest, s) => Ok (result, rest, s)
00:00:33 verbose #749 > >         | Error e => Error e
00:00:33 verbose #750 > >     | Error e => Error e
00:00:33 verbose #751 > >
00:00:33 verbose #752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 verbose #753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 verbose #754 > > │ ### (.>>.)                                                                   │
00:00:33 verbose #755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 verbose #756 > >
00:00:33 verbose #757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 verbose #758 > > inl (.>>.) forall t u. (a : parser t) (b : parser u) : parser (t * u) = fun
00:00:33 verbose #759 > > input, s =>
00:00:33 verbose #760 > >     match a (input, s) with
00:00:33 verbose #761 > >     | Ok (result_a, rest, s) =>
00:00:33 verbose #762 > >         match b (rest, s) with
00:00:33 verbose #763 > >         | Ok (result_b, rest, s) => Ok ((result_a, result_b), rest, s)
00:00:33 verbose #764 > >         | Error e => Error e
00:00:33 verbose #765 > >     | Error e => Error e
00:00:34 verbose #766 > >
00:00:34 verbose #767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #769 > > │ ### (>>%)                                                                    │
00:00:34 verbose #770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #771 > >
00:00:34 verbose #772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #773 > > inl (>>%) forall t u. (a : parser t) (b : u) : parser u = fun input, s =>
00:00:34 verbose #774 > >     match a (input, s) with
00:00:34 verbose #775 > >     | Ok (_, rest, s) => Ok (b, rest, s)
00:00:34 verbose #776 > >     | Error e => Error e
00:00:34 verbose #777 > >
00:00:34 verbose #778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 verbose #779 > > //// test
00:00:34 verbose #780 > >
00:00:34 verbose #781 > > "abc"
00:00:34 verbose #782 > > |> parse (p_char 'a' >>. p_char 'b')
00:00:34 verbose #783 > > |> resultm.get
00:00:34 verbose #784 > > |> sm'.format_debug
00:00:34 verbose #785 > > |> _assert_eq (
00:00:34 verbose #786 > >     ('b', "c", { line_text = "ab" |> sm'.string_builder; position = { line =
00:00:34 verbose #787 > > 1i32; col = 3i32 } })
00:00:34 verbose #788 > >     |> sm'.format_debug
00:00:34 verbose #789 > > )
00:00:34 verbose #790 > >
00:00:34 verbose #791 > > "abc\ndef\nghi"
00:00:34 verbose #792 > > |> parse (skip_any_string 5i32 >>. p_char 'a')
00:00:34 verbose #793 > > |> _assert_eq (Error "parsing.p_char / expected: 'a' / line: 2 / col: 2\ndef\n
00:00:34 verbose #794 > > ^\n")
00:00:35 verbose #795 > >
00:00:35 verbose #796 > > ╭─[ 1.05s - stdout ]───────────────────────────────────────────────────────────╮
00:00:35 verbose #797 > > │ __assert_eq / actual: "struct ('b', "c", ab, 1, 3)" / expected: "struct      │
00:00:35 verbose #798 > > │ ('b', "c", ab, 1, 3)"                                                        │
00:00:35 verbose #799 > > │ __assert_eq / actual: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: │
00:00:35 verbose #800 > > │ 2                                                                            │
00:00:35 verbose #801 > > │ def                                                                          │
00:00:35 verbose #802 > > │  ^                                                                           │
00:00:35 verbose #803 > > │ " / expected: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2       │
00:00:35 verbose #804 > > │ def                                                                          │
00:00:35 verbose #805 > > │  ^                                                                           │
00:00:35 verbose #806 > > │ "                                                                            │
00:00:35 verbose #807 > > │                                                                              │
00:00:35 verbose #808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #809 > >
00:00:35 verbose #810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #811 > > //// test
00:00:35 verbose #812 > >
00:00:35 verbose #813 > > "abc"
00:00:35 verbose #814 > > |> parse_ (p_char_ 'a' >>.$ p_char_ 'b')
00:00:35 verbose #815 > > |> resultm.get
00:00:35 verbose #816 > > |> sm'.obj_to_string
00:00:35 verbose #817 > > |> _assert_eq' (('b', ($'FParsec.Position (null, 0, 1, 3)' : position_)) |>
00:00:35 verbose #818 > > sm'.obj_to_string)
00:00:36 verbose #819 > >
00:00:36 verbose #820 > > ╭─[ 619.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 verbose #821 > > │ __assert_eq' / actual: "(b, (Ln: 1, Col: 3))" / expected: "(b, (Ln: 1, Col:  │
00:00:36 verbose #822 > > │ 3))"                                                                         │
00:00:36 verbose #823 > > │                                                                              │
00:00:36 verbose #824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #825 > >
00:00:36 verbose #826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #827 > > //// test
00:00:36 verbose #828 > >
00:00:36 verbose #829 > > "abc\ndef\nghi"
00:00:36 verbose #830 > > |> parse_ (skip_any_string_ 5 >>.$ p_char_ 'a')
00:00:36 verbose #831 > > |> resultm.unwrap_err
00:00:36 verbose #832 > > |> sm'.obj_to_string
00:00:36 verbose #833 > > |> sm'.replace "\r\n" "\n"
00:00:36 verbose #834 > > |> _assert_eq "(Error in Ln: 2 Col: 2\ndef\n ^\nExpecting: 'a'\n, Error in Ln: 2
00:00:36 verbose #835 > > Col: 2\nExpecting: 'a'\n)"
00:00:37 verbose #836 > >
00:00:37 verbose #837 > > ╭─[ 627.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 verbose #838 > > │ __assert_eq / actual: "(Error in Ln: 2 Col: 2                                │
00:00:37 verbose #839 > > │ def                                                                          │
00:00:37 verbose #840 > > │  ^                                                                           │
00:00:37 verbose #841 > > │ Expecting: 'a'                                                               │
00:00:37 verbose #842 > > │ , Error in Ln: 2 Col: 2                                                      │
00:00:37 verbose #843 > > │ Expecting: 'a'                                                               │
00:00:37 verbose #844 > > │ )" / expected: "(Error in Ln: 2 Col: 2                                       │
00:00:37 verbose #845 > > │ def                                                                          │
00:00:37 verbose #846 > > │  ^                                                                           │
00:00:37 verbose #847 > > │ Expecting: 'a'                                                               │
00:00:37 verbose #848 > > │ , Error in Ln: 2 Col: 2                                                      │
00:00:37 verbose #849 > > │ Expecting: 'a'                                                               │
00:00:37 verbose #850 > > │ )"                                                                           │
00:00:37 verbose #851 > > │                                                                              │
00:00:37 verbose #852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #853 > >
00:00:37 verbose #854 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #855 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #856 > > │ ### none_of                                                                  │
00:00:37 verbose #857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #858 > >
00:00:37 verbose #859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #860 > > inl none_of (chars : list char) : parser char = function
00:00:37 verbose #861 > >     | "", s =>
00:00:37 verbose #862 > >         inl chars = chars |> listm'.box |> listm'.to_array'
00:00:37 verbose #863 > >         Error $'$"parsing.none_of / unexpected end of input / chars: %A{!chars}
00:00:37 verbose #864 > > / s: %A{!s}"'
00:00:37 verbose #865 > >     | x, s =>
00:00:37 verbose #866 > >         inl first_char = x |> sm'.index 0i32
00:00:37 verbose #867 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:00:37 verbose #868 > >         if chars |> listm'.exists' ((=) first_char) |> not
00:00:37 verbose #869 > >         then Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:00:37 verbose #870 > >         else
00:00:37 verbose #871 > >             inl chars = chars |> listm'.box |> listm'.to_array'
00:00:37 verbose #872 > >             Error $'$"parsing.none_of / unexpected char: \'{!first_char}\'
00:00:37 verbose #873 > > chars: %A{!chars} / s: %A{!s}"'
00:00:37 verbose #874 > >
00:00:37 verbose #875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #876 > > //// test
00:00:37 verbose #877 > >
00:00:37 verbose #878 > > "abc"
00:00:37 verbose #879 > > |> parse (none_of [['a'; 'b'; 'c']])
00:00:37 verbose #880 > > |> _assert_eq (Error "parsing.none_of / unexpected char: \'a\' / chars: [[|'a';
00:00:37 verbose #881 > > 'b'; 'c'|]] / s: struct (, 1, 1)")
00:00:37 verbose #882 > >
00:00:37 verbose #883 > > "def"
00:00:37 verbose #884 > > |> parse (none_of [['a'; 'b'; 'c']])
00:00:37 verbose #885 > > |> resultm.get
00:00:37 verbose #886 > > |> sm'.format_debug
00:00:37 verbose #887 > > |> _assert_eq (
00:00:37 verbose #888 > >     ('d', "ef", { line_text = "d" |> sm'.string_builder; position = { line =
00:00:37 verbose #889 > > 1i32; col = 2i32 } })
00:00:37 verbose #890 > >     |> sm'.format_debug
00:00:37 verbose #891 > > )
00:00:38 verbose #892 > >
00:00:38 verbose #893 > > ╭─[ 938.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 verbose #894 > > │ __assert_eq / actual: US0_1                                                  │
00:00:38 verbose #895 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:00:38 verbose #896 > > │ struct (, 1, 1)" / expected: US0_1                                           │
00:00:38 verbose #897 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:00:38 verbose #898 > > │ struct (, 1, 1)"                                                             │
00:00:38 verbose #899 > > │ __assert_eq / actual: "struct ('d', "ef", d, 1, 2)" / expected: "struct      │
00:00:38 verbose #900 > > │ ('d', "ef", d, 1, 2)"                                                        │
00:00:38 verbose #901 > > │                                                                              │
00:00:38 verbose #902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #903 > >
00:00:38 verbose #904 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #905 > > //// test
00:00:38 verbose #906 > >
00:00:38 verbose #907 > > "abc"
00:00:38 verbose #908 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:00:38 verbose #909 > > |> resultm.unwrap_err
00:00:38 verbose #910 > > |> sm'.obj_to_string
00:00:38 verbose #911 > > |> sm'.replace "\r\n" "\n"
00:00:38 verbose #912 > > |> _assert_eq ($'"(Error in Ln: 1 Col: 1\nabc\n^\nExpecting: any char not in
00:00:38 verbose #913 > > ‘abc’\n, Error in Ln: 1 Col: 1\nExpecting: any char not in ‘abc’\n)"')
00:00:38 verbose #914 > >
00:00:38 verbose #915 > > "def"
00:00:38 verbose #916 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:00:38 verbose #917 > > |> resultm.get
00:00:38 verbose #918 > > |> sm'.obj_to_string
00:00:38 verbose #919 > > |> _assert_eq' (('d', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:00:38 verbose #920 > > sm'.obj_to_string)
00:00:39 verbose #921 > >
00:00:39 verbose #922 > > ╭─[ 634.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:39 verbose #923 > > │ __assert_eq / actual: "(Error in Ln: 1 Col: 1                                │
00:00:39 verbose #924 > > │ abc                                                                          │
00:00:39 verbose #925 > > │ ^                                                                            │
00:00:39 verbose #926 > > │ Expecting: any char not in ‘abc’                                             │
00:00:39 verbose #927 > > │ , Error in Ln: 1 Col: 1                                                      │
00:00:39 verbose #928 > > │ Expecting: any char not in ‘abc’                                             │
00:00:39 verbose #929 > > │ )" / expected: "(Error in Ln: 1 Col: 1                                       │
00:00:39 verbose #930 > > │ abc                                                                          │
00:00:39 verbose #931 > > │ ^                                                                            │
00:00:39 verbose #932 > > │ Expecting: any char not in ‘abc’                                             │
00:00:39 verbose #933 > > │ , Error in Ln: 1 Col: 1                                                      │
00:00:39 verbose #934 > > │ Expecting: any char not in ‘abc’                                             │
00:00:39 verbose #935 > > │ )"                                                                           │
00:00:39 verbose #936 > > │ __assert_eq' / actual: "(d, (Ln: 1, Col: 2))" / expected: "(d, (Ln: 1, Col:  │
00:00:39 verbose #937 > > │ 2))"                                                                         │
00:00:39 verbose #938 > > │                                                                              │
00:00:39 verbose #939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #940 > >
00:00:39 verbose #941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #943 > > │ ### (<|>)                                                                    │
00:00:39 verbose #944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #945 > >
00:00:39 verbose #946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #947 > > inl (<|>) forall t. (a : parser t) (b : parser t) : parser t = fun input, s =>
00:00:39 verbose #948 > >     match a (input, s) with
00:00:39 verbose #949 > >     | Ok _ as result => result
00:00:39 verbose #950 > >     | Error _ => b (input, s)
00:00:39 verbose #951 > >
00:00:39 verbose #952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #953 > > //// test
00:00:39 verbose #954 > >
00:00:39 verbose #955 > > "abc"
00:00:39 verbose #956 > > |> parse (p_char 'a' <|> p_char 'b')
00:00:39 verbose #957 > > |> resultm.get
00:00:39 verbose #958 > > |> sm'.format_debug
00:00:39 verbose #959 > > |> _assert_eq (
00:00:39 verbose #960 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:39 verbose #961 > > 1i32; col = 2i32 } })
00:00:39 verbose #962 > >     |> sm'.format_debug
00:00:39 verbose #963 > > )
00:00:39 verbose #964 > >
00:00:39 verbose #965 > > "cba"
00:00:39 verbose #966 > > |> parse (p_char 'a' <|> p_char 'b')
00:00:39 verbose #967 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:00:39 verbose #968 > > 1\ncba\n^\n")
00:00:40 verbose #969 > >
00:00:40 verbose #970 > > ╭─[ 1.11s - stdout ]───────────────────────────────────────────────────────────╮
00:00:40 verbose #971 > > │ __assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct      │
00:00:40 verbose #972 > > │ ('a', "bc", a, 1, 2)"                                                        │
00:00:40 verbose #973 > > │ __assert_eq / actual: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: │
00:00:40 verbose #974 > > │ 1                                                                            │
00:00:40 verbose #975 > > │ cba                                                                          │
00:00:40 verbose #976 > > │ ^                                                                            │
00:00:40 verbose #977 > > │ " / expected: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:00:40 verbose #978 > > │ cba                                                                          │
00:00:40 verbose #979 > > │ ^                                                                            │
00:00:40 verbose #980 > > │ "                                                                            │
00:00:40 verbose #981 > > │                                                                              │
00:00:40 verbose #982 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #983 > >
00:00:40 verbose #984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #986 > > │ ### (|>>)                                                                    │
00:00:40 verbose #987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #988 > >
00:00:40 verbose #989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #990 > > inl (|>>) p f : parser _ = fun input =>
00:00:40 verbose #991 > >     match p input with
00:00:40 verbose #992 > >     | Ok (result, rest) => Ok (f result, rest)
00:00:40 verbose #993 > >     | Error e => Error e
00:00:41 verbose #994 > >
00:00:41 verbose #995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #996 > > //// test
00:00:41 verbose #997 > >
00:00:41 verbose #998 > > "abc"
00:00:41 verbose #999 > > |> parse (p_char 'a' |>> sm'.char_to_upper)
00:00:41 verbose #1000 > > |> resultm.get
00:00:41 verbose #1001 > > |> sm'.format_debug
00:00:41 verbose #1002 > > |> _assert_eq (
00:00:41 verbose #1003 > >     ('A', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:00:41 verbose #1004 > > 1i32; col = 2i32 } })
00:00:41 verbose #1005 > >     |> sm'.format_debug
00:00:41 verbose #1006 > > )
00:00:42 verbose #1007 > >
00:00:42 verbose #1008 > > ╭─[ 754.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:42 verbose #1009 > > │ __assert_eq / actual: "struct ('A', "bc", a, 1, 2)" / expected: "struct      │
00:00:42 verbose #1010 > > │ ('A', "bc", a, 1, 2)"                                                        │
00:00:42 verbose #1011 > > │                                                                              │
00:00:42 verbose #1012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #1013 > >
00:00:42 verbose #1014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #1015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #1016 > > │ ### many                                                                     │
00:00:42 verbose #1017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #1018 > >
00:00:42 verbose #1019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #1020 > > inl many p : parser (list _) = fun input =>
00:00:42 verbose #1021 > >     let rec loop acc input =
00:00:42 verbose #1022 > >         match p input with
00:00:42 verbose #1023 > >         | Ok (result, rest) => loop (result :: acc) rest
00:00:42 verbose #1024 > >         | Error _ => Ok (listm.rev acc, input)
00:00:42 verbose #1025 > >     loop [[]] input
00:00:42 verbose #1026 > >
00:00:42 verbose #1027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #1028 > > //// test
00:00:42 verbose #1029 > >
00:00:42 verbose #1030 > > "aaabbc"
00:00:42 verbose #1031 > > |> parse (many (p_char 'a' <|> p_char 'b'))
00:00:42 verbose #1032 > > |> resultm.get
00:00:42 verbose #1033 > > |> sm'.format_debug
00:00:42 verbose #1034 > > |> _assert_eq (
00:00:42 verbose #1035 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:00:42 verbose #1036 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:00:42 verbose #1037 > >     |> sm'.format_debug
00:00:42 verbose #1038 > > )
00:00:43 verbose #1039 > >
00:00:43 verbose #1040 > > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮
00:00:43 verbose #1041 > > │ __assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1     │
00:00:43 verbose #1042 > > │ ('b', UH0_1 ('b', UH0_0))))),                                                │
00:00:43 verbose #1043 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:00:43 verbose #1044 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:00:43 verbose #1045 > > │         "c", aaabb, 1, 6)"                                                   │
00:00:43 verbose #1046 > > │                                                                              │
00:00:43 verbose #1047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #1048 > >
00:00:43 verbose #1049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #1050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #1051 > > │ ### many1_chars                                                              │
00:00:43 verbose #1052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #1053 > >
00:00:43 verbose #1054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #1055 > > inl many1_chars p : parser string = fun input =>
00:00:43 verbose #1056 > >     match p input with
00:00:43 verbose #1057 > >     | Error e => Error e
00:00:43 verbose #1058 > >     | Ok (first_result, rest) =>
00:00:43 verbose #1059 > >         let rec loop acc input =
00:00:43 verbose #1060 > >             match p input with
00:00:43 verbose #1061 > >             | Ok (result, rest) => loop (acc +. sm'.obj_to_string result) rest
00:00:43 verbose #1062 > >             | Error _ => Ok (acc, input)
00:00:43 verbose #1063 > >         loop (sm'.obj_to_string first_result) rest
00:00:44 verbose #1064 > >
00:00:44 verbose #1065 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #1066 > > //// test
00:00:44 verbose #1067 > >
00:00:44 verbose #1068 > > "aaabbc"
00:00:44 verbose #1069 > > |> parse (many1_chars (p_char 'a' <|> p_char 'b'))
00:00:44 verbose #1070 > > |> resultm.get
00:00:44 verbose #1071 > > |> sm'.format_debug
00:00:44 verbose #1072 > > |> _assert_eq (
00:00:44 verbose #1073 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:00:44 verbose #1074 > > line = 1i32; col = 6i32 } })
00:00:44 verbose #1075 > >     |> sm'.format_debug
00:00:44 verbose #1076 > > )
00:00:45 verbose #1077 > >
00:00:45 verbose #1078 > > ╭─[ 945.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:45 verbose #1079 > > │ __assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected:       │
00:00:45 verbose #1080 > > │ "struct ("aaabb", "c", aaabb, 1, 6)"                                         │
00:00:45 verbose #1081 > > │                                                                              │
00:00:45 verbose #1082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1083 > >
00:00:45 verbose #1084 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #1085 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #1086 > > │ ### many_chars                                                               │
00:00:45 verbose #1087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1088 > >
00:00:45 verbose #1089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #1090 > > inl many_chars p : parser string = fun input =>
00:00:45 verbose #1091 > >     match many1_chars p input with
00:00:45 verbose #1092 > >     | Ok (result, rest) => Ok (result, rest)
00:00:45 verbose #1093 > >     | Error e => Ok ("", input)
00:00:45 verbose #1094 > >
00:00:45 verbose #1095 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #1096 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #1097 > > │ ### many_chars_till                                                          │
00:00:45 verbose #1098 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #1099 > >
00:00:45 verbose #1100 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #1101 > > inl many_chars_till p end_p : parser string = fun input =>
00:00:45 verbose #1102 > >     match end_p input with
00:00:45 verbose #1103 > >     | Ok _ => Ok ("", input)
00:00:45 verbose #1104 > >     | Error _ =>
00:00:45 verbose #1105 > >         match many_chars p input with
00:00:45 verbose #1106 > >         | Ok (result, rest) => Ok (result, rest)
00:00:45 verbose #1107 > >         | Error e => Error e
00:00:46 verbose #1108 > >
00:00:46 verbose #1109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #1110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #1111 > > │ ### many1                                                                    │
00:00:46 verbose #1112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #1113 > >
00:00:46 verbose #1114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #1115 > > inl many1 p : parser (list _) = fun input =>
00:00:46 verbose #1116 > >     match p input with
00:00:46 verbose #1117 > >     | Error e => Error e
00:00:46 verbose #1118 > >     | Ok (first_result, rest) =>
00:00:46 verbose #1119 > >         let rec loop acc input =
00:00:46 verbose #1120 > >             match p input with
00:00:46 verbose #1121 > >             | Ok (result, rest) => loop (result :: acc) rest
00:00:46 verbose #1122 > >             | Error _ => Ok (listm.rev acc, input)
00:00:46 verbose #1123 > >         loop [[ first_result ]] rest
00:00:46 verbose #1124 > >
00:00:46 verbose #1125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #1126 > > //// test
00:00:46 verbose #1127 > >
00:00:46 verbose #1128 > > "aaabbc"
00:00:46 verbose #1129 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:46 verbose #1130 > > |> resultm.get
00:00:46 verbose #1131 > > |> sm'.format_debug
00:00:46 verbose #1132 > > |> _assert_eq (
00:00:46 verbose #1133 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:00:46 verbose #1134 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:00:46 verbose #1135 > >     |> sm'.format_debug
00:00:46 verbose #1136 > > )
00:00:46 verbose #1137 > >
00:00:46 verbose #1138 > > "bcc"
00:00:46 verbose #1139 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:46 verbose #1140 > > |> resultm.get
00:00:46 verbose #1141 > > |> sm'.format_debug
00:00:46 verbose #1142 > > |> _assert_eq (
00:00:46 verbose #1143 > >     ([['b']], "cc", { line_text = "b" |> sm'.string_builder; position = { line =
00:00:46 verbose #1144 > > 1i32; col = 2i32 } })
00:00:46 verbose #1145 > >     |> sm'.format_debug
00:00:46 verbose #1146 > > )
00:00:46 verbose #1147 > >
00:00:46 verbose #1148 > > "cba"
00:00:46 verbose #1149 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:00:46 verbose #1150 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:00:46 verbose #1151 > > 1\ncba\n^\n")
00:00:48 verbose #1152 > >
00:00:48 verbose #1153 > > ╭─[ 1.26s - stdout ]───────────────────────────────────────────────────────────╮
00:00:48 verbose #1154 > > │ __assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1     │
00:00:48 verbose #1155 > > │ ('b', UH0_1 ('b', UH0_0))))),                                                │
00:00:48 verbose #1156 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:00:48 verbose #1157 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:00:48 verbose #1158 > > │         "c", aaabb, 1, 6)"                                                   │
00:00:48 verbose #1159 > > │ __assert_eq / actual: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)" /         │
00:00:48 verbose #1160 > > │ expected: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)"                       │
00:00:48 verbose #1161 > > │ __assert_eq / actual: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: │
00:00:48 verbose #1162 > > │ 1                                                                            │
00:00:48 verbose #1163 > > │ cba                                                                          │
00:00:48 verbose #1164 > > │ ^                                                                            │
00:00:48 verbose #1165 > > │ " / expected: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:00:48 verbose #1166 > > │ cba                                                                          │
00:00:48 verbose #1167 > > │ ^                                                                            │
00:00:48 verbose #1168 > > │ "                                                                            │
00:00:48 verbose #1169 > > │                                                                              │
00:00:48 verbose #1170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #1171 > >
00:00:48 verbose #1172 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #1173 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #1174 > > │ ### many1_strings                                                            │
00:00:48 verbose #1175 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #1176 > >
00:00:48 verbose #1177 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #1178 > > inl many1_strings p : parser string = fun input =>
00:00:48 verbose #1179 > >     match many1 p input with
00:00:48 verbose #1180 > >     | Ok (results, rest) =>
00:00:48 verbose #1181 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:00:48 verbose #1182 > > |> sm'.concat "", rest)
00:00:48 verbose #1183 > >     | Error e => Error e
00:00:48 verbose #1184 > >
00:00:48 verbose #1185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #1186 > > //// test
00:00:48 verbose #1187 > >
00:00:48 verbose #1188 > > "aaabbc"
00:00:48 verbose #1189 > > |> parse (many1_strings (p_char 'a' <|> p_char 'b'))
00:00:48 verbose #1190 > > |> resultm.get
00:00:48 verbose #1191 > > |> sm'.format_debug
00:00:48 verbose #1192 > > |> _assert_eq (
00:00:48 verbose #1193 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:00:48 verbose #1194 > > line = 1i32; col = 6i32 } })
00:00:48 verbose #1195 > >     |> sm'.format_debug
00:00:48 verbose #1196 > > )
00:00:49 verbose #1197 > >
00:00:49 verbose #1198 > > ╭─[ 1.13s - stdout ]───────────────────────────────────────────────────────────╮
00:00:49 verbose #1199 > > │ __assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected:       │
00:00:49 verbose #1200 > > │ "struct ("aaabb", "c", aaabb, 1, 6)"                                         │
00:00:49 verbose #1201 > > │                                                                              │
00:00:49 verbose #1202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #1203 > >
00:00:49 verbose #1204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #1205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #1206 > > │ ### many_strings                                                             │
00:00:49 verbose #1207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #1208 > >
00:00:49 verbose #1209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #1210 > > inl many_strings p : parser string = fun input =>
00:00:49 verbose #1211 > >     match many p input with
00:00:49 verbose #1212 > >     | Ok (results, rest) =>
00:00:49 verbose #1213 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:00:49 verbose #1214 > > |> sm'.concat "", rest)
00:00:49 verbose #1215 > >     | Error e => Ok ("", input)
00:00:50 verbose #1216 > >
00:00:50 verbose #1217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1219 > > │ ### choice                                                                   │
00:00:50 verbose #1220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1221 > >
00:00:50 verbose #1222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1223 > > inl choice parsers : parser _ = fun input =>
00:00:50 verbose #1224 > >     let rec loop = function
00:00:50 verbose #1225 > >         | [[]] => Error "choice / no parsers succeeded"
00:00:50 verbose #1226 > >         | p :: ps =>
00:00:50 verbose #1227 > >             match p input with
00:00:50 verbose #1228 > >             | Ok _ as result => result
00:00:50 verbose #1229 > >             | Error _ => loop ps
00:00:50 verbose #1230 > >     loop parsers
00:00:50 verbose #1231 > >
00:00:50 verbose #1232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1233 > > //// test
00:00:50 verbose #1234 > >
00:00:50 verbose #1235 > > "bca"
00:00:50 verbose #1236 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:00:50 verbose #1237 > > |> resultm.get
00:00:50 verbose #1238 > > |> sm'.format_debug
00:00:50 verbose #1239 > > |> _assert_eq (
00:00:50 verbose #1240 > >     ('b', "ca", { line_text = "b" |> sm'.string_builder; position = { line =
00:00:50 verbose #1241 > > 1i32; col = 2i32 } })
00:00:50 verbose #1242 > >     |> sm'.format_debug
00:00:50 verbose #1243 > > )
00:00:50 verbose #1244 > >
00:00:50 verbose #1245 > > "cba"
00:00:50 verbose #1246 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:00:50 verbose #1247 > > |> resultm.get
00:00:50 verbose #1248 > > |> sm'.format_debug
00:00:50 verbose #1249 > > |> _assert_eq (
00:00:50 verbose #1250 > >     ('c', "ba", { line_text = "c" |> sm'.string_builder; position = { line =
00:00:50 verbose #1251 > > 1i32; col = 2i32 } })
00:00:50 verbose #1252 > >     |> sm'.format_debug
00:00:50 verbose #1253 > > )
00:00:51 verbose #1254 > >
00:00:51 verbose #1255 > > ╭─[ 1.10s - stdout ]───────────────────────────────────────────────────────────╮
00:00:51 verbose #1256 > > │ __assert_eq / actual: "struct ('b', "ca", b, 1, 2)" / expected: "struct      │
00:00:51 verbose #1257 > > │ ('b', "ca", b, 1, 2)"                                                        │
00:00:51 verbose #1258 > > │ __assert_eq / actual: "struct ('c', "ba", c, 1, 2)" / expected: "struct      │
00:00:51 verbose #1259 > > │ ('c', "ba", c, 1, 2)"                                                        │
00:00:51 verbose #1260 > > │                                                                              │
00:00:51 verbose #1261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1262 > >
00:00:51 verbose #1263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1265 > > │ ### between                                                                  │
00:00:51 verbose #1266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1267 > >
00:00:51 verbose #1268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1269 > > inl between p_open p_close p_content : parser _ = fun input =>
00:00:51 verbose #1270 > >     match p_open input with
00:00:51 verbose #1271 > >     | Ok (_, rest1) =>
00:00:51 verbose #1272 > >         match p_content rest1 with
00:00:51 verbose #1273 > >         | Ok (result, rest2) =>
00:00:51 verbose #1274 > >             match p_close rest2 with
00:00:51 verbose #1275 > >             | Ok (_, rest3) => Ok (result, rest3)
00:00:51 verbose #1276 > >             | Error e => Error $'$"between / expected closing delimiter / e:
00:00:51 verbose #1277 > > %A{!e} / input: %A{!input} / rest1: %A{!rest1} / rest2: %A{!rest2}"'
00:00:51 verbose #1278 > >         | Error _ => Error "between / expected content"
00:00:51 verbose #1279 > >     | Error e => Error e
00:00:52 verbose #1280 > >
00:00:52 verbose #1281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1282 > > //// test
00:00:52 verbose #1283 > >
00:00:52 verbose #1284 > > "[[aaabb]]"
00:00:52 verbose #1285 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:00:52 verbose #1286 > > p_char 'b')))
00:00:52 verbose #1287 > > |> resultm.get
00:00:52 verbose #1288 > > |> sm'.format_debug
00:00:52 verbose #1289 > > |> _assert_eq (
00:00:52 verbose #1290 > >     ("aaabb", "", { line_text = "[[aaabb]]" |> sm'.string_builder; position = {
00:00:52 verbose #1291 > > line = 1i32; col = 8i32 } })
00:00:52 verbose #1292 > >     |> sm'.format_debug
00:00:52 verbose #1293 > > )
00:00:52 verbose #1294 > >
00:00:52 verbose #1295 > > "[[aaabb"
00:00:52 verbose #1296 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:00:52 verbose #1297 > > p_char 'b')))
00:00:52 verbose #1298 > > |> resultm.unwrap_err
00:00:52 verbose #1299 > > |> sm'.format_debug
00:00:52 verbose #1300 > > |> _assert_eq "\"between / expected closing delimiter / e: \"parsing.p_char
00:00:52 verbose #1301 > > unexpected end of input / s: struct ([[aaabb, 1, 7)\" / input: struct
00:00:52 verbose #1302 > > (\"[[aaabb\", [[aaabb, 1, 1) / rest1: struct (\"aaabb\", [[aaabb, 1, 2) / rest2:
00:00:52 verbose #1303 > > struct (\"\", [[aaabb, 1, 7)\""
00:00:53 verbose #1304 > >
00:00:53 verbose #1305 > > ╭─[ 1.32s - stdout ]───────────────────────────────────────────────────────────╮
00:00:53 verbose #1306 > > │ __assert_eq / actual: "struct ("aaabb", "", [aaabb], 1, 8)" / expected:      │
00:00:53 verbose #1307 > > │ "struct ("aaabb", "", [aaabb], 1, 8)"                                        │
00:00:53 verbose #1308 > > │ __assert_eq / actual: ""between / expected closing delimiter / e:            │
00:00:53 verbose #1309 > > │ "parsing.p_char / unexpected end of input / s: struct ([aaabb, 1, 7)" /      │
00:00:53 verbose #1310 > > │ input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct ("aaabb", [aaabb, 1,  │
00:00:53 verbose #1311 > > │ 2) / rest2: struct ("", [aaabb, 1, 7)"" / expected: ""between / expected     │
00:00:53 verbose #1312 > > │ closing delimiter / e: "parsing.p_char / unexpected end of input / s: struct │
00:00:53 verbose #1313 > > │ ([aaabb, 1, 7)" / input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct     │
00:00:53 verbose #1314 > > │ ("aaabb", [aaabb, 1, 2) / rest2: struct ("", [aaabb, 1, 7)""                 │
00:00:53 verbose #1315 > > │                                                                              │
00:00:53 verbose #1316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1317 > >
00:00:53 verbose #1318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1320 > > │ ### sep_by                                                                   │
00:00:53 verbose #1321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1322 > >
00:00:53 verbose #1323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1324 > > inl sep_by p sep : parser (list _) = fun input, s =>
00:00:53 verbose #1325 > >     let rec loop acc input s =
00:00:53 verbose #1326 > >         match p (input, s) with
00:00:53 verbose #1327 > >         | Error _ => Ok (acc |> listm.rev, input, s)
00:00:53 verbose #1328 > >         | Ok (result, rest, s) =>
00:00:53 verbose #1329 > >             match sep (rest, s) with
00:00:53 verbose #1330 > >             | Error _ => Ok ((result :: acc) |> listm.rev, rest, s)
00:00:53 verbose #1331 > >             | Ok (_, rest, s) => loop (result :: acc) rest s
00:00:53 verbose #1332 > >     loop [[]] input s
00:00:54 verbose #1333 > >
00:00:54 verbose #1334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1336 > > │ ### span                                                                     │
00:00:54 verbose #1337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1338 > >
00:00:54 verbose #1339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1340 > > inl span pred str =
00:00:54 verbose #1341 > >     let rec loop i =
00:00:54 verbose #1342 > >         if i >= sm'.length str
00:00:54 verbose #1343 > >         then i
00:00:54 verbose #1344 > >         elif pred (str |> sm'.index i)
00:00:54 verbose #1345 > >         then loop (i + 1)
00:00:54 verbose #1346 > >         else i
00:00:54 verbose #1347 > >     loop 0
00:00:54 verbose #1348 > >
00:00:54 verbose #1349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1351 > > │ ### spaces1                                                                  │
00:00:54 verbose #1352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1353 > >
00:00:54 verbose #1354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1355 > > inl spaces1 () : parser () = fun input, s =>
00:00:54 verbose #1356 > >     match input |> span fun c => c = ' ' with
00:00:54 verbose #1357 > >     | 0i32 => Error "spaces1 / expected at least one space"
00:00:54 verbose #1358 > >     | n => Ok ((), input |> sm'.range (am'.Start n) (am'.End id), s)
00:00:55 verbose #1359 > >
00:00:55 verbose #1360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1362 > > │ ### spaces                                                                   │
00:00:55 verbose #1363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1364 > >
00:00:55 verbose #1365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1366 > > inl spaces () : parser () = fun input, s =>
00:00:55 verbose #1367 > >     input
00:00:55 verbose #1368 > >     |> span fun c => c = ' '
00:00:55 verbose #1369 > >     |> fun (n : i32) => Ok ((), input |> sm'.range (am'.Start n) (am'.End id),
00:00:55 verbose #1370 > > s)
00:00:55 verbose #1371 > >
00:00:55 verbose #1372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1374 > > │ ### p_digit                                                                  │
00:00:55 verbose #1375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1376 > >
00:00:55 verbose #1377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1378 > > inl p_digit () : parser char = fun input, s =>
00:00:55 verbose #1379 > >     match input |> sm'.index 0i32 with
00:00:55 verbose #1380 > >     | ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') as c =>
00:00:55 verbose #1381 > >         Ok (c, input |> sm'.range (am'.Start 1i32) (am'.End id), s)
00:00:55 verbose #1382 > >     | c => Error $'$"p_digit / unexpected char: {!c}"'
00:00:56 verbose #1383 > >
00:00:56 verbose #1384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1385 > > //// test
00:00:56 verbose #1386 > >
00:00:56 verbose #1387 > > "1 2 3"
00:00:56 verbose #1388 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:00:56 verbose #1389 > > |> resultm.get
00:00:56 verbose #1390 > > |> sm'.format_debug
00:00:56 verbose #1391 > > |> _assert_eq (
00:00:56 verbose #1392 > >     ([['1'; '2'; '3']], "", { line_text = "" |> sm'.string_builder; position = {
00:00:56 verbose #1393 > > col = 1i32; line = 1i32 } })
00:00:56 verbose #1394 > >     |> sm'.format_debug
00:00:56 verbose #1395 > > )
00:00:57 verbose #1396 > >
00:00:57 verbose #1397 > > ╭─[ 868.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:57 verbose #1398 > > │ __assert_eq / actual: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3', UH0_0))), │
00:00:57 verbose #1399 > > │ "", , 1, 1)" / expected: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3',        │
00:00:57 verbose #1400 > > │ UH0_0))), "", , 1, 1)"                                                       │
00:00:57 verbose #1401 > > │                                                                              │
00:00:57 verbose #1402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1403 > >
00:00:57 verbose #1404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1405 > > //// test
00:00:57 verbose #1406 > >
00:00:57 verbose #1407 > > "1 a 2"
00:00:57 verbose #1408 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:00:57 verbose #1409 > > |> resultm.get
00:00:57 verbose #1410 > > |> sm'.format_debug
00:00:57 verbose #1411 > > |> _assert_eq (
00:00:57 verbose #1412 > >     ([['1']], "a 2", { line_text = "" |> sm'.string_builder; position = { col =
00:00:57 verbose #1413 > > 1i32; line = 1i32 } })
00:00:57 verbose #1414 > >     |> sm'.format_debug
00:00:57 verbose #1415 > > )
00:00:58 verbose #1416 > >
00:00:58 verbose #1417 > > ╭─[ 817.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:58 verbose #1418 > > │ __assert_eq / actual: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)" /         │
00:00:58 verbose #1419 > > │ expected: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)"                       │
00:00:58 verbose #1420 > > │                                                                              │
00:00:58 verbose #1421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1422 > >
00:00:58 verbose #1423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1425 > > │ ### opt                                                                      │
00:00:58 verbose #1426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1427 > >
00:00:58 verbose #1428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1429 > > inl opt p : parser (option _) = fun input, s =>
00:00:58 verbose #1430 > >     match p (input, s) with
00:00:58 verbose #1431 > >     | Ok (result, rest, s) => Ok (Some result, rest, s)
00:00:58 verbose #1432 > >     | Error _ => Ok (None, input, s)
00:00:58 verbose #1433 > >
00:00:58 verbose #1434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1436 > > │ ### rest_of_line                                                             │
00:00:58 verbose #1437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1438 > >
00:00:58 verbose #1439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1440 > > inl rest_of_line () : parser string = fun input, s =>
00:00:58 verbose #1441 > >     inl i : i32 = input |> span ((<>) '\n')
00:00:58 verbose #1442 > >     Ok (input |> sm'.range (am'.Start i) (am'.End id), input |> sm'.range
00:00:58 verbose #1443 > > (am'.Start i) (am'.End id), s)
00:00:59 verbose #1444 > >
00:00:59 verbose #1445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 verbose #1446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 verbose #1447 > > │ ### eof                                                                      │
00:00:59 verbose #1448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 verbose #1449 > >
00:00:59 verbose #1450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 verbose #1451 > > inl eof () : parser () = fun input, s =>
00:00:59 verbose #1452 > >     if sm'.length input = 0i32
00:00:59 verbose #1453 > >     then Ok ((), input, s)
00:00:59 verbose #1454 > >     else Error $'$"parsing.eof / expected end of input / input: %A{!input}"'
00:00:59 verbose #1455 > 00:00:58 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 65965 }
00:00:59 verbose #1456 > 00:00:58   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:59 verbose #1457 >     "nbconvert",
00:00:59 verbose #1458 >     "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb",
00:00:59 verbose #1459 >     "--to",
00:00:59 verbose #1460 >     "html",
00:00:59 verbose #1461 >     "--HTMLExporter.theme=dark",
00:00:59 verbose #1462 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:02 verbose #1463 > 00:01:01 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb to html
00:01:02 verbose #1464 > 00:01:01 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:02 verbose #1465 > 00:01:01 verbose #7 !   validate(nb)
00:01:06 verbose #1466 > 00:01:05 verbose #8 ! [NbConvertApp] Writing 480777 bytes to c:\home\git\polyglot\lib\spiral\parsing.dib.html
00:01:07 verbose #1467 > 00:01:05 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:01:07 verbose #1468 > 00:01:05   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:01:07 verbose #1469 > 00:01:05   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:07 verbose #1470 >     "-c",
00:01:07 verbose #1471 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:07 verbose #1472 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:07 verbose #1473 > 00:01:06 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:07 verbose #1474 > 00:01:06   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:07 verbose #1475 > 00:01:06   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 66669 }
00:01:07   debug #1476 runtime.execute_with_options_async / { exit_code = 0; output_length = 72244 }
00:01:07   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3
00:01:07   debug #1477 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:07 verbose #1478 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "sm'.dib", "--retries", "3"])) }
00:01:07 verbose #1479 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:01:07 verbose #1480 >     "repl",
00:01:07 verbose #1481 >     "--exit-after-run",
00:01:07 verbose #1482 >     "--run",
00:01:07 verbose #1483 >     "c:/home/git/polyglot/lib/spiral/sm'.dib",
00:01:07 verbose #1484 >     "--output-path",
00:01:07 verbose #1485 >     "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb",
00:01:07 verbose #1486 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/sm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:10 verbose #1487 > >
00:01:10 verbose #1488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 verbose #1489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 verbose #1490 > > │ # sm'                                                                        │
00:01:10 verbose #1491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 verbose #1492 > >
00:01:15 verbose #1493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 verbose #1494 > > //// test
00:01:15 verbose #1495 > >
00:01:15 verbose #1496 > > open testing
00:01:16 verbose #1497 > >
00:01:16 verbose #1498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1499 > > open rust
00:01:16 verbose #1500 > > open rust_operators
00:01:16 verbose #1501 > > open sm'_real
00:01:17 verbose #1502 > >
00:01:17 verbose #1503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 verbose #1504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 verbose #1505 > > │ ## rust                                                                      │
00:01:17 verbose #1506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 verbose #1507 > >
00:01:17 verbose #1508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 verbose #1509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 verbose #1510 > > │ ### std_string                                                               │
00:01:17 verbose #1511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 verbose #1512 > >
00:01:17 verbose #1513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 verbose #1514 > > //// real
00:01:17 verbose #1515 > >
00:01:17 verbose #1516 > > nominal std_string =
00:01:17 verbose #1517 > >     `(
00:01:17 verbose #1518 > >         backend_switch `(()) `({}) {
00:01:17 verbose #1519 > >             Fsharp =
00:01:17 verbose #1520 > >                 (fun () =>
00:01:17 verbose #1521 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:17 verbose #1522 > > Fable.Core.Emit(\"std::string::String\")>]]\n#endif\ntype std_string_String =
00:01:17 verbose #1523 > > class end"
00:01:17 verbose #1524 > >                 ) : () -> ()
00:01:17 verbose #1525 > >         }
00:01:17 verbose #1526 > >         $'' : $'std_string_String'
00:01:17 verbose #1527 > >     )
00:01:17 verbose #1528 > >
00:01:17 verbose #1529 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 verbose #1530 > > type std_string = sm'_real.std_string
00:01:18 verbose #1531 > >
00:01:18 verbose #1532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 verbose #1533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 verbose #1534 > > │ ### to_string                                                                │
00:01:18 verbose #1535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 verbose #1536 > >
00:01:18 verbose #1537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 verbose #1538 > > inl to_string forall t. (x : t) : std_string =
00:01:18 verbose #1539 > >     !\($'$"!x.to_string()"')
00:01:18 verbose #1540 > >
00:01:18 verbose #1541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 verbose #1542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 verbose #1543 > > │ ### from_std_string                                                          │
00:01:18 verbose #1544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 verbose #1545 > >
00:01:18 verbose #1546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 verbose #1547 > > //// real
00:01:18 verbose #1548 > >
00:01:18 verbose #1549 > > inl from_std_string (str : std_string) : string =
00:01:18 verbose #1550 > >     open rust
00:01:18 verbose #1551 > >     rust.emit_expr `std_string `string str
00:01:18 verbose #1552 > > ($'"fable_library_rust::String_::fromString($0)"' : string)
00:01:18 verbose #1553 > >
00:01:18 verbose #1554 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 verbose #1555 > > inl from_std_string (str : std_string) : string =
00:01:18 verbose #1556 > >     real sm'_real.from_std_string str
00:01:19 verbose #1557 > >
00:01:19 verbose #1558 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #1559 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #1560 > > │ ## sm'                                                                       │
00:01:19 verbose #1561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #1562 > >
00:01:19 verbose #1563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #1564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #1565 > > │ ### symbol_to_string                                                         │
00:01:19 verbose #1566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 verbose #1567 > >
00:01:19 verbose #1568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 verbose #1569 > > //// real
00:01:19 verbose #1570 > >
00:01:19 verbose #1571 > > inl symbol_to_string forall t {symbol}. : string =
00:01:19 verbose #1572 > >     // inl x = real_core.type_lit_to_lit `t
00:01:19 verbose #1573 > >     // inl x = real_core.type_to_symbol `t
00:01:19 verbose #1574 > >     // inl x = real_core.type_lit_to_lit `t
00:01:19 verbose #1575 > >     // !!!!SymbolToString (`(`t))
00:01:19 verbose #1576 > >     inl x = real_core.type_to_symbol `t
00:01:19 verbose #1577 > >     !!!!SymbolToString (x)
00:01:19 verbose #1578 > >
00:01:19 verbose #1579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 verbose #1580 > > inl symbol_to_string forall t {symbol}. (x : t) : string =
00:01:19 verbose #1581 > >     real symbol_to_string `t
00:01:20 verbose #1582 > >
00:01:20 verbose #1583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:20 verbose #1584 > > //// test
00:01:20 verbose #1585 > >
00:01:20 verbose #1586 > > .test
00:01:20 verbose #1587 > > |> symbol_to_string
00:01:20 verbose #1588 > > |> _assert_eq "test"
00:01:21 verbose #1589 > >
00:01:21 verbose #1590 > > ╭─[ 1.20s - stdout ]───────────────────────────────────────────────────────────╮
00:01:21 verbose #1591 > > │ __assert_eq / actual: "test" / expected: "test"                              │
00:01:21 verbose #1592 > > │                                                                              │
00:01:21 verbose #1593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1594 > >
00:01:21 verbose #1595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:21 verbose #1596 > > //// test
00:01:21 verbose #1597 > > //// real
00:01:21 verbose #1598 > >
00:01:21 verbose #1599 > > open testing
00:01:21 verbose #1600 > > inl x = .test
00:01:21 verbose #1601 > > inl x = symbol_to_string `(`x)
00:01:21 verbose #1602 > > _assert_eq `string "test" x
00:01:21 verbose #1603 > >
00:01:21 verbose #1604 > > ╭─[ 504.03ms - stdout ]────────────────────────────────────────────────────────╮
00:01:21 verbose #1605 > > │ __assert_eq / actual: "test" / expected: "test"                              │
00:01:21 verbose #1606 > > │                                                                              │
00:01:21 verbose #1607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1608 > >
00:01:21 verbose #1609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:21 verbose #1610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:21 verbose #1611 > > │ ### index                                                                    │
00:01:21 verbose #1612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1613 > >
00:01:21 verbose #1614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:21 verbose #1615 > > inl index i (str : string) : char =
00:01:21 verbose #1616 > >     sm.index str i
00:01:22 verbose #1617 > >
00:01:22 verbose #1618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #1619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #1620 > > │ ### length                                                                   │
00:01:22 verbose #1621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #1622 > >
00:01:22 verbose #1623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #1624 > > inl length forall dim {int}. (input : string) : dim =
00:01:22 verbose #1625 > >     input |> sm.length
00:01:22 verbose #1626 > >
00:01:22 verbose #1627 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #1628 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #1629 > > │ ### to_char_array                                                            │
00:01:22 verbose #1630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #1631 > >
00:01:22 verbose #1632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #1633 > > inl to_char_array (str : string) : array_base char =
00:01:22 verbose #1634 > >     am.init (str |> length) (fun i => str |> index i)
00:01:22 verbose #1635 > >     |> fun (a x : _ int _) => x
00:01:22 verbose #1636 > >
00:01:22 verbose #1637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #1638 > > //// test
00:01:22 verbose #1639 > >
00:01:22 verbose #1640 > > "abc"
00:01:22 verbose #1641 > > |> to_char_array
00:01:22 verbose #1642 > > |> _assert_eq' ;[[ 'a'; 'b'; 'c' ]]
00:01:24 verbose #1643 > >
00:01:24 verbose #1644 > > ╭─[ 1.27s - stdout ]───────────────────────────────────────────────────────────╮
00:01:24 verbose #1645 > > │ __assert_eq' / actual: [|'a'; 'b'; 'c'|] / expected: [|'a'; 'b'; 'c'|]       │
00:01:24 verbose #1646 > > │                                                                              │
00:01:24 verbose #1647 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:24 verbose #1648 > >
00:01:24 verbose #1649 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:24 verbose #1650 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:24 verbose #1651 > > │ ### to_char_list                                                             │
00:01:24 verbose #1652 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:24 verbose #1653 > >
00:01:24 verbose #1654 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:24 verbose #1655 > > inl to_char_list (str : string) : list char =
00:01:24 verbose #1656 > >     listm.init (str |> length) (fun (i : i64) => str |> index i)
00:01:24 verbose #1657 > >
00:01:24 verbose #1658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:24 verbose #1659 > > //// test
00:01:24 verbose #1660 > >
00:01:24 verbose #1661 > > "abc"
00:01:24 verbose #1662 > > |> to_char_list
00:01:24 verbose #1663 > > |> _assert_eq [[ 'a'; 'b'; 'c' ]]
00:01:25 verbose #1664 > >
00:01:25 verbose #1665 > > ╭─[ 618.17ms - stdout ]────────────────────────────────────────────────────────╮
00:01:25 verbose #1666 > > │ __assert_eq / actual: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0))) /         │
00:01:25 verbose #1667 > > │ expected: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0)))                       │
00:01:25 verbose #1668 > > │                                                                              │
00:01:25 verbose #1669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #1670 > >
00:01:25 verbose #1671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:25 verbose #1672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:25 verbose #1673 > > │ ### is_empty                                                                 │
00:01:25 verbose #1674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #1675 > >
00:01:25 verbose #1676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:25 verbose #1677 > > inl is_empty (input : string) : bool =
00:01:25 verbose #1678 > >     length input = 0i32
00:01:25 verbose #1679 > >
00:01:25 verbose #1680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:25 verbose #1681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:25 verbose #1682 > > │ ### slice                                                                    │
00:01:25 verbose #1683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #1684 > >
00:01:25 verbose #1685 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:25 verbose #1686 > > inl slice from to s : string =
00:01:25 verbose #1687 > >     sm.slice s { from to }
00:01:26 verbose #1688 > >
00:01:26 verbose #1689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:26 verbose #1690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:26 verbose #1691 > > │ ### format_debug                                                             │
00:01:26 verbose #1692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:26 verbose #1693 > >
00:01:26 verbose #1694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:26 verbose #1695 > > //// real
00:01:26 verbose #1696 > >
00:01:26 verbose #1697 > > inl format_debug forall t. (x : t) : string =
00:01:26 verbose #1698 > >     backend_switch `string `({}) {
00:01:26 verbose #1699 > >         Fsharp = (fun () => $'$"%A{!x}"' : string) : () -> string
00:01:26 verbose #1700 > >         Python = (fun () => $'f"{!x}"' : string) : () -> string
00:01:26 verbose #1701 > >     }
00:01:26 verbose #1702 > >
00:01:26 verbose #1703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:26 verbose #1704 > > inl format_debug forall t. (x : t) : string =
00:01:26 verbose #1705 > >     real format_debug `t x
00:01:26 verbose #1706 > >
00:01:26 verbose #1707 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:26 verbose #1708 > > //// test
00:01:26 verbose #1709 > >
00:01:26 verbose #1710 > > { c = "1"; a = "2"; b = "3" }
00:01:26 verbose #1711 > > |> format_debug
00:01:26 verbose #1712 > > |> _assert_eq "struct (\"1\", \"2\", \"3\")"
00:01:27 verbose #1713 > >
00:01:27 verbose #1714 > > ╭─[ 452.60ms - stdout ]────────────────────────────────────────────────────────╮
00:01:27 verbose #1715 > > │ __assert_eq / actual: "struct ("1", "2", "3")" / expected: "struct ("1",     │
00:01:27 verbose #1716 > > │ "2", "3")"                                                                   │
00:01:27 verbose #1717 > > │                                                                              │
00:01:27 verbose #1718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 verbose #1719 > >
00:01:27 verbose #1720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:27 verbose #1721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:27 verbose #1722 > > │ ### format_pretty                                                            │
00:01:27 verbose #1723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:27 verbose #1724 > >
00:01:27 verbose #1725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 verbose #1726 > > //// real
00:01:27 verbose #1727 > >
00:01:27 verbose #1728 > > inl format_pretty forall t. (x : t) : string =
00:01:27 verbose #1729 > >     run_target_args `string `t (fun () => x) function
00:01:27 verbose #1730 > >         | Rust _ => fun x =>
00:01:27 verbose #1731 > >             open rust
00:01:27 verbose #1732 > >             inl result = rust.emit_expr `t `std_string x
00:01:27 verbose #1733 > > ($'"format\!(\\\"{:#?}\\\", $0)"' : string)
00:01:27 verbose #1734 > >             from_std_string result
00:01:27 verbose #1735 > >         | _ => fun _ => format_debug `t x
00:01:27 verbose #1736 > >
00:01:27 verbose #1737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:27 verbose #1738 > > inl format_pretty forall t. (x : t) : string =
00:01:27 verbose #1739 > >     real sm'_real.format_pretty `t x
00:01:28 verbose #1740 > >
00:01:28 verbose #1741 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:28 verbose #1742 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:28 verbose #1743 > > │ ### prim                                                                     │
00:01:28 verbose #1744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 verbose #1745 > >
00:01:28 verbose #1746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:28 verbose #1747 > > inl prim x = real
00:01:28 verbose #1748 > >     match x with
00:01:28 verbose #1749 > >     | (x : i8) | (x : i16) | (x : i32) | (x : i64) => "%d", x
00:01:28 verbose #1750 > >     | (x : u8) | (x : u16) | (x : u32) | (x : u64) => "%u", x
00:01:28 verbose #1751 > >     | (x : f32) | (x : f64) => "%f", x
00:01:28 verbose #1752 > >     | (x : string) => "%s", x
00:01:28 verbose #1753 > >     | (x : char) => "%c", x
00:01:28 verbose #1754 > >
00:01:28 verbose #1755 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:28 verbose #1756 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:28 verbose #1757 > > │ ### printable                                                                │
00:01:28 verbose #1758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 verbose #1759 > >
00:01:28 verbose #1760 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:28 verbose #1761 > > //// real
00:01:28 verbose #1762 > >
00:01:28 verbose #1763 > > prototype printable t : t -> ()
00:01:29 verbose #1764 > >
00:01:29 verbose #1765 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:29 verbose #1766 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:29 verbose #1767 > > │ ### format_real                                                              │
00:01:29 verbose #1768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:29 verbose #1769 > >
00:01:29 verbose #1770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:29 verbose #1771 > > //// real
00:01:29 verbose #1772 > >
00:01:29 verbose #1773 > > inl format_real forall t. (x : t) : string =
00:01:29 verbose #1774 > >     inl result = mut `string (join "")
00:01:29 verbose #1775 > >     inl rec write x =
00:01:29 verbose #1776 > >         inl p ((a : string), b) =
00:01:29 verbose #1777 > >             inl s : string =
00:01:29 verbose #1778 > >                 backend_switch `string `({}) {
00:01:29 verbose #1779 > >                     Fsharp =
00:01:29 verbose #1780 > >                         (fun () =>
00:01:29 verbose #1781 > >                             match b with
00:01:29 verbose #1782 > >                             | (_ : f32) | (_ : f64) => $'$"%+.6f{!b}"' : string
00:01:29 verbose #1783 > >                             | _ => $'$"{!b}"' : string
00:01:29 verbose #1784 > >                         ) : () -> string
00:01:29 verbose #1785 > >                     Python =
00:01:29 verbose #1786 > >                         (fun () =>
00:01:29 verbose #1787 > >                             match b with
00:01:29 verbose #1788 > >                             | (_ : f32) | (_ : f64) => $'"{:.6f}".format(!b)' :
00:01:29 verbose #1789 > > string
00:01:29 verbose #1790 > >                             | _ => $'f"{!b}"' : string
00:01:29 verbose #1791 > >                         ) : () -> string
00:01:29 verbose #1792 > >                 }
00:01:29 verbose #1793 > >             exec_unit ((fun () => result <- (+.) `string ((~*) `string result)
00:01:29 verbose #1794 > > s) : () -> ())
00:01:29 verbose #1795 > >
00:01:29 verbose #1796 > >         match x with // According to Bing it shouldn't matter whether these are
00:01:29 verbose #1797 > > %d or %lld in printf.
00:01:29 verbose #1798 > >         | () => ()
00:01:29 verbose #1799 > >         | (x : i8) | (x : i16) | (x : i32) | (x : i64) => p ("%d", x)
00:01:29 verbose #1800 > >         | (x : u8) | (x : u16) | (x : u32) | (x : u64) => p ("%u", x)
00:01:29 verbose #1801 > >         | (x : f32) | (x : f64) => p ("%f", x)
00:01:29 verbose #1802 > >         | (x : string) => p ("%s", x)
00:01:29 verbose #1803 > >         | (x : char) => p ("%c", x)
00:01:29 verbose #1804 > >         | (x : bool) => p ("%s", if x then "true" else "false")
00:01:29 verbose #1805 > >         | (a,b) => write a . write ", " . write b
00:01:29 verbose #1806 > >         | {} as x =>
00:01:29 verbose #1807 > >             write "{ "
00:01:29 verbose #1808 > >             inl _result =
00:01:29 verbose #1809 > >                 real_core.record_fold
00:01:29 verbose #1810 > >                     fun { state = separator key value } =>
00:01:29 verbose #1811 > >                         write separator
00:01:29 verbose #1812 > >                         write (symbol_to_string `(`key)) . write " = " . write
00:01:29 verbose #1813 > > value
00:01:29 verbose #1814 > >                         "; "
00:01:29 verbose #1815 > >                     () x
00:01:29 verbose #1816 > >             write " }"
00:01:29 verbose #1817 > >         | x when real_core.symbol_is x => write (symbol_to_string `(`x))
00:01:29 verbose #1818 > >         | x when real_core.function_is x => write (x ())
00:01:29 verbose #1819 > >         | x when real_core.union_is x =>
00:01:29 verbose #1820 > >             if real_core.prototype_has `(`x) printable then printable `(`x) x
00:01:29 verbose #1821 > >             else
00:01:29 verbose #1822 > >                 write (format_debug `(`x) x)
00:01:29 verbose #1823 > >                 // real_core.unbox x (fun (k, v) =>
00:01:29 verbose #1824 > >                 //     write k
00:01:29 verbose #1825 > >                 //     match v with
00:01:29 verbose #1826 > >                 //     | () => ()
00:01:29 verbose #1827 > >                 //     | _ => write "(" . write v . write ")"
00:01:29 verbose #1828 > >                 //     )
00:01:29 verbose #1829 > >         | x when real_core.nominal_is x =>
00:01:29 verbose #1830 > >             if real_core.prototype_has `(`x) printable then printable `(`x) x
00:01:29 verbose #1831 > >             // elif layout_is x then write *x // TODO: Deal with all the layout
00:01:29 verbose #1832 > > type cases.
00:01:29 verbose #1833 > >             else write (format_pretty `(`x) x)
00:01:29 verbose #1834 > >         | x => write (format_debug `(`x) x)
00:01:29 verbose #1835 > >     write x
00:01:29 verbose #1836 > >     (~*) `string result
00:01:29 verbose #1837 > >
00:01:29 verbose #1838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:29 verbose #1839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:29 verbose #1840 > > │ ### format                                                                   │
00:01:29 verbose #1841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:29 verbose #1842 > >
00:01:29 verbose #1843 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:29 verbose #1844 > > inl format forall t. (x : t) : string =
00:01:29 verbose #1845 > >     real format_real `t x
00:01:30 verbose #1846 > >
00:01:30 verbose #1847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:30 verbose #1848 > > //// test
00:01:30 verbose #1849 > > ///! fsharp
00:01:30 verbose #1850 > > ////! cuda
00:01:30 verbose #1851 > > ////! rust
00:01:30 verbose #1852 > > ////! typescript
00:01:30 verbose #1853 > > ////! python
00:01:30 verbose #1854 > >
00:01:30 verbose #1855 > > ("1", "2", [["3"; "4"]], { b = "5"; c = "6"; a = fun () => "7" })
00:01:30 verbose #1856 > > |> format
00:01:30 verbose #1857 > > |> _assert_eq "1, 2, UH0_1 (\"3\", UH0_1 (\"4\", UH0_0)), { b = 5; c = 6; a = 7
00:01:30 verbose #1858 > > }"
00:01:30 verbose #1859 > >
00:01:30 verbose #1860 > > ╭─[ 666.10ms - stdout ]────────────────────────────────────────────────────────╮
00:01:30 verbose #1861 > > │ __assert_eq / actual: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c =   │
00:01:30 verbose #1862 > > │ 6; a = 7 }" / expected: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = │
00:01:30 verbose #1863 > > │ 6; a = 7 }"                                                                  │
00:01:30 verbose #1864 > > │                                                                              │
00:01:30 verbose #1865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:30 verbose #1866 > >
00:01:30 verbose #1867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:30 verbose #1868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:30 verbose #1869 > > │ ### concat_array_trailing                                                    │
00:01:30 verbose #1870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:30 verbose #1871 > >
00:01:30 verbose #1872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:30 verbose #1873 > > inl concat_array_trailing (separator : string) (input : a i32 string) =
00:01:30 verbose #1874 > >     ("", input)
00:01:30 verbose #1875 > >     ||> am.fold fun acc (x : string) =>
00:01:30 verbose #1876 > >         $'!acc + !x + !separator + ""'
00:01:31 verbose #1877 > >
00:01:31 verbose #1878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:31 verbose #1879 > > //// test
00:01:31 verbose #1880 > > ///! typescript
00:01:31 verbose #1881 > >
00:01:31 verbose #1882 > > ;[[
00:01:31 verbose #1883 > >     "1"
00:01:31 verbose #1884 > >     "2"
00:01:31 verbose #1885 > >     "3"
00:01:31 verbose #1886 > > ]]
00:01:31 verbose #1887 > > |> fun x =>
00:01:31 verbose #1888 > >     inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:01:31 verbose #1889 > >     code
00:01:31 verbose #1890 > >     |> _assert_eq "1\n2\n3\n"
00:01:33 verbose #1891 > >
00:01:33 verbose #1892 > > ╭─[ 2.16s - return value ]─────────────────────────────────────────────────────╮
00:01:33 verbose #1893 > > │ __assert_eq / actual: 1                                                      │
00:01:33 verbose #1894 > > │ 2                                                                            │
00:01:33 verbose #1895 > > │ 3                                                                            │
00:01:33 verbose #1896 > > │  / expected: 1                                                               │
00:01:33 verbose #1897 > > │ 2                                                                            │
00:01:33 verbose #1898 > > │ 3                                                                            │
00:01:33 verbose #1899 > > │                                                                              │
00:01:33 verbose #1900 > > │                                                                              │
00:01:33 verbose #1901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 verbose #1902 > >
00:01:33 verbose #1903 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:33 verbose #1904 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:33 verbose #1905 > > │ ### concat_list_trailing                                                     │
00:01:33 verbose #1906 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 verbose #1907 > >
00:01:33 verbose #1908 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:33 verbose #1909 > > inl concat_list_trailing separator input =
00:01:33 verbose #1910 > >     ("", input)
00:01:33 verbose #1911 > >     ||> listm.fold fun acc (x : string) =>
00:01:33 verbose #1912 > >         $'!acc + !x + !separator + ""'
00:01:33 verbose #1913 > >
00:01:33 verbose #1914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:33 verbose #1915 > > //// test
00:01:33 verbose #1916 > > ///! rust
00:01:33 verbose #1917 > >
00:01:33 verbose #1918 > > [[
00:01:33 verbose #1919 > >     "1"
00:01:33 verbose #1920 > >     "2"
00:01:33 verbose #1921 > >     "3"
00:01:33 verbose #1922 > > ]]
00:01:33 verbose #1923 > > |> fun x =>
00:01:33 verbose #1924 > >     inl code = (x : _) |> concat_list_trailing "\n"
00:01:33 verbose #1925 > >     code
00:01:33 verbose #1926 > >     |> _assert_eq "1\n2\n3\n"
00:01:40 verbose #1927 > >
00:01:40 verbose #1928 > > ╭─[ 6.36s - return value ]─────────────────────────────────────────────────────╮
00:01:40 verbose #1929 > > │ __assert_eq / actual: "1                                                     │
00:01:40 verbose #1930 > > │ 2                                                                            │
00:01:40 verbose #1931 > > │ 3                                                                            │
00:01:40 verbose #1932 > > │ " / expected: "1                                                             │
00:01:40 verbose #1933 > > │ 2                                                                            │
00:01:40 verbose #1934 > > │ 3                                                                            │
00:01:40 verbose #1935 > > │ "                                                                            │
00:01:40 verbose #1936 > > │                                                                              │
00:01:40 verbose #1937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 verbose #1938 > >
00:01:40 verbose #1939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:40 verbose #1940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:40 verbose #1941 > > │ ### concat_list_heap_trailing                                                │
00:01:40 verbose #1942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:40 verbose #1943 > >
00:01:40 verbose #1944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:40 verbose #1945 > > inl concat_list_heap_trailing separator input =
00:01:40 verbose #1946 > >     inl separator = join separator
00:01:40 verbose #1947 > >     ("", input)
00:01:40 verbose #1948 > >     ||> listm.fold fun acc (x : string) =>
00:01:40 verbose #1949 > >         $'$"{!acc}{!x}{!separator}"'
00:01:40 verbose #1950 > >
00:01:40 verbose #1951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:40 verbose #1952 > > //// test
00:01:40 verbose #1953 > > ///! rust
00:01:40 verbose #1954 > >
00:01:40 verbose #1955 > > [[
00:01:40 verbose #1956 > >     "1"
00:01:40 verbose #1957 > >     "2"
00:01:40 verbose #1958 > >     "3"
00:01:40 verbose #1959 > > ]]
00:01:40 verbose #1960 > > |> fun x =>
00:01:40 verbose #1961 > >     inl code = (x : _) |> concat_list_heap_trailing "\n"
00:01:40 verbose #1962 > >     code
00:01:40 verbose #1963 > >     |> _assert_eq "1\n2\n3\n"
00:01:43 verbose #1964 > >
00:01:43 verbose #1965 > > ╭─[ 3.13s - return value ]─────────────────────────────────────────────────────╮
00:01:43 verbose #1966 > > │ __assert_eq / actual: "1                                                     │
00:01:43 verbose #1967 > > │ 2                                                                            │
00:01:43 verbose #1968 > > │ 3                                                                            │
00:01:43 verbose #1969 > > │ " / expected: "1                                                             │
00:01:43 verbose #1970 > > │ 2                                                                            │
00:01:43 verbose #1971 > > │ 3                                                                            │
00:01:43 verbose #1972 > > │ "                                                                            │
00:01:43 verbose #1973 > > │                                                                              │
00:01:43 verbose #1974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1975 > >
00:01:43 verbose #1976 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #1977 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #1978 > > │ ### ellipsis                                                                 │
00:01:43 verbose #1979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 verbose #1980 > >
00:01:43 verbose #1981 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 verbose #1982 > > inl ellipsis (max : i32) (s : string) =
00:01:43 verbose #1983 > >     if sm.length s <= max
00:01:43 verbose #1984 > >     then s
00:01:43 verbose #1985 > >     else s |> slice 0 (max - 1) |> fun x => $'!x + "..."'
00:01:44 verbose #1986 > >
00:01:44 verbose #1987 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #1988 > > //// test
00:01:44 verbose #1989 > >
00:01:44 verbose #1990 > > "12345"
00:01:44 verbose #1991 > > |> ellipsis 2
00:01:44 verbose #1992 > > |> _assert_eq "12..."
00:01:44 verbose #1993 > >
00:01:44 verbose #1994 > > "12345"
00:01:44 verbose #1995 > > |> ellipsis 4
00:01:44 verbose #1996 > > |> _assert_eq "1234..."
00:01:44 verbose #1997 > >
00:01:44 verbose #1998 > > ╭─[ 437.47ms - stdout ]────────────────────────────────────────────────────────╮
00:01:44 verbose #1999 > > │ __assert_eq / actual: "12..." / expected: "12..."                            │
00:01:44 verbose #2000 > > │ __assert_eq / actual: "1234..." / expected: "1234..."                        │
00:01:44 verbose #2001 > > │                                                                              │
00:01:44 verbose #2002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2003 > >
00:01:44 verbose #2004 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2005 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2006 > > │ ## fsharp                                                                    │
00:01:44 verbose #2007 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2008 > >
00:01:44 verbose #2009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2011 > > │ ### ends_with                                                                │
00:01:44 verbose #2012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2013 > >
00:01:44 verbose #2014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #2015 > > inl ends_with (value : string) (s : string) : bool =
00:01:44 verbose #2016 > >     $'!s.EndsWith !value '
00:01:44 verbose #2017 > >
00:01:44 verbose #2018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:44 verbose #2019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:44 verbose #2020 > > │ ### last_index_of                                                            │
00:01:44 verbose #2021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:44 verbose #2022 > >
00:01:44 verbose #2023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:44 verbose #2024 > > inl last_index_of (search : string) (s : string) : i32 =
00:01:44 verbose #2025 > >     $'!s.LastIndexOf !search '
00:01:45 verbose #2026 > >
00:01:45 verbose #2027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #2028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #2029 > > │ ### index_of                                                                 │
00:01:45 verbose #2030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2031 > >
00:01:45 verbose #2032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2033 > > inl index_of (search : string) (s : string) : i32 =
00:01:45 verbose #2034 > >     $'!s.IndexOf !search '
00:01:45 verbose #2035 > >
00:01:45 verbose #2036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:45 verbose #2037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:45 verbose #2038 > > │ ### replicate                                                                │
00:01:45 verbose #2039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2040 > >
00:01:45 verbose #2041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2042 > > inl replicate (n : i32) (s : string) : string =
00:01:45 verbose #2043 > >     backend_switch {
00:01:45 verbose #2044 > >         Fsharp = fun () => s |> $'String.replicate' n : string
00:01:45 verbose #2045 > >         Python = fun () => $'!s * !n ' : string
00:01:45 verbose #2046 > >     }
00:01:46 verbose #2047 > >
00:01:46 verbose #2048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 verbose #2049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 verbose #2050 > > │ ### obj_to_string                                                            │
00:01:46 verbose #2051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 verbose #2052 > >
00:01:46 verbose #2053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2054 > > inl obj_to_string x : string =
00:01:46 verbose #2055 > >     backend_switch {
00:01:46 verbose #2056 > >         Fsharp = fun () => x |> $'_.ToString()' : string
00:01:46 verbose #2057 > >         Python = fun () => $'str(!x)' : string
00:01:46 verbose #2058 > >     }
00:01:46 verbose #2059 > >
00:01:46 verbose #2060 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 verbose #2061 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 verbose #2062 > > │ ### pad_left                                                                 │
00:01:46 verbose #2063 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 verbose #2064 > >
00:01:46 verbose #2065 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2066 > > inl pad_left (total_width : i32) (padding_char : char) (s : string) : string =
00:01:46 verbose #2067 > >     backend_switch {
00:01:46 verbose #2068 > >         Fsharp = fun () => $'!s.PadLeft (!total_width, !padding_char)' : string
00:01:46 verbose #2069 > >         Python = fun () =>
00:01:46 verbose #2070 > >             inl padding = padding_char |> obj_to_string |> replicate
00:01:46 verbose #2071 > > (total_width - length s)
00:01:46 verbose #2072 > >             padding +. s
00:01:46 verbose #2073 > >     }
00:01:47 verbose #2074 > >
00:01:47 verbose #2075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2077 > > │ ### pad_right                                                                │
00:01:47 verbose #2078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2079 > >
00:01:47 verbose #2080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2081 > > inl pad_right (total_width : i32) (padding_char : char) (s : string) : string =
00:01:47 verbose #2082 > >     $'!s.PadRight (!total_width, !padding_char)'
00:01:47 verbose #2083 > >
00:01:47 verbose #2084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2085 > > //// test
00:01:47 verbose #2086 > >
00:01:47 verbose #2087 > > "123"
00:01:47 verbose #2088 > > |> pad_right 6 ' '
00:01:47 verbose #2089 > > |> _assert_eq "123   "
00:01:48 verbose #2090 > >
00:01:48 verbose #2091 > > ╭─[ 437.13ms - stdout ]────────────────────────────────────────────────────────╮
00:01:48 verbose #2092 > > │ __assert_eq / actual: "123   " / expected: "123   "                          │
00:01:48 verbose #2093 > > │                                                                              │
00:01:48 verbose #2094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2095 > >
00:01:48 verbose #2096 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2097 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2098 > > │ ### starts_with                                                              │
00:01:48 verbose #2099 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2100 > >
00:01:48 verbose #2101 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2102 > > inl starts_with (value : string) (s : string) : bool =
00:01:48 verbose #2103 > >     backend_switch {
00:01:48 verbose #2104 > >         Fsharp = fun () => $'!s.StartsWith !value ' : bool
00:01:48 verbose #2105 > >         Python = fun () => $'!s.startswith(!value)' : bool
00:01:48 verbose #2106 > >     }
00:01:48 verbose #2107 > >
00:01:48 verbose #2108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2110 > > │ ### is_white_space                                                           │
00:01:48 verbose #2111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2112 > >
00:01:48 verbose #2113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2114 > > inl is_white_space (c : char) : bool =
00:01:48 verbose #2115 > >     c |> $'System.Char.IsWhiteSpace'
00:01:48 verbose #2116 > >
00:01:48 verbose #2117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2119 > > │ ### substring                                                                │
00:01:48 verbose #2120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2121 > >
00:01:48 verbose #2122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2123 > > inl substring (start : i32) (len : i32) (str : string) : string =
00:01:48 verbose #2124 > >     $'!str.Substring (!start, !len)'
00:01:49 verbose #2125 > >
00:01:49 verbose #2126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2128 > > │ ### to_lower                                                                 │
00:01:49 verbose #2129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2130 > >
00:01:49 verbose #2131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2132 > > inl to_lower (input : string) : string =
00:01:49 verbose #2133 > >     backend_switch {
00:01:49 verbose #2134 > >         Fsharp = fun () => $'!input.ToLower' () : string
00:01:49 verbose #2135 > >         Python = fun () => $'!input.lower()' : string
00:01:49 verbose #2136 > >     }
00:01:49 verbose #2137 > >
00:01:49 verbose #2138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2140 > > │ ### to_upper                                                                 │
00:01:49 verbose #2141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2142 > >
00:01:49 verbose #2143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2144 > > inl to_upper (input : string) : string =
00:01:49 verbose #2145 > >     $'!input.ToUpper' ()
00:01:50 verbose #2146 > >
00:01:50 verbose #2147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2149 > > │ ### char_to_upper                                                            │
00:01:50 verbose #2150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2151 > >
00:01:50 verbose #2152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2153 > > inl char_to_upper (input : char) : char =
00:01:50 verbose #2154 > >     $'System.Char.ToUpper !input '
00:01:50 verbose #2155 > >
00:01:50 verbose #2156 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2157 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2158 > > │ ### string_builder                                                           │
00:01:50 verbose #2159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2160 > >
00:01:50 verbose #2161 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2162 > > nominal string_builder = $'System.Text.StringBuilder'
00:01:50 verbose #2163 > >
00:01:50 verbose #2164 > > inl string_builder (initial : string) : string_builder =
00:01:50 verbose #2165 > >     initial |> $'`string_builder '
00:01:51 verbose #2166 > >
00:01:51 verbose #2167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2169 > > │ ### builder_append                                                           │
00:01:51 verbose #2170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2171 > >
00:01:51 verbose #2172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2173 > > inl builder_append (item : string) (sb : string_builder) : string_builder =
00:01:51 verbose #2174 > >     ($'!sb.Append' item : string_builder) |> ignore
00:01:51 verbose #2175 > >     sb
00:01:51 verbose #2176 > >
00:01:51 verbose #2177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2179 > > │ ### builder_replace                                                          │
00:01:51 verbose #2180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2181 > >
00:01:51 verbose #2182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2183 > > inl builder_replace (old : string) (new : string) (sb : string_builder) :
00:01:51 verbose #2184 > > string_builder =
00:01:51 verbose #2185 > >     ($'!sb.Replace (!old, !new)' : string_builder) |> ignore
00:01:51 verbose #2186 > >     sb
00:01:51 verbose #2187 > >
00:01:51 verbose #2188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2190 > > │ ### builder_insert                                                           │
00:01:51 verbose #2191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2192 > >
00:01:51 verbose #2193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2194 > > inl builder_insert (n : i32) (s : string) (sb : string_builder) : string_builder
00:01:51 verbose #2195 > > =
00:01:51 verbose #2196 > >     ($'!sb.Insert (!n, !s)' : string_builder) |> ignore
00:01:51 verbose #2197 > >     sb
00:01:52 verbose #2198 > >
00:01:52 verbose #2199 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2200 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2201 > > │ ### builder_clear                                                            │
00:01:52 verbose #2202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2203 > >
00:01:52 verbose #2204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2205 > > inl builder_clear (sb : string_builder) : string_builder =
00:01:52 verbose #2206 > >     ($'!sb.Clear' () : string_builder) |> ignore
00:01:52 verbose #2207 > >     sb
00:01:52 verbose #2208 > >
00:01:52 verbose #2209 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2210 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2211 > > │ ### trim                                                                     │
00:01:52 verbose #2212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2213 > >
00:01:52 verbose #2214 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2215 > > inl trim (input : string) : string =
00:01:52 verbose #2216 > >     $'!input.Trim' ()
00:01:53 verbose #2217 > >
00:01:53 verbose #2218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2220 > > │ ### concat                                                                   │
00:01:53 verbose #2221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2222 > >
00:01:53 verbose #2223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2224 > > inl concat (a : string) (b : seq.seq' string) : string =
00:01:53 verbose #2225 > >     backend_switch {
00:01:53 verbose #2226 > >         Fsharp = fun () =>
00:01:53 verbose #2227 > >             b |> $'String.concat' a : string
00:01:53 verbose #2228 > >         Python = fun () =>
00:01:53 verbose #2229 > >             $'!a.join(!b)' : string
00:01:53 verbose #2230 > >     }
00:01:53 verbose #2231 > >
00:01:53 verbose #2232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2234 > > │ ### trim_end                                                                 │
00:01:53 verbose #2235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2236 > >
00:01:53 verbose #2237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2238 > > inl trim_end (trim_chars : list char) (input : string) : string =
00:01:53 verbose #2239 > >     inl trim_chars = trim_chars |> listm'.box
00:01:53 verbose #2240 > >     backend_switch {
00:01:53 verbose #2241 > >         Fsharp = fun () =>
00:01:53 verbose #2242 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:01:53 verbose #2243 > >             $'!input.TrimEnd !trim_chars ' : string
00:01:53 verbose #2244 > >         Python = fun () =>
00:01:53 verbose #2245 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:01:53 verbose #2246 > > seq.of_list' |> concat ""
00:01:53 verbose #2247 > >             $'!input.rstrip(!trim_chars)' : string
00:01:53 verbose #2248 > >     }
00:01:53 verbose #2249 > >
00:01:53 verbose #2250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2252 > > │ ### trim_start                                                               │
00:01:53 verbose #2253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2254 > >
00:01:53 verbose #2255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2256 > > inl trim_start (trim_chars : list char) (input : string) : string =
00:01:53 verbose #2257 > >     inl trim_chars = trim_chars |> listm'.box
00:01:53 verbose #2258 > >     backend_switch {
00:01:53 verbose #2259 > >         Fsharp = fun () =>
00:01:53 verbose #2260 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:01:53 verbose #2261 > >             $'!input.TrimStart !trim_chars ' : string
00:01:53 verbose #2262 > >         Python = fun () =>
00:01:53 verbose #2263 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:01:53 verbose #2264 > > seq.of_list' |> concat ""
00:01:53 verbose #2265 > >             $'!input.lstrip(!trim_chars)' : string
00:01:53 verbose #2266 > >     }
00:01:54 verbose #2267 > >
00:01:54 verbose #2268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2270 > > │ ### length'                                                                  │
00:01:54 verbose #2271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2272 > >
00:01:54 verbose #2273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2274 > > inl length' forall dim. (input : string) : dim =
00:01:54 verbose #2275 > >     input |> $'String.length'
00:01:54 verbose #2276 > >
00:01:54 verbose #2277 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2278 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2279 > > │ ### to_string any                                                            │
00:01:54 verbose #2280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2281 > >
00:01:54 verbose #2282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2283 > > instance to_string any =
00:01:54 verbose #2284 > >     obj_to_string
00:01:55 verbose #2285 > >
00:01:55 verbose #2286 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2287 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2288 > > │ ### replace                                                                  │
00:01:55 verbose #2289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2290 > >
00:01:55 verbose #2291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2292 > > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:01:55 verbose #2293 > >     $'!s.Replace (!old_value, !new_value)'
00:01:55 verbose #2294 > >
00:01:55 verbose #2295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2297 > > │ ### split                                                                    │
00:01:55 verbose #2298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2299 > >
00:01:55 verbose #2300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2301 > > inl split (separator : string) (str : string) : array_base string =
00:01:55 verbose #2302 > >     backend_switch {
00:01:55 verbose #2303 > >         Fsharp = fun () => $'!str.Split !separator ' : array_base string
00:01:55 verbose #2304 > >         Python = fun () => $'!str.split(!separator)' : array_base string
00:01:55 verbose #2305 > >     }
00:01:56 verbose #2306 > >
00:01:56 verbose #2307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2309 > > │ ### split_string                                                             │
00:01:56 verbose #2310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2311 > >
00:01:56 verbose #2312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2313 > > inl split_string (separator : array_base string) (str : string) : array_base
00:01:56 verbose #2314 > > string =
00:01:56 verbose #2315 > >     run_target_args (fun () => str, separator) function
00:01:56 verbose #2316 > >         | Fsharp (Native) => fun str, separator => $'!str.Split (!separator,
00:01:56 verbose #2317 > > System.StringSplitOptions.None)'
00:01:56 verbose #2318 > >         | _ => fun str, separator => str |> split ((a separator : _ int _) |>
00:01:56 verbose #2319 > > seq.of_array |> concat (join ""))
00:01:56 verbose #2320 > >
00:01:56 verbose #2321 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2322 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2323 > > │ ### join'                                                                    │
00:01:56 verbose #2324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2325 > >
00:01:56 verbose #2326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2327 > > inl join' (concat : string) (s : a int string) : string =
00:01:56 verbose #2328 > >     $'System.String.Join (!concat, !s)'
00:01:56 verbose #2329 > >
00:01:56 verbose #2330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2332 > > │ ### encoding                                                                 │
00:01:56 verbose #2333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2334 > >
00:01:56 verbose #2335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2336 > > nominal encoding = $'System.Text.Encoding'
00:01:57 verbose #2337 > >
00:01:57 verbose #2338 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 verbose #2339 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 verbose #2340 > > │ ### encoding_utf8                                                            │
00:01:57 verbose #2341 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 verbose #2342 > >
00:01:57 verbose #2343 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:57 verbose #2344 > > inl encoding_utf8 () : encoding =
00:01:57 verbose #2345 > >     $'`encoding.UTF8'
00:01:57 verbose #2346 > >
00:01:57 verbose #2347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 verbose #2348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 verbose #2349 > > │ ### utf8_get_bytes                                                           │
00:01:57 verbose #2350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 verbose #2351 > >
00:01:57 verbose #2352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:57 verbose #2353 > > inl utf8_get_bytes (s : string) : a i32 u8 =
00:01:57 verbose #2354 > >     s |> (encoding_utf8 () |> $'_.GetBytes')
00:01:58 verbose #2355 > >
00:01:58 verbose #2356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2358 > > │ ### byte_to_string                                                           │
00:01:58 verbose #2359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2360 > >
00:01:58 verbose #2361 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2362 > > inl byte_to_string (format : string) (x : u8) : string =
00:01:58 verbose #2363 > >     $'!x.ToString' format
00:01:58 verbose #2364 > >
00:01:58 verbose #2365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2367 > > │ ## rust                                                                      │
00:01:58 verbose #2368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2369 > >
00:01:58 verbose #2370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2372 > > │ ### str                                                                      │
00:01:58 verbose #2373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2374 > >
00:01:58 verbose #2375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2376 > > nominal str =
00:01:58 verbose #2377 > >     `(
00:01:58 verbose #2378 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:58 verbose #2379 > > Fable.Core.Emit(\"str\")>]]\n#endif\ntype Str = class end"
00:01:58 verbose #2380 > >         $'' : $'Str'
00:01:58 verbose #2381 > >     )
00:01:58 verbose #2382 > >
00:01:58 verbose #2383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2385 > > │ ### chars                                                                    │
00:01:58 verbose #2386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2387 > >
00:01:58 verbose #2388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2389 > > inl chars (x : rust.ref str) : rust.mut' (into_iterator char) =
00:01:58 verbose #2390 > >     !\\(x, $'$"$0.chars()"')
00:01:59 verbose #2391 > >
00:01:59 verbose #2392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 verbose #2393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 verbose #2394 > > │ ### char_is_alphanumeric                                                     │
00:01:59 verbose #2395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #2396 > >
00:01:59 verbose #2397 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #2398 > > inl char_is_alphanumeric (x : char) : bool =
00:01:59 verbose #2399 > >     !\\(x, $'$"$0.is_alphanumeric()"')
00:01:59 verbose #2400 > >
00:01:59 verbose #2401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 verbose #2402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 verbose #2403 > > │ ### byte_slice                                                               │
00:01:59 verbose #2404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #2405 > >
00:01:59 verbose #2406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #2407 > > inl byte_slice (s : string) : rust.ref (am'.slice u8) =
00:01:59 verbose #2408 > >     !\($'"b\\\"" + !s + "\\\""')
00:02:00 verbose #2409 > >
00:02:00 verbose #2410 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 verbose #2411 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 verbose #2412 > > │ ### display                                                                  │
00:02:00 verbose #2413 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 verbose #2414 > >
00:02:00 verbose #2415 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 verbose #2416 > > nominal display t =
00:02:00 verbose #2417 > >     `(
00:02:00 verbose #2418 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:00 verbose #2419 > > Fable.Core.Emit(\"std::fmt::Display<$0>\")>]]\n#endif\ntype std_fmt_Display<'T>
00:02:00 verbose #2420 > > = class end"
00:02:00 verbose #2421 > >         $'' : $'std_fmt_Display<`t>'
00:02:00 verbose #2422 > >     )
00:02:00 verbose #2423 > >
00:02:00 verbose #2424 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 verbose #2425 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 verbose #2426 > > │ ### base64_decode_error                                                      │
00:02:00 verbose #2427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 verbose #2428 > >
00:02:00 verbose #2429 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 verbose #2430 > > nominal base64_decode_error =
00:02:00 verbose #2431 > >     `(
00:02:00 verbose #2432 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:00 verbose #2433 > > Fable.Core.Emit(\"base64::DecodeError\")>]]\n#endif\ntype base64_DecodeError =
00:02:00 verbose #2434 > > class end"
00:02:00 verbose #2435 > >         $'' : $'base64_DecodeError'
00:02:00 verbose #2436 > >     )
00:02:01 verbose #2437 > >
00:02:01 verbose #2438 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2439 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2440 > > │ ### borsh_io_error                                                           │
00:02:01 verbose #2441 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2442 > >
00:02:01 verbose #2443 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2444 > > nominal borsh_io_error =
00:02:01 verbose #2445 > >     `(
00:02:01 verbose #2446 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:01 verbose #2447 > > Fable.Core.Emit(\"borsh::io::Error\")>]]\n#endif\ntype borsh_io_Error = class
00:02:01 verbose #2448 > > end"
00:02:01 verbose #2449 > >         $'' : $'borsh_io_Error'
00:02:01 verbose #2450 > >     )
00:02:01 verbose #2451 > >
00:02:01 verbose #2452 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2453 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2454 > > │ ### utf8_error                                                               │
00:02:01 verbose #2455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2456 > >
00:02:01 verbose #2457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2458 > > nominal utf8_error =
00:02:01 verbose #2459 > >     `(
00:02:01 verbose #2460 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:01 verbose #2461 > > Fable.Core.Emit(\"std::str::Utf8Error\")>]]\n#endif\ntype std_str_Utf8Error =
00:02:01 verbose #2462 > > class end"
00:02:01 verbose #2463 > >         $'' : $'std_str_Utf8Error'
00:02:01 verbose #2464 > >     )
00:02:01 verbose #2465 > >
00:02:01 verbose #2466 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2467 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2468 > > │ ### from_utf8_error                                                          │
00:02:01 verbose #2469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2470 > >
00:02:01 verbose #2471 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2472 > > nominal from_utf8_error =
00:02:01 verbose #2473 > >     `(
00:02:01 verbose #2474 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:01 verbose #2475 > > Fable.Core.Emit(\"std::string::FromUtf8Error\")>]]\n#endif\ntype
00:02:01 verbose #2476 > > std_string_FromUtf8Error = class end"
00:02:01 verbose #2477 > >         $'' : $'std_string_FromUtf8Error'
00:02:01 verbose #2478 > >     )
00:02:02 verbose #2479 > >
00:02:02 verbose #2480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #2481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #2482 > > │ ### json_value                                                               │
00:02:02 verbose #2483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #2484 > >
00:02:02 verbose #2485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #2486 > > nominal json_value =
00:02:02 verbose #2487 > >     `(
00:02:02 verbose #2488 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:02 verbose #2489 > > Fable.Core.Emit(\"serde_json::Value\")>]]\n#endif\ntype serde_json_Value = class
00:02:02 verbose #2490 > > end"
00:02:02 verbose #2491 > >         $'' : $'serde_json_Value'
00:02:02 verbose #2492 > >     )
00:02:02 verbose #2493 > >
00:02:02 verbose #2494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #2495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #2496 > > │ ### json_error                                                               │
00:02:02 verbose #2497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #2498 > >
00:02:02 verbose #2499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #2500 > > nominal json_error =
00:02:02 verbose #2501 > >     `(
00:02:02 verbose #2502 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:02 verbose #2503 > > Fable.Core.Emit(\"serde_json::Error\")>]]\n#endif\ntype serde_json_Error = class
00:02:02 verbose #2504 > > end"
00:02:02 verbose #2505 > >         $'' : $'serde_json_Error'
00:02:02 verbose #2506 > >     )
00:02:03 verbose #2507 > >
00:02:03 verbose #2508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2510 > > │ ### serde_wasm_bindgen_error                                                 │
00:02:03 verbose #2511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2512 > >
00:02:03 verbose #2513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2514 > > nominal serde_wasm_bindgen_error =
00:02:03 verbose #2515 > >     `(
00:02:03 verbose #2516 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:03 verbose #2517 > > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]]\n#endif\ntype
00:02:03 verbose #2518 > > serde_wasm_bindgen_Error = class end"
00:02:03 verbose #2519 > >         $'' : $'serde_wasm_bindgen_Error'
00:02:03 verbose #2520 > >     )
00:02:03 verbose #2521 > >
00:02:03 verbose #2522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2524 > > │ ### js_string                                                                │
00:02:03 verbose #2525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2526 > >
00:02:03 verbose #2527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2528 > > nominal js_string =
00:02:03 verbose #2529 > >     `(
00:02:03 verbose #2530 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:03 verbose #2531 > > Fable.Core.Emit(\"js_sys::JsString\")>]]\n#endif\ntype js_sys_JsString = class
00:02:03 verbose #2532 > > end"
00:02:03 verbose #2533 > >         $'' : $'js_sys_JsString'
00:02:03 verbose #2534 > >     )
00:02:03 verbose #2535 > >
00:02:03 verbose #2536 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2537 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2538 > > │ ### os_str                                                                   │
00:02:03 verbose #2539 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2540 > >
00:02:03 verbose #2541 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2542 > > nominal os_str =
00:02:03 verbose #2543 > >     `(
00:02:03 verbose #2544 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:03 verbose #2545 > > Fable.Core.Emit(\"std::ffi::OsStr\")>]]\n#endif\ntype std_ffi_OsStr = class end"
00:02:03 verbose #2546 > >         $'' : $'std_ffi_OsStr'
00:02:03 verbose #2547 > >     )
00:02:04 verbose #2548 > >
00:02:04 verbose #2549 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 verbose #2550 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 verbose #2551 > > │ ### os_string                                                                │
00:02:04 verbose #2552 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 verbose #2553 > >
00:02:04 verbose #2554 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 verbose #2555 > > nominal os_string =
00:02:04 verbose #2556 > >     `(
00:02:04 verbose #2557 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:04 verbose #2558 > > Fable.Core.Emit(\"std::ffi::OsString\")>]]\n#endif\ntype std_ffi_OsString =
00:02:04 verbose #2559 > > class end"
00:02:04 verbose #2560 > >         $'' : $'std_ffi_OsString'
00:02:04 verbose #2561 > >     )
00:02:04 verbose #2562 > >
00:02:04 verbose #2563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 verbose #2564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 verbose #2565 > > │ ### raw_string_literal                                                       │
00:02:04 verbose #2566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 verbose #2567 > >
00:02:04 verbose #2568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 verbose #2569 > > inl raw_string_literal (s : string) : rust.ref str =
00:02:04 verbose #2570 > >     !\($'"r#\\"" + !s + "\\"#"')
00:02:05 verbose #2571 > >
00:02:05 verbose #2572 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 verbose #2573 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 verbose #2574 > > │ ### raw_string_literal_static                                                │
00:02:05 verbose #2575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 verbose #2576 > >
00:02:05 verbose #2577 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 verbose #2578 > > inl raw_string_literal_static (s : string) : rust.static_ref str =
00:02:05 verbose #2579 > >     !\($'"r#\\"" + !s + "\\"#"')
00:02:05 verbose #2580 > >
00:02:05 verbose #2581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 verbose #2582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 verbose #2583 > > │ ### (~#)                                                                     │
00:02:05 verbose #2584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 verbose #2585 > >
00:02:05 verbose #2586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 verbose #2587 > > inl (~#) s =
00:02:05 verbose #2588 > >     s |> raw_string_literal
00:02:06 verbose #2589 > >
00:02:06 verbose #2590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2592 > > │ ### (~##)                                                                    │
00:02:06 verbose #2593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2594 > >
00:02:06 verbose #2595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2596 > > inl (~##) s =
00:02:06 verbose #2597 > >     s |> raw_string_literal_static
00:02:06 verbose #2598 > >
00:02:06 verbose #2599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2601 > > │ ### include_str                                                              │
00:02:06 verbose #2602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2603 > >
00:02:06 verbose #2604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2605 > > inl include_str (path : string) : rust.ref str =
00:02:06 verbose #2606 > >     !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:02:07 verbose #2607 > >
00:02:07 verbose #2608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2610 > > │ ### as_str                                                                   │
00:02:07 verbose #2611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2612 > >
00:02:07 verbose #2613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2614 > > inl as_str (s : string) : rust.ref str =
00:02:07 verbose #2615 > >     // !\\(s, $'"fable_library_rust::String_::LrcStr::as_str(&$0)"')
00:02:07 verbose #2616 > >     !\\(s, $'"&*$0"')
00:02:07 verbose #2617 > >
00:02:07 verbose #2618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2620 > > │ ### from_iter                                                                │
00:02:07 verbose #2621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2622 > >
00:02:07 verbose #2623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2624 > > inl from_iter forall (t : * -> *). (s : t char) : std_string =
00:02:07 verbose #2625 > >     !\\(s, $'"String::from_iter($0)"')
00:02:07 verbose #2626 > >
00:02:07 verbose #2627 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2628 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2629 > > │ ### ref_to_std_string                                                        │
00:02:07 verbose #2630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2631 > >
00:02:07 verbose #2632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2633 > > inl ref_to_std_string (str : rust.ref str) : std_string =
00:02:07 verbose #2634 > >     !\\(str, $'"String::from($0)"')
00:02:08 verbose #2635 > >
00:02:08 verbose #2636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 verbose #2637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 verbose #2638 > > │ ### cow_to_std_string                                                        │
00:02:08 verbose #2639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 verbose #2640 > >
00:02:08 verbose #2641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 verbose #2642 > > inl cow_to_std_string (str : rust.cow str) : std_string =
00:02:08 verbose #2643 > >     !\\(str, $'"String::from($0)"')
00:02:08 verbose #2644 > >
00:02:08 verbose #2645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 verbose #2646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 verbose #2647 > > │ ### to_std_string                                                            │
00:02:08 verbose #2648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 verbose #2649 > >
00:02:08 verbose #2650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 verbose #2651 > > inl to_std_string (s : string) : std_string =
00:02:08 verbose #2652 > >     s |> as_str |> ref_to_std_string
00:02:09 verbose #2653 > >
00:02:09 verbose #2654 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 verbose #2655 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 verbose #2656 > > │ ### as_str_std                                                               │
00:02:09 verbose #2657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 verbose #2658 > >
00:02:09 verbose #2659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 verbose #2660 > > inl as_str_std (s : std_string) : rust.ref str =
00:02:09 verbose #2661 > >     !\\(s, $'"$0.as_str()"')
00:02:09 verbose #2662 > >
00:02:09 verbose #2663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 verbose #2664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 verbose #2665 > > │ ### into_boxed_str                                                           │
00:02:09 verbose #2666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 verbose #2667 > >
00:02:09 verbose #2668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 verbose #2669 > > inl into_boxed_str (s : std_string) : rust.box str =
00:02:09 verbose #2670 > >     !\\(s, $'"$0.into_boxed_str()"')
00:02:09 verbose #2671 > >
00:02:09 verbose #2672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:09 verbose #2673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:09 verbose #2674 > > │ ### os_string_as_ref                                                         │
00:02:09 verbose #2675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 verbose #2676 > >
00:02:09 verbose #2677 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 verbose #2678 > > inl os_string_as_ref (s : os_string) : rust.ref os_str =
00:02:09 verbose #2679 > >     !\\(s, $'"$0.as_ref()"')
00:02:10 verbose #2680 > >
00:02:10 verbose #2681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 verbose #2682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 verbose #2683 > > │ ### to_os_string                                                             │
00:02:10 verbose #2684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2685 > >
00:02:10 verbose #2686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 verbose #2687 > > inl to_os_string (s : rust.ref os_str) : os_string =
00:02:10 verbose #2688 > >     !\\(s, $'"$0.to_os_string()"')
00:02:10 verbose #2689 > >
00:02:10 verbose #2690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 verbose #2691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 verbose #2692 > > │ ### os_to_str                                                                │
00:02:10 verbose #2693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2694 > >
00:02:10 verbose #2695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 verbose #2696 > > inl os_to_str (s : os_string) : optionm'.option' (rust.ref str) =
00:02:10 verbose #2697 > >     !\\(s, $'"$0.to_str()"')
00:02:11 verbose #2698 > >
00:02:11 verbose #2699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #2700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #2701 > > │ ### from_os_str_ref                                                          │
00:02:11 verbose #2702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #2703 > >
00:02:11 verbose #2704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #2705 > > inl from_os_str_ref s =
00:02:11 verbose #2706 > >     s
00:02:11 verbose #2707 > >     |> to_os_string
00:02:11 verbose #2708 > >     |> os_to_str
00:02:11 verbose #2709 > >     |> optionm'.unwrap
00:02:11 verbose #2710 > >     |> ref_to_std_string
00:02:11 verbose #2711 > >     |> from_std_string
00:02:11 verbose #2712 > >
00:02:11 verbose #2713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #2714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #2715 > > │ ### format_custom'                                                           │
00:02:11 verbose #2716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #2717 > >
00:02:11 verbose #2718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #2719 > > inl format_custom' (f : string) x : std_string =
00:02:11 verbose #2720 > >     run_target function
00:02:11 verbose #2721 > >         | Rust _ => fun () =>
00:02:11 verbose #2722 > >             !\\(x, $'"format\!(\\\"" + !f + "\\\", $0)"')
00:02:11 verbose #2723 > >         | _ => fun () => null ()
00:02:12 verbose #2724 > >
00:02:12 verbose #2725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 verbose #2726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 verbose #2727 > > │ ### format_debug'                                                            │
00:02:12 verbose #2728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 verbose #2729 > >
00:02:12 verbose #2730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 verbose #2731 > > inl format_debug' x : std_string =
00:02:12 verbose #2732 > >     run_target function
00:02:12 verbose #2733 > >         | Rust _ => fun () =>
00:02:12 verbose #2734 > >             !\\(x, $'"format\!(\\\"{:?}\\\", $0)"')
00:02:12 verbose #2735 > >         | _ => fun () => null ()
00:02:12 verbose #2736 > >
00:02:12 verbose #2737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:12 verbose #2738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:12 verbose #2739 > > │ ### format'                                                                  │
00:02:12 verbose #2740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:12 verbose #2741 > >
00:02:12 verbose #2742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:12 verbose #2743 > > inl format' x : std_string =
00:02:12 verbose #2744 > >     run_target_args (fun () => x) function
00:02:12 verbose #2745 > >         | Rust _ => fun x =>
00:02:12 verbose #2746 > >             !\\(x, $'"format\!(\\\"{}\\\", $0)"')
00:02:12 verbose #2747 > >         | _ => fun _ => null ()
00:02:13 verbose #2748 > >
00:02:13 verbose #2749 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:13 verbose #2750 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:13 verbose #2751 > > │ ### format_hex'                                                              │
00:02:13 verbose #2752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:13 verbose #2753 > >
00:02:13 verbose #2754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:13 verbose #2755 > > inl format_hex' x : std_string =
00:02:13 verbose #2756 > >     !\\(x, $'"format\!(\\\"{:02x}\\\", $0)"')
00:02:13 verbose #2757 > >
00:02:13 verbose #2758 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:13 verbose #2759 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:13 verbose #2760 > > │ ### format''                                                                 │
00:02:13 verbose #2761 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:13 verbose #2762 > >
00:02:13 verbose #2763 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:13 verbose #2764 > > inl format'' (format : string) : std_string =
00:02:13 verbose #2765 > >     !\($'@@$"format\!(" + !format + ")"')
00:02:14 verbose #2766 > >
00:02:14 verbose #2767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:14 verbose #2768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:14 verbose #2769 > > │ ### regex                                                                    │
00:02:14 verbose #2770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:14 verbose #2771 > >
00:02:14 verbose #2772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:14 verbose #2773 > > nominal regex =
00:02:14 verbose #2774 > >     `(
00:02:14 verbose #2775 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:14 verbose #2776 > > Fable.Core.Emit(\"regex::Regex\")>]]\n#endif\ntype regex_Regex = class end"
00:02:14 verbose #2777 > >         $'' : $'regex_Regex'
00:02:14 verbose #2778 > >     )
00:02:14 verbose #2779 > >
00:02:14 verbose #2780 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:14 verbose #2781 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:14 verbose #2782 > > │ ### regex_error                                                              │
00:02:14 verbose #2783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:14 verbose #2784 > >
00:02:14 verbose #2785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:14 verbose #2786 > > nominal regex_error =
00:02:14 verbose #2787 > >     `(
00:02:14 verbose #2788 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:14 verbose #2789 > > Fable.Core.Emit(\"regex::Error\")>]]\n#endif\ntype regex_Error = class end"
00:02:14 verbose #2790 > >         $'' : $'regex_Error'
00:02:14 verbose #2791 > >     )
00:02:15 verbose #2792 > >
00:02:15 verbose #2793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 verbose #2794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 verbose #2795 > > │ ### new_regex                                                                │
00:02:15 verbose #2796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 verbose #2797 > >
00:02:15 verbose #2798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #2799 > > inl new_regex (pattern : string) : resultm.result' regex regex_error =
00:02:15 verbose #2800 > >     !\\(pattern, $'$"regex::Regex::new(&$0)"')
00:02:15 verbose #2801 > >
00:02:15 verbose #2802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 verbose #2803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 verbose #2804 > > │ ### captures                                                                 │
00:02:15 verbose #2805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 verbose #2806 > >
00:02:15 verbose #2807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #2808 > > nominal regex_captures t =
00:02:15 verbose #2809 > >     `(
00:02:15 verbose #2810 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:15 verbose #2811 > > Fable.Core.Emit(\"regex::Captures<$0>\")>]]\n#endif\ntype regex_Captures<'T> =
00:02:15 verbose #2812 > > class end"
00:02:15 verbose #2813 > >         $'' : $'regex_Captures<`t>'
00:02:15 verbose #2814 > >     )
00:02:15 verbose #2815 > >
00:02:15 verbose #2816 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:15 verbose #2817 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:15 verbose #2818 > > │ ### regex_capture_matches                                                    │
00:02:15 verbose #2819 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:15 verbose #2820 > >
00:02:15 verbose #2821 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:15 verbose #2822 > > nominal regex_capture_matches =
00:02:15 verbose #2823 > >     `(
00:02:15 verbose #2824 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:15 verbose #2825 > > Fable.Core.Emit(\"regex::CaptureMatches\")>]]\n#endif\ntype regex_CaptureMatches
00:02:15 verbose #2826 > > = class end"
00:02:15 verbose #2827 > >         $'' : $'regex_CaptureMatches'
00:02:15 verbose #2828 > >     )
00:02:16 verbose #2829 > >
00:02:16 verbose #2830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #2831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #2832 > > │ ### regex_capture_names                                                      │
00:02:16 verbose #2833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #2834 > >
00:02:16 verbose #2835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #2836 > > nominal regex_capture_names =
00:02:16 verbose #2837 > >     `(
00:02:16 verbose #2838 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:16 verbose #2839 > > Fable.Core.Emit(\"regex::CaptureNames\")>]]\n#endif\ntype regex_CaptureNames =
00:02:16 verbose #2840 > > class end"
00:02:16 verbose #2841 > >         $'' : $'regex_CaptureNames'
00:02:16 verbose #2842 > >     )
00:02:16 verbose #2843 > >
00:02:16 verbose #2844 > > inl regex_capture_names (regex : regex) : regex_capture_names =
00:02:16 verbose #2845 > >     !\\(regex, $'$"$0.capture_names()"')
00:02:16 verbose #2846 > >
00:02:16 verbose #2847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #2848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #2849 > > │ ### match'                                                                   │
00:02:16 verbose #2850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #2851 > >
00:02:16 verbose #2852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #2853 > > nominal match' =
00:02:16 verbose #2854 > >     `(
00:02:16 verbose #2855 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:16 verbose #2856 > > Fable.Core.Emit(\"regex::Match\")>]]\n#endif\ntype regex_Match = class end"
00:02:16 verbose #2857 > >         $'' : $'regex_Match'
00:02:16 verbose #2858 > >     )
00:02:17 verbose #2859 > >
00:02:17 verbose #2860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:17 verbose #2861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:17 verbose #2862 > > │ ### regex_captures_iter                                                      │
00:02:17 verbose #2863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 verbose #2864 > >
00:02:17 verbose #2865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 verbose #2866 > > inl regex_captures_iter (s : rust.static_ref (rust.mut' std_string)) (regex :
00:02:17 verbose #2867 > > regex) : regex_capture_matches =
00:02:17 verbose #2868 > >     !\($'$"!regex.captures_iter(!s)"')
00:02:17 verbose #2869 > >
00:02:17 verbose #2870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:17 verbose #2871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:17 verbose #2872 > > │ ### regex_captures                                                           │
00:02:17 verbose #2873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:17 verbose #2874 > >
00:02:17 verbose #2875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:17 verbose #2876 > > inl regex_captures (s : string) (regex : regex) : am'.vec (mapm.hash_map string
00:02:17 verbose #2877 > > string) =
00:02:17 verbose #2878 > >     // inl s = join s
00:02:17 verbose #2879 > >     // !\\(regex, $'$"$0.captures_iter(&*!s).map(|caps|
00:02:17 verbose #2880 > > $0.capture_names().map(|x| x.and_then(|n| Some((n,
00:02:17 verbose #2881 > > caps.name(n)?.as_str())))).flatten().collect()).collect()"')
00:02:17 verbose #2882 > >
00:02:17 verbose #2883 > >     inl s = s |> to_std_string
00:02:17 verbose #2884 > >     fun () =>
00:02:17 verbose #2885 > >         inl matches =
00:02:17 verbose #2886 > >             inl s = s |> rust.new_box |> rust.box_leak
00:02:17 verbose #2887 > >             regex |> regex_captures_iter s
00:02:17 verbose #2888 > >
00:02:17 verbose #2889 > >         (!\($'"true; let _regex_captures : Vec<_> = !matches.map(|x| { //"') :
00:02:17 verbose #2890 > > bool) |> ignore
00:02:17 verbose #2891 > >
00:02:17 verbose #2892 > >         inl fn (match' : rust.static_ref (rust.mut' (regex_captures
00:02:17 verbose #2893 > > rust.static_lifetime))) : mapm.hash_map string string =
00:02:17 verbose #2894 > >
00:02:17 verbose #2895 > >             inl names = regex |> regex_capture_names
00:02:17 verbose #2896 > >
00:02:17 verbose #2897 > >             (!\($'"true; let _regex_captures : std::collections::HashMap<_, _> =
00:02:17 verbose #2898 > > !names.map(|x| { //"') : bool) |> ignore
00:02:17 verbose #2899 > >
00:02:17 verbose #2900 > >             inl fn (n : string) : pair string string =
00:02:17 verbose #2901 > >                 inl n' = n |> rust.clone
00:02:17 verbose #2902 > >
00:02:17 verbose #2903 > >                 new_pair n' !\\(n, $'$"!match'.name(&$0).map(|x|
00:02:17 verbose #2904 > > x.as_str()).unwrap_or(\\\"\\\").to_string().into()"')
00:02:17 verbose #2905 > >
00:02:17 verbose #2906 > >             (!\\(fn !\($'"x.unwrap_or(\\\"\\\").to_string().into()"'), $'"true;
00:02:17 verbose #2907 > > $0 }).map(|x| std::sync::Arc::try_unwrap(x).unwrap_or_else(|x|
00:02:17 verbose #2908 > > (*x).clone())).collect()"') : bool) |> ignore
00:02:17 verbose #2909 > >
00:02:17 verbose #2910 > >             !\($'"_regex_captures"')
00:02:17 verbose #2911 > >
00:02:17 verbose #2912 > >         inl x =
00:02:17 verbose #2913 > >             !\($'$"x"')
00:02:17 verbose #2914 > >             |> rust.new_box
00:02:17 verbose #2915 > >             |> rust.box_leak
00:02:17 verbose #2916 > >
00:02:17 verbose #2917 > >         (!\\(fn x, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:02:17 verbose #2918 > >
00:02:17 verbose #2919 > >         !\($'"_regex_captures"')
00:02:17 verbose #2920 > >
00:02:17 verbose #2921 > >     |> rust.capture_move
00:02:18 verbose #2922 > >
00:02:18 verbose #2923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #2924 > > //// test
00:02:18 verbose #2925 > > ///! rust -d regex
00:02:18 verbose #2926 > >
00:02:18 verbose #2927 > > "fable-library-ts\\.(?<a>[[\\d.]]+)$"
00:02:18 verbose #2928 > > |> new_regex
00:02:18 verbose #2929 > > |> resultm.unwrap'
00:02:18 verbose #2930 > > |> regex_captures "fable_modules/fable-library-ts.4.17.0"
00:02:18 verbose #2931 > > |> am'.vec_map (mapm.to_vec >> am'.vec_sort_by_key id)
00:02:18 verbose #2932 > > |> sm'.format_debug
00:02:18 verbose #2933 > > |> _assert_eq (
00:02:18 verbose #2934 > >     ;[[
00:02:18 verbose #2935 > >         ;[[ "", ""; "a", "4.17.0" ]]
00:02:18 verbose #2936 > >         |> am'.to_vec
00:02:18 verbose #2937 > >     ]]
00:02:18 verbose #2938 > >     |> am'.to_vec
00:02:18 verbose #2939 > >     |> sm'.format_debug
00:02:18 verbose #2940 > > )
00:02:22 verbose #2941 > >
00:02:22 verbose #2942 > > ╭─[ 4.39s - return value ]─────────────────────────────────────────────────────╮
00:02:22 verbose #2943 > > │ __assert_eq / actual: "[[("", ""), ("a", "4.17.0")]]" / expected: "[[("",    │
00:02:22 verbose #2944 > > │ ""), ("a", "4.17.0")]]"                                                      │
00:02:22 verbose #2945 > > │                                                                              │
00:02:22 verbose #2946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #2947 > >
00:02:22 verbose #2948 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 verbose #2949 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 verbose #2950 > > │ ### replace_regex'                                                           │
00:02:22 verbose #2951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #2952 > >
00:02:22 verbose #2953 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:22 verbose #2954 > > inl replace_regex' (pattern : string) (replacement : a i32 string) (s : string)
00:02:22 verbose #2955 > > : string =
00:02:22 verbose #2956 > >     run_target_args (fun () => s, pattern, replacement) function
00:02:22 verbose #2957 > >         | Rust (Native) => fun s, pattern, replacement =>
00:02:22 verbose #2958 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:02:22 verbose #2959 > >             !\\((regex, #s, replacement), $'$"$0.replace_all($1, &*$2)"')
00:02:22 verbose #2960 > >             |> cow_to_std_string
00:02:22 verbose #2961 > >             |> from_std_string
00:02:22 verbose #2962 > >         | _ => fun _ => null ()
00:02:23 verbose #2963 > >
00:02:23 verbose #2964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 verbose #2965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 verbose #2966 > > │ ### serialize                                                                │
00:02:23 verbose #2967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #2968 > >
00:02:23 verbose #2969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #2970 > > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:02:23 verbose #2971 > >     !\($'"serde_json::to_string(&!x)"')
00:02:23 verbose #2972 > >
00:02:23 verbose #2973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 verbose #2974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 verbose #2975 > > │ ### deserialize                                                              │
00:02:23 verbose #2976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #2977 > >
00:02:23 verbose #2978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #2979 > > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:02:23 verbose #2980 > >     inl json = join json
00:02:23 verbose #2981 > >     inl json = json |> as_str
00:02:23 verbose #2982 > >     !\($'"serde_json::from_str(&!json)"')
00:02:23 verbose #2983 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:02:23 verbose #2984 > >
00:02:23 verbose #2985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:23 verbose #2986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:23 verbose #2987 > > │ ### borsh_deserialize                                                        │
00:02:23 verbose #2988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #2989 > >
00:02:23 verbose #2990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #2991 > > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:02:23 verbose #2992 > > std_string =
00:02:23 verbose #2993 > >     inl data = data |> am'.as_slice
00:02:23 verbose #2994 > >     (!\($'"true; let mut !data = !data"') : bool) |> ignore
00:02:23 verbose #2995 > >     inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:02:23 verbose #2996 > >     result
00:02:23 verbose #2997 > >     |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:02:24 verbose #2998 > >
00:02:24 verbose #2999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:24 verbose #3000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:24 verbose #3001 > > │ ### deserialize_vec                                                          │
00:02:24 verbose #3002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 verbose #3003 > >
00:02:24 verbose #3004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 verbose #3005 > > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:02:24 verbose #3006 > > std_string =
00:02:24 verbose #3007 > >     inl value = join value
00:02:24 verbose #3008 > >     !\($'"serde_json::from_value(!value)"')
00:02:24 verbose #3009 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:02:24 verbose #3010 > >
00:02:24 verbose #3011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:24 verbose #3012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:24 verbose #3013 > > │ ### encode_uri_component                                                     │
00:02:24 verbose #3014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 verbose #3015 > >
00:02:24 verbose #3016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:24 verbose #3017 > > inl encode_uri_component (s : std_string) : js_string =
00:02:24 verbose #3018 > >     !\($'"js_sys::encode_uri_component(&!s)"')
00:02:25 verbose #3019 > >
00:02:25 verbose #3020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:25 verbose #3021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:25 verbose #3022 > > │ ### strip_prefix                                                             │
00:02:25 verbose #3023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:25 verbose #3024 > >
00:02:25 verbose #3025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 verbose #3026 > > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref
00:02:25 verbose #3027 > > str) =
00:02:25 verbose #3028 > >     inl s = join s
00:02:25 verbose #3029 > >     !\($'"!s.strip_prefix(!prefix)"')
00:02:25 verbose #3030 > >
00:02:25 verbose #3031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:25 verbose #3032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:25 verbose #3033 > > │ ### str_from_utf8                                                            │
00:02:25 verbose #3034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:25 verbose #3035 > >
00:02:25 verbose #3036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 verbose #3037 > > inl str_from_utf8 (bytes : rust.ref (am'.slice u8)) : resultm.result' (rust.ref
00:02:25 verbose #3038 > > str) utf8_error =
00:02:25 verbose #3039 > >     !\\(bytes, $'"std::str::from_utf8($0)"')
00:02:26 verbose #3040 > >
00:02:26 verbose #3041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:26 verbose #3042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:26 verbose #3043 > > │ ### string_from_utf8                                                         │
00:02:26 verbose #3044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:26 verbose #3045 > >
00:02:26 verbose #3046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:26 verbose #3047 > > inl string_from_utf8 (bytes : am'.vec u8) : resultm.result' std_string
00:02:26 verbose #3048 > > from_utf8_error =
00:02:26 verbose #3049 > >     inl bytes = join bytes
00:02:26 verbose #3050 > >     !\\(bytes, $'"std::string::String::from_utf8($0)"')
00:02:26 verbose #3051 > >
00:02:26 verbose #3052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:26 verbose #3053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:26 verbose #3054 > > │ ### base64_decode                                                            │
00:02:26 verbose #3055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:26 verbose #3056 > >
00:02:26 verbose #3057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:26 verbose #3058 > > inl base64_decode (s : std_string) : result std_string std_string =
00:02:26 verbose #3059 > >     fun () =>
00:02:26 verbose #3060 > >         inl s = join s
00:02:26 verbose #3061 > >         inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:02:26 verbose #3062 > >
00:02:26 verbose #3063 > > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:02:26 verbose #3064 > >         bytes
00:02:26 verbose #3065 > >         |> resultm.map_error' format'
00:02:26 verbose #3066 > >         |> resultm.try'
00:02:26 verbose #3067 > >         |> string_from_utf8
00:02:26 verbose #3068 > >         |> resultm.map_error' format'
00:02:26 verbose #3069 > >     |> fun x =>
00:02:26 verbose #3070 > >         join x ()
00:02:26 verbose #3071 > >         |> resultm.unbox
00:02:27 verbose #3072 > >
00:02:27 verbose #3073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 verbose #3074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 verbose #3075 > > │ ### encoding'                                                                │
00:02:27 verbose #3076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 verbose #3077 > >
00:02:27 verbose #3078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 verbose #3079 > > nominal encoding' =
00:02:27 verbose #3080 > >     `(
00:02:27 verbose #3081 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:27 verbose #3082 > > Fable.Core.Emit(\"encoding_rs::Encoding\")>]]\n#endif\ntype encoding_rs_Encoding
00:02:27 verbose #3083 > > = class end"
00:02:27 verbose #3084 > >         $'' : $'encoding_rs_Encoding'
00:02:27 verbose #3085 > >     )
00:02:27 verbose #3086 > >
00:02:27 verbose #3087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 verbose #3088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 verbose #3089 > > │ ### encoding_utf8'                                                           │
00:02:27 verbose #3090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 verbose #3091 > >
00:02:27 verbose #3092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 verbose #3093 > > inl encoding_utf8' () : rust.ref encoding' =
00:02:27 verbose #3094 > >     !\($'"encoding_rs::UTF_8"')
00:02:27 verbose #3095 > >
00:02:27 verbose #3096 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:27 verbose #3097 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:27 verbose #3098 > > │ ### encoding_1252                                                            │
00:02:27 verbose #3099 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:27 verbose #3100 > >
00:02:27 verbose #3101 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:27 verbose #3102 > > inl encoding_1252' () : rust.ref encoding' =
00:02:27 verbose #3103 > >     !\($'"encoding_rs::WINDOWS_1252"')
00:02:28 verbose #3104 > >
00:02:28 verbose #3105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:28 verbose #3106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:28 verbose #3107 > > │ ### encoding_encode                                                          │
00:02:28 verbose #3108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:28 verbose #3109 > >
00:02:28 verbose #3110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:28 verbose #3111 > > inl encoding_encode' (encoding : rust.ref encoding') (text : string) : rust.cow
00:02:28 verbose #3112 > > (am'.slice u8) =
00:02:28 verbose #3113 > >     !\\((encoding, text), $'"$0.encode(&*$1).0"')
00:02:28 verbose #3114 > >
00:02:28 verbose #3115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:28 verbose #3116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:28 verbose #3117 > > │ ### utf8_decode                                                              │
00:02:28 verbose #3118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:28 verbose #3119 > >
00:02:28 verbose #3120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:28 verbose #3121 > > inl utf8_decode (data : am'.vec u8) : resultm.result' std_string (rust.cow str)
00:02:28 verbose #3122 > > =
00:02:28 verbose #3123 > >     !\($'$"encoding::Encoding::decode(encoding::all::UTF_8, &!data,
00:02:28 verbose #3124 > > encoding::DecoderTrap::Replace)"')
00:02:29 verbose #3125 > >
00:02:29 verbose #3126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 verbose #3127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 verbose #3128 > > │ ### windows                                                                  │
00:02:29 verbose #3129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 verbose #3130 > >
00:02:29 verbose #3131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 verbose #3132 > > nominal windows t =
00:02:29 verbose #3133 > >     `(
00:02:29 verbose #3134 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:02:29 verbose #3135 > > Fable.Core.Emit(\"std::slice::Windows<$0>\")>]]\n#endif\ntype
00:02:29 verbose #3136 > > std_slice_Windows<'T> = class end"
00:02:29 verbose #3137 > >         $'' : $'std_slice_Windows<`t>'
00:02:29 verbose #3138 > >     )
00:02:29 verbose #3139 > >
00:02:29 verbose #3140 > > inl windows (len : unativeint) (source : am'.vec u8) : windows u8 =
00:02:29 verbose #3141 > >     inl source = source |> rust.new_box |> rust.box_leak
00:02:29 verbose #3142 > >     // inl source' = source |> rust.clone
00:02:29 verbose #3143 > >     inl result = !\\(len, $'"<[[_]]>::windows(!source, $0)"')
00:02:29 verbose #3144 > >     // source |> rust.drop
00:02:29 verbose #3145 > >     result
00:02:29 verbose #3146 > >
00:02:29 verbose #3147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:29 verbose #3148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:29 verbose #3149 > > │ ### any                                                                      │
00:02:29 verbose #3150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:29 verbose #3151 > >
00:02:29 verbose #3152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:29 verbose #3153 > > inl any forall t. (fn : string -> bool) (source : windows t) : bool =
00:02:29 verbose #3154 > >     (!\($'"true; let mut !source = !source"') : bool) |> ignore
00:02:29 verbose #3155 > >     inl fn' x =
00:02:29 verbose #3156 > >         x
00:02:29 verbose #3157 > >         |> str_from_utf8
00:02:29 verbose #3158 > >         |> resultm.unwrap_or' #""
00:02:29 verbose #3159 > >         |> ref_to_std_string
00:02:29 verbose #3160 > >         |> from_std_string
00:02:29 verbose #3161 > >         |> fn
00:02:29 verbose #3162 > >     !\\(fn', $'"!source.any(move |x| $0(x))"')
00:02:30 verbose #3163 > >
00:02:30 verbose #3164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:30 verbose #3165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:30 verbose #3166 > > │ ### slice_contains                                                           │
00:02:30 verbose #3167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:30 verbose #3168 > >
00:02:30 verbose #3169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:30 verbose #3170 > > inl slice_contains (text : string) (source : am'.vec u8) : bool =
00:02:30 verbose #3171 > >     fun () =>
00:02:30 verbose #3172 > >         inl source = join source
00:02:30 verbose #3173 > >         source
00:02:30 verbose #3174 > >         |> windows (text |> length |> (fun x => x : i32) |> convert)
00:02:30 verbose #3175 > >         |> any ((=.) text)
00:02:30 verbose #3176 > >     |> fun x => join x ()
00:02:30 verbose #3177 > >
00:02:30 verbose #3178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:30 verbose #3179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:30 verbose #3180 > > │ ### as_bytes                                                                 │
00:02:30 verbose #3181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:30 verbose #3182 > >
00:02:30 verbose #3183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:30 verbose #3184 > > inl as_bytes (text : string) : rust.ref (am'.slice u8) =
00:02:30 verbose #3185 > >     inl text = join text
00:02:30 verbose #3186 > >     !\($'"!text.as_bytes()"')
00:02:31 verbose #3187 > >
00:02:31 verbose #3188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #3189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #3190 > > │ ### into_bytes                                                               │
00:02:31 verbose #3191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #3192 > >
00:02:31 verbose #3193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 verbose #3194 > > inl into_bytes (x : std_string) : am'.vec u8 =
00:02:31 verbose #3195 > >     !\\(x, $'$"$0.into_bytes()"')
00:02:31 verbose #3196 > >
00:02:31 verbose #3197 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #3198 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #3199 > > │ ## python                                                                    │
00:02:31 verbose #3200 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #3201 > >
00:02:31 verbose #3202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #3203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #3204 > > │ ### encode_utf8                                                              │
00:02:31 verbose #3205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #3206 > >
00:02:31 verbose #3207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 verbose #3208 > > inl encode_utf8 (s : string) : string =
00:02:31 verbose #3209 > >     inl encoding = "utf-8"
00:02:31 verbose #3210 > >     backend_switch {
00:02:31 verbose #3211 > >         Fsharp = fun () =>
00:02:31 verbose #3212 > >             open python_operators
00:02:31 verbose #3213 > >             !\\((s, encoding), $'"$0.encode($1)"') : string
00:02:31 verbose #3214 > >         Python = fun () =>
00:02:31 verbose #3215 > >             $'!s.encode(!encoding)' : string
00:02:31 verbose #3216 > >     }
00:02:32 verbose #3217 > >
00:02:32 verbose #3218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 verbose #3219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 verbose #3220 > > │ ## sm'                                                                       │
00:02:32 verbose #3221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #3222 > >
00:02:32 verbose #3223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 verbose #3224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 verbose #3225 > > │ ### contains                                                                 │
00:02:32 verbose #3226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #3227 > >
00:02:32 verbose #3228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 verbose #3229 > > inl contains (value : string) (s : string) : bool =
00:02:32 verbose #3230 > >     backend_switch {
00:02:32 verbose #3231 > >         Fsharp = fun () => $'!s.Contains !value ' : bool
00:02:32 verbose #3232 > >         Python = fun () => $'!value in !s ' : bool
00:02:32 verbose #3233 > >     }
00:02:32 verbose #3234 > >
00:02:32 verbose #3235 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 verbose #3236 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 verbose #3237 > > │ ### to_string result t u                                                     │
00:02:32 verbose #3238 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #3239 > >
00:02:32 verbose #3240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 verbose #3241 > > instance to_string result t u = fun x =>
00:02:32 verbose #3242 > >     real
00:02:32 verbose #3243 > >         open rust
00:02:32 verbose #3244 > >         typecase (t * u) with
00:02:32 verbose #3245 > >         | string * string =>
00:02:32 verbose #3246 > >             match x with
00:02:32 verbose #3247 > >             | Ok x => x
00:02:32 verbose #3248 > >             | Error x => $'"sm\'.to_string result / Error: " + !x + ""' : string
00:02:32 verbose #3249 > >         | std_string * std_string =>
00:02:32 verbose #3250 > >             match x with
00:02:32 verbose #3251 > >             | Ok x => from_std_string x
00:02:32 verbose #3252 > >             | Error x => $'"sm\'.to_string result / Error: " + string !x + ""' :
00:02:32 verbose #3253 > > string
00:02:32 verbose #3254 > >         | _ => obj_to_string `u x
00:02:33 verbose #3255 > >
00:02:33 verbose #3256 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 verbose #3257 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 verbose #3258 > > │ ### format_exception                                                         │
00:02:33 verbose #3259 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 verbose #3260 > >
00:02:33 verbose #3261 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:33 verbose #3262 > > inl format_exception (ex : exn) : string =
00:02:33 verbose #3263 > >     run_target function
00:02:33 verbose #3264 > >         | Fsharp (Native) => fun () => $'$"{!ex.GetType ()}: {!ex.Message}"'
00:02:33 verbose #3265 > >         | _ => fun () => ex |> format_debug
00:02:33 verbose #3266 > >
00:02:33 verbose #3267 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:33 verbose #3268 > > //// test
00:02:33 verbose #3269 > > ///! fsharp
00:02:33 verbose #3270 > > ///! rust
00:02:33 verbose #3271 > > ///! typescript
00:02:33 verbose #3272 > > ///! python
00:02:33 verbose #3273 > >
00:02:33 verbose #3274 > > fun () => failwith "test"
00:02:33 verbose #3275 > > |> _throws
00:02:33 verbose #3276 > > |> optionm.value
00:02:33 verbose #3277 > > |> sm'.format_exception
00:02:33 verbose #3278 > > |> _assert_eq (run_target function
00:02:33 verbose #3279 > >     | Fsharp _ => fun () => "System.Exception: test"
00:02:33 verbose #3280 > >     | Rust _ => fun () => "Exception { message: \"test\" }"
00:02:33 verbose #3281 > >     | TypeScript _ => fun () => "Error: test"
00:02:33 verbose #3282 > >     | Python _ => fun () => "test"
00:02:33 verbose #3283 > >     | _ => fun () => null ()
00:02:33 verbose #3284 > > )
00:02:38 verbose #3285 > >
00:02:38 verbose #3286 > > ╭─[ 4.72s - return value ]─────────────────────────────────────────────────────╮
00:02:38 verbose #3287 > > │ .rs output:                                                                  │
00:02:38 verbose #3288 > > │ __assert_eq / actual: "Exception { message: "test" }" / expected: "Exception │
00:02:38 verbose #3289 > > │ { message: "test" }"                                                         │
00:02:38 verbose #3290 > > │                                                                              │
00:02:38 verbose #3291 > > │ .ts output:                                                                  │
00:02:38 verbose #3292 > > │ __assert_eq / actual: Error: test / expected: Error: test                    │
00:02:38 verbose #3293 > > │                                                                              │
00:02:38 verbose #3294 > > │ .py output:                                                                  │
00:02:38 verbose #3295 > > │ __assert_eq / actual: test / expected: test                                  │
00:02:38 verbose #3296 > > │                                                                              │
00:02:38 verbose #3297 > > │                                                                              │
00:02:38 verbose #3298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #3299 > >
00:02:38 verbose #3300 > > ╭─[ 4.73s - stdout ]───────────────────────────────────────────────────────────╮
00:02:38 verbose #3301 > > │ .fsx output:                                                                 │
00:02:38 verbose #3302 > > │ __assert_eq / actual: "System.Exception: test" / expected:                   │
00:02:38 verbose #3303 > > │ "System.Exception: test"                                                     │
00:02:38 verbose #3304 > > │                                                                              │
00:02:38 verbose #3305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #3306 > >
00:02:38 verbose #3307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:38 verbose #3308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:38 verbose #3309 > > │ ### range                                                                    │
00:02:38 verbose #3310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #3311 > >
00:02:38 verbose #3312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:38 verbose #3313 > > inl range forall t. (start : am'.range t) (end : am'.range t) s =
00:02:38 verbose #3314 > >     inl start, end =
00:02:38 verbose #3315 > >         match start, end with
00:02:38 verbose #3316 > >         | Start start, End fn =>
00:02:38 verbose #3317 > >             start, s |> length' |> fn
00:02:38 verbose #3318 > >         | End start_fn, End end_fn =>
00:02:38 verbose #3319 > >             inl len = s |> length'
00:02:38 verbose #3320 > >             start_fn len, end_fn len
00:02:38 verbose #3321 > >     s |> slice (start |> i32) (end |> i32)
00:02:39 verbose #3322 > >
00:02:39 verbose #3323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:39 verbose #3324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:39 verbose #3325 > > │ ### concat_list                                                              │
00:02:39 verbose #3326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:39 verbose #3327 > >
00:02:39 verbose #3328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:39 verbose #3329 > > inl concat_list s list =
00:02:39 verbose #3330 > >     list
00:02:39 verbose #3331 > >     |> listm'.box
00:02:39 verbose #3332 > >     |> seq.of_list'
00:02:39 verbose #3333 > >     |> concat s
00:02:39 verbose #3334 > >
00:02:39 verbose #3335 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:39 verbose #3336 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:39 verbose #3337 > > │ ### ellipsis_end                                                             │
00:02:39 verbose #3338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:39 verbose #3339 > >
00:02:39 verbose #3340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:39 verbose #3341 > > let ellipsis_end (max : i64) (s : string) =
00:02:39 verbose #3342 > >     inl len = sm.length s
00:02:39 verbose #3343 > >     if len <= max
00:02:39 verbose #3344 > >     then s
00:02:39 verbose #3345 > >     else
00:02:39 verbose #3346 > >         inl half = f64 max / 2
00:02:39 verbose #3347 > >         inl start_half = half |> math.ceil |> i64
00:02:39 verbose #3348 > >         inl end_half = half |> math.floor |> i64
00:02:39 verbose #3349 > >         inl start = s |> slice 0 (start_half - 1)
00:02:39 verbose #3350 > >         inl end = s |> slice (len - end_half) (len - 1)
00:02:39 verbose #3351 > >         (a ;[[start; "..."; end]] : _ i32 _)
00:02:39 verbose #3352 > >         |> seq.of_array
00:02:39 verbose #3353 > >         |> concat ""
00:02:40 verbose #3354 > >
00:02:40 verbose #3355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:40 verbose #3356 > > //// test
00:02:40 verbose #3357 > >
00:02:40 verbose #3358 > > "12345"
00:02:40 verbose #3359 > > |> ellipsis_end 2
00:02:40 verbose #3360 > > |> _assert_eq "1...5"
00:02:40 verbose #3361 > >
00:02:40 verbose #3362 > > "12345"
00:02:40 verbose #3363 > > |> ellipsis_end 3
00:02:40 verbose #3364 > > |> _assert_eq "12...5"
00:02:40 verbose #3365 > >
00:02:40 verbose #3366 > > "1234567"
00:02:40 verbose #3367 > > |> ellipsis_end 4
00:02:40 verbose #3368 > > |> _assert_eq "12...67"
00:02:40 verbose #3369 > >
00:02:40 verbose #3370 > > ╭─[ 792.07ms - stdout ]────────────────────────────────────────────────────────╮
00:02:40 verbose #3371 > > │ __assert_eq / actual: "1...5" / expected: "1...5"                            │
00:02:40 verbose #3372 > > │ __assert_eq / actual: "12...5" / expected: "12...5"                          │
00:02:40 verbose #3373 > > │ __assert_eq / actual: "12...67" / expected: "12...67"                        │
00:02:40 verbose #3374 > > │                                                                              │
00:02:40 verbose #3375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:40 verbose #3376 > >
00:02:40 verbose #3377 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:40 verbose #3378 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:40 verbose #3379 > > │ ### format_ellipsis                                                          │
00:02:40 verbose #3380 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:40 verbose #3381 > >
00:02:40 verbose #3382 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:40 verbose #3383 > > inl format_ellipsis s =
00:02:40 verbose #3384 > >     s
00:02:40 verbose #3385 > >     |> format_debug
00:02:40 verbose #3386 > >     |> ellipsis_end 400
00:02:41 verbose #3387 > >
00:02:41 verbose #3388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 verbose #3389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 verbose #3390 > > │ ### replace_regex                                                            │
00:02:41 verbose #3391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #3392 > >
00:02:41 verbose #3393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #3394 > > inl replace_regex (pattern : string) (replacement : string) (s : string) :
00:02:41 verbose #3395 > > string =
00:02:41 verbose #3396 > >     run_target_args (fun () => s, pattern, replacement) function
00:02:41 verbose #3397 > >         | Fsharp (Native) => fun s, pattern, replacement =>
00:02:41 verbose #3398 > >             $'System.Text.RegularExpressions.Regex.Replace (!s, !pattern,
00:02:41 verbose #3399 > > !replacement)'
00:02:41 verbose #3400 > >         | Rust (Native) => fun s, pattern, replacement =>
00:02:41 verbose #3401 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:02:41 verbose #3402 > >             inl s = join s
00:02:41 verbose #3403 > >             !\\((regex, s, replacement), $'$"$0.replace_all(&*$1, &*$2)"')
00:02:41 verbose #3404 > >             |> cow_to_std_string
00:02:41 verbose #3405 > >             |> from_std_string
00:02:41 verbose #3406 > >         | _ => fun _ => null ()
00:02:41 verbose #3407 > >
00:02:41 verbose #3408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #3409 > > //// test
00:02:41 verbose #3410 > > ///! fsharp
00:02:41 verbose #3411 > > ///! rust -d regex
00:02:41 verbose #3412 > >
00:02:41 verbose #3413 > > " 123"
00:02:41 verbose #3414 > > |> replace_regex "\\s\\w2" ""
00:02:41 verbose #3415 > > |> _assert_eq "3"
00:02:45 verbose #3416 > >
00:02:45 verbose #3417 > > ╭─[ 3.80s - return value ]─────────────────────────────────────────────────────╮
00:02:45 verbose #3418 > > │ .rs output (rust -d regex):                                                  │
00:02:45 verbose #3419 > > │ __assert_eq / actual: "3" / expected: "3"                                    │
00:02:45 verbose #3420 > > │                                                                              │
00:02:45 verbose #3421 > > │                                                                              │
00:02:45 verbose #3422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:45 verbose #3423 > >
00:02:45 verbose #3424 > > ╭─[ 3.80s - stdout ]───────────────────────────────────────────────────────────╮
00:02:45 verbose #3425 > > │ .fsx output:                                                                 │
00:02:45 verbose #3426 > > │ __assert_eq / actual: "3" / expected: "3"                                    │
00:02:45 verbose #3427 > > │                                                                              │
00:02:45 verbose #3428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:45 verbose #3429 > >
00:02:45 verbose #3430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:45 verbose #3431 > > //// test
00:02:45 verbose #3432 > > ///! rust -d regex
00:02:45 verbose #3433 > >
00:02:45 verbose #3434 > > "    let main args =\n        ()\n"
00:02:45 verbose #3435 > > |> replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:02:45 verbose #3436 > > "$a[[<EntryPoint>]]\n$a$b"
00:02:45 verbose #3437 > > |> _assert_eq "    [[<EntryPoint>]]\n    let main args =\n        ()\n"
00:02:49 verbose #3438 > >
00:02:49 verbose #3439 > > ╭─[ 3.86s - return value ]─────────────────────────────────────────────────────╮
00:02:49 verbose #3440 > > │ __assert_eq / actual: "    [<EntryPoint>]                                    │
00:02:49 verbose #3441 > > │     let main args =                                                          │
00:02:49 verbose #3442 > > │         ()                                                                   │
00:02:49 verbose #3443 > > │ " / expected: "    [<EntryPoint>]                                            │
00:02:49 verbose #3444 > > │     let main args =                                                          │
00:02:49 verbose #3445 > > │         ()                                                                   │
00:02:49 verbose #3446 > > │ "                                                                            │
00:02:49 verbose #3447 > > │                                                                              │
00:02:49 verbose #3448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 verbose #3449 > >
00:02:49 verbose #3450 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:49 verbose #3451 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:49 verbose #3452 > > │ ## main                                                                      │
00:02:49 verbose #3453 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 verbose #3454 > >
00:02:49 verbose #3455 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #3456 > > inl main () =
00:02:49 verbose #3457 > >     $'let contains x = !contains x' : ()
00:02:49 verbose #3458 > >     $'let ends_with x = !ends_with x' : ()
00:02:49 verbose #3459 > >     $'let pad_left x = !pad_left x' : ()
00:02:49 verbose #3460 > >     $'let pad_right x = !pad_right x' : ()
00:02:49 verbose #3461 > >     $'let replace x = !replace x' : ()
00:02:49 verbose #3462 > >     $'let replace_regex x = !replace_regex x' : ()
00:02:49 verbose #3463 > >     inl slice (a : i32) (b : i32) c = slice a b c
00:02:49 verbose #3464 > >     $'let slice x = !slice x' : ()
00:02:49 verbose #3465 > >     $'let split x = !split x' : ()
00:02:49 verbose #3466 > >     $'let split_string x = !split_string x' : ()
00:02:49 verbose #3467 > >     $'let starts_with x = !starts_with x' : ()
00:02:49 verbose #3468 > >     $'let substring x = !substring x' : ()
00:02:49 verbose #3469 > >     $'let to_lower x = !to_lower x' : ()
00:02:49 verbose #3470 > >     $'let to_upper x = !to_upper x' : ()
00:02:49 verbose #3471 > >     $'let trim x = !trim x' : ()
00:02:49 verbose #3472 > >     inl trim_end x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |> trim_end
00:02:49 verbose #3473 > >     $'let trim_end x = !trim_end x' : ()
00:02:49 verbose #3474 > >     inl trim_start x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |>
00:02:49 verbose #3475 > > trim_start
00:02:49 verbose #3476 > >     $'let trim_start x = !trim_start x' : ()
00:02:49 verbose #3477 > >     $'let ellipsis x = !ellipsis x' : ()
00:02:49 verbose #3478 > >     $'let ellipsis_end x = !ellipsis_end x' : ()
00:02:49 verbose #3479 > >     $'let format_exception x = !format_exception x' : ()
00:02:49 verbose #3480 > >     $'let concat_array_trailing x = !concat_array_trailing x' : ()
00:02:49 verbose #3481 > >     inl concat a (b : seq.seq' string) = concat a b
00:02:49 verbose #3482 > >     $'let concat x = !concat x' : ()
00:02:49 verbose #3483 > >     $'let join\' x = !join' x' : ()
00:02:49 verbose #3484 > >     $'let to_char_array x = !to_char_array x' : ()
00:02:50 verbose #3485 > >
00:02:50 verbose #3486 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 verbose #3487 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 verbose #3488 > > │ ## rust                                                                      │
00:02:50 verbose #3489 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #3490 > >
00:02:50 verbose #3491 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 verbose #3492 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 verbose #3493 > > │ ### to_string std_string                                                     │
00:02:50 verbose #3494 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #3495 > >
00:02:50 verbose #3496 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #3497 > > open rust
00:02:50 verbose #3498 > > instance to_string std_string = from_std_string
00:02:51 verbose #3499 > 00:01:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 96280 }
00:02:51 verbose #3500 > 00:01:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:02:51 verbose #3501 >     "nbconvert",
00:02:51 verbose #3502 >     "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb",
00:02:51 verbose #3503 >     "--to",
00:02:51 verbose #3504 >     "html",
00:02:51 verbose #3505 >     "--HTMLExporter.theme=dark",
00:02:51 verbose #3506 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:54 verbose #3507 > 00:01:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb to html
00:02:54 verbose #3508 > 00:01:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:54 verbose #3509 > 00:01:46 verbose #7 !   validate(nb)
00:02:59 verbose #3510 > 00:01:51 verbose #8 ! [NbConvertApp] Writing 577720 bytes to c:\home\git\polyglot\lib\spiral\sm'.dib.html
00:02:59 verbose #3511 > 00:01:51 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:02:59 verbose #3512 > 00:01:51   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:02:59 verbose #3513 > 00:01:51   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:02:59 verbose #3514 >     "-c",
00:02:59 verbose #3515 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:02:59 verbose #3516 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:00 verbose #3517 > 00:01:52 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:00 verbose #3518 > 00:01:52   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:00 verbose #3519 > 00:01:52   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 96976 }
00:03:00   debug #3520 runtime.execute_with_options_async / { exit_code = 0; output_length = 103653 }
00:03:00   debug #2 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3
00:03:00   debug #3521 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/rust.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:00 verbose #3522 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/rust.dib", "--retries", "3"])) }
00:03:00 verbose #3523 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:03:00 verbose #3524 >     "repl",
00:03:00 verbose #3525 >     "--exit-after-run",
00:03:00 verbose #3526 >     "--run",
00:03:00 verbose #3527 >     "c:/home/git/polyglot/lib/spiral/rust/rust.dib",
00:03:00 verbose #3528 >     "--output-path",
00:03:00 verbose #3529 >     "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb",
00:03:00 verbose #3530 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/rust.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:03 verbose #3531 > >
00:03:03 verbose #3532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:03 verbose #3533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:03 verbose #3534 > > │ # rust                                                                       │
00:03:03 verbose #3535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:08 verbose #3536 > >
00:03:08 verbose #3537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:08 verbose #3538 > > //// test
00:03:08 verbose #3539 > >
00:03:08 verbose #3540 > > open testing
00:03:09 verbose #3541 > >
00:03:09 verbose #3542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:09 verbose #3543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:09 verbose #3544 > > │ ## rust                                                                      │
00:03:09 verbose #3545 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3546 > >
00:03:09 verbose #3547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:09 verbose #3548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:09 verbose #3549 > > │ ### any                                                                      │
00:03:09 verbose #3550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3551 > >
00:03:09 verbose #3552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:09 verbose #3553 > > nominal any =
00:03:09 verbose #3554 > >     `(
00:03:09 verbose #3555 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:09 verbose #3556 > > Fable.Core.Emit(\"core::any::Any\")>]]\n#endif\ntype core_any_Any = class end"
00:03:09 verbose #3557 > >         $'' : $'core_any_Any'
00:03:09 verbose #3558 > >     )
00:03:10 verbose #3559 > >
00:03:10 verbose #3560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:10 verbose #3561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:10 verbose #3562 > > │ ### try                                                                      │
00:03:10 verbose #3563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #3564 > >
00:03:10 verbose #3565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #3566 > > nominal try t =
00:03:10 verbose #3567 > >     `(
00:03:10 verbose #3568 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:10 verbose #3569 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype core_ops_Try<'T> = class end"
00:03:10 verbose #3570 > >         $'' : $'core_ops_Try<`t>'
00:03:10 verbose #3571 > >     )
00:03:10 verbose #3572 > >
00:03:10 verbose #3573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:10 verbose #3574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:10 verbose #3575 > > │ ### cow                                                                      │
00:03:10 verbose #3576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:10 verbose #3577 > >
00:03:10 verbose #3578 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #3579 > > nominal cow t =
00:03:10 verbose #3580 > >     `(
00:03:10 verbose #3581 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:10 verbose #3582 > > Fable.Core.Emit(\"std::borrow::Cow<$0>\")>]]\n#endif\ntype std_borrow_Cow<'T> =
00:03:10 verbose #3583 > > class end"
00:03:10 verbose #3584 > >         $'' : $'std_borrow_Cow<`t>'
00:03:10 verbose #3585 > >     )
00:03:11 verbose #3586 > >
00:03:11 verbose #3587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3589 > > │ ### ref_cell                                                                 │
00:03:11 verbose #3590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3591 > >
00:03:11 verbose #3592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3593 > > nominal ref_cell t =
00:03:11 verbose #3594 > >     `(
00:03:11 verbose #3595 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3596 > > Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3597 > > std_cell_RefCell<'T> = class end"
00:03:11 verbose #3598 > >         $'' : $'std_cell_RefCell<`t>'
00:03:11 verbose #3599 > >     )
00:03:11 verbose #3600 > >
00:03:11 verbose #3601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3603 > > │ ### rc                                                                       │
00:03:11 verbose #3604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3605 > >
00:03:11 verbose #3606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3607 > > nominal rc t =
00:03:11 verbose #3608 > >     `(
00:03:11 verbose #3609 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3610 > > Fable.Core.Emit(\"std::rc::Rc<$0>\")>]]\n#endif\ntype std_rc_Rc<'T> = class end"
00:03:11 verbose #3611 > >         $'' : $'std_rc_Rc<`t>'
00:03:11 verbose #3612 > >     )
00:03:11 verbose #3613 > >
00:03:11 verbose #3614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3616 > > │ ### lifetime_ref                                                             │
00:03:11 verbose #3617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3618 > >
00:03:11 verbose #3619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3620 > > nominal lifetime_ref (t : * -> *) u =
00:03:11 verbose #3621 > >     `(
00:03:11 verbose #3622 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3623 > > Fable.Core.Emit(\"$0\")>]]\n#endif\ntype LifetimeRef<'T> = class end"
00:03:11 verbose #3624 > >         $'' : $'LifetimeRef<`(t u)>'
00:03:11 verbose #3625 > >     )
00:03:12 verbose #3626 > >
00:03:12 verbose #3627 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3628 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3629 > > │ ### lifetime_join                                                            │
00:03:12 verbose #3630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3631 > >
00:03:12 verbose #3632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3633 > > nominal lifetime_join t u =
00:03:12 verbose #3634 > >     `(
00:03:12 verbose #3635 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0 +
00:03:12 verbose #3636 > > $1\")>]]\n#endif\ntype LifetimeJoin<'T, 'U> = class end"
00:03:12 verbose #3637 > >         $'' : $'LifetimeJoin<`t, `u>'
00:03:12 verbose #3638 > >     )
00:03:12 verbose #3639 > >
00:03:12 verbose #3640 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3641 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3642 > > │ ### lifetime                                                                 │
00:03:12 verbose #3643 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3644 > >
00:03:12 verbose #3645 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3646 > > nominal lifetime t u =
00:03:12 verbose #3647 > >     `(
00:03:12 verbose #3648 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"$0
00:03:12 verbose #3649 > > $1\")>]]\n#endif\ntype Lifetime<'T, 'U> = class end"
00:03:12 verbose #3650 > >         $'' : $'Lifetime<`t, `u>'
00:03:12 verbose #3651 > >     )
00:03:13 verbose #3652 > >
00:03:13 verbose #3653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3655 > > │ ### static_lifetime                                                          │
00:03:13 verbose #3656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3657 > >
00:03:13 verbose #3658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3659 > > nominal static_lifetime =
00:03:13 verbose #3660 > >     `(
00:03:13 verbose #3661 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:13 verbose #3662 > > Fable.Core.Emit(\"'static\")>]]\n#endif\ntype StaticLifetime = class end"
00:03:13 verbose #3663 > >         $'' : $'StaticLifetime'
00:03:13 verbose #3664 > >     )
00:03:13 verbose #3665 > >
00:03:13 verbose #3666 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3667 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3668 > > │ ### ref                                                                      │
00:03:13 verbose #3669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3670 > >
00:03:13 verbose #3671 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3672 > > nominal ref t =
00:03:13 verbose #3673 > >     `(
00:03:13 verbose #3674 > >         backend_switch `(()) `({}) {
00:03:13 verbose #3675 > >             Fsharp =
00:03:13 verbose #3676 > >                 (fun () =>
00:03:13 verbose #3677 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:13 verbose #3678 > > Fable.Core.Emit(\"&$0\")>]]\n#endif\ntype Ref<'T> = class end"
00:03:13 verbose #3679 > >                 ) : () -> ()
00:03:13 verbose #3680 > >         }
00:03:13 verbose #3681 > >         $'' : $'Ref<`t>'
00:03:13 verbose #3682 > >     )
00:03:14 verbose #3683 > >
00:03:14 verbose #3684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3686 > > │ ### static_ref                                                               │
00:03:14 verbose #3687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3688 > >
00:03:14 verbose #3689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3690 > > nominal static_ref t = ref (lifetime static_lifetime t)
00:03:14 verbose #3691 > >
00:03:14 verbose #3692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3694 > > │ ### weak_rc                                                                  │
00:03:14 verbose #3695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3696 > >
00:03:14 verbose #3697 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3698 > > nominal weak_rc t =
00:03:14 verbose #3699 > >     `(
00:03:14 verbose #3700 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:14 verbose #3701 > > Fable.Core.Emit(\"std::rc::Weak<$0>\")>]]\n#endif\ntype std_rc_Weak<'T> = class
00:03:14 verbose #3702 > > end"
00:03:14 verbose #3703 > >         $'' : $'std_rc_Weak<`t>'
00:03:14 verbose #3704 > >     )
00:03:14 verbose #3705 > >
00:03:14 verbose #3706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3708 > > │ ### box                                                                      │
00:03:14 verbose #3709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3710 > >
00:03:14 verbose #3711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3712 > > nominal box t =
00:03:14 verbose #3713 > >     `(
00:03:14 verbose #3714 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:14 verbose #3715 > > Fable.Core.Emit(\"Box<$0>\")>]]\n#endif\ntype Box<'T> = class end"
00:03:14 verbose #3716 > >         $'' : $'Box<`t>'
00:03:14 verbose #3717 > >     )
00:03:15 verbose #3718 > >
00:03:15 verbose #3719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3721 > > │ ### mut_cell                                                                 │
00:03:15 verbose #3722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3723 > >
00:03:15 verbose #3724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3725 > > nominal mut_cell t =
00:03:15 verbose #3726 > >     `(
00:03:15 verbose #3727 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:15 verbose #3728 > > Fable.Core.Emit(\"MutCell<$0>\")>]]\n#endif\ntype MutCell<'T> = class end"
00:03:15 verbose #3729 > >         $'' : $'MutCell<`t>'
00:03:15 verbose #3730 > >     )
00:03:15 verbose #3731 > >
00:03:15 verbose #3732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3734 > > │ ### pin                                                                      │
00:03:15 verbose #3735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3736 > >
00:03:15 verbose #3737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3738 > > nominal pin t =
00:03:15 verbose #3739 > >     `(
00:03:15 verbose #3740 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:15 verbose #3741 > > Fable.Core.Emit(\"std::pin::Pin<$0>\")>]]\n#endif\ntype std_pin_Pin<'T> = class
00:03:15 verbose #3742 > > end"
00:03:15 verbose #3743 > >         $'' : $'std_pin_Pin<`t>'
00:03:15 verbose #3744 > >     )
00:03:16 verbose #3745 > >
00:03:16 verbose #3746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3748 > > │ ### dyn'                                                                     │
00:03:16 verbose #3749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3750 > >
00:03:16 verbose #3751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3752 > > nominal dyn' t =
00:03:16 verbose #3753 > >     `(
00:03:16 verbose #3754 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn
00:03:16 verbose #3755 > > $0\")>]]\n#endif\ntype Dyn<'T> = class end"
00:03:16 verbose #3756 > >         $'' : $'Dyn<`t>'
00:03:16 verbose #3757 > >     )
00:03:16 verbose #3758 > >
00:03:16 verbose #3759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3761 > > │ ### fn'                                                                      │
00:03:16 verbose #3762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3763 > >
00:03:16 verbose #3764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3765 > > nominal fn' t =
00:03:16 verbose #3766 > >     `(
00:03:16 verbose #3767 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()
00:03:16 verbose #3768 > > -> $0\")>]]\n#endif\ntype Fn<'T> = class end"
00:03:16 verbose #3769 > >         $'' : $'Fn<`t>'
00:03:16 verbose #3770 > >     )
00:03:16 verbose #3771 > >
00:03:16 verbose #3772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3774 > > │ ### action_fn                                                                │
00:03:16 verbose #3775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3776 > >
00:03:16 verbose #3777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3778 > > nominal action_fn t =
00:03:16 verbose #3779 > >     `(
00:03:16 verbose #3780 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:16 verbose #3781 > > Fable.Core.Emit(\"Fn($0)\")>]]\n#endif\ntype ActionFn<'T> = class end"
00:03:16 verbose #3782 > >         $'' : $'ActionFn<`t>'
00:03:16 verbose #3783 > >     )
00:03:17 verbose #3784 > >
00:03:17 verbose #3785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3787 > > │ ### action_fn2                                                               │
00:03:17 verbose #3788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3789 > >
00:03:17 verbose #3790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3791 > > nominal action_fn2 t u =
00:03:17 verbose #3792 > >     `(
00:03:17 verbose #3793 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:17 verbose #3794 > > Fable.Core.Emit(\"Fn($0, $1)\")>]]\n#endif\ntype ActionFn2<'T, 'U> = class end"
00:03:17 verbose #3795 > >         $'' : $'ActionFn2<`t, `u>'
00:03:17 verbose #3796 > >     )
00:03:17 verbose #3797 > >
00:03:17 verbose #3798 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3799 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3800 > > │ ### fn_once                                                                  │
00:03:17 verbose #3801 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3802 > >
00:03:17 verbose #3803 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3804 > > nominal fn_once t =
00:03:17 verbose #3805 > >     `(
00:03:17 verbose #3806 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:17 verbose #3807 > > Fable.Core.Emit(\"FnOnce() -> $0\")>]]\n#endif\ntype FnOnce<'T> = class end"
00:03:17 verbose #3808 > >         $'' : $'FnOnce<`t>'
00:03:17 verbose #3809 > >     )
00:03:18 verbose #3810 > >
00:03:18 verbose #3811 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3812 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3813 > > │ ### fn_unit                                                                  │
00:03:18 verbose #3814 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3815 > >
00:03:18 verbose #3816 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3817 > > nominal fn_unit =
00:03:18 verbose #3818 > >     `(
00:03:18 verbose #3819 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:18 verbose #3820 > > Fable.Core.Emit(\"Fn()\")>]]\n#endif\ntype FnUnit = class end"
00:03:18 verbose #3821 > >         $'' : $'FnUnit'
00:03:18 verbose #3822 > >     )
00:03:18 verbose #3823 > >
00:03:18 verbose #3824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3826 > > │ ### func0                                                                    │
00:03:18 verbose #3827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3828 > >
00:03:18 verbose #3829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3830 > > nominal func0 t =
00:03:18 verbose #3831 > >     `(
00:03:18 verbose #3832 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:18 verbose #3833 > > Fable.Core.Emit(\"Func0<$0>\")>]]\n#endif\ntype Func0<'T> = class end"
00:03:18 verbose #3834 > >         $'' : $'Func0<`t>'
00:03:18 verbose #3835 > >     )
00:03:19 verbose #3836 > >
00:03:19 verbose #3837 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #3838 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #3839 > > │ ### func1                                                                    │
00:03:19 verbose #3840 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #3841 > >
00:03:19 verbose #3842 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #3843 > > nominal func1 t u =
00:03:19 verbose #3844 > >     `(
00:03:19 verbose #3845 > >         typecase t with
00:03:19 verbose #3846 > >         | () => `func0 `u
00:03:19 verbose #3847 > >         | _ =>
00:03:19 verbose #3848 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:19 verbose #3849 > > Fable.Core.Emit(\"Func1<$0, $1>\")>]]\n#endif\ntype Func0<'T, 'U> = class end"
00:03:19 verbose #3850 > >             $'' : $'Func0<`t, `u>'
00:03:19 verbose #3851 > >     )
00:03:19 verbose #3852 > >
00:03:19 verbose #3853 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #3854 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #3855 > > │ ### impl                                                                     │
00:03:19 verbose #3856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #3857 > >
00:03:19 verbose #3858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #3859 > > nominal impl t =
00:03:19 verbose #3860 > >     `(
00:03:19 verbose #3861 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"impl
00:03:19 verbose #3862 > > $0\")>]]\n#endif\ntype Impl<'T> = class end"
00:03:19 verbose #3863 > >         $'' : $'Impl<`t>'
00:03:19 verbose #3864 > >     )
00:03:20 verbose #3865 > >
00:03:20 verbose #3866 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3867 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3868 > > │ ### mut'                                                                     │
00:03:20 verbose #3869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3870 > >
00:03:20 verbose #3871 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3872 > > nominal mut' t =
00:03:20 verbose #3873 > >     `(
00:03:20 verbose #3874 > >         backend_switch `(()) `({}) {
00:03:20 verbose #3875 > >             Fsharp =
00:03:20 verbose #3876 > >                 (fun () =>
00:03:20 verbose #3877 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:20 verbose #3878 > > Fable.Core.Emit(\"mut $0\")>]]\n#endif\ntype Mut<'T> = class end"
00:03:20 verbose #3879 > >                 ) : () -> ()
00:03:20 verbose #3880 > >         }
00:03:20 verbose #3881 > >         $'' : $'Mut<`t>'
00:03:20 verbose #3882 > >     )
00:03:20 verbose #3883 > >
00:03:20 verbose #3884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3886 > > │ ### send                                                                     │
00:03:20 verbose #3887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3888 > >
00:03:20 verbose #3889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3890 > > nominal send t =
00:03:20 verbose #3891 > >     `(
00:03:20 verbose #3892 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:20 verbose #3893 > > Fable.Core.Emit(\"Send\")>]]\n#endif\ntype Send<'T> = class end"
00:03:20 verbose #3894 > >         $'' : lifetime_join t $'Send<`t>'
00:03:20 verbose #3895 > >     )
00:03:20 verbose #3896 > >
00:03:20 verbose #3897 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3898 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3899 > > │ ### emit_expr                                                                │
00:03:20 verbose #3900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3901 > >
00:03:20 verbose #3902 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3903 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:03:20 verbose #3904 > >     $'Fable.Core.RustInterop.emitRustExpr !args !code '
00:03:21 verbose #3905 > >
00:03:21 verbose #3906 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #3907 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #3908 > > │ ### (~!\\)                                                                   │
00:03:21 verbose #3909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #3910 > >
00:03:21 verbose #3911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #3912 > > inl (~!\) forall t. (code : string) : t =
00:03:21 verbose #3913 > >     emit_expr () code
00:03:21 verbose #3914 > >
00:03:21 verbose #3915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #3916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #3917 > > │ ### (~!\\\\)                                                                 │
00:03:21 verbose #3918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #3919 > >
00:03:21 verbose #3920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #3921 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:03:21 verbose #3922 > >     emit_expr args code
00:03:22 verbose #3923 > >
00:03:22 verbose #3924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #3925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #3926 > > │ ### ptr                                                                      │
00:03:22 verbose #3927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #3928 > >
00:03:22 verbose #3929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #3930 > > nominal ptr t =
00:03:22 verbose #3931 > >     `(
00:03:22 verbose #3932 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:22 verbose #3933 > > Fable.Core.Emit(\"*const $0\")>]]\n#endif\ntype Ptr<'T> = class end"
00:03:22 verbose #3934 > >         $'' : $'Ptr<`t>'
00:03:22 verbose #3935 > >     )
00:03:22 verbose #3936 > >
00:03:22 verbose #3937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #3938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #3939 > > │ ### ptr_read                                                                 │
00:03:22 verbose #3940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #3941 > >
00:03:22 verbose #3942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #3943 > > inl ptr_read forall t. (x : ptr t) : t =
00:03:22 verbose #3944 > >     !\\(x, $'"std::ptr::read($0)"')
00:03:23 verbose #3945 > >
00:03:23 verbose #3946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #3947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #3948 > > │ ### u128                                                                     │
00:03:23 verbose #3949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #3950 > >
00:03:23 verbose #3951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #3952 > > nominal u128 =
00:03:23 verbose #3953 > >     `(
00:03:23 verbose #3954 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:23 verbose #3955 > > Fable.Core.Emit(\"u128\")>]]\n#endif\ntype u128 = class end"
00:03:23 verbose #3956 > >         $'' : $'u128'
00:03:23 verbose #3957 > >     )
00:03:23 verbose #3958 > >
00:03:23 verbose #3959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #3960 > > inl u128 forall t. (x : t) : u128 =
00:03:23 verbose #3961 > >     !\\(x, $'"$0 as u128"')
00:03:23 verbose #3962 > >
00:03:23 verbose #3963 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #3964 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #3965 > > │ ### f64                                                                      │
00:03:23 verbose #3966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #3967 > >
00:03:23 verbose #3968 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #3969 > > inl f64 forall t. (x : t) : f64 =
00:03:23 verbose #3970 > >     !\\(x, $'"$0 as f64"')
00:03:24 verbose #3971 > >
00:03:24 verbose #3972 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #3973 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #3974 > > │ ### unwrap_0                                                                 │
00:03:24 verbose #3975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #3976 > >
00:03:24 verbose #3977 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #3978 > > inl unwrap_0 forall (t : * -> *) u. (x : t u) : u =
00:03:24 verbose #3979 > >     !\\(x, $'"$0.0"')
00:03:24 verbose #3980 > >
00:03:24 verbose #3981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #3982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #3983 > > │ ### unwrap_0_ref                                                             │
00:03:24 verbose #3984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #3985 > >
00:03:24 verbose #3986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #3987 > > inl unwrap_0_ref forall (t : * -> *) u. (x : ref (t u)) : ref u =
00:03:24 verbose #3988 > >     !\\(x, $'"&$0.0"')
00:03:25 verbose #3989 > >
00:03:25 verbose #3990 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #3991 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #3992 > > │ ### emit                                                                     │
00:03:25 verbose #3993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #3994 > >
00:03:25 verbose #3995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #3996 > > inl emit forall t. (x : t) : t =
00:03:25 verbose #3997 > >     !\\(x, $'"$0"')
00:03:25 verbose #3998 > >
00:03:25 verbose #3999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #4000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #4001 > > │ ### emit'                                                                    │
00:03:25 verbose #4002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #4003 > >
00:03:25 verbose #4004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #4005 > > inl emit' forall t. (x : t) : t =
00:03:25 verbose #4006 > >     !\\(x, $'"let !x = $0"')
00:03:25 verbose #4007 > >     x
00:03:26 verbose #4008 > >
00:03:26 verbose #4009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #4010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #4011 > > │ ### clone                                                                    │
00:03:26 verbose #4012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #4013 > >
00:03:26 verbose #4014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #4015 > > inl clone forall t. (x : t) : t =
00:03:26 verbose #4016 > >     !\\(x, $'"$0.clone()"')
00:03:26 verbose #4017 > >
00:03:26 verbose #4018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #4019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #4020 > > │ ### dbg                                                                      │
00:03:26 verbose #4021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #4022 > >
00:03:26 verbose #4023 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #4024 > > inl dbg forall t. (x : t) : t =
00:03:26 verbose #4025 > >     !\\(x, $'"dbg\!($0)"')
00:03:27 verbose #4026 > >
00:03:27 verbose #4027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #4028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #4029 > > │ ### new_box                                                                  │
00:03:27 verbose #4030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #4031 > >
00:03:27 verbose #4032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #4033 > > inl new_box forall t. (x : t) : box t =
00:03:27 verbose #4034 > >     !\\(x, $'"Box::new($0)"')
00:03:27 verbose #4035 > >
00:03:27 verbose #4036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #4037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #4038 > > │ ### new_rc                                                                   │
00:03:27 verbose #4039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #4040 > >
00:03:27 verbose #4041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #4042 > > inl new_rc forall t. (x : t) : rc t =
00:03:27 verbose #4043 > >     !\\(x, $'"std::rc::Rc::new($0)"')
00:03:27 verbose #4044 > >
00:03:27 verbose #4045 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #4046 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #4047 > > │ ### rc_clone                                                                 │
00:03:27 verbose #4048 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #4049 > >
00:03:27 verbose #4050 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #4051 > > inl rc_clone forall t. (x : rc t) : rc t =
00:03:27 verbose #4052 > >     !\\(x, $'"std::rc::Rc::clone(&$0)"')
00:03:28 verbose #4053 > >
00:03:28 verbose #4054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4056 > > │ ### rc_unwrap_or_clone                                                       │
00:03:28 verbose #4057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4058 > >
00:03:28 verbose #4059 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4060 > > inl rc_unwrap_or_clone forall t. (x : rc t) : t =
00:03:28 verbose #4061 > >     !\\(x, $'"std::rc::Rc::unwrap_or_clone($0)"')
00:03:28 verbose #4062 > >
00:03:28 verbose #4063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4065 > > │ ### rc_downgrade                                                             │
00:03:28 verbose #4066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4067 > >
00:03:28 verbose #4068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4069 > > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:03:28 verbose #4070 > >     !\\(x, $'"std::rc::Rc::downgrade(&$0)"')
00:03:29 verbose #4071 > >
00:03:29 verbose #4072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4074 > > │ ### new_ref_cell                                                             │
00:03:29 verbose #4075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4076 > >
00:03:29 verbose #4077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4078 > > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:03:29 verbose #4079 > >     !\\(x, $'"std::cell::RefCell::new($0)"')
00:03:29 verbose #4080 > >
00:03:29 verbose #4081 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4082 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4083 > > │ ### ref_cell_borrow                                                          │
00:03:29 verbose #4084 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4085 > >
00:03:29 verbose #4086 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4087 > > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:03:29 verbose #4088 > >     !\\(x, $'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&$0))"')
00:03:29 verbose #4089 > >
00:03:29 verbose #4090 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4091 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4092 > > │ ### ref_cell_borrow_mut                                                      │
00:03:29 verbose #4093 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4094 > >
00:03:29 verbose #4095 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4096 > > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:03:29 verbose #4097 > >     !\\(x, $'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&$0))"')
00:03:30 verbose #4098 > >
00:03:30 verbose #4099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:30 verbose #4100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:30 verbose #4101 > > │ ### to_mut                                                                   │
00:03:30 verbose #4102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:30 verbose #4103 > >
00:03:30 verbose #4104 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:30 verbose #4105 > > inl to_mut forall t. (x : t) : () =
00:03:30 verbose #4106 > >     (!\($'"true; // 1"') : bool) |> ignore
00:03:30 verbose #4107 > >     !\($'"let mut !x = !x"') : ()
00:03:30 verbose #4108 > >     // (!\($'"true; !x"') : bool) |> ignore
00:03:30 verbose #4109 > >     // !\($'"!x"')
00:03:30 verbose #4110 > >     // inl result = !\($'"!x"') : mut' t
00:03:30 verbose #4111 > >     // !\($'"!result"')
00:03:30 verbose #4112 > >     // inl result = !\($'"*/ // a"') : mut' t
00:03:30 verbose #4113 > >     // inl result = !\($'"!x"') : mut' t
00:03:30 verbose #4114 > >     // result |> fun x => $'!x |> unbox // b'
00:03:30 verbose #4115 > >
00:03:30 verbose #4116 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:30 verbose #4117 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:30 verbose #4118 > > │ ### ref_map                                                                  │
00:03:30 verbose #4119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:30 verbose #4120 > >
00:03:30 verbose #4121 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:30 verbose #4122 > > inl ref_map forall t u. (fn : t -> u) (x : ref t) : ref u =
00:03:30 verbose #4123 > >     !\($'"!fn(!x)"')
00:03:31 verbose #4124 > >
00:03:31 verbose #4125 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:31 verbose #4126 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:31 verbose #4127 > > │ ### ref_eval                                                                 │
00:03:31 verbose #4128 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:31 verbose #4129 > >
00:03:31 verbose #4130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:31 verbose #4131 > > inl ref_eval forall t u. (fn : t -> u) (ref : ref t) : u =
00:03:31 verbose #4132 > >     !\\(fn, $'"$0(!ref.clone())"')
00:03:31 verbose #4133 > >
00:03:31 verbose #4134 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:31 verbose #4135 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:31 verbose #4136 > > │ ### cow_as_ref                                                               │
00:03:31 verbose #4137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:31 verbose #4138 > >
00:03:31 verbose #4139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:31 verbose #4140 > > inl cow_as_ref forall t. (s : cow t) : ref t =
00:03:31 verbose #4141 > >     !\\(s, $'"$0.as_ref()"')
00:03:32 verbose #4142 > >
00:03:32 verbose #4143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:32 verbose #4144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:32 verbose #4145 > > │ ### from_mut                                                                 │
00:03:32 verbose #4146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 verbose #4147 > >
00:03:32 verbose #4148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 verbose #4149 > > inl from_mut forall t. (x : mut' t) : t =
00:03:32 verbose #4150 > >     !\($'"!x"')
00:03:32 verbose #4151 > >
00:03:32 verbose #4152 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:32 verbose #4153 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:32 verbose #4154 > > │ ### box_fn                                                                   │
00:03:32 verbose #4155 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 verbose #4156 > >
00:03:32 verbose #4157 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 verbose #4158 > > inl box_fn forall t. (x : () -> ()) : box t =
00:03:32 verbose #4159 > >     inl x = join x
00:03:32 verbose #4160 > >     !\($'"Box::new(move || !x())"')
00:03:32 verbose #4161 > >
00:03:32 verbose #4162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:32 verbose #4163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:32 verbose #4164 > > │ ### box_pin                                                                  │
00:03:32 verbose #4165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 verbose #4166 > >
00:03:32 verbose #4167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 verbose #4168 > > inl box_pin forall t. (x : t) : pin (box t) =
00:03:32 verbose #4169 > >     !\\(x, $'"Box::pin($0)"')
00:03:33 verbose #4170 > >
00:03:33 verbose #4171 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:33 verbose #4172 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:33 verbose #4173 > > │ ### to_ref                                                                   │
00:03:33 verbose #4174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:33 verbose #4175 > >
00:03:33 verbose #4176 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 verbose #4177 > > inl to_ref forall t. (x : t) : ref t =
00:03:33 verbose #4178 > >     !\\(x, $'"&$0"')
00:03:33 verbose #4179 > >
00:03:33 verbose #4180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:33 verbose #4181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:33 verbose #4182 > > │ ### to_ref_mut                                                               │
00:03:33 verbose #4183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:33 verbose #4184 > >
00:03:33 verbose #4185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 verbose #4186 > > inl to_ref_mut forall t. (x : t) : ref (mut' t) =
00:03:33 verbose #4187 > >     !\\(x, $'"&mut $0"')
00:03:34 verbose #4188 > >
00:03:34 verbose #4189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:34 verbose #4190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:34 verbose #4191 > > │ ### deref                                                                    │
00:03:34 verbose #4192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:34 verbose #4193 > >
00:03:34 verbose #4194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:34 verbose #4195 > > inl deref forall t. (ref : ref t) : t =
00:03:34 verbose #4196 > >     !\\(ref, $'"*$0"')
00:03:34 verbose #4197 > >
00:03:34 verbose #4198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:34 verbose #4199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:34 verbose #4200 > > │ ### from_ref                                                                 │
00:03:34 verbose #4201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:34 verbose #4202 > >
00:03:34 verbose #4203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:34 verbose #4204 > > inl from_ref forall t. (ref : ref t) : t =
00:03:34 verbose #4205 > >     !\($'"!ref"')
00:03:35 verbose #4206 > >
00:03:35 verbose #4207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:35 verbose #4208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:35 verbose #4209 > > │ ### into                                                                     │
00:03:35 verbose #4210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 verbose #4211 > >
00:03:35 verbose #4212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:35 verbose #4213 > > inl into forall t u. (x : t) : u =
00:03:35 verbose #4214 > >     !\($'"!x.into()"')
00:03:35 verbose #4215 > >
00:03:35 verbose #4216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:35 verbose #4217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:35 verbose #4218 > > │ ### ops_deref                                                                │
00:03:35 verbose #4219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 verbose #4220 > >
00:03:35 verbose #4221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:35 verbose #4222 > > inl ops_deref forall t. (ref : t) : t =
00:03:35 verbose #4223 > >     !\\(ref, $'"core::ops::Deref::deref(&$0)"')
00:03:35 verbose #4224 > >
00:03:35 verbose #4225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:35 verbose #4226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:35 verbose #4227 > > │ ### func0_eval                                                               │
00:03:35 verbose #4228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:35 verbose #4229 > >
00:03:35 verbose #4230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:35 verbose #4231 > > inl func0_eval forall t. (x : func0 t) : t =
00:03:35 verbose #4232 > >     !\\(x, $'"$0()"')
00:03:36 verbose #4233 > >
00:03:36 verbose #4234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:36 verbose #4235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:36 verbose #4236 > > │ ### func0_move                                                               │
00:03:36 verbose #4237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:36 verbose #4238 > >
00:03:36 verbose #4239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:36 verbose #4240 > > inl func0_move forall t. (fn : func0 t) : t =
00:03:36 verbose #4241 > >     inl fn = join fn
00:03:36 verbose #4242 > >     !\($'"(move || !fn())()"')
00:03:36 verbose #4243 > >
00:03:36 verbose #4244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:36 verbose #4245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:36 verbose #4246 > > │ ### move                                                                     │
00:03:36 verbose #4247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:36 verbose #4248 > >
00:03:36 verbose #4249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:36 verbose #4250 > > inl move forall t. (fn : () -> t) : func0 t =
00:03:36 verbose #4251 > >     !\\(fn, $'"Func0::new(move || $0())"')
00:03:37 verbose #4252 > >
00:03:37 verbose #4253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:37 verbose #4254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:37 verbose #4255 > > │ ### to_static_ref_unbox                                                      │
00:03:37 verbose #4256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:37 verbose #4257 > >
00:03:37 verbose #4258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:37 verbose #4259 > > inl to_static_ref_unbox forall t. (x : ref t) : static_ref t =
00:03:37 verbose #4260 > >     x |> unbox
00:03:37 verbose #4261 > >
00:03:37 verbose #4262 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:37 verbose #4263 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:37 verbose #4264 > > │ ### from_static_ref_unbox                                                    │
00:03:37 verbose #4265 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:37 verbose #4266 > >
00:03:37 verbose #4267 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:37 verbose #4268 > > inl from_static_ref_unbox forall t. (x : static_ref t) : ref t =
00:03:37 verbose #4269 > >     x |> unbox
00:03:37 verbose #4270 > >
00:03:37 verbose #4271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:37 verbose #4272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:37 verbose #4273 > > │ ### box_leak                                                                 │
00:03:37 verbose #4274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:37 verbose #4275 > >
00:03:37 verbose #4276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:37 verbose #4277 > > inl box_leak forall t. (x : box t) : static_ref (mut' t) =
00:03:37 verbose #4278 > >     !\\(x, $'"Box::leak($0)"')
00:03:38 verbose #4279 > >
00:03:38 verbose #4280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:38 verbose #4281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:38 verbose #4282 > > │ ### drop                                                                     │
00:03:38 verbose #4283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:38 verbose #4284 > >
00:03:38 verbose #4285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:38 verbose #4286 > > inl drop forall t. (x : t) : () =
00:03:38 verbose #4287 > >     (!\\(x, $'"true; drop($0)"') : bool) |> ignore
00:03:38 verbose #4288 > >
00:03:38 verbose #4289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:38 verbose #4290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:38 verbose #4291 > > │ ### break                                                                    │
00:03:38 verbose #4292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:38 verbose #4293 > >
00:03:38 verbose #4294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:38 verbose #4295 > > inl break () : () =
00:03:38 verbose #4296 > >     (!\($'"true; break"') : bool) |> ignore
00:03:39 verbose #4297 > >
00:03:39 verbose #4298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:39 verbose #4299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:39 verbose #4300 > > │ ### fix_closure'                                                             │
00:03:39 verbose #4301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:39 verbose #4302 > >
00:03:39 verbose #4303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:39 verbose #4304 > > inl fix_closure' (depth : u8 * u8) x =
00:03:39 verbose #4305 > >     inl rec loop text (acc : string) n : string =
00:03:39 verbose #4306 > >         if n <= 0
00:03:39 verbose #4307 > >         then acc
00:03:39 verbose #4308 > >         else loop text (acc +. text) (n - 1)
00:03:39 verbose #4309 > >     inl a = depth |> fst |> loop "}" ""
00:03:39 verbose #4310 > >     inl b = depth |> snd |> loop "{" ""
00:03:39 verbose #4311 > >     $'"true; !x " + !a + "); " + !b + " // rust.fix_closure\'"' : string
00:03:39 verbose #4312 > >
00:03:39 verbose #4313 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:39 verbose #4314 > > //// test
00:03:39 verbose #4315 > >
00:03:39 verbose #4316 > > fix_closure' (3, 2) 0i32
00:03:39 verbose #4317 > > |> _assert_eq "true; 0 }}}); {{ // rust.fix_closure'"
00:03:41 verbose #4318 > >
00:03:41 verbose #4319 > > ╭─[ 1.57s - stdout ]───────────────────────────────────────────────────────────╮
00:03:41 verbose #4320 > > │ __assert_eq / actual: "true; 0 }}}); {{ // rust.fix_closure'" / expected:    │
00:03:41 verbose #4321 > > │ "true; 0 }}}); {{ // rust.fix_closure'"                                      │
00:03:41 verbose #4322 > > │                                                                              │
00:03:41 verbose #4323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:41 verbose #4324 > >
00:03:41 verbose #4325 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:41 verbose #4326 > > //// test
00:03:41 verbose #4327 > >
00:03:41 verbose #4328 > > fix_closure' (0, 0) ()
00:03:41 verbose #4329 > > |> _assert_eq "true; () );  // rust.fix_closure\'"
00:03:41 verbose #4330 > >
00:03:41 verbose #4331 > > ╭─[ 481.26ms - stdout ]────────────────────────────────────────────────────────╮
00:03:41 verbose #4332 > > │ __assert_eq / actual: "true; () );  // rust.fix_closure'" / expected: "true; │
00:03:41 verbose #4333 > > │ () );  // rust.fix_closure'"                                                 │
00:03:41 verbose #4334 > > │                                                                              │
00:03:41 verbose #4335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:41 verbose #4336 > >
00:03:41 verbose #4337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:41 verbose #4338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:41 verbose #4339 > > │ ### fix_closure                                                              │
00:03:41 verbose #4340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:41 verbose #4341 > >
00:03:41 verbose #4342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:41 verbose #4343 > > inl fix_closure depth x =
00:03:41 verbose #4344 > >     inl code = fix_closure' depth x
00:03:41 verbose #4345 > >     (!\code : bool) |> ignore
00:03:42 verbose #4346 > >
00:03:42 verbose #4347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:42 verbose #4348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:42 verbose #4349 > > │ ### loop                                                                     │
00:03:42 verbose #4350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:42 verbose #4351 > >
00:03:42 verbose #4352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:42 verbose #4353 > > inl loop (depth : i32) (fn : () -> ()) : () =
00:03:42 verbose #4354 > >     (!\($'"true; loop { // rust.loop"') : bool) |> ignore
00:03:42 verbose #4355 > >     fn ()
00:03:42 verbose #4356 > >
00:03:42 verbose #4357 > >     listm.init depth id
00:03:42 verbose #4358 > >     |> listm.iter fun n =>
00:03:42 verbose #4359 > >         (!\($'"true; } // rust.loop"') : bool) |> ignore
00:03:42 verbose #4360 > >
00:03:42 verbose #4361 > >     (!\($'"true; } // rust.loop"') : bool) |> ignore
00:03:42 verbose #4362 > >
00:03:42 verbose #4363 > >     listm.init depth id
00:03:42 verbose #4364 > >     |> listm.iter fun n =>
00:03:42 verbose #4365 > >         (!\($'"true; { // rust.loop"') : bool) |> ignore
00:03:42 verbose #4366 > >
00:03:42 verbose #4367 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:42 verbose #4368 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:42 verbose #4369 > > │ ### capture                                                                  │
00:03:42 verbose #4370 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:42 verbose #4371 > >
00:03:42 verbose #4372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:42 verbose #4373 > > inl capture forall t. (fn : () -> t) : t =
00:03:42 verbose #4374 > >     (!\($'"true; let _capture = (|| { //"') : bool) |> ignore
00:03:42 verbose #4375 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:03:42 verbose #4376 > >     !\($'"_capture"')
00:03:43 verbose #4377 > >
00:03:43 verbose #4378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:43 verbose #4379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:43 verbose #4380 > > │ ### capture_move                                                             │
00:03:43 verbose #4381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:43 verbose #4382 > >
00:03:43 verbose #4383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:43 verbose #4384 > > inl capture_move forall t. (fn : () -> t) : t =
00:03:43 verbose #4385 > >     (!\($'"true; let _capture_move = (move || { //"') : bool) |> ignore
00:03:43 verbose #4386 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:03:43 verbose #4387 > >     !\($'"_capture_move"')
00:03:43 verbose #4388 > >
00:03:43 verbose #4389 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:43 verbose #4390 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:43 verbose #4391 > > │ ### type_emit                                                                │
00:03:43 verbose #4392 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:43 verbose #4393 > >
00:03:43 verbose #4394 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:43 verbose #4395 > > nominal type_emit t =
00:03:43 verbose #4396 > >     `(
00:03:43 verbose #4397 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase; Fable.Core.Emit(\"*/ $0
00:03:43 verbose #4398 > > /*\")>]]\n#endif\ntype TypeEmit<'T> = class end"
00:03:43 verbose #4399 > >         $'' : $'TypeEmit<`t>'
00:03:43 verbose #4400 > >     )
00:03:43 verbose #4401 > >
00:03:43 verbose #4402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:43 verbose #4403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:43 verbose #4404 > > │ ### partial_eq_wrapper                                                       │
00:03:43 verbose #4405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:43 verbose #4406 > >
00:03:43 verbose #4407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:43 verbose #4408 > > nominal partial_eq_wrapper t =
00:03:43 verbose #4409 > >     `(
00:03:43 verbose #4410 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:43 verbose #4411 > > Fable.Core.Emit(\"PartialEqWrapper<$0>\")>]]\n#endif\ntype PartialEqWrapper<'T>
00:03:43 verbose #4412 > > = class end"
00:03:43 verbose #4413 > >         $'' : $'PartialEqWrapper<`t>'
00:03:43 verbose #4414 > >     )
00:03:44 verbose #4415 > >
00:03:44 verbose #4416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:44 verbose #4417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:44 verbose #4418 > > │ ### new_partial_eq_wrapper                                                   │
00:03:44 verbose #4419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:44 verbose #4420 > >
00:03:44 verbose #4421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:44 verbose #4422 > > inl new_partial_eq_wrapper forall t.
00:03:44 verbose #4423 > >     (eq_fn : ref (partial_eq_wrapper t) -> ref (partial_eq_wrapper t) -> bool)
00:03:44 verbose #4424 > >     (x : t)
00:03:44 verbose #4425 > >     : partial_eq_wrapper t
00:03:44 verbose #4426 > >     =
00:03:44 verbose #4427 > >     inl struct () =
00:03:44 verbose #4428 > >         !\($'"} //"') : ()
00:03:44 verbose #4429 > >
00:03:44 verbose #4430 > >         !\($'"#[[derive( //"') : ()
00:03:44 verbose #4431 > >         !\($'"  Debug, //"') : ()
00:03:44 verbose #4432 > >         !\($'"  Clone, //"') : ()
00:03:44 verbose #4433 > >         !\($'")]] //"') : ()
00:03:44 verbose #4434 > >         !\($'"pub struct PartialEqWrapper<T>(T); /*"') : ()
00:03:44 verbose #4435 > >
00:03:44 verbose #4436 > >         !\($'"*/ impl PartialEq for PartialEqWrapper< /*"') : ()
00:03:44 verbose #4437 > >         (null () : type_emit t) |> ignore
00:03:44 verbose #4438 > >         !\($'"*/ > { //"') : ()
00:03:44 verbose #4439 > >
00:03:44 verbose #4440 > >         !\($'"fn eq(&self, other: &Self) -> bool { //"') : ()
00:03:44 verbose #4441 > >
00:03:44 verbose #4442 > >         inl self : ref (partial_eq_wrapper t) = !\($'$"self"')
00:03:44 verbose #4443 > >         inl other : ref (partial_eq_wrapper t) = !\($'$"other"')
00:03:44 verbose #4444 > >
00:03:44 verbose #4445 > >         self
00:03:44 verbose #4446 > >         |> eq_fn other
00:03:44 verbose #4447 > >         |> fun x => !\($'$"!x //"')
00:03:44 verbose #4448 > >
00:03:44 verbose #4449 > >         !\($'"} } } fn _main() { { { //"') : ()
00:03:44 verbose #4450 > >
00:03:44 verbose #4451 > >     $'let _!struct = true' : ()
00:03:44 verbose #4452 > >
00:03:44 verbose #4453 > >     !\\(x, $'"PartialEqWrapper($0)"')
00:03:44 verbose #4454 > >
00:03:44 verbose #4455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:44 verbose #4456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:44 verbose #4457 > > │ ### clone_wrapper                                                            │
00:03:44 verbose #4458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:44 verbose #4459 > >
00:03:44 verbose #4460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:44 verbose #4461 > > nominal clone_wrapper t =
00:03:44 verbose #4462 > >     `(
00:03:44 verbose #4463 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:44 verbose #4464 > > Fable.Core.Emit(\"CloneWrapper<$0>\")>]]\n#endif\ntype CloneWrapper<'T> = class
00:03:44 verbose #4465 > > end"
00:03:44 verbose #4466 > >         $'' : $'CloneWrapper<`t>'
00:03:44 verbose #4467 > >     )
00:03:45 verbose #4468 > >
00:03:45 verbose #4469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:45 verbose #4470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:45 verbose #4471 > > │ ### new_clone_wrapper                                                        │
00:03:45 verbose #4472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:45 verbose #4473 > >
00:03:45 verbose #4474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:45 verbose #4475 > > inl new_clone_wrapper forall t.
00:03:45 verbose #4476 > >     (clone_fn : ref (clone_wrapper t) -> ref (clone_wrapper t))
00:03:45 verbose #4477 > >     (x : t)
00:03:45 verbose #4478 > >     : clone_wrapper t
00:03:45 verbose #4479 > >     =
00:03:45 verbose #4480 > >     inl struct () =
00:03:45 verbose #4481 > >         !\($'"} //"') : ()
00:03:45 verbose #4482 > >
00:03:45 verbose #4483 > >         !\($'"#[[derive( //"') : ()
00:03:45 verbose #4484 > >         !\($'"  Debug, //"') : ()
00:03:45 verbose #4485 > >         !\($'")]] //"') : ()
00:03:45 verbose #4486 > >         !\($'"pub struct CloneWrapper<T>(T); /*"') : ()
00:03:45 verbose #4487 > >
00:03:45 verbose #4488 > >         !\($'"*/ impl Clone for CloneWrapper< /*"') : ()
00:03:45 verbose #4489 > >         (null () : type_emit t) |> ignore
00:03:45 verbose #4490 > >         !\($'"*/ > { //"') : ()
00:03:45 verbose #4491 > >
00:03:45 verbose #4492 > >         !\($'"fn clone(&self) -> Self { //"') : ()
00:03:45 verbose #4493 > >
00:03:45 verbose #4494 > >         inl self : ref (clone_wrapper t) = !\($'$"self"')
00:03:45 verbose #4495 > >
00:03:45 verbose #4496 > >         self
00:03:45 verbose #4497 > >         |> clone_fn
00:03:45 verbose #4498 > >         |> fun x => !\($'$"!x.clone() //"')
00:03:45 verbose #4499 > >
00:03:45 verbose #4500 > >         !\($'"} } } fn _main() { { { //"') : ()
00:03:45 verbose #4501 > >
00:03:45 verbose #4502 > >     $'let _!struct = true' : ()
00:03:45 verbose #4503 > >
00:03:45 verbose #4504 > >     !\\(x, $'"CloneWrapper($0)"')
00:03:45 verbose #4505 > >
00:03:45 verbose #4506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:45 verbose #4507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:45 verbose #4508 > > │ ### concat                                                                   │
00:03:45 verbose #4509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:45 verbose #4510 > >
00:03:45 verbose #4511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:45 verbose #4512 > > inl concat forall (t : * -> *) u. (x : t (t u)) : t u =
00:03:45 verbose #4513 > >     !\($'$"!x.concat()"')
00:03:46 verbose #4514 > 00:00:45 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46994 }
00:03:46 verbose #4515 > 00:00:45   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:03:46 verbose #4516 >     "nbconvert",
00:03:46 verbose #4517 >     "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb",
00:03:46 verbose #4518 >     "--to",
00:03:46 verbose #4519 >     "html",
00:03:46 verbose #4520 >     "--HTMLExporter.theme=dark",
00:03:46 verbose #4521 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:49 verbose #4522 > 00:00:48 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/rust.dib.ipynb to html
00:03:49 verbose #4523 > 00:00:48 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:49 verbose #4524 > 00:00:48 verbose #7 !   validate(nb)
00:03:52 verbose #4525 > 00:00:52 verbose #8 ! [NbConvertApp] Writing 424857 bytes to c:\home\git\polyglot\lib\spiral\rust\rust.dib.html
00:03:52 verbose #4526 > 00:00:52 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:03:52 verbose #4527 > 00:00:52   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:03:52 verbose #4528 > 00:00:52   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:03:52 verbose #4529 >     "-c",
00:03:52 verbose #4530 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:03:52 verbose #4531 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:53 verbose #4532 > 00:00:52 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:53 verbose #4533 > 00:00:52   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:53 verbose #4534 > 00:00:52   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 47702 }
00:03:53   debug #4535 runtime.execute_with_options_async / { exit_code = 0; output_length = 52373 }
00:03:53   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/rust.dib --retries 3
00:03:53   debug #4536 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:53 verbose #4537 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/testing.dib", "--retries", "3"])) }
00:03:53 verbose #4538 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:03:53 verbose #4539 >     "repl",
00:03:53 verbose #4540 >     "--exit-after-run",
00:03:53 verbose #4541 >     "--run",
00:03:53 verbose #4542 >     "c:/home/git/polyglot/lib/spiral/rust/testing.dib",
00:03:53 verbose #4543 >     "--output-path",
00:03:53 verbose #4544 >     "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb",
00:03:53 verbose #4545 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:56 verbose #4546 > >
00:03:56 verbose #4547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:56 verbose #4548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:56 verbose #4549 > > │ # rust/testing                                                               │
00:03:56 verbose #4550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:01 verbose #4551 > >
00:04:01 verbose #4552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:01 verbose #4553 > > open rust.rust_operators
00:04:03 verbose #4554 > >
00:04:03 verbose #4555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:03 verbose #4556 > > //// test
00:04:03 verbose #4557 > >
00:04:03 verbose #4558 > > open testing
00:04:04 verbose #4559 > >
00:04:04 verbose #4560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #4561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #4562 > > │ ### run_tests'                                                               │
00:04:04 verbose #4563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4564 > >
00:04:04 verbose #4565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4566 > > inl run_tests' tests =
00:04:04 verbose #4567 > >     (!\($'"true; () //"') : bool) |> ignore
00:04:04 verbose #4568 > >
00:04:04 verbose #4569 > >     inl fields = reflection.get_record_fields tests
00:04:04 verbose #4570 > >
00:04:04 verbose #4571 > >     fields
00:04:04 verbose #4572 > >     |> listm.iter fun name, (fn : string -> ()) =>
00:04:04 verbose #4573 > >         !\($'"} /* /*"')
00:04:04 verbose #4574 > >         (!\($'$"*/ #[[test]] fn " + !name + "() { //"') : bool) |> ignore
00:04:04 verbose #4575 > >         fn name
00:04:04 verbose #4576 > >
00:04:04 verbose #4577 > >     fields
00:04:04 verbose #4578 > >     |> listm.iter fun _ =>
00:04:04 verbose #4579 > >         !\($'"{ //"') : ()
00:04:04 verbose #4580 > >
00:04:04 verbose #4581 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4582 > > //// test
00:04:04 verbose #4583 > >
00:04:04 verbose #4584 > > inl run test =
00:04:04 verbose #4585 > >     if env.get_environment_variable "TEST" = "1"
00:04:04 verbose #4586 > >     then ()
00:04:04 verbose #4587 > >     else
00:04:04 verbose #4588 > >         runtime.execution_options fun x => { x with
00:04:04 verbose #4589 > >             command = "cargo test -- --show-output"
00:04:04 verbose #4590 > >             working_directory = file_system.get_source_directory () |> Some |>
00:04:04 verbose #4591 > > optionm'.box
00:04:04 verbose #4592 > >             environment_variables = ;[[ "TEST", "1" ]]
00:04:04 verbose #4593 > >         }
00:04:04 verbose #4594 > >         |> runtime.execute_with_options
00:04:04 verbose #4595 > >         |> fun exit_code, result =>
00:04:04 verbose #4596 > >             exit_code |> _assert_eq 0i32
00:04:04 verbose #4597 > >             result |> _assert_string_contains "test result: ok. 1 passed; 0
00:04:04 verbose #4598 > > failed; 0 ignored;"
00:04:04 verbose #4599 > >
00:04:04 verbose #4600 > >     $'let tests () = !test ()' : ()
00:04:04 verbose #4601 > >
00:04:04 verbose #4602 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4603 > > //// test
00:04:04 verbose #4604 > > ///! rust -d encoding_rs encoding_rs_io
00:04:04 verbose #4605 > >
00:04:04 verbose #4606 > > fun () =>
00:04:04 verbose #4607 > >     run_tests' {
00:04:04 verbose #4608 > >         a = _assert_eq "a"
00:04:04 verbose #4609 > >     }
00:04:04 verbose #4610 > > |> run
00:04:17 verbose #4611 > >
00:04:17 verbose #4612 > > ╭─[ 12.37s - return value ]────────────────────────────────────────────────────╮
00:04:17 verbose #4613 > > │ 00:00:00   debug #1 runtime.execute_with_options / { file_name =       │
00:04:17 verbose #4614 > > │ cargo; arguments = [                                                         │
00:04:17 verbose #4615 > > │     "test",                                                                  │
00:04:17 verbose #4616 > > │     "--",                                                                    │
00:04:17 verbose #4617 > > │     "--show-output",                                                         │
00:04:17 verbose #4618 > > │ ]; options = { command = cargo test -- --show-output; cancellation_token =   │
00:04:17 verbose #4619 > > │ None; environment_variables = Array(MutCell([("TEST", "1")])); on_line =     │
00:04:17 verbose #4620 > > │ None; stdin = None; trace = true; working_directory = Some(                  │
00:04:17 verbose #4621 > > │                                                                              │
00:04:17 verbose #4622 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\47e │
00:04:17 verbose #4623 > > │ 737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519715",              │
00:04:17 verbose #4624 > > │ ) } }                                                                        │
00:04:17 verbose #4625 > > │ 00:00:00 verbose #2 !    Compiling                                     │
00:04:17 verbose #4626 > > │ spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519 │
00:04:17 verbose #4627 > > │ 715 v0.0.1                                                                   │
00:04:17 verbose #4628 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\47e │
00:04:17 verbose #4629 > > │ 737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519715)               │
00:04:17 verbose #4630 > > │ 00:00:02 verbose #3 !     Finished `test` profile [unoptimized +       │
00:04:17 verbose #4631 > > │ debuginfo] target(s) in 2.38s                                                │
00:04:17 verbose #4632 > > │ 00:00:02 verbose #4 !      Running unittests spiral_builder.rs         │
00:04:17 verbose #4633 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:17 verbose #4634 > > │ \spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d51 │
00:04:17 verbose #4635 > > │ 9715-3f6224c2172b8f0c.exe)                                                   │
00:04:17 verbose #4636 > > │ 00:00:02 verbose #5 >                                                  │
00:04:17 verbose #4637 > > │ 00:00:02 verbose #6 > running 1 test                                   │
00:04:17 verbose #4638 > > │ 00:00:02 verbose #7 > test module_4ca134c8::Spiral_builder::a ... ok   │
00:04:17 verbose #4639 > > │ 00:00:02 verbose #8 >                                                  │
00:04:17 verbose #4640 > > │ 00:00:02 verbose #9 > successes:                                       │
00:04:17 verbose #4641 > > │ 00:00:02 verbose #10 >                                                 │
00:04:17 verbose #4642 > > │ 00:00:02 verbose #11 > ---- module_4ca134c8::Spiral_builder::a stdout  │
00:04:17 verbose #4643 > > │ ----                                                                         │
00:04:17 verbose #4644 > > │ 00:00:02 verbose90mverbose #13 >                                │
00:04:17 verbose #4645 > > │ 00:00:02 verbose #14 >                                                 │
00:04:17 verbose #4646 > > │ 00:00:02 verbose #15 > successes:                                      │
00:04:17 verbose #4647 > > │ 00:00:02 verbose #16 >     module_4ca134c8::Spiral_builder::a          │
00:04:17 verbose #4648 > > │ 00:00:02 verbose #17 >                                                 │
00:04:17 verbose #4649 > > │ 00:00:02 verbose #18 > test result: ok. 1 passed; 0 failed; 0 ignored; │
00:04:17 verbose #4650 > > │ 0 measured; 0 filtered out; finished in 0.00s                                │
00:04:17 verbose #4651 > > │ 00:00:02 verbose #19 >                                                 │
00:04:17 verbose #4652 > > │ 00:00:02 verbose #20 runtime.execute_with_options / result / {         │
00:04:17 verbose #4653 > > │ exit_code = 0; std_trace_length = 879 }                                      │
00:04:17 verbose #4654 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:04:17 verbose #4655 > > │ __assert_string_contains / actual: "test result: ok. 1 passed; 0 failed; 0   │
00:04:17 verbose #4656 > > │ ignored;" / expected: "   Compiling                                      │
00:04:17 verbose #4657 > > │ spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519 │
00:04:17 verbose #4658 > > │ 715 v0.0.1                                                                   │
00:04:17 verbose #4659 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\47e │
00:04:17 verbose #4660 > > │ 737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519715)             │
00:04:17 verbose #4661 > > │     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.38s[ │
00:04:17 verbose #4662 > > │ 0m                                                                           │
00:04:17 verbose #4663 > > │      Running unittests spiral_builder.rs                                 │
00:04:17 verbose #4664 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:17 verbose #4665 > > │ \spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d51 │
00:04:17 verbose #4666 > > │ 9715-3f6224c2172b8f0c.exe)                                                 │
00:04:17 verbose #4667 > > │                                                                              │
00:04:17 verbose #4668 > > │ running 1 test                                                               │
00:04:17 verbose #4669 > > │ test module_4ca134c8::Spiral_builder::a ... ok                               │
00:04:17 verbose #4670 > > │                                                                              │
00:04:17 verbose #4671 > > │ successes:                                                                   │
00:04:17 verbose #4672 > > │                                                                              │
00:04:17 verbose #4673 > > │ ---- module_4ca134c8::Spiral_builder::a stdout ----                          │
00:04:17 verbose #4674 > > │ __assert_eq / actual: "a" / expected: "a"                                    │
00:04:17 verbose #4675 > > │                                                                              │
00:04:17 verbose #4676 > > │                                                                              │
00:04:17 verbose #4677 > > │ successes:                                                                   │
00:04:17 verbose #4678 > > │     module_4ca134c8::Spiral_builder::a                                       │
00:04:17 verbose #4679 > > │                                                                              │
00:04:17 verbose #4680 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:04:17 verbose #4681 > > │ finished in 0.00s                                                            │
00:04:17 verbose #4682 > > │ "                                                                            │
00:04:17 verbose #4683 > > │                                                                              │
00:04:17 verbose #4684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:17 verbose #4685 > >
00:04:17 verbose #4686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:17 verbose #4687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:17 verbose #4688 > > │ ### run_tests                                                                │
00:04:17 verbose #4689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:17 verbose #4690 > >
00:04:17 verbose #4691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:17 verbose #4692 > > inl run_tests tests : () =
00:04:17 verbose #4693 > >     real
00:04:17 verbose #4694 > >         inl tests =
00:04:17 verbose #4695 > >             real_core.record_map
00:04:17 verbose #4696 > >                 fun { key value } =>
00:04:17 verbose #4697 > >                     (fun _ => value ()) : string -> ()
00:04:17 verbose #4698 > >                 tests
00:04:17 verbose #4699 > >         run_tests' `(`tests) tests
00:04:17 verbose #4700 > >
00:04:17 verbose #4701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:17 verbose #4702 > > //// test
00:04:17 verbose #4703 > > ///! rust -d encoding_rs encoding_rs_io
00:04:17 verbose #4704 > >
00:04:17 verbose #4705 > > fun () =>
00:04:17 verbose #4706 > >     run_tests {
00:04:17 verbose #4707 > >         a = fun () => "a" |> _assert_eq "a"
00:04:17 verbose #4708 > >     }
00:04:17 verbose #4709 > > |> run
00:04:24 verbose #4710 > >
00:04:24 verbose #4711 > > ╭─[ 6.81s - return value ]─────────────────────────────────────────────────────╮
00:04:24 verbose #4712 > > │ 00:00:00   debug #1 runtime.execute_with_options / { file_name =       │
00:04:24 verbose #4713 > > │ cargo; arguments = [                                                         │
00:04:24 verbose #4714 > > │     "test",                                                                  │
00:04:24 verbose #4715 > > │     "--",                                                                    │
00:04:24 verbose #4716 > > │     "--show-output",                                                         │
00:04:24 verbose #4717 > > │ ]; options = { command = cargo test -- --show-output; cancellation_token =   │
00:04:24 verbose #4718 > > │ None; environment_variables = Array(MutCell([("TEST", "1")])); on_line =     │
00:04:24 verbose #4719 > > │ None; stdin = None; trace = true; working_directory = Some(                  │
00:04:24 verbose #4720 > > │                                                                              │
00:04:24 verbose #4721 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\47e │
00:04:24 verbose #4722 > > │ 737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d519715",              │
00:04:24 verbose #4723 > > │ ) } }                                                                        │
00:04:24 verbose #4724 > > │ 00:00:00 verbose #2 !     Finished `test` profile [unoptimized +       │
00:04:24 verbose #4725 > > │ debuginfo] target(s) in 0.25s                                                │
00:04:24 verbose #4726 > > │ 00:00:00 verbose #3 !      Running unittests spiral_builder.rs         │
00:04:24 verbose #4727 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:24 verbose #4728 > > │ \spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d51 │
00:04:24 verbose #4729 > > │ 9715-3f6224c2172b8f0c.exe)                                                   │
00:04:24 verbose #4730 > > │ 00:00:00 verbose #4 >                                                  │
00:04:24 verbose #4731 > > │ 00:00:00 verbose #5 > running 1 test                                   │
00:04:24 verbose #4732 > > │ 00:00:00 verbose #6 > test module_4ca134c8::Spiral_builder::a ... ok   │
00:04:24 verbose #4733 > > │ 00:00:00 verbose #7 >                                                  │
00:04:24 verbose #4734 > > │ 00:00:00 verbose #8 > successes:                                       │
00:04:24 verbose #4735 > > │ 00:00:00 verbose #9 >                                                  │
00:04:24 verbose #4736 > > │ 00:00:00 verbose #10 > ---- module_4ca134c8::Spiral_builder::a stdout  │
00:04:24 verbose #4737 > > │ ----                                                                         │
00:04:24 verbose #4738 > > │ 00:00:00 verbose #11 > __assert_eq / actual: "a" / expected: "a"       │
00:04:24 verbose #4739 > > │ 00:00:00 verbose #12 >                                                 │
00:04:24 verbose #4740 > > │ 00:00:00 verbose #13 >                                                 │
00:04:24 verbose #4741 > > │ 00:00:00 verbose #14 > successes:                                      │
00:04:24 verbose #4742 > > │ 00:00:00 verbose #15 >     module_4ca134c8::Spiral_builder::a          │
00:04:24 verbose #4743 > > │ 00:00:00 verbose #16 >                                                 │
00:04:24 verbose #4744 > > │ 00:00:00 verbose #17 > test result: ok. 1 passed; 0 failed; 0 ignored; │
00:04:24 verbose #4745 > > │ 0 measured; 0 filtered out; finished in 0.00s                                │
00:04:24 verbose #4746 > > │ 00:00:00 verbose #18 >                                                 │
00:04:24 verbose #4747 > > │ 00:00:00 verbose #19 runtime.execute_with_options / result / {         │
00:04:24 verbose #4748 > > │ exit_code = 0; std_trace_length = 630 }                                      │
00:04:24 verbose #4749 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:04:24 verbose #4750 > > │ __assert_string_contains / actual: "test result: ok. 1 passed; 0 failed; 0   │
00:04:24 verbose #4751 > > │ ignored;" / expected: "    Finished `test` profile [unoptimized +        │
00:04:24 verbose #4752 > > │ debuginfo] target(s) in 0.25s                                              │
00:04:24 verbose #4753 > > │      Running unittests spiral_builder.rs                                 │
00:04:24 verbose #4754 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:24 verbose #4755 > > │ \spiral_builder_47e737f6163ff97344b85813be44cd8c0646572f72936f38ca43b9061d51 │
00:04:24 verbose #4756 > > │ 9715-3f6224c2172b8f0c.exe)                                                 │
00:04:24 verbose #4757 > > │                                                                              │
00:04:24 verbose #4758 > > │ running 1 test                                                               │
00:04:24 verbose #4759 > > │ test module_4ca134c8::Spiral_builder::a ... ok                               │
00:04:24 verbose #4760 > > │                                                                              │
00:04:24 verbose #4761 > > │ successes:                                                                   │
00:04:24 verbose #4762 > > │                                                                              │
00:04:24 verbose #4763 > > │ ---- module_4ca134c8::Spiral_builder::a stdout ----                          │
00:04:24 verbose #4764 > > │ __assert_eq / actual: "a" / expected: "a"                                    │
00:04:24 verbose #4765 > > │                                                                              │
00:04:24 verbose #4766 > > │                                                                              │
00:04:24 verbose #4767 > > │ successes:                                                                   │
00:04:24 verbose #4768 > > │     module_4ca134c8::Spiral_builder::a                                       │
00:04:24 verbose #4769 > > │                                                                              │
00:04:24 verbose #4770 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:04:24 verbose #4771 > > │ finished in 0.00s                                                            │
00:04:24 verbose #4772 > > │ "                                                                            │
00:04:24 verbose #4773 > > │                                                                              │
00:04:24 verbose #4774 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #4775 > >
00:04:24 verbose #4776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 verbose #4777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #4778 > > │ ### run_tests_log                                                            │
00:04:24 verbose #4779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #4780 > >
00:04:24 verbose #4781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 verbose #4782 > > inl run_tests_log tests : () =
00:04:24 verbose #4783 > >     real
00:04:24 verbose #4784 > >         inl tests =
00:04:24 verbose #4785 > >             real_core.record_map
00:04:24 verbose #4786 > >                 fun { key value } =>
00:04:24 verbose #4787 > >                     (fun _ => value false) : () -> ()
00:04:24 verbose #4788 > >                 tests
00:04:24 verbose #4789 > >         run_tests `(`tests) tests
00:04:25 verbose #4790 > >
00:04:25 verbose #4791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #4792 > > //// test
00:04:25 verbose #4793 > > ///! rust -d encoding_rs encoding_rs_io
00:04:25 verbose #4794 > >
00:04:25 verbose #4795 > > fun () =>
00:04:25 verbose #4796 > >     run_tests_log {
00:04:25 verbose #4797 > >         a = _assert_eq false
00:04:25 verbose #4798 > >     }
00:04:25 verbose #4799 > > |> run
00:04:36 verbose #4800 > >
00:04:36 verbose #4801 > > ╭─[ 11.01s - return value ]────────────────────────────────────────────────────╮
00:04:36 verbose #4802 > > │ 00:00:00   debug #1 runtime.execute_with_options / { file_name =       │
00:04:36 verbose #4803 > > │ cargo; arguments = [                                                         │
00:04:36 verbose #4804 > > │     "test",                                                                  │
00:04:36 verbose #4805 > > │     "--",                                                                    │
00:04:36 verbose #4806 > > │     "--show-output",                                                         │
00:04:36 verbose #4807 > > │ ]; options = { command = cargo test -- --show-output; cancellation_token =   │
00:04:36 verbose #4808 > > │ None; environment_variables = Array(MutCell([("TEST", "1")])); on_line =     │
00:04:36 verbose #4809 > > │ None; stdin = None; trace = true; working_directory = Some(                  │
00:04:36 verbose #4810 > > │                                                                              │
00:04:36 verbose #4811 > > │ "c:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\28c │
00:04:36 verbose #4812 > > │ 66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea358e6f",              │
00:04:36 verbose #4813 > > │ ) } }                                                                        │
00:04:36 verbose #4814 > > │ 00:00:00 verbose #2 !    Compiling                                     │
00:04:36 verbose #4815 > > │ spiral_builder_28c66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea358 │
00:04:36 verbose #4816 > > │ e6f v0.0.1                                                                   │
00:04:36 verbose #4817 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\28c │
00:04:36 verbose #4818 > > │ 66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea358e6f)               │
00:04:36 verbose #4819 > > │ 00:00:02 verbose #3 !     Finished `test` profile [unoptimized +       │
00:04:36 verbose #4820 > > │ debuginfo] target(s) in 2.36s                                                │
00:04:36 verbose #4821 > > │ 00:00:02 verbose #4 !      Running unittests spiral_builder.rs         │
00:04:36 verbose #4822 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:36 verbose #4823 > > │ \spiral_builder_28c66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea35 │
00:04:36 verbose #4824 > > │ 8e6f-bfb2f59160f9bc10.exe)                                                   │
00:04:36 verbose #4825 > > │ 00:00:02 verbose #5 >                                                  │
00:04:36 verbose #4826 > > │ 00:00:02 verbose #6 > running 1 test                                   │
00:04:36 verbose #4827 > > │ 00:00:02 verbose #7 > test module_45ce1de3::Spiral_builder::a ... ok   │
00:04:36 verbose #4828 > > │ 00:00:02 verbose #8 >                                                  │
00:04:36 verbose #4829 > > │ 00:00:02 verbose #9 > successes:                                       │
00:04:36 verbose #4830 > > │ 00:00:02 verbose #10 >                                                 │
00:04:36 verbose #4831 > > │ 00:00:02 verbose #11 > ---- module_45ce1de3::Spiral_builder::a stdout  │
00:04:36 verbose #4832 > > │ ----                                                                         │
00:04:36 verbose #4833 > > │ 00:00:02 verbose90mverbose #13 >                                    │
00:04:36 verbose #4834 > > │ 00:00:02 verbose #14 >                                                 │
00:04:36 verbose #4835 > > │ 00:00:02 verbose #15 > successes:                                      │
00:04:36 verbose #4836 > > │ 00:00:02 verbose #16 >     module_45ce1de3::Spiral_builder::a          │
00:04:36 verbose #4837 > > │ 00:00:02 verbose #17 >                                                 │
00:04:36 verbose #4838 > > │ 00:00:02 verbose #18 > test result: ok. 1 passed; 0 failed; 0 ignored; │
00:04:36 verbose #4839 > > │ 0 measured; 0 filtered out; finished in 0.00s                                │
00:04:36 verbose #4840 > > │ 00:00:02 verbose #19 >                                                 │
00:04:36 verbose #4841 > > │ 00:00:02 verbose #20 runtime.execute_with_options / result / {         │
00:04:36 verbose #4842 > > │ exit_code = 0; std_trace_length = 883 }                                      │
00:04:36 verbose #4843 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:04:36 verbose #4844 > > │ __assert_string_contains / actual: "test result: ok. 1 passed; 0 failed; 0   │
00:04:36 verbose #4845 > > │ ignored;" / expected: "   Compiling                                      │
00:04:36 verbose #4846 > > │ spiral_builder_28c66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea358 │
00:04:36 verbose #4847 > > │ e6f v0.0.1                                                                   │
00:04:36 verbose #4848 > > │ (C:\home\git\polyglot\target\spiral_builder\spiral_builder\packages\Rust\28c │
00:04:36 verbose #4849 > > │ 66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea358e6f)             │
00:04:36 verbose #4850 > > │     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.36s[ │
00:04:36 verbose #4851 > > │ 0m                                                                           │
00:04:36 verbose #4852 > > │      Running unittests spiral_builder.rs                                 │
00:04:36 verbose #4853 > > │ (c:\home\git\polyglot\target\spiral_builder\spiral_builder\target\debug\deps │
00:04:36 verbose #4854 > > │ \spiral_builder_28c66e77d211a80bbdc723b8e1fc10c6e1d61363e49d27e964482b7cea35 │
00:04:36 verbose #4855 > > │ 8e6f-bfb2f59160f9bc10.exe)                                                 │
00:04:36 verbose #4856 > > │                                                                              │
00:04:36 verbose #4857 > > │ running 1 test                                                               │
00:04:36 verbose #4858 > > │ test module_45ce1de3::Spiral_builder::a ... ok                               │
00:04:36 verbose #4859 > > │                                                                              │
00:04:36 verbose #4860 > > │ successes:                                                                   │
00:04:36 verbose #4861 > > │                                                                              │
00:04:36 verbose #4862 > > │ ---- module_45ce1de3::Spiral_builder::a stdout ----                          │
00:04:36 verbose #4863 > > │ __assert_eq / actual: false / expected: false                                │
00:04:36 verbose #4864 > > │                                                                              │
00:04:36 verbose #4865 > > │                                                                              │
00:04:36 verbose #4866 > > │ successes:                                                                   │
00:04:36 verbose #4867 > > │     module_45ce1de3::Spiral_builder::a                                       │
00:04:36 verbose #4868 > > │                                                                              │
00:04:36 verbose #4869 > > │ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:04:36 verbose #4870 > > │ finished in 0.00s                                                            │
00:04:36 verbose #4871 > > │ "                                                                            │
00:04:36 verbose #4872 > > │                                                                              │
00:04:36 verbose #4873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:36 verbose #4874 > 00:00:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21193 }
00:04:36 verbose #4875 > 00:00:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:04:36 verbose #4876 >     "nbconvert",
00:04:36 verbose #4877 >     "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb",
00:04:36 verbose #4878 >     "--to",
00:04:36 verbose #4879 >     "html",
00:04:36 verbose #4880 >     "--HTMLExporter.theme=dark",
00:04:36 verbose #4881 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:39 verbose #4882 > 00:00:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/testing.dib.ipynb to html
00:04:39 verbose #4883 > 00:00:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:04:39 verbose #4884 > 00:00:46 verbose #7 !   validate(nb)
00:04:41 verbose #4885 > 00:00:48 verbose #8 ! [NbConvertApp] Writing 297667 bytes to c:\home\git\polyglot\lib\spiral\rust\testing.dib.html
00:04:41 verbose #4886 > 00:00:48 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 655 }
00:04:41 verbose #4887 > 00:00:48   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 655 }
00:04:41 verbose #4888 > 00:00:48   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:04:41 verbose #4889 >     "-c",
00:04:41 verbose #4890 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:04:41 verbose #4891 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:42 verbose #4892 > 00:00:48 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:04:42 verbose #4893 > 00:00:48   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:04:42 verbose #4894 > 00:00:48   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 21907 }
00:04:42   debug #4895 runtime.execute_with_options_async / { exit_code = 0; output_length = 25295 }
00:04:42   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/testing.dib --retries 3
00:04:42   debug #4896 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/near.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:42 verbose #4897 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/near.dib", "--retries", "3"])) }
00:04:42 verbose #4898 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:04:42 verbose #4899 >     "repl",
00:04:42 verbose #4900 >     "--exit-after-run",
00:04:42 verbose #4901 >     "--run",
00:04:42 verbose #4902 >     "c:/home/git/polyglot/lib/spiral/rust/near.dib",
00:04:42 verbose #4903 >     "--output-path",
00:04:42 verbose #4904 >     "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb",
00:04:42 verbose #4905 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/near.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:04:45 verbose #4906 > >
00:04:45 verbose #4907 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:45 verbose #4908 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:45 verbose #4909 > > │ # near                                                                       │
00:04:45 verbose #4910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:50 verbose #4911 > >
00:04:50 verbose #4912 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:50 verbose #4913 > > open rust
00:04:50 verbose #4914 > > open rust.rust_operators
00:04:51 verbose #4915 > >
00:04:51 verbose #4916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:51 verbose #4917 > > //// test
00:04:51 verbose #4918 > >
00:04:51 verbose #4919 > > open testing
00:04:52 verbose #4920 > >
00:04:52 verbose #4921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:52 verbose #4922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:52 verbose #4923 > > │ ## near                                                                      │
00:04:52 verbose #4924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 verbose #4925 > >
00:04:52 verbose #4926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:52 verbose #4927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:52 verbose #4928 > > │ ### vector                                                                   │
00:04:52 verbose #4929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 verbose #4930 > >
00:04:52 verbose #4931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:52 verbose #4932 > > nominal vector t =
00:04:52 verbose #4933 > >     `(
00:04:52 verbose #4934 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:52 verbose #4935 > > Fable.Core.Emit(\"near_sdk::store::vec::Vector<$0>\")>]]\n#endif\ntype
00:04:52 verbose #4936 > > near_sdk_store_vec_Vector<'T> = class end"
00:04:52 verbose #4937 > >         $'' : $'near_sdk_store_vec_Vector<`t>'
00:04:52 verbose #4938 > >     )
00:04:52 verbose #4939 > >
00:04:52 verbose #4940 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:52 verbose #4941 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:52 verbose #4942 > > │ ### lookup_map                                                               │
00:04:52 verbose #4943 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 verbose #4944 > >
00:04:52 verbose #4945 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:52 verbose #4946 > > nominal lookup_map k v =
00:04:52 verbose #4947 > >     `(
00:04:52 verbose #4948 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:52 verbose #4949 > > Fable.Core.Emit(\"near_sdk::store::LookupMap<$0, $1>\")>]]\n#endif\ntype
00:04:52 verbose #4950 > > near_sdk_store_LookupMap<'K, 'V> = class end"
00:04:52 verbose #4951 > >         $'' : $'near_sdk_store_LookupMap<`k, `v>'
00:04:52 verbose #4952 > >     )
00:04:53 verbose #4953 > >
00:04:53 verbose #4954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:53 verbose #4955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:53 verbose #4956 > > │ ### account_id                                                               │
00:04:53 verbose #4957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:53 verbose #4958 > >
00:04:53 verbose #4959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 verbose #4960 > > nominal account_id =
00:04:53 verbose #4961 > >     `(
00:04:53 verbose #4962 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:53 verbose #4963 > > Fable.Core.Emit(\"near_sdk::AccountId\")>]]\n#endif\ntype near_sdk_AccountId =
00:04:53 verbose #4964 > > class end"
00:04:53 verbose #4965 > >         $'' : $'near_sdk_AccountId'
00:04:53 verbose #4966 > >     )
00:04:53 verbose #4967 > >
00:04:53 verbose #4968 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:53 verbose #4969 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:53 verbose #4970 > > │ ### new_lookup_map                                                           │
00:04:53 verbose #4971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:53 verbose #4972 > >
00:04:53 verbose #4973 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 verbose #4974 > > inl new_lookup_map prefix =
00:04:53 verbose #4975 > >     !\($'"near_sdk::store::LookupMap::new(!prefix)"')
00:04:54 verbose #4976 > >
00:04:54 verbose #4977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:54 verbose #4978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:54 verbose #4979 > > │ ### new_vector                                                               │
00:04:54 verbose #4980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:54 verbose #4981 > >
00:04:54 verbose #4982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:54 verbose #4983 > > inl new_vector prefix =
00:04:54 verbose #4984 > >     !\($'"near_sdk::store::vec::Vector::new(!prefix)"')
00:04:54 verbose #4985 > >
00:04:54 verbose #4986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:54 verbose #4987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:54 verbose #4988 > > │ ### log                                                                      │
00:04:54 verbose #4989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:54 verbose #4990 > >
00:04:54 verbose #4991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:54 verbose #4992 > > inl log text : () =
00:04:54 verbose #4993 > >     !\\(text, $'$"near_sdk::log\!(\\\"{{}}\\\", $0)"')
00:04:54 verbose #4994 > >
00:04:54 verbose #4995 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:54 verbose #4996 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:54 verbose #4997 > > │ ### panic_str                                                                │
00:04:54 verbose #4998 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:54 verbose #4999 > >
00:04:54 verbose #5000 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:54 verbose #5001 > > inl panic_str (text : string) : () =
00:04:54 verbose #5002 > >     (!\\(text, $'$"true; near_sdk::env::panic_str(&*$0); //"') : bool) |> ignore
00:04:55 verbose #5003 > >
00:04:55 verbose #5004 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:55 verbose #5005 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:55 verbose #5006 > > │ ### lookup_get                                                               │
00:04:55 verbose #5007 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:55 verbose #5008 > >
00:04:55 verbose #5009 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:55 verbose #5010 > > inl lookup_get forall k v.
00:04:55 verbose #5011 > >     (key : k)
00:04:55 verbose #5012 > >     (map : rust.ref (rust.mut' (lookup_map k v)))
00:04:55 verbose #5013 > >     : optionm'.option' (rust.ref v)
00:04:55 verbose #5014 > >     =
00:04:55 verbose #5015 > >     !\\(key, $'$"!map.get(&$0)"')
00:04:55 verbose #5016 > >
00:04:55 verbose #5017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:55 verbose #5018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:55 verbose #5019 > > │ ### lookup_insert                                                            │
00:04:55 verbose #5020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:55 verbose #5021 > >
00:04:55 verbose #5022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:55 verbose #5023 > > inl lookup_insert forall k v.
00:04:55 verbose #5024 > >     (key : k)
00:04:55 verbose #5025 > >     (value : v)
00:04:55 verbose #5026 > >     (map : rust.ref (rust.mut' (lookup_map k v)))
00:04:55 verbose #5027 > >     : ()
00:04:55 verbose #5028 > >     =
00:04:55 verbose #5029 > >     (!\\((key, value), $'$"true; !map.insert(&$0, $1); //"') : bool) |> ignore
00:04:56 verbose #5030 > >
00:04:56 verbose #5031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:56 verbose #5032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:56 verbose #5033 > > │ ### near_token                                                               │
00:04:56 verbose #5034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:56 verbose #5035 > >
00:04:56 verbose #5036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:56 verbose #5037 > > nominal near_token =
00:04:56 verbose #5038 > >     `(
00:04:56 verbose #5039 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:56 verbose #5040 > > Fable.Core.Emit(\"near_token::NearToken\")>]]\n#endif\ntype near_token_NearToken
00:04:56 verbose #5041 > > = class end"
00:04:56 verbose #5042 > >         $'' : $'near_token_NearToken'
00:04:56 verbose #5043 > >     )
00:04:56 verbose #5044 > >
00:04:56 verbose #5045 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:56 verbose #5046 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:56 verbose #5047 > > │ ### near_token_sdk                                                           │
00:04:56 verbose #5048 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:56 verbose #5049 > >
00:04:56 verbose #5050 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:56 verbose #5051 > > nominal near_token_sdk =
00:04:56 verbose #5052 > >     `(
00:04:56 verbose #5053 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:04:56 verbose #5054 > > Fable.Core.Emit(\"near_sdk::NearToken\")>]]\n#endif\ntype near_sdk_NearToken =
00:04:56 verbose #5055 > > class end"
00:04:56 verbose #5056 > >         $'' : $'near_sdk_NearToken'
00:04:56 verbose #5057 > >     )
00:04:57 verbose #5058 > >
00:04:57 verbose #5059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:57 verbose #5060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:57 verbose #5061 > > │ ### random_seed                                                              │
00:04:57 verbose #5062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:57 verbose #5063 > >
00:04:57 verbose #5064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:57 verbose #5065 > > inl random_seed () : am'.vec u8 =
00:04:57 verbose #5066 > >     !\($'$"near_sdk::env::random_seed()"')
00:04:57 verbose #5067 > >
00:04:57 verbose #5068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:57 verbose #5069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:57 verbose #5070 > > │ ### block_timestamp                                                          │
00:04:57 verbose #5071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:57 verbose #5072 > >
00:04:57 verbose #5073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:57 verbose #5074 > > inl block_timestamp () : u64 =
00:04:57 verbose #5075 > >     !\($'$"near_sdk::env::block_timestamp()"')
00:04:58 verbose #5076 > >
00:04:58 verbose #5077 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:58 verbose #5078 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:58 verbose #5079 > > │ ### block_height                                                             │
00:04:58 verbose #5080 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:58 verbose #5081 > >
00:04:58 verbose #5082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:58 verbose #5083 > > inl block_height () : u64 =
00:04:58 verbose #5084 > >     !\($'$"near_sdk::env::block_height()"')
00:04:58 verbose #5085 > >
00:04:58 verbose #5086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:58 verbose #5087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:58 verbose #5088 > > │ ### epoch_height                                                             │
00:04:58 verbose #5089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:58 verbose #5090 > >
00:04:58 verbose #5091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:58 verbose #5092 > > inl epoch_height () : u64 =
00:04:58 verbose #5093 > >     !\($'$"near_sdk::env::epoch_height()"')
00:04:58 verbose #5094 > >
00:04:58 verbose #5095 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:58 verbose #5096 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:58 verbose #5097 > > │ ### account_balance                                                          │
00:04:58 verbose #5098 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:58 verbose #5099 > >
00:04:58 verbose #5100 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:58 verbose #5101 > > inl account_balance () : near_token =
00:04:58 verbose #5102 > >     !\($'$"near_sdk::env::account_balance()"')
00:04:59 verbose #5103 > >
00:04:59 verbose #5104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:59 verbose #5105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:59 verbose #5106 > > │ ### signer_account_id                                                        │
00:04:59 verbose #5107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:59 verbose #5108 > >
00:04:59 verbose #5109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:59 verbose #5110 > > inl signer_account_id () : account_id =
00:04:59 verbose #5111 > >     !\($'$"near_sdk::env::signer_account_id()"')
00:04:59 verbose #5112 > >
00:04:59 verbose #5113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:59 verbose #5114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:59 verbose #5115 > > │ ### as_yoctonear                                                             │
00:04:59 verbose #5116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:59 verbose #5117 > >
00:04:59 verbose #5118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:59 verbose #5119 > > inl as_yoctonear forall t. (gas : t) : rust.u128 =
00:04:59 verbose #5120 > >     !\\(gas, $'"$0.as_yoctonear()"')
00:04:59 verbose #5121 > >
00:04:59 verbose #5122 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:59 verbose #5123 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:59 verbose #5124 > > │ ### near_price_in_usd                                                        │
00:04:59 verbose #5125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:59 verbose #5126 > >
00:04:59 verbose #5127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:59 verbose #5128 > > inl near_price_in_usd () =
00:04:59 verbose #5129 > >     6.68f64
00:05:00 verbose #5130 > >
00:05:00 verbose #5131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:00 verbose #5132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:00 verbose #5133 > > │ ### gas_to_usd                                                               │
00:05:00 verbose #5134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:00 verbose #5135 > >
00:05:00 verbose #5136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:00 verbose #5137 > > inl gas_to_usd (gas : u64) =
00:05:00 verbose #5138 > >     (gas |> f64) / 10_000_000_000_000_000 * near_price_in_usd ()
00:05:00 verbose #5139 > >
00:05:00 verbose #5140 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:00 verbose #5141 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:00 verbose #5142 > > │ ### tokens_to_usd                                                            │
00:05:00 verbose #5143 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:00 verbose #5144 > >
00:05:00 verbose #5145 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:00 verbose #5146 > > inl tokens_to_usd (tokens : rust.u128) =
00:05:00 verbose #5147 > >     (tokens |> rust.f64) / 1_000_000_000_000_000_000_000_000 * near_price_in_usd
00:05:00 verbose #5148 > > ()
00:05:01 verbose #5149 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 12148 }
00:05:01 verbose #5150 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:05:01 verbose #5151 >     "nbconvert",
00:05:01 verbose #5152 >     "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb",
00:05:01 verbose #5153 >     "--to",
00:05:01 verbose #5154 >     "html",
00:05:01 verbose #5155 >     "--HTMLExporter.theme=dark",
00:05:01 verbose #5156 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:04 verbose #5157 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/near.dib.ipynb to html
00:05:04 verbose #5158 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:04 verbose #5159 > 00:00:22 verbose #7 !   validate(nb)
00:05:06 verbose #5160 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 306194 bytes to c:\home\git\polyglot\lib\spiral\rust\near.dib.html
00:05:06 verbose #5161 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:05:06 verbose #5162 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:05:06 verbose #5163 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:05:06 verbose #5164 >     "-c",
00:05:06 verbose #5165 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:05:06 verbose #5166 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:07 verbose #5167 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:07 verbose #5168 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:07 verbose #5169 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 12856 }
00:05:07   debug #5170 runtime.execute_with_options_async / { exit_code = 0; output_length = 16047 }
00:05:07   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/near.dib --retries 3
00:05:07   debug #5171 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust/near_workspaces.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:07 verbose #5172 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust/near_workspaces.dib", "--retries", "3"])) }
00:05:07 verbose #5173 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:05:07 verbose #5174 >     "repl",
00:05:07 verbose #5175 >     "--exit-after-run",
00:05:07 verbose #5176 >     "--run",
00:05:07 verbose #5177 >     "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib",
00:05:07 verbose #5178 >     "--output-path",
00:05:07 verbose #5179 >     "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb",
00:05:07 verbose #5180 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:10 verbose #5181 > >
00:05:10 verbose #5182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:10 verbose #5183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:10 verbose #5184 > > │ # near_workspaces                                                            │
00:05:10 verbose #5185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:15 verbose #5186 > >
00:05:15 verbose #5187 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:15 verbose #5188 > > open rust
00:05:15 verbose #5189 > > open rust.rust_operators
00:05:17 verbose #5190 > >
00:05:17 verbose #5191 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:17 verbose #5192 > > //// test
00:05:17 verbose #5193 > >
00:05:17 verbose #5194 > > open testing
00:05:17 verbose #5195 > >
00:05:17 verbose #5196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:17 verbose #5197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:17 verbose #5198 > > │ ## near                                                                      │
00:05:17 verbose #5199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:17 verbose #5200 > >
00:05:17 verbose #5201 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:17 verbose #5202 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:17 verbose #5203 > > │ ### near_token_workspaces                                                    │
00:05:17 verbose #5204 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:17 verbose #5205 > >
00:05:17 verbose #5206 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:17 verbose #5207 > > nominal near_token_workspaces =
00:05:17 verbose #5208 > >     `(
00:05:17 verbose #5209 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:17 verbose #5210 > > Fable.Core.Emit(\"near_workspaces::types::NearToken\")>]]\n#endif\ntype
00:05:17 verbose #5211 > > near_workspaces_types_NearToken = class end"
00:05:17 verbose #5212 > >         $'' : $'near_workspaces_types_NearToken'
00:05:17 verbose #5213 > >     )
00:05:17 verbose #5214 > >
00:05:17 verbose #5215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:17 verbose #5216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:17 verbose #5217 > > │ ### gas                                                                      │
00:05:17 verbose #5218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:17 verbose #5219 > >
00:05:17 verbose #5220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:17 verbose #5221 > > nominal gas =
00:05:17 verbose #5222 > >     `(
00:05:17 verbose #5223 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:17 verbose #5224 > > Fable.Core.Emit(\"near_workspaces::types::Gas\")>]]\n#endif\ntype
00:05:17 verbose #5225 > > near_workspaces_types_Gas = class end"
00:05:17 verbose #5226 > >         $'' : $'near_workspaces_types_Gas'
00:05:17 verbose #5227 > >     )
00:05:18 verbose #5228 > >
00:05:18 verbose #5229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:18 verbose #5230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:18 verbose #5231 > > │ ### near_workspaces_error                                                    │
00:05:18 verbose #5232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:18 verbose #5233 > >
00:05:18 verbose #5234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:18 verbose #5235 > > nominal near_workspaces_error =
00:05:18 verbose #5236 > >     `(
00:05:18 verbose #5237 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:18 verbose #5238 > > Fable.Core.Emit(\"near_workspaces::error::Error\")>]]\n#endif\ntype
00:05:18 verbose #5239 > > near_workspaces_error_Error = class end"
00:05:18 verbose #5240 > >         $'' : $'near_workspaces_error_Error'
00:05:18 verbose #5241 > >     )
00:05:18 verbose #5242 > >
00:05:18 verbose #5243 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:18 verbose #5244 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:18 verbose #5245 > > │ ### sandbox                                                                  │
00:05:18 verbose #5246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:18 verbose #5247 > >
00:05:18 verbose #5248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:18 verbose #5249 > > nominal sandbox =
00:05:18 verbose #5250 > >     `(
00:05:18 verbose #5251 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:18 verbose #5252 > > Fable.Core.Emit(\"near_workspaces::network::Sandbox\")>]]\n#endif\ntype
00:05:18 verbose #5253 > > near_workspaces_network_Sandbox = class end"
00:05:18 verbose #5254 > >         $'' : $'near_workspaces_network_Sandbox'
00:05:18 verbose #5255 > >     )
00:05:19 verbose #5256 > >
00:05:19 verbose #5257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:19 verbose #5258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:19 verbose #5259 > > │ ### worker                                                                   │
00:05:19 verbose #5260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:19 verbose #5261 > >
00:05:19 verbose #5262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:19 verbose #5263 > > nominal worker t =
00:05:19 verbose #5264 > >     `(
00:05:19 verbose #5265 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:19 verbose #5266 > > Fable.Core.Emit(\"near_workspaces::Worker<$0>\")>]]\n#endif\ntype
00:05:19 verbose #5267 > > near_workspaces_Worker<'T> = class end"
00:05:19 verbose #5268 > >         $'' : $'near_workspaces_Worker<`t>'
00:05:19 verbose #5269 > >     )
00:05:19 verbose #5270 > >
00:05:19 verbose #5271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:19 verbose #5272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:19 verbose #5273 > > │ ### contract                                                                 │
00:05:19 verbose #5274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:19 verbose #5275 > >
00:05:19 verbose #5276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:19 verbose #5277 > > nominal contract =
00:05:19 verbose #5278 > >     `(
00:05:19 verbose #5279 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:19 verbose #5280 > > Fable.Core.Emit(\"near_workspaces::Contract\")>]]\n#endif\ntype
00:05:19 verbose #5281 > > near_workspaces_Contract = class end"
00:05:19 verbose #5282 > >         $'' : $'near_workspaces_Contract'
00:05:19 verbose #5283 > >     )
00:05:20 verbose #5284 > >
00:05:20 verbose #5285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:20 verbose #5286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:20 verbose #5287 > > │ ### call_transaction                                                         │
00:05:20 verbose #5288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:20 verbose #5289 > >
00:05:20 verbose #5290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:20 verbose #5291 > > nominal call_transaction =
00:05:20 verbose #5292 > >     `(
00:05:20 verbose #5293 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:20 verbose #5294 > > Fable.Core.Emit(\"near_workspaces::operations::CallTransaction\")>]]\n#endif\nty
00:05:20 verbose #5295 > > pe near_workspaces_operations_CallTransaction = class end"
00:05:20 verbose #5296 > >         $'' : $'near_workspaces_operations_CallTransaction'
00:05:20 verbose #5297 > >     )
00:05:20 verbose #5298 > >
00:05:20 verbose #5299 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:20 verbose #5300 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:20 verbose #5301 > > │ ### execution_final_result                                                   │
00:05:20 verbose #5302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:20 verbose #5303 > >
00:05:20 verbose #5304 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:20 verbose #5305 > > nominal execution_final_result =
00:05:20 verbose #5306 > >     `(
00:05:20 verbose #5307 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:20 verbose #5308 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionFinalResult\")>]]\n#endif\nt
00:05:20 verbose #5309 > > ype near_workspaces_result_ExecutionFinalResult = class end"
00:05:20 verbose #5310 > >         $'' : $'near_workspaces_result_ExecutionFinalResult'
00:05:20 verbose #5311 > >     )
00:05:21 verbose #5312 > >
00:05:21 verbose #5313 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:21 verbose #5314 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:21 verbose #5315 > > │ ### execution_result                                                         │
00:05:21 verbose #5316 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:21 verbose #5317 > >
00:05:21 verbose #5318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:21 verbose #5319 > > nominal execution_result t =
00:05:21 verbose #5320 > >     `(
00:05:21 verbose #5321 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:21 verbose #5322 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionResult<$0>\")>]]\n#endif\nty
00:05:21 verbose #5323 > > pe near_workspaces_result_ExecutionResult<'T> = class end"
00:05:21 verbose #5324 > >         $'' : $'near_workspaces_result_ExecutionResult<`t>'
00:05:21 verbose #5325 > >     )
00:05:21 verbose #5326 > >
00:05:21 verbose #5327 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:21 verbose #5328 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:21 verbose #5329 > > │ ### execution_success                                                        │
00:05:21 verbose #5330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:21 verbose #5331 > >
00:05:21 verbose #5332 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:21 verbose #5333 > > nominal execution_success =
00:05:21 verbose #5334 > >     `(
00:05:21 verbose #5335 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:21 verbose #5336 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionSuccess\")>]]\n#endif\ntype
00:05:21 verbose #5337 > > near_workspaces_result_ExecutionSuccess = class end"
00:05:21 verbose #5338 > >         $'' : $'near_workspaces_result_ExecutionSuccess'
00:05:21 verbose #5339 > >     )
00:05:22 verbose #5340 > >
00:05:22 verbose #5341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:22 verbose #5342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:22 verbose #5343 > > │ ### execution_failure                                                        │
00:05:22 verbose #5344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:22 verbose #5345 > >
00:05:22 verbose #5346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:22 verbose #5347 > > nominal execution_failure =
00:05:22 verbose #5348 > >     `(
00:05:22 verbose #5349 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:22 verbose #5350 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionFailure\")>]]\n#endif\ntype
00:05:22 verbose #5351 > > near_workspaces_result_ExecutionFailure = class end"
00:05:22 verbose #5352 > >         $'' : $'near_workspaces_result_ExecutionFailure'
00:05:22 verbose #5353 > >     )
00:05:22 verbose #5354 > >
00:05:22 verbose #5355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:22 verbose #5356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:22 verbose #5357 > > │ ### execution_outcome                                                        │
00:05:22 verbose #5358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:22 verbose #5359 > >
00:05:22 verbose #5360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:22 verbose #5361 > > nominal execution_outcome =
00:05:22 verbose #5362 > >     `(
00:05:22 verbose #5363 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:05:22 verbose #5364 > > Fable.Core.Emit(\"near_workspaces::result::ExecutionOutcome\")>]]\n#endif\ntype
00:05:22 verbose #5365 > > near_workspaces_result_ExecutionOutcome = class end"
00:05:22 verbose #5366 > >         $'' : $'near_workspaces_result_ExecutionOutcome'
00:05:22 verbose #5367 > >     )
00:05:22 verbose #5368 > >
00:05:22 verbose #5369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:22 verbose #5370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:22 verbose #5371 > > │ ### sandbox_worker                                                           │
00:05:22 verbose #5372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:22 verbose #5373 > >
00:05:22 verbose #5374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:22 verbose #5375 > > inl sandbox_worker () : resultm.result' (worker sandbox) near_workspaces_error =
00:05:22 verbose #5376 > >     !\($'"near_workspaces::sandbox().await"')
00:05:23 verbose #5377 > >
00:05:23 verbose #5378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:23 verbose #5379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:23 verbose #5380 > > │ ### dev_deploy                                                               │
00:05:23 verbose #5381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:23 verbose #5382 > >
00:05:23 verbose #5383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:23 verbose #5384 > > inl dev_deploy
00:05:23 verbose #5385 > >     (wasm : am'.vec u8)
00:05:23 verbose #5386 > >     (worker : worker sandbox)
00:05:23 verbose #5387 > >     : async.future_pin (resultm.result' contract near_workspaces_error)
00:05:23 verbose #5388 > >     =
00:05:23 verbose #5389 > >     !\\((worker, wasm), $'"Box::pin($0.dev_deploy(&$1))"')
00:05:23 verbose #5390 > >
00:05:23 verbose #5391 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:23 verbose #5392 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:23 verbose #5393 > > │ ### call                                                                     │
00:05:23 verbose #5394 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:23 verbose #5395 > >
00:05:23 verbose #5396 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:23 verbose #5397 > > inl call (fn_name : string) (contract : contract) : call_transaction =
00:05:23 verbose #5398 > >     !\\((contract, fn_name), $'"$0.call(&*$1)"')
00:05:23 verbose #5399 > >
00:05:23 verbose #5400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:23 verbose #5401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:23 verbose #5402 > > │ ### transact                                                                 │
00:05:23 verbose #5403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:23 verbose #5404 > >
00:05:23 verbose #5405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:23 verbose #5406 > > inl transact
00:05:23 verbose #5407 > >     (call : call_transaction)
00:05:23 verbose #5408 > >     : async.future_pin (resultm.result' execution_final_result
00:05:23 verbose #5409 > > near_workspaces_error)
00:05:23 verbose #5410 > >     =
00:05:23 verbose #5411 > >     !\($'"Box::pin(!call.transact())"')
00:05:24 verbose #5412 > >
00:05:24 verbose #5413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #5414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #5415 > > │ ### logs                                                                     │
00:05:24 verbose #5416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #5417 > >
00:05:24 verbose #5418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #5419 > > inl logs (result : execution_final_result) : am'.vec (rust.ref sm'.str) =
00:05:24 verbose #5420 > >     !\($'"!result.logs()"')
00:05:24 verbose #5421 > >
00:05:24 verbose #5422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #5423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #5424 > > │ ### into_result                                                              │
00:05:24 verbose #5425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #5426 > >
00:05:24 verbose #5427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #5428 > > inl into_result
00:05:24 verbose #5429 > >     (result : execution_final_result)
00:05:24 verbose #5430 > >     : resultm.result' execution_success execution_failure
00:05:24 verbose #5431 > >     =
00:05:24 verbose #5432 > >     !\\(result, $'"$0.into_result()"')
00:05:25 verbose #5433 > >
00:05:25 verbose #5434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #5435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #5436 > > │ ### receipt_failures                                                         │
00:05:25 verbose #5437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #5438 > >
00:05:25 verbose #5439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #5440 > > inl receipt_failures (result : execution_final_result) : am'.vec (rust.ref
00:05:25 verbose #5441 > > execution_outcome) =
00:05:25 verbose #5442 > >     inl result = join result
00:05:25 verbose #5443 > >     !\($'"!result.receipt_failures()"')
00:05:25 verbose #5444 > >
00:05:25 verbose #5445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #5446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #5447 > > │ ### receipt_outcomes                                                         │
00:05:25 verbose #5448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #5449 > >
00:05:25 verbose #5450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #5451 > > inl receipt_outcomes (result : execution_final_result) : am'.vec
00:05:25 verbose #5452 > > execution_outcome =
00:05:25 verbose #5453 > >     inl result = join result
00:05:25 verbose #5454 > >     inl result : rust.ref (am'.slice execution_outcome) =
00:05:25 verbose #5455 > > !\($'"!result.receipt_outcomes()"')
00:05:25 verbose #5456 > >     result |> rust.into
00:05:25 verbose #5457 > >
00:05:25 verbose #5458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #5459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #5460 > > │ ### json                                                                     │
00:05:25 verbose #5461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #5462 > >
00:05:25 verbose #5463 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #5464 > > inl json (result : execution_final_result) : resultm.result' sm'.std_string
00:05:25 verbose #5465 > > near_workspaces_error =
00:05:25 verbose #5466 > >     !\\(result, $'"$0.json()"')
00:05:26 verbose #5467 > >
00:05:26 verbose #5468 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #5469 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #5470 > > │ ### borsh                                                                    │
00:05:26 verbose #5471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #5472 > >
00:05:26 verbose #5473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #5474 > > inl borsh (result : execution_final_result) : resultm.result' sm'.std_string
00:05:26 verbose #5475 > > near_workspaces_error =
00:05:26 verbose #5476 > >     !\\(result, $'"$0.borsh()"')
00:05:26 verbose #5477 > >
00:05:26 verbose #5478 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #5479 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #5480 > > │ ### total_gas_burnt                                                          │
00:05:26 verbose #5481 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #5482 > >
00:05:26 verbose #5483 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #5484 > > inl total_gas_burnt (result : execution_final_result) : gas =
00:05:26 verbose #5485 > >     !\\(result, $'"$0.total_gas_burnt"')
00:05:27 verbose #5486 > >
00:05:27 verbose #5487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:27 verbose #5488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:27 verbose #5489 > > │ ### as_gas                                                                   │
00:05:27 verbose #5490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:27 verbose #5491 > >
00:05:27 verbose #5492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:27 verbose #5493 > > inl as_gas (gas : gas) : u64 =
00:05:27 verbose #5494 > >     !\\(gas, $'"$0.as_gas()"')
00:05:27 verbose #5495 > >
00:05:27 verbose #5496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:27 verbose #5497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:27 verbose #5498 > > │ ### outcomes                                                                 │
00:05:27 verbose #5499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:27 verbose #5500 > >
00:05:27 verbose #5501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:27 verbose #5502 > > inl outcomes (result : execution_final_result) : am'.vec (rust.ref
00:05:27 verbose #5503 > > execution_outcome) =
00:05:27 verbose #5504 > >     inl result = result |> rust.emit
00:05:27 verbose #5505 > >     !\($'"!result.outcomes()"')
00:05:28 verbose #5506 > >
00:05:28 verbose #5507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:28 verbose #5508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:28 verbose #5509 > > │ ### is_success                                                               │
00:05:28 verbose #5510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:28 verbose #5511 > >
00:05:28 verbose #5512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:28 verbose #5513 > > inl is_success (outcome : execution_outcome) : bool =
00:05:28 verbose #5514 > >     !\\(outcome, $'"$0.is_success()"')
00:05:28 verbose #5515 > >
00:05:28 verbose #5516 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:28 verbose #5517 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:28 verbose #5518 > > │ ### gas_burnt                                                                │
00:05:28 verbose #5519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:28 verbose #5520 > >
00:05:28 verbose #5521 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:28 verbose #5522 > > inl gas_burnt (outcome : execution_outcome) : gas =
00:05:28 verbose #5523 > >     !\\(outcome, $'"$0.gas_burnt"')
00:05:29 verbose #5524 > >
00:05:29 verbose #5525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:29 verbose #5526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:29 verbose #5527 > > │ ### tokens_burnt                                                             │
00:05:29 verbose #5528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:29 verbose #5529 > >
00:05:29 verbose #5530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:29 verbose #5531 > > inl tokens_burnt (outcome : execution_outcome) : near_token_workspaces =
00:05:29 verbose #5532 > >     !\\(outcome, $'"$0.tokens_burnt"')
00:05:29 verbose #5533 > >
00:05:29 verbose #5534 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:29 verbose #5535 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:29 verbose #5536 > > │ ### print_usd                                                                │
00:05:29 verbose #5537 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:29 verbose #5538 > >
00:05:29 verbose #5539 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:29 verbose #5540 > > inl print_usd retry (result : execution_final_result) =
00:05:29 verbose #5541 > >     inl total_gas_burnt = result |> total_gas_burnt |> as_gas
00:05:29 verbose #5542 > >     inl total_gas_burnt_usd = total_gas_burnt |> near.gas_to_usd
00:05:29 verbose #5543 > >
00:05:29 verbose #5544 > >     trace Debug
00:05:29 verbose #5545 > >         fun () => "near_workspaces.print_usd"
00:05:29 verbose #5546 > >         fun () => { retry total_gas_burnt_usd total_gas_burnt }
00:05:29 verbose #5547 > >
00:05:29 verbose #5548 > >     result
00:05:29 verbose #5549 > >     |> outcomes
00:05:29 verbose #5550 > >     |> iter.into_iter
00:05:29 verbose #5551 > >     |> iter.cloned
00:05:29 verbose #5552 > >     |> iter.for_each fun outcome =>
00:05:29 verbose #5553 > >         inl is_success = outcome |> is_success
00:05:29 verbose #5554 > >
00:05:29 verbose #5555 > >         inl gas_burnt = outcome |> gas_burnt |> as_gas
00:05:29 verbose #5556 > >         inl gas_burnt_usd = gas_burnt |> near.gas_to_usd
00:05:29 verbose #5557 > >
00:05:29 verbose #5558 > >         inl tokens_burnt = outcome |> tokens_burnt |> near.as_yoctonear
00:05:29 verbose #5559 > >         inl tokens_burnt_usd = tokens_burnt |> near.tokens_to_usd
00:05:29 verbose #5560 > >
00:05:29 verbose #5561 > >         trace Debug
00:05:29 verbose #5562 > >             fun () => "near_workspaces.print_usd / outcome"
00:05:29 verbose #5563 > >             fun () => { is_success gas_burnt_usd tokens_burnt_usd gas_burnt
00:05:29 verbose #5564 > > tokens_burnt }
00:05:30 verbose #5565 > 00:00:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19003 }
00:05:30 verbose #5566 > 00:00:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:05:30 verbose #5567 >     "nbconvert",
00:05:30 verbose #5568 >     "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb",
00:05:30 verbose #5569 >     "--to",
00:05:30 verbose #5570 >     "html",
00:05:30 verbose #5571 >     "--HTMLExporter.theme=dark",
00:05:30 verbose #5572 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:33 verbose #5573 > 00:00:25 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.ipynb to html
00:05:33 verbose #5574 > 00:00:25 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:33 verbose #5575 > 00:00:25 verbose #7 !   validate(nb)
00:05:35 verbose #5576 > 00:00:28 verbose #8 ! [NbConvertApp] Writing 326140 bytes to c:\home\git\polyglot\lib\spiral\rust\near_workspaces.dib.html
00:05:35 verbose #5577 > 00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 671 }
00:05:35 verbose #5578 > 00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 671 }
00:05:35 verbose #5579 > 00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:05:35 verbose #5580 >     "-c",
00:05:35 verbose #5581 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:05:35 verbose #5582 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust/near_workspaces.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:36 verbose #5583 > 00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:36 verbose #5584 > 00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:36 verbose #5585 > 00:00:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 19733 }
00:05:36   debug #5586 runtime.execute_with_options_async / { exit_code = 0; output_length = 23305 }
00:05:36   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust/near_workspaces.dib --retries 3
00:05:36   debug #5587 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:36 verbose #5588 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "testing.dib", "--retries", "3"])) }
00:05:36 verbose #5589 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:05:36 verbose #5590 >     "repl",
00:05:36 verbose #5591 >     "--exit-after-run",
00:05:36 verbose #5592 >     "--run",
00:05:36 verbose #5593 >     "c:/home/git/polyglot/lib/spiral/testing.dib",
00:05:36 verbose #5594 >     "--output-path",
00:05:36 verbose #5595 >     "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb",
00:05:36 verbose #5596 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:39 verbose #5597 > >
00:05:39 verbose #5598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:39 verbose #5599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:39 verbose #5600 > > │ # testing                                                                    │
00:05:39 verbose #5601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:39 verbose #5602 > >
00:05:39 verbose #5603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:39 verbose #5604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:39 verbose #5605 > > │ ## testing                                                                   │
00:05:39 verbose #5606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:39 verbose #5607 > >
00:05:39 verbose #5608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:39 verbose #5609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:39 verbose #5610 > > │ ### testing_trace                                                            │
00:05:39 verbose #5611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:44 verbose #5612 > >
00:05:44 verbose #5613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:44 verbose #5614 > > union testing_trace =
00:05:44 verbose #5615 > >     | Console
00:05:44 verbose #5616 > >     | Trace
00:05:44 verbose #5617 > >     | TraceRaw
00:05:44 verbose #5618 > >     | Silent
00:05:45 verbose #5619 > >
00:05:45 verbose #5620 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:45 verbose #5621 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:45 verbose #5622 > > │ ### __expect                                                                 │
00:05:45 verbose #5623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:45 verbose #5624 > >
00:05:45 verbose #5625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:45 verbose #5626 > > inl rec __expect fn trace' name b a =
00:05:45 verbose #5627 > >     inl result = fn a b
00:05:45 verbose #5628 > >     inl result =
00:05:45 verbose #5629 > >         result || join result
00:05:45 verbose #5630 > >     inl get_raw_text () =
00:05:45 verbose #5631 > >         backend_switch {
00:05:45 verbose #5632 > >             Fsharp = fun () => $'$"{!name} / actual: %A{!a} / expected: %A{!b}"'
00:05:45 verbose #5633 > > : string
00:05:45 verbose #5634 > >             Python = fun () => $'f"{!name} / actual: {!a} / expected: {!b}"' :
00:05:45 verbose #5635 > > string
00:05:45 verbose #5636 > >         }
00:05:45 verbose #5637 > >     match trace' with
00:05:45 verbose #5638 > >     | Console =>
00:05:45 verbose #5639 > >         inl text = get_raw_text ()
00:05:45 verbose #5640 > >         text |> console.write_line
00:05:45 verbose #5641 > >         text
00:05:45 verbose #5642 > >     | Trace =>
00:05:45 verbose #5643 > >         trace Info (fun () => name) fun () => { actual = a; expected = b }
00:05:45 verbose #5644 > >         get_raw_text ()
00:05:45 verbose #5645 > >     | TraceRaw =>
00:05:45 verbose #5646 > >         inl text = get_raw_text ()
00:05:45 verbose #5647 > >         trace_raw Info fun () => text
00:05:45 verbose #5648 > >         text
00:05:45 verbose #5649 > >     | Silent => reflection.nameof { __expect }
00:05:45 verbose #5650 > >     |> assert result
00:05:46 verbose #5651 > >
00:05:46 verbose #5652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:46 verbose #5653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:46 verbose #5654 > > │ ### __assert_approx_eq                                                       │
00:05:46 verbose #5655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:46 verbose #5656 > >
00:05:46 verbose #5657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:46 verbose #5658 > > inl rec __assert_approx_eq trace e b a =
00:05:46 verbose #5659 > >     __expect
00:05:46 verbose #5660 > >         (fun a b => abs (b - a) < (e |> optionm.defaultWith 0.00000001))
00:05:46 verbose #5661 > >         trace
00:05:46 verbose #5662 > >         (reflection.nameof { __assert_approx_eq })
00:05:46 verbose #5663 > >         b
00:05:46 verbose #5664 > >         a
00:05:46 verbose #5665 > >
00:05:46 verbose #5666 > > inl _assert_approx_eq e b a =
00:05:46 verbose #5667 > >     __assert_approx_eq Console e b a
00:05:46 verbose #5668 > >
00:05:46 verbose #5669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:46 verbose #5670 > > //// test
00:05:46 verbose #5671 > > ///! fsharp
00:05:46 verbose #5672 > > ///! cuda
00:05:46 verbose #5673 > > ///! rust
00:05:46 verbose #5674 > > ///! typescript
00:05:46 verbose #5675 > > ///! python
00:05:46 verbose #5676 > >
00:05:46 verbose #5677 > > 12.345f64
00:05:46 verbose #5678 > > |> _assert_approx_eq (Some 0.0001f64) 12.345f64
00:05:54 verbose #5679 > >
00:05:54 verbose #5680 > > ╭─[ 7.75s - return value ]─────────────────────────────────────────────────────╮
00:05:54 verbose #5681 > > │ .py output (Cuda):                                                           │
00:05:54 verbose #5682 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:05:54 verbose #5683 > > │                                                                              │
00:05:54 verbose #5684 > > │ .rs output:                                                                  │
00:05:54 verbose #5685 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:05:54 verbose #5686 > > │                                                                              │
00:05:54 verbose #5687 > > │ .ts output:                                                                  │
00:05:54 verbose #5688 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:05:54 verbose #5689 > > │                                                                              │
00:05:54 verbose #5690 > > │ .py output:                                                                  │
00:05:54 verbose #5691 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:05:54 verbose #5692 > > │                                                                              │
00:05:54 verbose #5693 > > │                                                                              │
00:05:54 verbose #5694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #5695 > >
00:05:54 verbose #5696 > > ╭─[ 7.76s - stdout ]───────────────────────────────────────────────────────────╮
00:05:54 verbose #5697 > > │ .fsx output:                                                                 │
00:05:54 verbose #5698 > > │ __assert_approx_eq / actual: 12.345 / expected: 12.345                       │
00:05:54 verbose #5699 > > │                                                                              │
00:05:54 verbose #5700 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #5701 > >
00:05:54 verbose #5702 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:54 verbose #5703 > > //// test
00:05:54 verbose #5704 > > //// print_code
00:05:54 verbose #5705 > >
00:05:54 verbose #5706 > > 1f64
00:05:54 verbose #5707 > > |> __assert_approx_eq Console (Some 3) 2
00:05:54 verbose #5708 > >
00:05:54 verbose #5709 > > ╭─[ 434.02ms - stdout ]────────────────────────────────────────────────────────╮
00:05:54 verbose #5710 > > │ let rec closure0 (v0 : string) () : unit =                                   │
00:05:54 verbose #5711 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:05:54 verbose #5712 > > │     v1 v0                                                                    │
00:05:54 verbose #5713 > > │ and method0 () : unit =                                                      │
00:05:54 verbose #5714 > > │     let v0 : string = "__assert_approx_eq"                                   │
00:05:54 verbose #5715 > > │     let v1 : string = $"{v0} / actual: %A{1.0} / expected: %A{2.0}"          │
00:05:54 verbose #5716 > > │     let v4 : unit = ()                                                       │
00:05:54 verbose #5717 > > │     let v5 : (unit -> unit) = closure0(v1)                                   │
00:05:54 verbose #5718 > > │     let v6 : unit = (fun () -> v5 (); v4) ()                                 │
00:05:54 verbose #5719 > > │     ()                                                                       │
00:05:54 verbose #5720 > > │ method0()                                                                    │
00:05:54 verbose #5721 > > │                                                                              │
00:05:54 verbose #5722 > > │ __assert_approx_eq / actual: 1.0 / expected: 2.0                             │
00:05:54 verbose #5723 > > │                                                                              │
00:05:54 verbose #5724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:54 verbose #5725 > >
00:05:54 verbose #5726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:54 verbose #5727 > > //// test
00:05:54 verbose #5728 > > //// print_code
00:05:54 verbose #5729 > >
00:05:54 verbose #5730 > > (dyn 1f64)
00:05:54 verbose #5731 > > |> _assert_approx_eq (Some 3) 2
00:05:55 verbose #5732 > >
00:05:55 verbose #5733 > > ╭─[ 571.58ms - stdout ]────────────────────────────────────────────────────────╮
00:05:55 verbose #5734 > > │ let rec method1 (v0 : bool) : bool =                                         │
00:05:55 verbose #5735 > > │     v0                                                                       │
00:05:55 verbose #5736 > > │ and closure0 (v0 : string) () : unit =                                       │
00:05:55 verbose #5737 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:05:55 verbose #5738 > > │     v1 v0                                                                    │
00:05:55 verbose #5739 > > │ and method0 () : unit =                                                      │
00:05:55 verbose #5740 > > │     let v0 : float = 1.0                                                     │
00:05:55 verbose #5741 > > │     let v1 : float = 2.0 - v0                                                │
00:05:55 verbose #5742 > > │     let v2 : float =  -v1                                                    │
00:05:55 verbose #5743 > > │     let v3 : bool = v1 >= v2                                                 │
00:05:55 verbose #5744 > > │     let v4 : float =                                                         │
00:05:55 verbose #5745 > > │         if v3 then                                                           │
00:05:55 verbose #5746 > > │             v1                                                               │
00:05:55 verbose #5747 > > │         else                                                                 │
00:05:55 verbose #5748 > > │             v2                                                               │
00:05:55 verbose #5749 > > │     let v5 : bool = v4 < 3.0                                                 │
00:05:55 verbose #5750 > > │     let v7 : bool =                                                          │
00:05:55 verbose #5751 > > │         if v5 then                                                           │
00:05:55 verbose #5752 > > │             true                                                             │
00:05:55 verbose #5753 > > │         else                                                                 │
00:05:55 verbose #5754 > > │             method1(v5)                                                      │
00:05:55 verbose #5755 > > │     let v8 : string = "__assert_approx_eq"                                   │
00:05:55 verbose #5756 > > │     let v9 : string = $"{v8} / actual: %A{v0} / expected: %A{2.0}"           │
00:05:55 verbose #5757 > > │     let v12 : unit = ()                                                      │
00:05:55 verbose #5758 > > │     let v13 : (unit -> unit) = closure0(v9)                                  │
00:05:55 verbose #5759 > > │     let v14 : unit = (fun () -> v13 (); v12) ()                              │
00:05:55 verbose #5760 > > │     let v16 : bool = v7 = false                                              │
00:05:55 verbose #5761 > > │     if v16 then                                                              │
00:05:55 verbose #5762 > > │         failwith<unit> v9                                                    │
00:05:55 verbose #5763 > > │ method0()                                                                    │
00:05:55 verbose #5764 > > │                                                                              │
00:05:55 verbose #5765 > > │ __assert_approx_eq / actual: 1.0 / expected: 2.0                             │
00:05:55 verbose #5766 > > │                                                                              │
00:05:55 verbose #5767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #5768 > >
00:05:55 verbose #5769 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:55 verbose #5770 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:55 verbose #5771 > > │ ### __assert_eq                                                              │
00:05:55 verbose #5772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #5773 > >
00:05:55 verbose #5774 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:55 verbose #5775 > > inl rec __assert_eq trace b a =
00:05:55 verbose #5776 > >     __expect (=) trace (reflection.nameof { __assert_eq }) b a
00:05:55 verbose #5777 > >
00:05:55 verbose #5778 > > inl _assert_eq b a =
00:05:55 verbose #5779 > >     __assert_eq Console b a
00:05:55 verbose #5780 > >
00:05:55 verbose #5781 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:55 verbose #5782 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:55 verbose #5783 > > │ ### __assert_eq'                                                             │
00:05:55 verbose #5784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:55 verbose #5785 > >
00:05:55 verbose #5786 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:55 verbose #5787 > > inl rec __assert_eq' trace b a =
00:05:55 verbose #5788 > >     __expect (=.) trace (reflection.nameof { __assert_eq' }) b a
00:05:55 verbose #5789 > >
00:05:55 verbose #5790 > > inl _assert_eq' b a =
00:05:55 verbose #5791 > >     __assert_eq' Console b a
00:05:56 verbose #5792 > >
00:05:56 verbose #5793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:56 verbose #5794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:56 verbose #5795 > > │ ### __assert_ne                                                              │
00:05:56 verbose #5796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:56 verbose #5797 > >
00:05:56 verbose #5798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:56 verbose #5799 > > inl rec __assert_ne trace b a =
00:05:56 verbose #5800 > >     __expect (<>.) trace (reflection.nameof { __assert_ne }) b a
00:05:56 verbose #5801 > >
00:05:56 verbose #5802 > > inl _assert_ne b a =
00:05:56 verbose #5803 > >     __assert_ne Console b a
00:05:56 verbose #5804 > >
00:05:56 verbose #5805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:56 verbose #5806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:56 verbose #5807 > > │ ### __assert_gt                                                              │
00:05:56 verbose #5808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:56 verbose #5809 > >
00:05:56 verbose #5810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:56 verbose #5811 > > inl rec __assert_gt trace b a =
00:05:56 verbose #5812 > >     __expect (>) trace (reflection.nameof { __assert_gt }) b a
00:05:56 verbose #5813 > >
00:05:56 verbose #5814 > > inl _assert_gt b a =
00:05:56 verbose #5815 > >     __assert_gt Console b a
00:05:57 verbose #5816 > >
00:05:57 verbose #5817 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:57 verbose #5818 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:57 verbose #5819 > > │ ### __assert_ge                                                              │
00:05:57 verbose #5820 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:57 verbose #5821 > >
00:05:57 verbose #5822 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:57 verbose #5823 > > inl rec __assert_ge trace b a =
00:05:57 verbose #5824 > >     __expect (>=) trace (reflection.nameof { __assert_ge }) b a
00:05:57 verbose #5825 > >
00:05:57 verbose #5826 > > inl _assert_ge b a =
00:05:57 verbose #5827 > >     __assert_ge Console b a
00:05:57 verbose #5828 > >
00:05:57 verbose #5829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:57 verbose #5830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:57 verbose #5831 > > │ ### __assert_lt                                                              │
00:05:57 verbose #5832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:57 verbose #5833 > >
00:05:57 verbose #5834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:57 verbose #5835 > > inl rec __assert_lt trace b a =
00:05:57 verbose #5836 > >     __expect (<) trace (reflection.nameof { __assert_lt }) b a
00:05:57 verbose #5837 > >
00:05:57 verbose #5838 > > inl _assert_lt b a =
00:05:57 verbose #5839 > >     __assert_lt Console b a
00:05:57 verbose #5840 > >
00:05:57 verbose #5841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:57 verbose #5842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:57 verbose #5843 > > │ ### __assert_le                                                              │
00:05:57 verbose #5844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:57 verbose #5845 > >
00:05:57 verbose #5846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:57 verbose #5847 > > inl rec __assert_le trace b a =
00:05:57 verbose #5848 > >     __expect (<=) trace (reflection.nameof { __assert_le }) b a
00:05:57 verbose #5849 > >
00:05:57 verbose #5850 > > inl _assert_le b a =
00:05:57 verbose #5851 > >     __assert_le Console b a
00:05:58 verbose #5852 > >
00:05:58 verbose #5853 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:58 verbose #5854 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:58 verbose #5855 > > │ ### __assert_string_contains                                                 │
00:05:58 verbose #5856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:58 verbose #5857 > >
00:05:58 verbose #5858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:58 verbose #5859 > > inl rec __assert_string_contains trace b a =
00:05:58 verbose #5860 > >     __expect sm'.contains trace (reflection.nameof { __assert_string_contains })
00:05:58 verbose #5861 > > a b
00:05:58 verbose #5862 > >
00:05:58 verbose #5863 > > inl _assert_string_contains b a =
00:05:58 verbose #5864 > >     __assert_string_contains Console b a
00:05:58 verbose #5865 > >
00:05:58 verbose #5866 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:58 verbose #5867 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:58 verbose #5868 > > │ ### __assert_between                                                         │
00:05:58 verbose #5869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:58 verbose #5870 > >
00:05:58 verbose #5871 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:58 verbose #5872 > > inl rec __assert_between trace a b actual =
00:05:58 verbose #5873 > >     inl assert_between actual (a, b) =
00:05:58 verbose #5874 > >         __assert_ge Silent a actual
00:05:58 verbose #5875 > >         __assert_le Silent b actual
00:05:58 verbose #5876 > >         true
00:05:58 verbose #5877 > >     __expect assert_between trace (reflection.nameof { __assert_between }) (a,
00:05:58 verbose #5878 > > b) actual
00:05:58 verbose #5879 > >
00:05:58 verbose #5880 > > inl _assert_between a b actual =
00:05:58 verbose #5881 > >     __assert_between Console a b actual
00:05:59 verbose #5882 > >
00:05:59 verbose #5883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 verbose #5884 > > inl rec _assert_fn fn list =
00:05:59 verbose #5885 > >     list
00:05:59 verbose #5886 > >     |> listm.rev
00:05:59 verbose #5887 > >     |> listm.map fun input, expected => join
00:05:59 verbose #5888 > >         input
00:05:59 verbose #5889 > >         |> fn
00:05:59 verbose #5890 > >         |> resultm.get
00:05:59 verbose #5891 > >         |> fun x =>
00:05:59 verbose #5892 > >             inl expected' = join expected
00:05:59 verbose #5893 > >             inl name = reflection.nameof { _assert_fn }
00:05:59 verbose #5894 > >             try
00:05:59 verbose #5895 > >                 fun () =>
00:05:59 verbose #5896 > >                     console.write_line ""
00:05:59 verbose #5897 > >                     trace Verbose
00:05:59 verbose #5898 > >                         fun () => name
00:05:59 verbose #5899 > >                         fun () => { input }
00:05:59 verbose #5900 > >                     x
00:05:59 verbose #5901 > >                     |> _assert_eq' expected'
00:05:59 verbose #5902 > >                     true
00:05:59 verbose #5903 > >                 fun ex =>
00:05:59 verbose #5904 > >                     trace Critical
00:05:59 verbose #5905 > >                         fun () =>
00:05:59 verbose #5906 > >                             $'$"{!name} / error"'
00:05:59 verbose #5907 > >                         fun () => { ex expected }
00:05:59 verbose #5908 > >                     Some false
00:05:59 verbose #5909 > >             |> optionm.value
00:05:59 verbose #5910 > >     |> listm'.filter not
00:05:59 verbose #5911 > >     |> function
00:05:59 verbose #5912 > >         | [[]] => ()
00:05:59 verbose #5913 > >         | x => failwith $'$"{!x}"'
00:05:59 verbose #5914 > >
00:05:59 verbose #5915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:59 verbose #5916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:59 verbose #5917 > > │ ## fsharp                                                                    │
00:05:59 verbose #5918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 verbose #5919 > >
00:05:59 verbose #5920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:59 verbose #5921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:59 verbose #5922 > > │ ### __assert_contains                                                        │
00:05:59 verbose #5923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 verbose #5924 > >
00:05:59 verbose #5925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 verbose #5926 > > inl rec __assert_contains forall t u. (trace : testing_trace) (b : t) (a : u) :
00:05:59 verbose #5927 > > () =
00:05:59 verbose #5928 > >     __expect
00:05:59 verbose #5929 > >         fun a b =>
00:05:59 verbose #5930 > >             a
00:05:59 verbose #5931 > >             |> $'List.ofSeq'
00:05:59 verbose #5932 > >             |> fun x => x : listm'.list' t
00:05:59 verbose #5933 > >             |> $'List.tryFind' ((=) b)
00:05:59 verbose #5934 > >             |> optionm'.unbox
00:05:59 verbose #5935 > >             |> fun (x : option t) => x <> None
00:05:59 verbose #5936 > >         trace
00:05:59 verbose #5937 > >         // TODO: forall nameof (Cannot dyn a forall into a runtime var.)
00:05:59 verbose #5938 > >         // Metavars that are not part of the enclosing function's signature are
00:05:59 verbose #5939 > > not allowed. They need to be values.
00:05:59 verbose #5940 > >         // Got: {__assert_contains : testing_trace -> _ -> _ -> ()} -> string
00:05:59 verbose #5941 > >         // (reflection.nameof { __assert_contains })
00:05:59 verbose #5942 > >         "__assert_contains"
00:05:59 verbose #5943 > >         b
00:05:59 verbose #5944 > >         a
00:05:59 verbose #5945 > >
00:05:59 verbose #5946 > > inl _assert_contains b a =
00:05:59 verbose #5947 > >     __assert_contains Console b a
00:06:00 verbose #5948 > >
00:06:00 verbose #5949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:00 verbose #5950 > > //// test
00:06:00 verbose #5951 > >
00:06:00 verbose #5952 > > ;[[ "a"; "b"; "c" ]]
00:06:00 verbose #5953 > > |> _assert_contains "b"
00:06:01 verbose #5954 > >
00:06:01 verbose #5955 > > ╭─[ 1.30s - stdout ]───────────────────────────────────────────────────────────╮
00:06:01 verbose #5956 > > │ __assert_contains / actual: [|"a"; "b"; "c"|] / expected: "b"                │
00:06:01 verbose #5957 > > │                                                                              │
00:06:01 verbose #5958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #5959 > >
00:06:01 verbose #5960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #5961 > > //// test
00:06:01 verbose #5962 > >
00:06:01 verbose #5963 > > "abcd"
00:06:01 verbose #5964 > > |> _assert_contains 'b'
00:06:01 verbose #5965 > >
00:06:01 verbose #5966 > > ╭─[ 493.35ms - stdout ]────────────────────────────────────────────────────────╮
00:06:01 verbose #5967 > > │ __assert_contains / actual: "abcd" / expected: 'b'                           │
00:06:01 verbose #5968 > > │                                                                              │
00:06:01 verbose #5969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #5970 > >
00:06:01 verbose #5971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #5972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #5973 > > │ ### _throws                                                                  │
00:06:01 verbose #5974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #5975 > >
00:06:01 verbose #5976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #5977 > > inl _throws (fn : () -> ()) : option exn =
00:06:01 verbose #5978 > >     inl none = None : option exn
00:06:01 verbose #5979 > >     inl some (s : exn) = Some s
00:06:01 verbose #5980 > >     $'try !fn (); !none with ex -> ex |> !some '
00:06:02 verbose #5981 > >
00:06:02 verbose #5982 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #5983 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #5984 > > │ ### print_and_return                                                         │
00:06:02 verbose #5985 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #5986 > >
00:06:02 verbose #5987 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #5988 > > inl rec print_and_return x =
00:06:02 verbose #5989 > >     inl name = reflection.nameof { print_and_return }
00:06:02 verbose #5990 > >     $'printfn $"{!name} / x: {!x}"'
00:06:02 verbose #5991 > >     x
00:06:02 verbose #5992 > 00:00:26 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 18981 }
00:06:02 verbose #5993 > 00:00:26   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:06:02 verbose #5994 >     "nbconvert",
00:06:02 verbose #5995 >     "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb",
00:06:02 verbose #5996 >     "--to",
00:06:02 verbose #5997 >     "html",
00:06:02 verbose #5998 >     "--HTMLExporter.theme=dark",
00:06:02 verbose #5999 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:05 verbose #6000 > 00:00:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/testing.dib.ipynb to html
00:06:05 verbose #6001 > 00:00:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:06:05 verbose #6002 > 00:00:29 verbose #7 !   validate(nb)
00:06:07 verbose #6003 > 00:00:31 verbose #8 ! [NbConvertApp] Writing 318246 bytes to c:\home\git\polyglot\lib\spiral\testing.dib.html
00:06:08 verbose #6004 > 00:00:31 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:06:08 verbose #6005 > 00:00:31   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:06:08 verbose #6006 > 00:00:31   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:06:08 verbose #6007 >     "-c",
00:06:08 verbose #6008 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:06:08 verbose #6009 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:08 verbose #6010 > 00:00:32 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:06:08 verbose #6011 > 00:00:32   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:06:08 verbose #6012 > 00:00:32   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 19685 }
00:06:08   debug #6013 runtime.execute_with_options_async / { exit_code = 0; output_length = 23162 }
00:06:08   debug #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3
00:06:08   debug #6014 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:08 verbose #6015 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "guid.dib", "--retries", "3"])) }
00:06:08 verbose #6016 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:06:08 verbose #6017 >     "repl",
00:06:08 verbose #6018 >     "--exit-after-run",
00:06:08 verbose #6019 >     "--run",
00:06:08 verbose #6020 >     "c:/home/git/polyglot/lib/spiral/guid.dib",
00:06:08 verbose #6021 >     "--output-path",
00:06:08 verbose #6022 >     "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb",
00:06:08 verbose #6023 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/guid.dib" --output-path "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:06:11 verbose #6024 > >
00:06:11 verbose #6025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:11 verbose #6026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:11 verbose #6027 > > │ # guid                                                                       │
00:06:11 verbose #6028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:16 verbose #6029 > >
00:06:16 verbose #6030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:16 verbose #6031 > > //// test
00:06:16 verbose #6032 > >
00:06:16 verbose #6033 > > open testing
00:06:18 verbose #6034 > >
00:06:18 verbose #6035 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:18 verbose #6036 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:18 verbose #6037 > > │ ## guid                                                                      │
00:06:18 verbose #6038 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #6039 > >
00:06:18 verbose #6040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:18 verbose #6041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:18 verbose #6042 > > │ ### guid                                                                     │
00:06:18 verbose #6043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #6044 > >
00:06:18 verbose #6045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:18 verbose #6046 > > nominal guid_python =
00:06:18 verbose #6047 > >     `(
00:06:18 verbose #6048 > >         global "import uuid"
00:06:18 verbose #6049 > >         $'' : $'uuid.UUID'
00:06:18 verbose #6050 > >     )
00:06:18 verbose #6051 > > type guid_switch =
00:06:18 verbose #6052 > >     {
00:06:18 verbose #6053 > >         Fsharp : $'System.Guid'
00:06:18 verbose #6054 > >         Python : guid_python
00:06:18 verbose #6055 > >     }
00:06:18 verbose #6056 > > nominal guid = $'backend_switch `(guid_switch)'
00:06:18 verbose #6057 > >
00:06:18 verbose #6058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:18 verbose #6059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:18 verbose #6060 > > │ ### new_guid                                                                 │
00:06:18 verbose #6061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #6062 > >
00:06:18 verbose #6063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:18 verbose #6064 > > inl new_guid (x : string) : guid =
00:06:18 verbose #6065 > >     x |> convert
00:06:19 verbose #6066 > >
00:06:19 verbose #6067 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:19 verbose #6068 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:19 verbose #6069 > > │ ### new_raw_guid                                                             │
00:06:19 verbose #6070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:19 verbose #6071 > >
00:06:19 verbose #6072 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:19 verbose #6073 > > inl new_raw_guid () : guid =
00:06:19 verbose #6074 > >     backend_switch {
00:06:19 verbose #6075 > >         Fsharp = fun () => $'System.Guid.NewGuid' () : guid
00:06:19 verbose #6076 > >         Python = fun () => $'uuid.uuid4()' : guid
00:06:19 verbose #6077 > >     }
00:06:19 verbose #6078 > >
00:06:19 verbose #6079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:19 verbose #6080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:19 verbose #6081 > > │ ### hash_guid                                                                │
00:06:19 verbose #6082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:19 verbose #6083 > >
00:06:19 verbose #6084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:19 verbose #6085 > > type hash_guid = guid
00:06:19 verbose #6086 > >
00:06:19 verbose #6087 > > let hash_guid (~hash : string) : hash_guid =
00:06:19 verbose #6088 > >     run_target function
00:06:19 verbose #6089 > >         | Rust (Contract) => fun () => null ()
00:06:19 verbose #6090 > >         | _ => fun () =>
00:06:19 verbose #6091 > >             inl hash = hash |> sm'.pad_left 32i32 '0'
00:06:19 verbose #6092 > >             backend_switch {
00:06:19 verbose #6093 > >                 Fsharp = fun () =>
00:06:19 verbose #6094 > >                     $'`hash_guid
00:06:19 verbose #6095 > > $"{!hash.[[0..7]]}-{!hash.[[8..11]]}-{!hash.[[12..15]]}-{!hash.[[16..19]]}-{!has
00:06:19 verbose #6096 > > h.[[20..31]]}"' : hash_guid
00:06:19 verbose #6097 > >                 Python = fun () =>
00:06:19 verbose #6098 > > $'f"{!hash[[0:8]]}-{!hash[[8:12]]}-{!hash[[12:16]]}-{!hash[[16:20]]}-{!hash[[20:
00:06:19 verbose #6099 > > 32]]}"' : hash_guid
00:06:19 verbose #6100 > >             }
00:06:20 verbose #6101 > >
00:06:20 verbose #6102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:20 verbose #6103 > > //// test
00:06:20 verbose #6104 > > ///! fsharp
00:06:20 verbose #6105 > > ///! cuda
00:06:20 verbose #6106 > > ///! rust
00:06:20 verbose #6107 > > ///! typescript
00:06:20 verbose #6108 > > ///! python
00:06:20 verbose #6109 > >
00:06:20 verbose #6110 > > ""
00:06:20 verbose #6111 > > |> hash_guid
00:06:20 verbose #6112 > > |> _assert_eq' (new_guid "00000000-0000-0000-0000-000000000000")
00:06:20 verbose #6113 > >
00:06:20 verbose #6114 > > "123456789012345678901234567890123"
00:06:20 verbose #6115 > > |> hash_guid
00:06:20 verbose #6116 > > |> _assert_eq' (new_guid "12345678-9012-3456-7890-123456789012")
00:06:27 verbose #6117 > >
00:06:27 verbose #6118 > > ╭─[ 7.31s - return value ]─────────────────────────────────────────────────────╮
00:06:27 verbose #6119 > > │                                                                              │
00:06:27 verbose #6120 > > │ .py output (Cuda):                                                           │
00:06:27 verbose #6121 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:06:27 verbose #6122 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:06:27 verbose #6123 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:06:27 verbose #6124 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:06:27 verbose #6125 > > │                                                                              │
00:06:27 verbose #6126 > > │                                                                              │
00:06:27 verbose #6127 > > │ .rs output:                                                                  │
00:06:27 verbose #6128 > > │ __assert_eq' / actual: Guid(00000000-0000-0000-0000-000000000000) /          │
00:06:27 verbose #6129 > > │ expected: Guid(00000000-0000-0000-0000-000000000000)                         │
00:06:27 verbose #6130 > > │ __assert_eq' / actual: Guid(12345678-9012-3456-7890-123456789012) /          │
00:06:27 verbose #6131 > > │ expected: Guid(12345678-9012-3456-7890-123456789012)                         │
00:06:27 verbose #6132 > > │                                                                              │
00:06:27 verbose #6133 > > │                                                                              │
00:06:27 verbose #6134 > > │ .ts output:                                                                  │
00:06:27 verbose #6135 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:06:27 verbose #6136 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:06:27 verbose #6137 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:06:27 verbose #6138 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:06:27 verbose #6139 > > │                                                                              │
00:06:27 verbose #6140 > > │                                                                              │
00:06:27 verbose #6141 > > │ .py output:                                                                  │
00:06:27 verbose #6142 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:06:27 verbose #6143 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:06:27 verbose #6144 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:06:27 verbose #6145 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:06:27 verbose #6146 > > │                                                                              │
00:06:27 verbose #6147 > > │                                                                              │
00:06:27 verbose #6148 > > │                                                                              │
00:06:27 verbose #6149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #6150 > >
00:06:27 verbose #6151 > > ╭─[ 7.32s - stdout ]───────────────────────────────────────────────────────────╮
00:06:27 verbose #6152 > > │ .fsx output:                                                                 │
00:06:27 verbose #6153 > > │ __assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:      │
00:06:27 verbose #6154 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:06:27 verbose #6155 > > │ __assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:      │
00:06:27 verbose #6156 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:06:27 verbose #6157 > > │                                                                              │
00:06:27 verbose #6158 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #6159 > >
00:06:27 verbose #6160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:27 verbose #6161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:27 verbose #6162 > > │ ## main                                                                      │
00:06:27 verbose #6163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:27 verbose #6164 > >
00:06:27 verbose #6165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 verbose #6166 > > inl main () =
00:06:27 verbose #6167 > >     $'let new_guid x = !new_guid x' : ()
00:06:27 verbose #6168 > >     $'let hash_guid x = !hash_guid x' : ()
00:06:27 verbose #6169 > >     $'let new_raw_guid x = !new_raw_guid x' : ()
00:06:28 verbose #6170 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7553 }
00:06:28 verbose #6171 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:06:28 verbose #6172 >     "nbconvert",
00:06:28 verbose #6173 >     "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb",
00:06:28 verbose #6174 >     "--to",
00:06:28 verbose #6175 >     "html",
00:06:28 verbose #6176 >     "--HTMLExporter.theme=dark",
00:06:28 verbose #6177 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:31 verbose #6178 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/guid.dib.ipynb to html
00:06:31 verbose #6179 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:06:31 verbose #6180 > 00:00:22 verbose #7 !   validate(nb)
00:06:32 verbose #6181 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 284653 bytes to c:\home\git\polyglot\lib\spiral\guid.dib.html
00:06:33 verbose #6182 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:06:33 verbose #6183 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:06:33 verbose #6184 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:06:33 verbose #6185 >     "-c",
00:06:33 verbose #6186 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:06:33 verbose #6187 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:33 verbose #6188 > 00:00:24 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:06:33 verbose #6189 > 00:00:24   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:06:33 verbose #6190 > 00:00:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8251 }
00:06:33   debug #6191 runtime.execute_with_options_async / { exit_code = 0; output_length = 11201 }
00:06:33   debug #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3
00:06:33   debug #6192 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:06:33 verbose #6193 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "async.dib", "--retries", "3"])) }
00:06:33 verbose #6194 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:06:33 verbose #6195 >     "repl",
00:06:33 verbose #6196 >     "--exit-after-run",
00:06:33 verbose #6197 >     "--run",
00:06:33 verbose #6198 >     "c:/home/git/polyglot/lib/spiral/async.dib",
00:06:33 verbose #6199 >     "--output-path",
00:06:33 verbose #6200 >     "c:/home/git/polyglot/lib/spiral/async.dib.ipynb",
00:06:33 verbose #6201 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/async.dib" --output-path "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:06:36 verbose #6202 > >
00:06:36 verbose #6203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:36 verbose #6204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:36 verbose #6205 > > │ # async                                                                      │
00:06:36 verbose #6206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:41 verbose #6207 > >
00:06:41 verbose #6208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:41 verbose #6209 > > //// test
00:06:41 verbose #6210 > >
00:06:41 verbose #6211 > > open testing
00:06:43 verbose #6212 > >
00:06:43 verbose #6213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 verbose #6214 > > open rust
00:06:43 verbose #6215 > > open rust_operators
00:06:44 verbose #6216 > >
00:06:44 verbose #6217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:44 verbose #6218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:44 verbose #6219 > > │ ## rust                                                                      │
00:06:44 verbose #6220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:44 verbose #6221 > >
00:06:44 verbose #6222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:44 verbose #6223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:44 verbose #6224 > > │ ### future                                                                   │
00:06:44 verbose #6225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:44 verbose #6226 > >
00:06:44 verbose #6227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:44 verbose #6228 > > nominal future t =
00:06:44 verbose #6229 > >     `(
00:06:44 verbose #6230 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:44 verbose #6231 > > Fable.Core.Emit(\"std::future::Future<Output = $0>\")>]]\n#endif\ntype
00:06:44 verbose #6232 > > std_future_Future<'T> = class end"
00:06:44 verbose #6233 > >         $'' : $'std_future_Future<`t>'
00:06:44 verbose #6234 > >     )
00:06:44 verbose #6235 > >
00:06:44 verbose #6236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:44 verbose #6237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:44 verbose #6238 > > │ ### future_pin                                                               │
00:06:44 verbose #6239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:44 verbose #6240 > >
00:06:44 verbose #6241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:44 verbose #6242 > > type future_pin t = rust.pin (rust.box (rust.dyn' (future t)))
00:06:44 verbose #6243 > >
00:06:44 verbose #6244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:44 verbose #6245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:44 verbose #6246 > > │ ### future_pin_send                                                          │
00:06:44 verbose #6247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:44 verbose #6248 > >
00:06:44 verbose #6249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:44 verbose #6250 > > type future_pin_send t = rust.pin (rust.box (rust.send (rust.dyn' (future t))))
00:06:45 verbose #6251 > >
00:06:45 verbose #6252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:45 verbose #6253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:45 verbose #6254 > > │ ### block_on                                                                 │
00:06:45 verbose #6255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:45 verbose #6256 > >
00:06:45 verbose #6257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:45 verbose #6258 > > inl block_on forall t. (fn : future_pin t) : t =
00:06:45 verbose #6259 > >     inl runtime : infer =
00:06:45 verbose #6260 > >
00:06:45 verbose #6261 > > !\($'$"tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap()
00:06:45 verbose #6262 > > "')
00:06:45 verbose #6263 > >     !\\(fn, $'"!runtime.handle().block_on($0)"')
00:06:45 verbose #6264 > >
00:06:45 verbose #6265 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:45 verbose #6266 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:45 verbose #6267 > > │ ### block_on'                                                                │
00:06:45 verbose #6268 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:45 verbose #6269 > >
00:06:45 verbose #6270 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:45 verbose #6271 > > inl block_on' forall t. (fn : future_pin t) : t =
00:06:45 verbose #6272 > >     !\\(fn, $'"futures_lite::future::block_on($0)"')
00:06:45 verbose #6273 > >
00:06:45 verbose #6274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:45 verbose #6275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:45 verbose #6276 > > │ ### block_on''                                                               │
00:06:45 verbose #6277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:45 verbose #6278 > >
00:06:45 verbose #6279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:45 verbose #6280 > > inl block_on'' forall t. (fn : future_pin t) : t =
00:06:45 verbose #6281 > >     !\\(fn, $'"futures::executor::block_on($0)"')
00:06:46 verbose #6282 > >
00:06:46 verbose #6283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:46 verbose #6284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:46 verbose #6285 > > │ ### block_on'''                                                              │
00:06:46 verbose #6286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:46 verbose #6287 > >
00:06:46 verbose #6288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:46 verbose #6289 > > inl block_on''' forall t. (fn : future_pin t) : t =
00:06:46 verbose #6290 > >     !\\(fn, $'"async_std::task::block_on($0)"')
00:06:46 verbose #6291 > >
00:06:46 verbose #6292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:46 verbose #6293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:46 verbose #6294 > > │ ### block_on_send                                                            │
00:06:46 verbose #6295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:46 verbose #6296 > >
00:06:46 verbose #6297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:46 verbose #6298 > > inl block_on_send forall t. (fn : future_pin_send t) : t =
00:06:46 verbose #6299 > >     !\($'"tokio::runtime::block_on(!fn)"')
00:06:47 verbose #6300 > >
00:06:47 verbose #6301 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:47 verbose #6302 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:47 verbose #6303 > > │ ### stream_ext                                                               │
00:06:47 verbose #6304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:47 verbose #6305 > >
00:06:47 verbose #6306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:47 verbose #6307 > > nominal stream_ext =
00:06:47 verbose #6308 > >     `(
00:06:47 verbose #6309 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:47 verbose #6310 > > Fable.Core.Emit(\"tokio_stream::StreamExt\")>]]\n#endif\ntype
00:06:47 verbose #6311 > > tokio_stream_StreamExt = class end"
00:06:47 verbose #6312 > >         $'' : $'tokio_stream_StreamExt'
00:06:47 verbose #6313 > >     )
00:06:47 verbose #6314 > >
00:06:47 verbose #6315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:47 verbose #6316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:47 verbose #6317 > > │ ### join_handle                                                              │
00:06:47 verbose #6318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:47 verbose #6319 > >
00:06:47 verbose #6320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:47 verbose #6321 > > nominal join_handle t =
00:06:47 verbose #6322 > >     `(
00:06:47 verbose #6323 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:47 verbose #6324 > > Fable.Core.Emit(\"tokio::task::JoinHandle<$0>\")>]]\n#endif\ntype
00:06:47 verbose #6325 > > tokio_task_JoinHandle<'T> = class end"
00:06:47 verbose #6326 > >         $'' : $'tokio_task_JoinHandle<`t>'
00:06:47 verbose #6327 > >     )
00:06:48 verbose #6328 > >
00:06:48 verbose #6329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:48 verbose #6330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:48 verbose #6331 > > │ ### stream_collect                                                           │
00:06:48 verbose #6332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:48 verbose #6333 > >
00:06:48 verbose #6334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:48 verbose #6335 > > inl stream_collect forall t u.
00:06:48 verbose #6336 > >     (stream : t)
00:06:48 verbose #6337 > >     : future_pin (am'.vec u)
00:06:48 verbose #6338 > >     =
00:06:48 verbose #6339 > >     !\($'"Box::pin(tokio_stream::StreamExt::collect(!stream))"')
00:06:48 verbose #6340 > >
00:06:48 verbose #6341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:48 verbose #6342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:48 verbose #6343 > > │ ### stream_next                                                              │
00:06:48 verbose #6344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:48 verbose #6345 > >
00:06:48 verbose #6346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:48 verbose #6347 > > inl stream_next forall t u.
00:06:48 verbose #6348 > >     (stream : t)
00:06:48 verbose #6349 > >     : future_pin (optionm'.option' u)
00:06:48 verbose #6350 > >     =
00:06:48 verbose #6351 > >     !\($'"let mut !stream = !stream"')
00:06:48 verbose #6352 > >     !\($'"Box::pin(tokio_stream::StreamExt::next(&mut !stream))"')
00:06:48 verbose #6353 > >
00:06:48 verbose #6354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:48 verbose #6355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:48 verbose #6356 > > │ ### stream_filter_map                                                        │
00:06:48 verbose #6357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:48 verbose #6358 > >
00:06:48 verbose #6359 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:48 verbose #6360 > > inl stream_filter_map forall t u v.
00:06:48 verbose #6361 > >     (fn : u -> optionm'.option' v)
00:06:48 verbose #6362 > >     (stream : t)
00:06:48 verbose #6363 > >     : infer' v
00:06:48 verbose #6364 > >     =
00:06:48 verbose #6365 > >     inl fn = join fn
00:06:48 verbose #6366 > >     !\($'"tokio_stream::StreamExt::filter_map(!stream, |x| !fn(x))"')
00:06:49 verbose #6367 > >
00:06:49 verbose #6368 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:49 verbose #6369 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:49 verbose #6370 > > │ ### spawn                                                                    │
00:06:49 verbose #6371 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #6372 > >
00:06:49 verbose #6373 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:49 verbose #6374 > > inl spawn forall t. (fn : future_pin_send t) : join_handle t =
00:06:49 verbose #6375 > >     !\($'"tokio::runtime::spawn(!fn)"')
00:06:49 verbose #6376 > >
00:06:49 verbose #6377 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:49 verbose #6378 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:49 verbose #6379 > > │ ### try_join_all                                                             │
00:06:49 verbose #6380 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:49 verbose #6381 > >
00:06:49 verbose #6382 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:49 verbose #6383 > > nominal try_join_all t =
00:06:49 verbose #6384 > >     `(
00:06:49 verbose #6385 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:49 verbose #6386 > > Fable.Core.Emit(\"futures::future::TryJoinAll<$0>\")>]]\n#endif\ntype
00:06:49 verbose #6387 > > futures_future_TryJoinAll<'T> = class end"
00:06:49 verbose #6388 > >         $'' : $'futures_future_TryJoinAll<`t>'
00:06:49 verbose #6389 > >     )
00:06:49 verbose #6390 > >
00:06:49 verbose #6391 > > inl try_join_all forall t. (x : am'.vec (future_pin (resultm.result' t
00:06:49 verbose #6392 > > sm'.std_string))) : try_join_all (future_pin (resultm.result' t sm'.std_string))
00:06:49 verbose #6393 > > =
00:06:49 verbose #6394 > >     inl x = join x
00:06:49 verbose #6395 > >     !\($'"futures::future::try_join_all(!x)"')
00:06:50 verbose #6396 > >
00:06:50 verbose #6397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:50 verbose #6398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:50 verbose #6399 > > │ ### fuse                                                                     │
00:06:50 verbose #6400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:50 verbose #6401 > >
00:06:50 verbose #6402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:50 verbose #6403 > > nominal fuse t =
00:06:50 verbose #6404 > >     `(
00:06:50 verbose #6405 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:50 verbose #6406 > > Fable.Core.Emit(\"tokio::prelude::stream::Fuse<$0>\")>]]\n#endif\ntype
00:06:50 verbose #6407 > > tokio_prelude_stream_Fuse<'T> = class end"
00:06:50 verbose #6408 > >         $'' : $'tokio_prelude_stream_Fuse<`t>'
00:06:50 verbose #6409 > >     )
00:06:50 verbose #6410 > >
00:06:50 verbose #6411 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:50 verbose #6412 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:50 verbose #6413 > > │ ### future_fuse                                                              │
00:06:50 verbose #6414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:50 verbose #6415 > >
00:06:50 verbose #6416 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:50 verbose #6417 > > inl future_fuse forall t. (x : future_pin t) : fuse (future_pin t) =
00:06:50 verbose #6418 > >     !\($'"futures::future::FutureExt::fuse(!x)"')
00:06:51 verbose #6419 > >
00:06:51 verbose #6420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:51 verbose #6421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:51 verbose #6422 > > │ ### join_all                                                                 │
00:06:51 verbose #6423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:51 verbose #6424 > >
00:06:51 verbose #6425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:51 verbose #6426 > > nominal join_all t =
00:06:51 verbose #6427 > >     `(
00:06:51 verbose #6428 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:51 verbose #6429 > > Fable.Core.Emit(\"futures::future::JoinAll<$0>\")>]]\n#endif\ntype
00:06:51 verbose #6430 > > futures_future_JoinAll<'T> = class end"
00:06:51 verbose #6431 > >         $'' : $'futures_future_JoinAll<`t>'
00:06:51 verbose #6432 > >     )
00:06:51 verbose #6433 > >
00:06:51 verbose #6434 > > inl join_all forall t. (x : am'.vec (future_pin t)) : join_all (future_pin t) =
00:06:51 verbose #6435 > >     inl x = join x
00:06:51 verbose #6436 > >     !\($'"futures::future::join_all(!x)"')
00:06:51 verbose #6437 > >
00:06:51 verbose #6438 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:51 verbose #6439 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:51 verbose #6440 > > │ ### join_all_send                                                            │
00:06:51 verbose #6441 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:51 verbose #6442 > >
00:06:51 verbose #6443 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:51 verbose #6444 > > inl join_all_send forall t. (x : am'.vec (future_pin_send t)) : join_all
00:06:51 verbose #6445 > > (future_pin_send t) =
00:06:51 verbose #6446 > >     inl x = join x
00:06:51 verbose #6447 > >     !\($'"futures::future::join_all(!x)"')
00:06:51 verbose #6448 > >
00:06:51 verbose #6449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:51 verbose #6450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:51 verbose #6451 > > │ ### await_handle                                                             │
00:06:51 verbose #6452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:51 verbose #6453 > >
00:06:51 verbose #6454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:51 verbose #6455 > > inl await_handle forall t. (x : join_handle t) : t =
00:06:51 verbose #6456 > >     !\($'"!x.await"')
00:06:52 verbose #6457 > >
00:06:52 verbose #6458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:52 verbose #6459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:52 verbose #6460 > > │ ### await_all                                                                │
00:06:52 verbose #6461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:52 verbose #6462 > >
00:06:52 verbose #6463 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:52 verbose #6464 > > inl await_all forall t. (x : join_all (future_pin t)) : am'.vec t =
00:06:52 verbose #6465 > >     !\($'"!x.await"')
00:06:52 verbose #6466 > >
00:06:52 verbose #6467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:52 verbose #6468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:52 verbose #6469 > > │ ### await_all_send                                                           │
00:06:52 verbose #6470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:52 verbose #6471 > >
00:06:52 verbose #6472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:52 verbose #6473 > > inl await_all_send forall t. (x : join_all (future_pin_send t)) : am'.vec t =
00:06:52 verbose #6474 > >     !\($'"!x.await"')
00:06:53 verbose #6475 > >
00:06:53 verbose #6476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:53 verbose #6477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:53 verbose #6478 > > │ ### try_await_all                                                            │
00:06:53 verbose #6479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:53 verbose #6480 > >
00:06:53 verbose #6481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:53 verbose #6482 > > inl try_await_all forall t. (x : try_join_all (future_pin (resultm.result' t
00:06:53 verbose #6483 > > sm'.std_string))) : resultm.result' (am'.vec t) sm'.std_string =
00:06:53 verbose #6484 > >     !\($'"!x.await"')
00:06:53 verbose #6485 > >
00:06:53 verbose #6486 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:53 verbose #6487 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:53 verbose #6488 > > │ ### try_await_all_send                                                       │
00:06:53 verbose #6489 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:53 verbose #6490 > >
00:06:53 verbose #6491 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:53 verbose #6492 > > inl try_await_all_send forall t. (x : try_join_all (future_pin_send
00:06:53 verbose #6493 > > (resultm.result' t sm'.std_string))) : resultm.result' (am'.vec t)
00:06:53 verbose #6494 > > sm'.std_string =
00:06:53 verbose #6495 > >     !\($'"!x.await"')
00:06:54 verbose #6496 > >
00:06:54 verbose #6497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:54 verbose #6498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:54 verbose #6499 > > │ ### await                                                                    │
00:06:54 verbose #6500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:54 verbose #6501 > >
00:06:54 verbose #6502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:54 verbose #6503 > > inl await forall t. (x : future_pin t) : t =
00:06:54 verbose #6504 > >     !\($'"!x.await"')
00:06:54 verbose #6505 > >
00:06:54 verbose #6506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:54 verbose #6507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:54 verbose #6508 > > │ ### await                                                                    │
00:06:54 verbose #6509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:54 verbose #6510 > >
00:06:54 verbose #6511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:54 verbose #6512 > > inl await_send forall t. (x : future_pin_send t) : t =
00:06:54 verbose #6513 > >     !\($'"!x.await"')
00:06:54 verbose #6514 > >
00:06:54 verbose #6515 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:54 verbose #6516 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:54 verbose #6517 > > │ ### into_iter                                                                │
00:06:54 verbose #6518 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:54 verbose #6519 > >
00:06:54 verbose #6520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:54 verbose #6521 > > nominal into_iter t =
00:06:54 verbose #6522 > >     `(
00:06:54 verbose #6523 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:54 verbose #6524 > > Fable.Core.Emit(\"rayon::vec::IntoIter<$0>\")>]]\n#endif\ntype
00:06:54 verbose #6525 > > rayon_vec_IntoIter<'T> = class end"
00:06:54 verbose #6526 > >         $'' : $'rayon_vec_IntoIter<`t>'
00:06:54 verbose #6527 > >     )
00:06:55 verbose #6528 > >
00:06:55 verbose #6529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:55 verbose #6530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:55 verbose #6531 > > │ ### into_par_iter                                                            │
00:06:55 verbose #6532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #6533 > >
00:06:55 verbose #6534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:55 verbose #6535 > > inl into_par_iter forall t. (x : am'.vec t) : into_iter t =
00:06:55 verbose #6536 > >     !\\(x, $'"rayon::iter::IntoParallelIterator::into_par_iter($0)"')
00:06:55 verbose #6537 > >
00:06:55 verbose #6538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:55 verbose #6539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:55 verbose #6540 > > │ ### par_iter                                                                 │
00:06:55 verbose #6541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:55 verbose #6542 > >
00:06:55 verbose #6543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:55 verbose #6544 > > inl par_iter forall t. (x : am'.vec t) : into_iter t =
00:06:55 verbose #6545 > >     !\($'"rayon::iter::IntoParallelIterator::par_iter(!x)"')
00:06:56 verbose #6546 > >
00:06:56 verbose #6547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:56 verbose #6548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:56 verbose #6549 > > │ ### iter_map                                                                 │
00:06:56 verbose #6550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:56 verbose #6551 > >
00:06:56 verbose #6552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:56 verbose #6553 > > nominal iter_map t u =
00:06:56 verbose #6554 > >     `(
00:06:56 verbose #6555 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:56 verbose #6556 > > Fable.Core.Emit(\"rayon::iter::Map<$0, _>\")>]]\n#endif\ntype rayon_iter_Map<'T>
00:06:56 verbose #6557 > > = class end"
00:06:56 verbose #6558 > >         $'' : $'rayon_iter_Map<`t>'
00:06:56 verbose #6559 > >     )
00:06:56 verbose #6560 > >
00:06:56 verbose #6561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:56 verbose #6562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:56 verbose #6563 > > │ ### par_map                                                                  │
00:06:56 verbose #6564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:56 verbose #6565 > >
00:06:56 verbose #6566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:56 verbose #6567 > > inl par_map forall t u. (fn : t -> u) (ar : into_iter t) : iter_map (into_iter
00:06:56 verbose #6568 > > t) u =
00:06:56 verbose #6569 > >     !\\((ar, fn), $'"rayon::iter::ParallelIterator::map($0, |x| $1(x))"')
00:06:57 verbose #6570 > >
00:06:57 verbose #6571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #6572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #6573 > > │ ### par_collect                                                              │
00:06:57 verbose #6574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #6575 > >
00:06:57 verbose #6576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #6577 > > inl par_collect forall t u. (iter : iter_map (into_iter t) u) : am'.vec u =
00:06:57 verbose #6578 > >     !\\(iter, $'"rayon::iter::ParallelIterator::collect($0)"')
00:06:57 verbose #6579 > >
00:06:57 verbose #6580 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #6581 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #6582 > > │ ### try_join_all_iter                                                        │
00:06:57 verbose #6583 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #6584 > >
00:06:57 verbose #6585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #6586 > > inl try_join_all_iter forall t. (x : am'.vec (future_pin_send (resultm.result' t
00:06:57 verbose #6587 > > sm'.std_string))) : try_join_all (future_pin_send (resultm.result' t
00:06:57 verbose #6588 > > sm'.std_string)) =
00:06:57 verbose #6589 > >     inl x = join x
00:06:57 verbose #6590 > >     !\($'"futures::future::try_join_all(!x)"')
00:06:57 verbose #6591 > >
00:06:57 verbose #6592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #6593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #6594 > > │ ### future_init                                                              │
00:06:57 verbose #6595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #6596 > >
00:06:57 verbose #6597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #6598 > > inl future_init forall t. (move : bool) (x : () -> t) : infer' t =
00:06:57 verbose #6599 > >     if move
00:06:57 verbose #6600 > >     then (!\($'"true; let __future_init = Box::pin(async move { //"') : bool) |>
00:06:57 verbose #6601 > > ignore
00:06:57 verbose #6602 > >     else (!\($'"true; let __future_init = Box::pin(async { //"') : bool) |>
00:06:57 verbose #6603 > > ignore
00:06:57 verbose #6604 > >
00:06:57 verbose #6605 > >     inl is_unit : bool =
00:06:57 verbose #6606 > >         real
00:06:57 verbose #6607 > >             typecase t with
00:06:57 verbose #6608 > >             | () => true
00:06:57 verbose #6609 > >             | _ => false
00:06:57 verbose #6610 > >
00:06:57 verbose #6611 > >     inl x' = x ()
00:06:57 verbose #6612 > >     inl x' = join x'
00:06:57 verbose #6613 > >
00:06:57 verbose #6614 > >     inl depth =
00:06:57 verbose #6615 > >         if is_unit
00:06:57 verbose #6616 > >         then 2, 1
00:06:57 verbose #6617 > >         else 1, 0
00:06:57 verbose #6618 > >
00:06:57 verbose #6619 > >     x' |> rust.fix_closure depth
00:06:57 verbose #6620 > >
00:06:57 verbose #6621 > >     !\($'"__future_init"')
00:06:58 verbose #6622 > >
00:06:58 verbose #6623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:58 verbose #6624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:58 verbose #6625 > > │ ### new_future                                                               │
00:06:58 verbose #6626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:58 verbose #6627 > >
00:06:58 verbose #6628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:58 verbose #6629 > > inl new_future forall t. (x : () -> t) : future_pin t =
00:06:58 verbose #6630 > >     inl result = future_init false x
00:06:58 verbose #6631 > >     !\($'"!result"')
00:06:58 verbose #6632 > >
00:06:58 verbose #6633 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:58 verbose #6634 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:58 verbose #6635 > > │ ### new_future_move                                                          │
00:06:58 verbose #6636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:58 verbose #6637 > >
00:06:58 verbose #6638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:58 verbose #6639 > > inl new_future_move forall t. (x : () -> t) : future_pin t =
00:06:58 verbose #6640 > >     inl result = future_init true x
00:06:58 verbose #6641 > >     !\($'"!result"')
00:06:59 verbose #6642 > >
00:06:59 verbose #6643 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:59 verbose #6644 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:59 verbose #6645 > > │ ### new_future_send                                                          │
00:06:59 verbose #6646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:59 verbose #6647 > >
00:06:59 verbose #6648 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:59 verbose #6649 > > inl new_future_send forall t. (x : () -> t) : future_pin_send t =
00:06:59 verbose #6650 > >     inl result = future_init false x
00:06:59 verbose #6651 > >     !\($'"!result"')
00:06:59 verbose #6652 > >
00:06:59 verbose #6653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:59 verbose #6654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:59 verbose #6655 > > │ ### new_future_move_send                                                     │
00:06:59 verbose #6656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:59 verbose #6657 > >
00:06:59 verbose #6658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:59 verbose #6659 > > inl new_future_move_send forall t. (x : () -> t) : future_pin_send t =
00:06:59 verbose #6660 > >     inl result = future_init true x
00:06:59 verbose #6661 > >     !\($'"!result"')
00:07:00 verbose #6662 > >
00:07:00 verbose #6663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:00 verbose #6664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:00 verbose #6665 > > │ ## fsharp                                                                    │
00:07:00 verbose #6666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:00 verbose #6667 > >
00:07:00 verbose #6668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:00 verbose #6669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:00 verbose #6670 > > │ ### async                                                                    │
00:07:00 verbose #6671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:00 verbose #6672 > >
00:07:00 verbose #6673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:00 verbose #6674 > > nominal async t = $'Async<`t>'
00:07:00 verbose #6675 > >
00:07:00 verbose #6676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:00 verbose #6677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:00 verbose #6678 > > │ ### task                                                                     │
00:07:00 verbose #6679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:00 verbose #6680 > >
00:07:00 verbose #6681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:00 verbose #6682 > > nominal task t =
00:07:00 verbose #6683 > >     `(
00:07:00 verbose #6684 > >         typecase t with
00:07:00 verbose #6685 > >         | () => $'' : $'System.Threading.Tasks.Task'
00:07:00 verbose #6686 > >         | _ => $'' : $'System.Threading.Tasks.Task<`t>'
00:07:00 verbose #6687 > >     )
00:07:00 verbose #6688 > >
00:07:00 verbose #6689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:00 verbose #6690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:00 verbose #6691 > > │ ### new_async_unit                                                           │
00:07:00 verbose #6692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:00 verbose #6693 > >
00:07:00 verbose #6694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:00 verbose #6695 > > inl new_async_unit forall t. (fn : () -> ()) : async t =
00:07:00 verbose #6696 > >     run_target function
00:07:00 verbose #6697 > >         | Fsharp (Native) => fun () =>
00:07:00 verbose #6698 > >             inl result : optionm'.option' (async t) = optionm'.none' ()
00:07:00 verbose #6699 > >             $'let mutable _!result = !result '
00:07:00 verbose #6700 > >             $'async {'
00:07:00 verbose #6701 > >             fn ()
00:07:00 verbose #6702 > >             real
00:07:00 verbose #6703 > >                 typecase t with
00:07:00 verbose #6704 > >                 | () => $'()' : ()
00:07:00 verbose #6705 > >                 | _ => ()
00:07:00 verbose #6706 > >             $'}'
00:07:00 verbose #6707 > >             $'|> fun x -> _!result <- Some x'
00:07:00 verbose #6708 > >             $'match _!result with Some x -> x | None -> failwith
00:07:00 verbose #6709 > > "async.new_async_unit / _!result=None"'
00:07:00 verbose #6710 > >         | _ => fun () => null ()
00:07:01 verbose #6711 > >
00:07:01 verbose #6712 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:01 verbose #6713 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:01 verbose #6714 > > │ ### new_async                                                                │
00:07:01 verbose #6715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:01 verbose #6716 > >
00:07:01 verbose #6717 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:01 verbose #6718 > > inl new_async forall t. (fn : () -> t) : async t =
00:07:01 verbose #6719 > >     new_async_unit (fn >> ignore)
00:07:01 verbose #6720 > >
00:07:01 verbose #6721 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:01 verbose #6722 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:01 verbose #6723 > > │ ### new_task                                                                 │
00:07:01 verbose #6724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:01 verbose #6725 > >
00:07:01 verbose #6726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:01 verbose #6727 > > inl new_task forall t. (fn : () -> t) : task t =
00:07:01 verbose #6728 > >     run_target function
00:07:01 verbose #6729 > >         | Fsharp (Native) => fun () =>
00:07:01 verbose #6730 > >             inl result : optionm'.option' (task t) = optionm'.none' ()
00:07:01 verbose #6731 > >             $'let mutable _!result = !result '
00:07:01 verbose #6732 > >             $'task {'
00:07:01 verbose #6733 > >             fn () |> ignore
00:07:01 verbose #6734 > >             $'}'
00:07:01 verbose #6735 > >             $'|> fun x -> _!result <- Some x'
00:07:01 verbose #6736 > >             $'match _!result with Some x -> x | None -> failwith "async.new_task
00:07:01 verbose #6737 > > / _!result=None"'
00:07:01 verbose #6738 > >         | _ => fun () => null ()
00:07:02 verbose #6739 > >
00:07:02 verbose #6740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:02 verbose #6741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:02 verbose #6742 > > │ ### await_task                                                               │
00:07:02 verbose #6743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:02 verbose #6744 > >
00:07:02 verbose #6745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:02 verbose #6746 > > inl await_task forall t. (a : task t) : async t =
00:07:02 verbose #6747 > >     run_target function
00:07:02 verbose #6748 > >         | Fsharp (Native) => fun () =>
00:07:02 verbose #6749 > >             a |> $'Async.AwaitTask'
00:07:02 verbose #6750 > >         | _ => fun () => null ()
00:07:02 verbose #6751 > >
00:07:02 verbose #6752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:02 verbose #6753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:02 verbose #6754 > > │ ### ignore                                                                   │
00:07:02 verbose #6755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:02 verbose #6756 > >
00:07:02 verbose #6757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:02 verbose #6758 > > inl ignore forall t. (a : async t) : async () =
00:07:02 verbose #6759 > >     run_target function
00:07:02 verbose #6760 > >         | Fsharp (Native) => fun () =>
00:07:02 verbose #6761 > >             a |> $'Async.Ignore'
00:07:02 verbose #6762 > >         | _ => fun () => null ()
00:07:03 verbose #6763 > >
00:07:03 verbose #6764 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:03 verbose #6765 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:03 verbose #6766 > > │ ### run_synchronously                                                        │
00:07:03 verbose #6767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:03 verbose #6768 > >
00:07:03 verbose #6769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:03 verbose #6770 > > inl run_synchronously forall t. (a : async t) : t =
00:07:03 verbose #6771 > >     run_target function
00:07:03 verbose #6772 > >         | Fsharp (Native) => fun () =>
00:07:03 verbose #6773 > >             a |> $'Async.RunSynchronously'
00:07:03 verbose #6774 > >         | _ => fun () => null ()
00:07:03 verbose #6775 > >
00:07:03 verbose #6776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:03 verbose #6777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:03 verbose #6778 > > │ ### start                                                                    │
00:07:03 verbose #6779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:03 verbose #6780 > >
00:07:03 verbose #6781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:03 verbose #6782 > > inl start (a : async ()) : () =
00:07:03 verbose #6783 > >     run_target function
00:07:03 verbose #6784 > >         | Fsharp (Native) => fun () =>
00:07:03 verbose #6785 > >             a |> $'Async.Start'
00:07:03 verbose #6786 > >         | _ => fun () => null ()
00:07:04 verbose #6787 > >
00:07:04 verbose #6788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:04 verbose #6789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:04 verbose #6790 > > │ ### start_child                                                              │
00:07:04 verbose #6791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:04 verbose #6792 > >
00:07:04 verbose #6793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:04 verbose #6794 > > inl start_child forall t. (a : async t) : async (async t) =
00:07:04 verbose #6795 > >     run_target function
00:07:04 verbose #6796 > >         | Fsharp (Native) => fun () =>
00:07:04 verbose #6797 > >             a |> $'Async.StartChild'
00:07:04 verbose #6798 > >         | _ => fun () => null ()
00:07:04 verbose #6799 > >
00:07:04 verbose #6800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:04 verbose #6801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:04 verbose #6802 > > │ ### start_child_timeout                                                      │
00:07:04 verbose #6803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:04 verbose #6804 > >
00:07:04 verbose #6805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:04 verbose #6806 > > inl start_child_timeout forall t. (timeout : i32) (a : async t) : async (async
00:07:04 verbose #6807 > > t) =
00:07:04 verbose #6808 > >     run_target function
00:07:04 verbose #6809 > >         | Fsharp (Native) => fun () =>
00:07:04 verbose #6810 > >             $'Async.StartChild (!a, !timeout)'
00:07:04 verbose #6811 > >         | _ => fun () => null ()
00:07:05 verbose #6812 > >
00:07:05 verbose #6813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:05 verbose #6814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:05 verbose #6815 > > │ ### start_immediate                                                          │
00:07:05 verbose #6816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:05 verbose #6817 > >
00:07:05 verbose #6818 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:05 verbose #6819 > > inl start_immediate forall t. (a : async t) : () =
00:07:05 verbose #6820 > >     run_target function
00:07:05 verbose #6821 > >         | Fsharp (Native) => fun () =>
00:07:05 verbose #6822 > >             a |> $'Async.StartImmediate'
00:07:05 verbose #6823 > >         | _ => fun () => null ()
00:07:05 verbose #6824 > >
00:07:05 verbose #6825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:05 verbose #6826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:05 verbose #6827 > > │ ### task_canceled_exception                                                  │
00:07:05 verbose #6828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:05 verbose #6829 > >
00:07:05 verbose #6830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:05 verbose #6831 > > nominal task_canceled_exception =
00:07:05 verbose #6832 > > $'System.Threading.Tasks.TaskCanceledException'
00:07:05 verbose #6833 > >
00:07:05 verbose #6834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:05 verbose #6835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:05 verbose #6836 > > │ ### sleep                                                                    │
00:07:05 verbose #6837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:05 verbose #6838 > >
00:07:05 verbose #6839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:05 verbose #6840 > > inl sleep (ms : i32) : async () =
00:07:05 verbose #6841 > >     run_target function
00:07:05 verbose #6842 > >         | Fsharp (Native) => fun () =>
00:07:05 verbose #6843 > >             ms |> $'Async.Sleep'
00:07:05 verbose #6844 > >         | _ => fun () => null ()
00:07:06 verbose #6845 > >
00:07:06 verbose #6846 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:06 verbose #6847 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:06 verbose #6848 > > │ ### do                                                                       │
00:07:06 verbose #6849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:06 verbose #6850 > >
00:07:06 verbose #6851 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:06 verbose #6852 > > inl do (a : async ()) : () =
00:07:06 verbose #6853 > >     $'do\! !a '
00:07:06 verbose #6854 > >
00:07:06 verbose #6855 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:06 verbose #6856 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:06 verbose #6857 > > │ ### let'                                                                     │
00:07:06 verbose #6858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:06 verbose #6859 > >
00:07:06 verbose #6860 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:06 verbose #6861 > > inl let' forall t. (a : async t) : t =
00:07:06 verbose #6862 > >     $'let\! !a = !a '
00:07:06 verbose #6863 > >     $'!a '
00:07:07 verbose #6864 > >
00:07:07 verbose #6865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 verbose #6866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 verbose #6867 > > │ ### return_await                                                             │
00:07:07 verbose #6868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:07 verbose #6869 > >
00:07:07 verbose #6870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:07 verbose #6871 > > inl return_await forall t. (a : async t) : () =
00:07:07 verbose #6872 > >     $'return\! !a '
00:07:07 verbose #6873 > >
00:07:07 verbose #6874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 verbose #6875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 verbose #6876 > > │ ### return_await'                                                            │
00:07:07 verbose #6877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:07 verbose #6878 > >
00:07:07 verbose #6879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:07 verbose #6880 > > inl return_await' forall t. (a : async t) : t =
00:07:07 verbose #6881 > >     $'return\! !a '
00:07:07 verbose #6882 > >
00:07:07 verbose #6883 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:07 verbose #6884 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:07 verbose #6885 > > │ ### map                                                                      │
00:07:07 verbose #6886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:07 verbose #6887 > >
00:07:07 verbose #6888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:07 verbose #6889 > > inl map forall t u. (fn : t -> u) (a : async t) : async u =
00:07:07 verbose #6890 > >     fun () =>
00:07:07 verbose #6891 > >         inl x = a |> let'
00:07:07 verbose #6892 > >         fn x |> return
00:07:07 verbose #6893 > >     |> new_async_unit
00:07:08 verbose #6894 > >
00:07:08 verbose #6895 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:08 verbose #6896 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:08 verbose #6897 > > │ ### catch'                                                                   │
00:07:08 verbose #6898 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:08 verbose #6899 > >
00:07:08 verbose #6900 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:08 verbose #6901 > > inl catch' forall t e. (a : async t) : async (choice2' t e) =
00:07:08 verbose #6902 > >     run_target function
00:07:08 verbose #6903 > >         | Fsharp (Native) => fun () =>
00:07:08 verbose #6904 > >             a |> $'Async.Catch'
00:07:08 verbose #6905 > >         | _ => fun () => null ()
00:07:08 verbose #6906 > >
00:07:08 verbose #6907 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:08 verbose #6908 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:08 verbose #6909 > > │ ### catch                                                                    │
00:07:08 verbose #6910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:08 verbose #6911 > >
00:07:08 verbose #6912 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:08 verbose #6913 > > inl catch forall t e. (a : async t) : async (result t e) =
00:07:08 verbose #6914 > >     a
00:07:08 verbose #6915 > >     |> catch'
00:07:08 verbose #6916 > >     |> map choice2_unbox
00:07:08 verbose #6917 > >     |> map function
00:07:08 verbose #6918 > >         | C1of2 result => Ok result
00:07:08 verbose #6919 > >         | C2of2 ex => Error ex
00:07:09 verbose #6920 > >
00:07:09 verbose #6921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:09 verbose #6922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:09 verbose #6923 > > │ ### run_with_timeout_async                                                   │
00:07:09 verbose #6924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:09 verbose #6925 > >
00:07:09 verbose #6926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:09 verbose #6927 > > inl run_with_timeout_async forall t. (timeout : i32) (fn : async t) : async
00:07:09 verbose #6928 > > (option t) =
00:07:09 verbose #6929 > >     run_target function
00:07:09 verbose #6930 > >         | Fsharp (Native) => fun () =>
00:07:09 verbose #6931 > >             fun () =>
00:07:09 verbose #6932 > >                 inl child = fn |> start_child_timeout timeout |> let'
00:07:09 verbose #6933 > >                 child
00:07:09 verbose #6934 > >                 |> catch
00:07:09 verbose #6935 > >                 |> map function
00:07:09 verbose #6936 > >                     | Ok result => Some result
00:07:09 verbose #6937 > >                     | Error ex when ex |> sm'.format_debug |> sm'.contains
00:07:09 verbose #6938 > > "System.TimeoutException" =>
00:07:09 verbose #6939 > >                         trace Verbose
00:07:09 verbose #6940 > >                             fun () => $'"async.run_with_timeout_async"'
00:07:09 verbose #6941 > >                             fun () => { timeout }
00:07:09 verbose #6942 > >                         None
00:07:09 verbose #6943 > >                     | Error (ex : exn) =>
00:07:09 verbose #6944 > >                         trace Critical
00:07:09 verbose #6945 > >                             fun () => $'$"async.run_with_timeout_async**"'
00:07:09 verbose #6946 > >                             fun () => { timeout ex = ex |> sm'.format_exception
00:07:09 verbose #6947 > > }
00:07:09 verbose #6948 > >                         None
00:07:09 verbose #6949 > >                 |> return_await
00:07:09 verbose #6950 > >             |> new_async_unit
00:07:09 verbose #6951 > >         | _ => fun () => null ()
00:07:09 verbose #6952 > >
00:07:09 verbose #6953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:09 verbose #6954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:09 verbose #6955 > > │ ### run_with_timeout                                                         │
00:07:09 verbose #6956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:09 verbose #6957 > >
00:07:09 verbose #6958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:09 verbose #6959 > > inl run_with_timeout timeout fn =
00:07:09 verbose #6960 > >     fn
00:07:09 verbose #6961 > >     |> run_with_timeout_async timeout
00:07:09 verbose #6962 > >     |> run_synchronously
00:07:10 verbose #6963 > >
00:07:10 verbose #6964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:10 verbose #6965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:10 verbose #6966 > > │ ### cancellation_token                                                       │
00:07:10 verbose #6967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 verbose #6968 > >
00:07:10 verbose #6969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:10 verbose #6970 > > inl cancellation_token () : async threading.cancellation_token =
00:07:10 verbose #6971 > >     $'Async.CancellationToken'
00:07:10 verbose #6972 > >
00:07:10 verbose #6973 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:10 verbose #6974 > > inl default_cancellation_token () : threading.cancellation_token =
00:07:10 verbose #6975 > >     $'Async.DefaultCancellationToken'
00:07:11 verbose #6976 > >
00:07:11 verbose #6977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:11 verbose #6978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:11 verbose #6979 > > │ ### merge_cancellation_token_with_default_async                              │
00:07:11 verbose #6980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 verbose #6981 > >
00:07:11 verbose #6982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 verbose #6983 > > inl merge_cancellation_token_with_default_async
00:07:11 verbose #6984 > >     (token : threading.cancellation_token)
00:07:11 verbose #6985 > >     : async threading.cancellation_token
00:07:11 verbose #6986 > >     =
00:07:11 verbose #6987 > >     run_target function
00:07:11 verbose #6988 > >         | Fsharp (Native) => fun () =>
00:07:11 verbose #6989 > >             fun () =>
00:07:11 verbose #6990 > >                 inl ct = cancellation_token () |> let'
00:07:11 verbose #6991 > >                 inl dct = default_cancellation_token ()
00:07:11 verbose #6992 > >                 inl cts = threading.create_linked_token_source ;[[ ct; dct;
00:07:11 verbose #6993 > > token ]]
00:07:11 verbose #6994 > >                 cts |> threading.cancellation_source_token |> return
00:07:11 verbose #6995 > >             |> new_async_unit
00:07:11 verbose #6996 > >         | _ => fun () => null ()
00:07:11 verbose #6997 > >
00:07:11 verbose #6998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:11 verbose #6999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:11 verbose #7000 > > │ ### with_trace_level                                                         │
00:07:11 verbose #7001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 verbose #7002 > >
00:07:11 verbose #7003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 verbose #7004 > > inl with_trace_level forall t. level fn : _ t = new_async fun () =>
00:07:11 verbose #7005 > >     inl trace_state = get_trace_state_or_init None
00:07:11 verbose #7006 > >     inl old_trace_level = *trace_state.level
00:07:11 verbose #7007 > >     inl trace_level = trace_state.level
00:07:11 verbose #7008 > >     try_finally
00:07:11 verbose #7009 > >         fun () =>
00:07:11 verbose #7010 > >             trace_level <- level
00:07:11 verbose #7011 > >             fn |> return_await
00:07:11 verbose #7012 > >         fun () =>
00:07:11 verbose #7013 > >             trace_level <- old_trace_level
00:07:12 verbose #7014 > >
00:07:12 verbose #7015 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:12 verbose #7016 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:12 verbose #7017 > > │ ### value_task                                                               │
00:07:12 verbose #7018 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:12 verbose #7019 > >
00:07:12 verbose #7020 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:12 verbose #7021 > > nominal value_task = $'System.Threading.Tasks.ValueTask'
00:07:12 verbose #7022 > >
00:07:12 verbose #7023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:12 verbose #7024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:12 verbose #7025 > > │ ### value_task_as_task                                                       │
00:07:12 verbose #7026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:12 verbose #7027 > >
00:07:12 verbose #7028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:12 verbose #7029 > > inl value_task_as_task (task : value_task) : task () =
00:07:12 verbose #7030 > >     $'!task.AsTask' ()
00:07:13 verbose #7031 > >
00:07:13 verbose #7032 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #7033 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #7034 > > │ ### await_value_task_unit                                                    │
00:07:13 verbose #7035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #7036 > >
00:07:13 verbose #7037 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #7038 > > inl await_value_task_unit (task : value_task) : async () =
00:07:13 verbose #7039 > >     task |> value_task_as_task |> await_task
00:07:13 verbose #7040 > >
00:07:13 verbose #7041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #7042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #7043 > > │ ## main                                                                      │
00:07:13 verbose #7044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #7045 > >
00:07:13 verbose #7046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #7047 > > inl main () =
00:07:13 verbose #7048 > >     $'let merge_cancellation_token_with_default_async x =
00:07:13 verbose #7049 > > !merge_cancellation_token_with_default_async x' : ()
00:07:15 verbose #7050 > 00:00:41 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 41785 }
00:07:15 verbose #7051 > 00:00:41   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:07:15 verbose #7052 >     "nbconvert",
00:07:15 verbose #7053 >     "c:/home/git/polyglot/lib/spiral/async.dib.ipynb",
00:07:15 verbose #7054 >     "--to",
00:07:15 verbose #7055 >     "html",
00:07:15 verbose #7056 >     "--HTMLExporter.theme=dark",
00:07:15 verbose #7057 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:18 verbose #7058 > 00:00:44 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/async.dib.ipynb to html
00:07:18 verbose #7059 > 00:00:44 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:18 verbose #7060 > 00:00:44 verbose #7 !   validate(nb)
00:07:21 verbose #7061 > 00:00:47 verbose #8 ! [NbConvertApp] Writing 403592 bytes to c:\home\git\polyglot\lib\spiral\async.dib.html
00:07:21 verbose #7062 > 00:00:47 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:07:21 verbose #7063 > 00:00:47   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:07:21 verbose #7064 > 00:00:47   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:07:21 verbose #7065 >     "-c",
00:07:21 verbose #7066 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:07:21 verbose #7067 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:22 verbose #7068 > 00:00:48 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:22 verbose #7069 > 00:00:48   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:22 verbose #7070 > 00:00:48   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 42485 }
00:07:22   debug #7071 runtime.execute_with_options_async / { exit_code = 0; output_length = 46850 }
00:07:22   debug #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3
00:07:22   debug #7072 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:22 verbose #7073 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "runtime.dib", "--retries", "3"])) }
00:07:22 verbose #7074 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:07:22 verbose #7075 >     "repl",
00:07:22 verbose #7076 >     "--exit-after-run",
00:07:22 verbose #7077 >     "--run",
00:07:22 verbose #7078 >     "c:/home/git/polyglot/lib/spiral/runtime.dib",
00:07:22 verbose #7079 >     "--output-path",
00:07:22 verbose #7080 >     "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb",
00:07:22 verbose #7081 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/runtime.dib" --output-path "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:25 verbose #7082 > >
00:07:25 verbose #7083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:25 verbose #7084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:25 verbose #7085 > > │ # runtime                                                                    │
00:07:25 verbose #7086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:30 verbose #7087 > >
00:07:30 verbose #7088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #7089 > > open rust
00:07:30 verbose #7090 > > open rust_operators
00:07:30 verbose #7091 > > open sm'_operators
00:07:32 verbose #7092 > >
00:07:32 verbose #7093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:32 verbose #7094 > > //// test
00:07:32 verbose #7095 > >
00:07:32 verbose #7096 > > open testing
00:07:32 verbose #7097 > > open file_system_operators
00:07:32 verbose #7098 > >
00:07:32 verbose #7099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:32 verbose #7100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:32 verbose #7101 > > │ ## runtime                                                                   │
00:07:32 verbose #7102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:32 verbose #7103 > >
00:07:32 verbose #7104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:32 verbose #7105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:32 verbose #7106 > > │ ### split_args                                                               │
00:07:32 verbose #7107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:32 verbose #7108 > >
00:07:32 verbose #7109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:32 verbose #7110 > > let split_args (args : string) : result (array_base string) string =
00:07:32 verbose #7111 > >     open parsing
00:07:32 verbose #7112 > >     inl esc = [[ '\\'; '`' ]]
00:07:32 verbose #7113 > >     inl quotes = [[ '"' ]]
00:07:32 verbose #7114 > >     inl special = esc ++ quotes
00:07:32 verbose #7115 > >     inl p_esc_char c =
00:07:32 verbose #7116 > >         p_char c >>. any_char () |>> fun c' => $'$"{!c}{!c'}"'
00:07:32 verbose #7117 > >     inl p_word = special |> none_of |>> sm'.obj_to_string
00:07:32 verbose #7118 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of |> many1_chars
00:07:32 verbose #7119 > >     inl p_text = p_word |> many1_strings
00:07:32 verbose #7120 > >     inl p_esc = esc |> listm.map p_esc_char |> choice
00:07:32 verbose #7121 > >     inl p_quoted = (p_word <|> p_esc) |> many |>> sm'.concat_list ""
00:07:32 verbose #7122 > >     inl p_quoted_all = p_quoted |> between (p_char '"') (p_char '"')
00:07:32 verbose #7123 > >     inl p_esc_root = p_esc >>% "" >>. (p_word |> many) |>> sm'.concat_list ""
00:07:32 verbose #7124 > >     inl p_content = p_plain <|> p_quoted_all <|> p_esc_root
00:07:32 verbose #7125 > >     inl p_args = spaces1 () |> sep_by p_content
00:07:32 verbose #7126 > >     args
00:07:32 verbose #7127 > >     |> parse p_args
00:07:32 verbose #7128 > >     |> resultm.map (fst >> listm'.box >> listm'.to_array')
00:07:33 verbose #7129 > >
00:07:33 verbose #7130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:33 verbose #7131 > > //// test
00:07:33 verbose #7132 > > ///! fsharp
00:07:33 verbose #7133 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:07:33 verbose #7134 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:07:33 verbose #7135 > > ///! rust
00:07:33 verbose #7136 > > ///! typescript
00:07:33 verbose #7137 > > ///! python
00:07:33 verbose #7138 > >
00:07:33 verbose #7139 > > [[
00:07:33 verbose #7140 > >     "a b c",
00:07:33 verbose #7141 > >     ;[[ "a"; "b"; "c" ]]
00:07:33 verbose #7142 > >
00:07:33 verbose #7143 > >     "e f \"g h\" i",
00:07:33 verbose #7144 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:07:33 verbose #7145 > >
00:07:33 verbose #7146 > >     "\"j k\" \"l\" \"m\"",
00:07:33 verbose #7147 > >     ;[[ "j k"; "l"; "m" ]]
00:07:33 verbose #7148 > >
00:07:33 verbose #7149 > >     "s -t \"u \`\"v\`\" w\"",
00:07:33 verbose #7150 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:07:33 verbose #7151 > >
00:07:33 verbose #7152 > >     "n -o \"p \\\"q\\\" r\"",
00:07:33 verbose #7153 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:07:33 verbose #7154 > >
00:07:33 verbose #7155 > >     "r -s \"t \\\"u\\\"\"",
00:07:33 verbose #7156 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:07:33 verbose #7157 > >
00:07:33 verbose #7158 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:07:33 verbose #7159 > > \`$d++ }}\\\""',
00:07:33 verbose #7160 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:07:33 verbose #7161 > > ]]
00:07:33 verbose #7162 > >
00:07:33 verbose #7163 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:07:33 verbose #7164 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:07:33 verbose #7165 > > ]]
00:07:33 verbose #7166 > >
00:07:33 verbose #7167 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:07:33 verbose #7168 > >     ;[[ "--l"; "''' m '''" ]]
00:07:33 verbose #7169 > >
00:07:33 verbose #7170 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:07:33 verbose #7171 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:07:33 verbose #7172 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:07:33 verbose #7173 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:07:33 verbose #7174 > >
00:07:33 verbose #7175 > >     $'\@$"l ""m n:\\o.p"""',
00:07:33 verbose #7176 > >     ;[[ "l"; "m n:\\o.p" ]]
00:07:33 verbose #7177 > > ]]
00:07:33 verbose #7178 > > |> _assert_fn split_args
00:07:46 verbose #7179 > >
00:07:46 verbose #7180 > > ╭─[ 13.10s - return value ]────────────────────────────────────────────────────╮
00:07:46 verbose #7181 > > │                                                                              │
00:07:46 verbose #7182 > > │ .rs output:                                                                  │
00:07:46 verbose #7183 > > │                                                                              │
00:07:46 verbose #7184 > > │ 00:00:00 verbose #1 _assert_fn / { input = a b c }                     │
00:07:46 verbose #7185 > > │ __assert_eq' / actual: Array(MutCell(["a", "b", "c"])) / expected:           │
00:07:46 verbose #7186 > > │ Array(MutCell(["a", "b", "c"]))                                              │
00:07:46 verbose #7187 > > │                                                                              │
00:07:46 verbose #7188 > > │ 00:00:00 verbose #2 _assert_fn / { input = e f "g h" i }               │
00:07:46 verbose #7189 > > │ __assert_eq' / actual: Array(MutCell(["e", "f", "g h", "i"])) / expected:    │
00:07:46 verbose #7190 > > │ Array(MutCell(["e", "f", "g h", "i"]))                                       │
00:07:46 verbose #7191 > > │                                                                              │
00:07:46 verbose #7192 > > │ 00:00:00 verbose #3 _assert_fn / { input = "j k" "l" "m" }             │
00:07:46 verbose #7193 > > │ __assert_eq' / actual: Array(MutCell(["j k", "l", "m"])) / expected:         │
00:07:46 verbose #7194 > > │ Array(MutCell(["j k", "l", "m"]))                                            │
00:07:46 verbose #7195 > > │                                                                              │
00:07:46 verbose #7196 > > │ 00:00:00 verbose #4 _assert_fn / { input = s -t "u `"v`" w" }          │
00:07:46 verbose #7197 > > │ __assert_eq' / actual: Array(MutCell(["s", "-t", "u `"v`" w"])) / expected:  │
00:07:46 verbose #7198 > > │ Array(MutCell(["s", "-t", "u `"v`" w"]))                                     │
00:07:46 verbose #7199 > > │                                                                              │
00:07:46 verbose #7200 > > │ 00:00:00 verbose #5 _assert_fn / { input = n -o "p \"q\" r" }          │
00:07:46 verbose #7201 > > │ __assert_eq' / actual: Array(MutCell(["n", "-o", "p \"q\" r"])) / expected:  │
00:07:46 verbose #7202 > > │ Array(MutCell(["n", "-o", "p \"q\" r"]))                                     │
00:07:46 verbose #7203 > > │                                                                              │
00:07:46 verbose #7204 > > │ 00:00:00 verbose #6 _assert_fn / { input = r -s "t \"u\"" }            │
00:07:46 verbose #7205 > > │ __assert_eq' / actual: Array(MutCell(["r", "-s", "t \"u\""])) / expected:    │
00:07:46 verbose #7206 > > │ Array(MutCell(["r", "-s", "t \"u\""]))                                       │
00:07:46 verbose #7207 > > │                                                                              │
00:07:46 verbose #7208 > > │ 00:00:00 verbose #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[   │
00:07:46 verbose #7209 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:07:46 verbose #7210 > > │ __assert_eq' / actual: Array(MutCell(["x", "-y", "$z -a '(b=\"c-id=)[        │
00:07:46 verbose #7211 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"])) / expected: Array(MutCell(["x", "-y", │
00:07:46 verbose #7212 > > │ "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"]))                   │
00:07:46 verbose #7213 > > │                                                                              │
00:07:46 verbose #7214 > > │ 00:00:00 verbose #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[   │
00:07:46 verbose #7215 > > │ a-fA-F...__assert_eq' / actual: ['n', '-o', 'p \\"q\\" r'] / expected: ['n', │
00:07:46 verbose #7216 > > │ '-o', 'p \\"q\\" r']                                                         │
00:07:46 verbose #7217 > > │                                                                              │
00:07:46 verbose #7218 > > │ 00:00:00 verbose #6 _assert_fn / { input = r -s "t \"u\"" }             │
00:07:46 verbose #7219 > > │ __assert_eq' / actual: ['r', '-s', 't \\"u\\"'] / expected: ['r', '-s', 't   │
00:07:46 verbose #7220 > > │ \\"u\\"']                                                                    │
00:07:46 verbose #7221 > > │                                                                              │
00:07:46 verbose #7222 > > │ 00:00:00 verbose #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[    │
00:07:46 verbose #7223 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:07:46 verbose #7224 > > │ __assert_eq' / actual: ['x', '-y', '$z -a \'(b=\\"c-id=)[a-fA-F0-9]{8}\', {  │
00:07:46 verbose #7225 > > │ `$_[1] + `$d++ }'] / expected: ['x', '-y', '$z -a \'(b=\\"c-id=)[            │
00:07:46 verbose #7226 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$d++ }']                                        │
00:07:46 verbose #7227 > > │                                                                              │
00:07:46 verbose #7228 > > │ 00:00:00 verbose #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[    │
00:07:46 verbose #7229 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                                        │
00:07:46 verbose #7230 > > │ __assert_eq' / actual: ['e', '-f', '$g -h \'(i=`"j-id=)[a-fA-F0-9]{8}\', {   │
00:07:46 verbose #7231 > > │ `$_[1] + `$k++ }'] / expected: ['e', '-f', '$g -h \'(i=`"j-id=)[             │
00:07:46 verbose #7232 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$k++ }']                                        │
00:07:46 verbose #7233 > > │                                                                              │
00:07:46 verbose #7234 > > │ 00:00:00 verbose #9 _assert_fn / { input = --l \"''' m '''\"  }         │
00:07:46 verbose #7235 > > │ __assert_eq' / actual: ['--l', "''' m '''"] / expected: ['--l', "''' m '''"] │
00:07:46 verbose #7236 > > │                                                                              │
00:07:46 verbose #7237 > > │ 00:00:00 verbose #10 _assert_fn / { input = n --o --p q --r "s:/t       │
00:07:46 verbose #7238 > > │ u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                          │
00:07:46 verbose #7239 > > │ __assert_eq' / actual: ['n', '--o', '--p', 'q', '--r', 's:/t u/v.w', '--x',  │
00:07:46 verbose #7240 > > │ 'y:/z.a', '--b', 'c.d', '\\e{f-g}', 'h.i', 'j (k)'] / expected: ['n', '--o', │
00:07:46 verbose #7241 > > │ '--p', 'q', '--r', 's:/t u/v.w', '--x', 'y:/z.a', '--b', 'c.d', '\\e{f-g}',  │
00:07:46 verbose #7242 > > │ 'h.i', 'j (k)']                                                              │
00:07:46 verbose #7243 > > │                                                                              │
00:07:46 verbose #7244 > > │ 00:00:00 verbose #11 _assert_fn / { input = l "m n:\o.p" }              │
00:07:46 verbose #7245 > > │ __assert_eq' / actual: ['l', 'm n:\\o.p'] / expected: ['l', 'm n:\\o.p']     │
00:07:46 verbose #7246 > > │                                                                              │
00:07:46 verbose #7247 > > │                                                                              │
00:07:46 verbose #7248 > > │                                                                              │
00:07:46 verbose #7249 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:46 verbose #7250 > >
00:07:46 verbose #7251 > > ╭─[ 13.15s - stdout ]──────────────────────────────────────────────────────────╮
00:07:46 verbose #7252 > > │ .fsx output:                                                                 │
00:07:46 verbose #7253 > > │                                                                              │
00:07:46 verbose #7254 > > │ 00:00:00 verbose #1 _assert_fn / { input = a b c }                      │
00:07:46 verbose #7255 > > │ __assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]       │
00:07:46 verbose #7256 > > │                                                                              │
00:07:46 verbose #7257 > > │ 00:00:00 verbose #2 _assert_fn / { input = e f "g h" i }                │
00:07:46 verbose #7258 > > │ __assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g   │
00:07:46 verbose #7259 > > │ h"; "i"|]                                                                    │
00:07:46 verbose #7260 > > │                                                                              │
00:07:46 verbose #7261 > > │ 00:00:00 verbose #3 _assert_fn / { input = "j k" "l" "m" }              │
00:07:46 verbose #7262 > > │ __assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]   │
00:07:46 verbose #7263 > > │                                                                              │
00:07:46 verbose #7264 > > │ 00:00:00 verbose #4 _assert_fn / { input = s -t "u `"v`" w" }           │
00:07:46 verbose #7265 > > │ __assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t";   │
00:07:46 verbose #7266 > > │ "u `"v`" w"|]                                                                │
00:07:46 verbose #7267 > > │                                                                              │
00:07:46 verbose #7268 > > │ 00:00:00 verbose #5 _assert_fn / { input = n -o "p \"q\" r" }           │
00:07:46 verbose #7269 > > │ __assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o";   │
00:07:46 verbose #7270 > > │ "p \"q\" r"|]                                                                │
00:07:46 verbose #7271 > > │                                                                              │
00:07:46 verbose #7272 > > │ 00:00:00 verbose #6 _assert_fn / { input = r -s "t \"u\"" }             │
00:07:46 verbose #7273 > > │ __assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t  │
00:07:46 verbose #7274 > > │ \"u\""|]                                                                     │
00:07:46 verbose #7275 > > │                                                                              │
00:07:46 verbose #7276 > > │ 00:00:00 verbose #7 _assert_fn / { input = x -y "$z -a '(b=\"c-id=)[    │
00:07:46 verbose #7277 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                                        │
00:07:46 verbose #7278 > > │ __assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', {    │
00:07:46 verbose #7279 > > │ `$_[1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[            │
00:07:46 verbose #7280 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"|]                                        │
00:07:46 verbose #7281 > > │                                                                              │
00:07:46 verbose #7282 > > │ 00:00:00 verbose #8 _assert_fn / { input = e -f "$g -h '(i=`"j-id=)[    │
00:07:46 verbose #7283 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                                        │
00:07:46 verbose #7284 > > │ __assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', {    │
00:07:46 verbose #7285 > > │ `$_[1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[            │
00:07:46 verbose #7286 > > │ a-fA-F0-9]{8}', { `$_[1] + `$k++ }"|]                                        │
00:07:46 verbose #7287 > > │                                                                              │
00:07:46 verbose #7288 > > │ 00:00:00 verbose #9 _assert_fn / { input = --l \"''' m '''\"  }         │
00:07:46 verbose #7289 > > │ __assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m    │
00:07:46 verbose #7290 > > │ '''"|]                                                                       │
00:07:46 verbose #7291 > > │                                                                              │
00:07:46 verbose #7292 > > │ 00:00:00 verbose #10 _assert_fn / { input = n --o --p q --r "s:/t       │
00:07:46 verbose #7293 > > │ u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                          │
00:07:46 verbose #7294 > > │ __assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; │
00:07:46 verbose #7295 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:07:46 verbose #7296 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:07:46 verbose #7297 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:07:46 verbose #7298 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:07:46 verbose #7299 > > │                                                                              │
00:07:46 verbose #7300 > > │ 00:00:00 verbose #11 _assert_fn / { input = l "m n:\o.p" }              │
00:07:46 verbose #7301 > > │ __assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]   │
00:07:46 verbose #7302 > > │                                                                              │
00:07:46 verbose #7303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:46 verbose #7304 > >
00:07:46 verbose #7305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:46 verbose #7306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:46 verbose #7307 > > │ ### split_command                                                            │
00:07:46 verbose #7308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:46 verbose #7309 > >
00:07:46 verbose #7310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:46 verbose #7311 > > let split_command (command : string) : result (string * option string) string =
00:07:46 verbose #7312 > >     open parsing
00:07:46 verbose #7313 > >     inl quotes = [[ '"'; '\'' ]]
00:07:46 verbose #7314 > >     inl p_quoted_char = quotes |> listm.map p_char |> choice
00:07:46 verbose #7315 > >     inl normalize = function '\\' => '/' | c => c
00:07:46 verbose #7316 > >     inl p_quoted = quotes |> none_of |>> normalize |> many_chars |> between
00:07:46 verbose #7317 > > p_quoted_char p_quoted_char
00:07:46 verbose #7318 > >     inl p_unquoted = quotes ++ [[ ' ' ]] |> none_of |>> normalize |> many1_chars
00:07:46 verbose #7319 > >     inl p_path = p_quoted <|> p_unquoted <|> eof () >>% "" .>> spaces ()
00:07:46 verbose #7320 > >     inl p_args = p_char ' ' |> opt >>. (any_char () |> many1_chars)
00:07:46 verbose #7321 > >     inl p_command = p_path .>>. (p_args |> opt)
00:07:46 verbose #7322 > >     command
00:07:46 verbose #7323 > >     |> parse p_command
00:07:46 verbose #7324 > >     |> resultm.map fst
00:07:46 verbose #7325 > >
00:07:46 verbose #7326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:46 verbose #7327 > > //// test
00:07:46 verbose #7328 > > ///! fsharp
00:07:46 verbose #7329 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:07:46 verbose #7330 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:07:46 verbose #7331 > > ///! rust
00:07:46 verbose #7332 > > ///! typescript
00:07:46 verbose #7333 > > ///! python
00:07:46 verbose #7334 > >
00:07:46 verbose #7335 > > [[
00:07:46 verbose #7336 > >     "",
00:07:46 verbose #7337 > >     ("", None)
00:07:46 verbose #7338 > >
00:07:46 verbose #7339 > >     "/a/b/c",
00:07:46 verbose #7340 > >     ("/a/b/c", None)
00:07:46 verbose #7341 > >
00:07:46 verbose #7342 > >     "d e.f",
00:07:46 verbose #7343 > >     ("d", Some "e.f")
00:07:46 verbose #7344 > >
00:07:46 verbose #7345 > >     $'"""..\\..\\g.h i.j k.l"""',
00:07:46 verbose #7346 > >     ("../../g.h", Some "i.j k.l")
00:07:46 verbose #7347 > >
00:07:46 verbose #7348 > >     $'\@"m:\\n\\o.p ""q.r s.t"""',
00:07:46 verbose #7349 > >     ("m:/n/o.p", Some $'\@"""q.r s.t"""')
00:07:46 verbose #7350 > >
00:07:46 verbose #7351 > >     $'\@"""..\\..\\u v\\w.x"" ""y z.a"" b.c"',
00:07:46 verbose #7352 > >     ("../../u v/w.x", Some $'\@"""y z.a"" b.c"')
00:07:46 verbose #7353 > >
00:07:46 verbose #7354 > >     $'\@"""..\\..\\d e.f"" -g \\\\""h i\\\\"""',
00:07:46 verbose #7355 > >     ("../../d e.f", Some $'\@"-g \\\\""h i\\\\"""')
00:07:46 verbose #7356 > >
00:07:46 verbose #7357 > >     $'\@"..\\..\\j k.l -m \\\\""n o\\\\"""',
00:07:46 verbose #7358 > >     ("../../j", Some $'\@"k.l -m \\\\""n o\\\\"""')
00:07:46 verbose #7359 > > ]]
00:07:46 verbose #7360 > > |> _assert_fn split_command
00:07:57 verbose #7361 > >
00:07:57 verbose #7362 > > ╭─[ 10.74s - return value ]────────────────────────────────────────────────────╮
00:07:57 verbose #7363 > > │                                                                              │
00:07:57 verbose #7364 > > │ .rs output:                                                                  │
00:07:57 verbose #7365 > > │                                                                              │
00:07:57 verbose #7366 > > │ 00:00:00 verbose #1 _assert_fn / { input =  }                          │
00:07:57 verbose #7367 > > │ __assert_eq' / actual: ("", US1_1) / expected: ("", US1_1)                   │
00:07:57 verbose #7368 > > │                                                                              │
00:07:57 verbose #7369 > > │ 00:00:00 verbose #2 _assert_fn / { input = /a/b/c }                    │
00:07:57 verbose #7370 > > │ __assert_eq' / actual: ("/a/b/c", US1_1) / expected: ("/a/b/c", US1_1)       │
00:07:57 verbose #7371 > > │                                                                              │
00:07:57 verbose #7372 > > │ 00:00:00 verbose #3 _assert_fn / { input = d e.f }                     │
00:07:57 verbose #7373 > > │ __assert_eq' / actual: ("d", US1_0("e.f")) / expected: ("d", US1_0("e.f"))   │
00:07:57 verbose #7374 > > │                                                                              │
00:07:57 verbose #7375 > > │ 00:00:00 verbose #4 _assert_fn / { input = ..\..\g.h i.j k.l }         │
00:07:57 verbose #7376 > > │ __assert_eq' / actual: ("../../g.h", US1_0("i.j k.l")) / expected:           │
00:07:57 verbose #7377 > > │ ("../../g.h", US1_0("i.j k.l"))                                              │
00:07:57 verbose #7378 > > │                                                                              │
00:07:57 verbose #7379 > > │ 00:00:00 verbose #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }        │
00:07:57 verbose #7380 > > │ __assert_eq' / actual: ("m:/n/o.p", US1_0(""q.r s.t"")) / expected:          │
00:07:57 verbose #7381 > > │ ("m:/n/o.p", US1_0(""q.r s.t""))                                             │
00:07:57 verbose #7382 > > │                                                                              │
00:07:57 verbose #7383 > > │ 00:00:00 verbose #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c │
00:07:57 verbose #7384 > > │ }                                                                            │
00:07:57 verbose #7385 > > │ __assert_eq' / actual: ("../../u v/w.x", US1_0(""y z.a" b.c")) / expected:   │
00:07:57 verbose #7386 > > │ ("../../u v/w.x", US1_0(""y z.a" b.c"))                                      │
00:07:57 verbose #7387 > > │                                                                              │
00:07:57 verbose #7388 > > │ 00:00:00 verbose #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\"  │
00:07:57 verbose #7389 > > │ }                                                                            │
00:07:57 verbose #7390 > > │ __assert_eq' / actual: ("../../d e.f", US1_0("-g \\"h i\\"")) / expected:    │
00:07:57 verbose #7391 > > │ ("../../d e.f", US1_0("-g \\"h i\\""))                                       │
00:07:57 verbose #7392 > > │                                                                              │
00:07:57 verbose #7393 > > │ 00:00:00 verbose #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }  │
00:07:57 verbose #7394 > > │ __assert_eq' / actual: ("../../j", US1_0("k.l -m \\"n o\\"")) / expected:    │
00:07:57 verbose #7395 > > │ ("../../j", US1_0("k.l -m \\"n o\\""))                                       │
00:07:57 verbose #7396 > > │                                                                              │
00:07:57 verbose #7397 > > │                                                                              │
00:07:57 verbose #7398 > > │ .ts output:                                                                  │
00:07:57 verbose #7399 > > │                                                                              │
00:07:57 verbose #7400 > > │ 00:00:00 verbose #1 _assert_fn / { input =  }                           │
00:07:57 verbose #7401 > > │ __assert_eq' / actual: ,US1_1 / expected: ,US1_1                             │
00:07:57 verbose #7402 > > │                                                                              │
00:07:57 verbose #7403 > > │ 00:00:00 verbose #2 _assert_fn /... #8 _assert_fn / { input = ..\..\j │
00:07:57 verbose #7404 > > │ k.l -m \\"n o\\" }                                                           │
00:07:57 verbose #7405 > > │ __assert_eq' / actual: ../../j,US1_0 (k.l -m \\"n o\\") / expected:          │
00:07:57 verbose #7406 > > │ ../../j,US1_0 (k.l -m \\"n o\\")                                             │
00:07:57 verbose #7407 > > │                                                                              │
00:07:57 verbose #7408 > > │                                                                              │
00:07:57 verbose #7409 > > │ .py output:                                                                  │
00:07:57 verbose #7410 > > │                                                                              │
00:07:57 verbose #7411 > > │ 00:00:00 verbose #1 _assert_fn / { input =  }                           │
00:07:57 verbose #7412 > > │ __assert_eq' / actual: ('', US1_1) / expected: ('', US1_1)                   │
00:07:57 verbose #7413 > > │                                                                              │
00:07:57 verbose #7414 > > │ 00:00:00 verbose #2 _assert_fn / { input = /a/b/c }                     │
00:07:57 verbose #7415 > > │ __assert_eq' / actual: ('/a/b/c', US1_1) / expected: ('/a/b/c', US1_1)       │
00:07:57 verbose #7416 > > │                                                                              │
00:07:57 verbose #7417 > > │ 00:00:00 verbose #3 _assert_fn / { input = d e.f }                      │
00:07:57 verbose #7418 > > │ __assert_eq' / actual: ('d', US1_0 "e.f") / expected: ('d', US1_0 "e.f")     │
00:07:57 verbose #7419 > > │                                                                              │
00:07:57 verbose #7420 > > │ 00:00:00 verbose #4 _assert_fn / { input = ..\..\g.h i.j k.l }          │
00:07:57 verbose #7421 > > │ __assert_eq' / actual: ('../../g.h', US1_0 ("i.j k.l")) / expected:          │
00:07:57 verbose #7422 > > │ ('../../g.h', US1_0 ("i.j k.l"))                                             │
00:07:57 verbose #7423 > > │                                                                              │
00:07:57 verbose #7424 > > │ 00:00:00 verbose #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }         │
00:07:57 verbose #7425 > > │ __assert_eq' / actual: ('m:/n/o.p', US1_0 (""q.r s.t"")) / expected:         │
00:07:57 verbose #7426 > > │ ('m:/n/o.p', US1_0 (""q.r s.t""))                                            │
00:07:57 verbose #7427 > > │                                                                              │
00:07:57 verbose #7428 > > │ 00:00:00 verbose #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c  │
00:07:57 verbose #7429 > > │ }                                                                            │
00:07:57 verbose #7430 > > │ __assert_eq' / actual: ('../../u v/w.x', US1_0 (""y z.a" b.c")) / expected:  │
00:07:57 verbose #7431 > > │ ('../../u v/w.x', US1_0 (""y z.a" b.c"))                                     │
00:07:57 verbose #7432 > > │                                                                              │
00:07:57 verbose #7433 > > │ 00:00:00 verbose #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\" } │
00:07:57 verbose #7434 > > │ __assert_eq' / actual: ('../../d e.f', US1_0 ("-g \\"h i\\"")) / expected:   │
00:07:57 verbose #7435 > > │ ('../../d e.f', US1_0 ("-g \\"h i\\""))                                      │
00:07:57 verbose #7436 > > │                                                                              │
00:07:57 verbose #7437 > > │ 00:00:00 verbose #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }   │
00:07:57 verbose #7438 > > │ __assert_eq' / actual: ('../../j', US1_0 ("k.l -m \\"n o\\"")) / expected:   │
00:07:57 verbose #7439 > > │ ('../../j', US1_0 ("k.l -m \\"n o\\""))                                      │
00:07:57 verbose #7440 > > │                                                                              │
00:07:57 verbose #7441 > > │                                                                              │
00:07:57 verbose #7442 > > │                                                                              │
00:07:57 verbose #7443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 verbose #7444 > >
00:07:57 verbose #7445 > > ╭─[ 10.75s - stdout ]──────────────────────────────────────────────────────────╮
00:07:57 verbose #7446 > > │ .fsx output:                                                                 │
00:07:57 verbose #7447 > > │                                                                              │
00:07:57 verbose #7448 > > │ 00:00:00 verbose #1 _assert_fn / { input =  }                           │
00:07:57 verbose #7449 > > │ __assert_eq' / actual: struct ("", US1_1) / expected: struct ("", US1_1)     │
00:07:57 verbose #7450 > > │                                                                              │
00:07:57 verbose #7451 > > │ 00:00:00 verbose #2 _assert_fn / { input = /a/b/c }                     │
00:07:57 verbose #7452 > > │ __assert_eq' / actual: struct ("/a/b/c", US1_1) / expected: struct           │
00:07:57 verbose #7453 > > │ ("/a/b/c", US1_1)                                                            │
00:07:57 verbose #7454 > > │                                                                              │
00:07:57 verbose #7455 > > │ 00:00:00 verbose #3 _assert_fn / { input = d e.f }                      │
00:07:57 verbose #7456 > > │ __assert_eq' / actual: struct ("d", US1_0 "e.f") / expected: struct ("d",    │
00:07:57 verbose #7457 > > │ US1_0 "e.f")                                                                 │
00:07:57 verbose #7458 > > │                                                                              │
00:07:57 verbose #7459 > > │ 00:00:00 verbose #4 _assert_fn / { input = ..\..\g.h i.j k.l }          │
00:07:57 verbose #7460 > > │ __assert_eq' / actual: struct ("../../g.h", US1_0 "i.j k.l") / expected:     │
00:07:57 verbose #7461 > > │ struct ("../../g.h", US1_0 "i.j k.l")                                        │
00:07:57 verbose #7462 > > │                                                                              │
00:07:57 verbose #7463 > > │ 00:00:00 verbose #5 _assert_fn / { input = m:\n\o.p "q.r s.t" }         │
00:07:57 verbose #7464 > > │ __assert_eq' / actual: struct ("m:/n/o.p", US1_0 ""q.r s.t"") / expected:    │
00:07:57 verbose #7465 > > │ struct ("m:/n/o.p", US1_0 ""q.r s.t"")                                       │
00:07:57 verbose #7466 > > │                                                                              │
00:07:57 verbose #7467 > > │ 00:00:00 verbose #6 _assert_fn / { input = "..\..\u v\w.x" "y z.a" b.c  │
00:07:57 verbose #7468 > > │ }                                                                            │
00:07:57 verbose #7469 > > │ __assert_eq' / actual: struct ("../../u v/w.x", US1_0 ""y z.a" b.c") /       │
00:07:57 verbose #7470 > > │ expected: struct ("../../u v/w.x", US1_0 ""y z.a" b.c")                      │
00:07:57 verbose #7471 > > │                                                                              │
00:07:57 verbose #7472 > > │ 00:00:00 verbose #7 _assert_fn / { input = "..\..\d e.f" -g \\"h i\\" } │
00:07:57 verbose #7473 > > │ __assert_eq' / actual: struct ("../../d e.f", US1_0 "-g \\"h i\\"") /        │
00:07:57 verbose #7474 > > │ expected: struct ("../../d e.f", US1_0 "-g \\"h i\\"")                       │
00:07:57 verbose #7475 > > │                                                                              │
00:07:57 verbose #7476 > > │ 00:00:00 verbose #8 _assert_fn / { input = ..\..\j k.l -m \\"n o\\" }   │
00:07:57 verbose #7477 > > │ __assert_eq' / actual: struct ("../../j", US1_0 "k.l -m \\"n o\\"") /        │
00:07:57 verbose #7478 > > │ expected: struct ("../../j", US1_0 "k.l -m \\"n o\\"")                       │
00:07:57 verbose #7479 > > │                                                                              │
00:07:57 verbose #7480 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 verbose #7481 > >
00:07:57 verbose #7482 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:57 verbose #7483 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:57 verbose #7484 > > │ ### execution_line                                                           │
00:07:57 verbose #7485 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 verbose #7486 > >
00:07:57 verbose #7487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:57 verbose #7488 > > type execution_line =
00:07:57 verbose #7489 > >     {
00:07:57 verbose #7490 > >         process_id : int
00:07:57 verbose #7491 > >         line : string
00:07:57 verbose #7492 > >         error : bool
00:07:57 verbose #7493 > >     }
00:07:57 verbose #7494 > >
00:07:57 verbose #7495 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:57 verbose #7496 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:57 verbose #7497 > > │ ## rust                                                                      │
00:07:57 verbose #7498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 verbose #7499 > >
00:07:57 verbose #7500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:57 verbose #7501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:57 verbose #7502 > > │ ### process_child                                                            │
00:07:57 verbose #7503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:57 verbose #7504 > >
00:07:57 verbose #7505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:57 verbose #7506 > > nominal process_child =
00:07:57 verbose #7507 > >     `(
00:07:57 verbose #7508 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:57 verbose #7509 > > Fable.Core.Emit(\"std::process::Child\")>]]\n#endif\ntype std_process_Child =
00:07:57 verbose #7510 > > class end"
00:07:57 verbose #7511 > >         $'' : $'std_process_Child'
00:07:57 verbose #7512 > >     )
00:07:58 verbose #7513 > >
00:07:58 verbose #7514 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 verbose #7515 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 verbose #7516 > > │ ### process_child_stdin                                                      │
00:07:58 verbose #7517 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 verbose #7518 > >
00:07:58 verbose #7519 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 verbose #7520 > > nominal process_child_stdin =
00:07:58 verbose #7521 > >     `(
00:07:58 verbose #7522 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:58 verbose #7523 > > Fable.Core.Emit(\"std::process::ChildStdin\")>]]\n#endif\ntype
00:07:58 verbose #7524 > > std_process_ChildStdin = class end"
00:07:58 verbose #7525 > >         $'' : $'std_process_ChildStdin'
00:07:58 verbose #7526 > >     )
00:07:58 verbose #7527 > >
00:07:58 verbose #7528 > > inl process_child_stdin
00:07:58 verbose #7529 > >     (child : rust.ref (rust.mut' process_child))
00:07:58 verbose #7530 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdin))
00:07:58 verbose #7531 > >     =
00:07:58 verbose #7532 > >     !\\(child, $'"&mut $0.stdin"')
00:07:58 verbose #7533 > >
00:07:58 verbose #7534 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 verbose #7535 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 verbose #7536 > > │ ## runtime                                                                   │
00:07:58 verbose #7537 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 verbose #7538 > >
00:07:58 verbose #7539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:58 verbose #7540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:58 verbose #7541 > > │ ### execution_options                                                        │
00:07:58 verbose #7542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 verbose #7543 > >
00:07:58 verbose #7544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 verbose #7545 > > type execution_options =
00:07:58 verbose #7546 > >     {
00:07:58 verbose #7547 > >         command : string
00:07:58 verbose #7548 > >         cancellation_token : optionm'.option' threading.cancellation_token
00:07:58 verbose #7549 > >         environment_variables : array_base (string * string)
00:07:58 verbose #7550 > >         on_line : optionm'.option' (execution_line -> async.async ())
00:07:58 verbose #7551 > >         stdin : optionm'.option' (threading.arc (threading.mutex
00:07:58 verbose #7552 > > process_child_stdin) -> ())
00:07:58 verbose #7553 > >         trace : bool
00:07:58 verbose #7554 > >         working_directory : optionm'.option' string
00:07:58 verbose #7555 > >     }
00:07:58 verbose #7556 > >
00:07:58 verbose #7557 > > inl execution_options (fn : execution_options -> execution_options) :
00:07:58 verbose #7558 > > execution_options =
00:07:58 verbose #7559 > >     {
00:07:58 verbose #7560 > >         command = ""
00:07:58 verbose #7561 > >         cancellation_token = None |> optionm'.box
00:07:58 verbose #7562 > >         environment_variables = ;[[]]
00:07:58 verbose #7563 > >         on_line = None |> optionm'.box
00:07:58 verbose #7564 > >         stdin = None |> optionm'.box
00:07:58 verbose #7565 > >         trace = true
00:07:58 verbose #7566 > >         working_directory = None |> optionm'.box
00:07:58 verbose #7567 > >     }
00:07:58 verbose #7568 > >     |> fn
00:07:59 verbose #7569 > >
00:07:59 verbose #7570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:59 verbose #7571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:59 verbose #7572 > > │ ## rust                                                                      │
00:07:59 verbose #7573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:59 verbose #7574 > >
00:07:59 verbose #7575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:59 verbose #7576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:59 verbose #7577 > > │ ### process_child_stderr                                                     │
00:07:59 verbose #7578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:59 verbose #7579 > >
00:07:59 verbose #7580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:59 verbose #7581 > > nominal process_child_stderr =
00:07:59 verbose #7582 > >     `(
00:07:59 verbose #7583 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:59 verbose #7584 > > Fable.Core.Emit(\"std::process::ChildStderr\")>]]\n#endif\ntype
00:07:59 verbose #7585 > > std_process_ChildStderr = class end"
00:07:59 verbose #7586 > >         $'' : $'std_process_ChildStderr'
00:07:59 verbose #7587 > >     )
00:07:59 verbose #7588 > >
00:07:59 verbose #7589 > > inl process_child_stderr
00:07:59 verbose #7590 > >     (child : rust.ref (rust.mut' process_child))
00:07:59 verbose #7591 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stderr))
00:07:59 verbose #7592 > >     =
00:07:59 verbose #7593 > >     !\($'"&mut !child.stderr"')
00:07:59 verbose #7594 > >
00:07:59 verbose #7595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:59 verbose #7596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:59 verbose #7597 > > │ ### process_child_stdout                                                     │
00:07:59 verbose #7598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:59 verbose #7599 > >
00:07:59 verbose #7600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:59 verbose #7601 > > nominal process_child_stdout =
00:07:59 verbose #7602 > >     `(
00:07:59 verbose #7603 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:07:59 verbose #7604 > > Fable.Core.Emit(\"std::process::ChildStdout\")>]]\n#endif\ntype
00:07:59 verbose #7605 > > std_process_ChildStdout = class end"
00:07:59 verbose #7606 > >         $'' : $'std_process_ChildStdout'
00:07:59 verbose #7607 > >     )
00:07:59 verbose #7608 > >
00:07:59 verbose #7609 > > inl process_child_stdout
00:07:59 verbose #7610 > >     (child : rust.ref (rust.mut' process_child))
00:07:59 verbose #7611 > >     : rust.ref (rust.mut' (optionm'.option' process_child_stdout))
00:07:59 verbose #7612 > >     =
00:07:59 verbose #7613 > >     !\($'"&mut !child.stdout"')
00:08:00 verbose #7614 > >
00:08:00 verbose #7615 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 verbose #7616 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 verbose #7617 > > │ ### process_command                                                          │
00:08:00 verbose #7618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 verbose #7619 > >
00:08:00 verbose #7620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 verbose #7621 > > nominal process_command =
00:08:00 verbose #7622 > >     `(
00:08:00 verbose #7623 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:00 verbose #7624 > > Fable.Core.Emit(\"std::process::Command\")>]]\n#endif\ntype std_process_Command
00:08:00 verbose #7625 > > = class end"
00:08:00 verbose #7626 > >         $'' : $'std_process_Command'
00:08:00 verbose #7627 > >     )
00:08:00 verbose #7628 > >
00:08:00 verbose #7629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 verbose #7630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 verbose #7631 > > │ ### process_stdio                                                            │
00:08:00 verbose #7632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 verbose #7633 > >
00:08:00 verbose #7634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 verbose #7635 > > nominal process_stdio =
00:08:00 verbose #7636 > >     `(
00:08:00 verbose #7637 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:00 verbose #7638 > > Fable.Core.Emit(\"std::process::Stdio\")>]]\n#endif\ntype std_process_Stdio =
00:08:00 verbose #7639 > > class end"
00:08:00 verbose #7640 > >         $'' : $'std_process_Stdio'
00:08:00 verbose #7641 > >     )
00:08:01 verbose #7642 > >
00:08:01 verbose #7643 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #7644 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #7645 > > │ ### process_output                                                           │
00:08:01 verbose #7646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #7647 > >
00:08:01 verbose #7648 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #7649 > > nominal process_output =
00:08:01 verbose #7650 > >     `(
00:08:01 verbose #7651 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:01 verbose #7652 > > Fable.Core.Emit(\"std::process::Output\")>]]\n#endif\ntype std_process_Output =
00:08:01 verbose #7653 > > class end"
00:08:01 verbose #7654 > >         $'' : $'std_process_Output'
00:08:01 verbose #7655 > >     )
00:08:01 verbose #7656 > >
00:08:01 verbose #7657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #7658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #7659 > > │ ### process_exit_status                                                      │
00:08:01 verbose #7660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #7661 > >
00:08:01 verbose #7662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #7663 > > nominal process_exit_status =
00:08:01 verbose #7664 > >     `(
00:08:01 verbose #7665 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:01 verbose #7666 > > Fable.Core.Emit(\"std::process::ExitStatus\")>]]\n#endif\ntype
00:08:01 verbose #7667 > > std_process_ExitStatus = class end"
00:08:01 verbose #7668 > >         $'' : $'std_process_ExitStatus'
00:08:01 verbose #7669 > >     )
00:08:01 verbose #7670 > >
00:08:01 verbose #7671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #7672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #7673 > > │ ### process_output_status                                                    │
00:08:01 verbose #7674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #7675 > >
00:08:01 verbose #7676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #7677 > > inl process_output_status (output : process_output) : process_exit_status =
00:08:01 verbose #7678 > >     !\\(output, $'"$0.status"')
00:08:02 verbose #7679 > >
00:08:02 verbose #7680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #7681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #7682 > > │ ### process_exit_status_code                                                 │
00:08:02 verbose #7683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #7684 > >
00:08:02 verbose #7685 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #7686 > > inl process_exit_status_code (status : process_exit_status) : optionm'.option'
00:08:02 verbose #7687 > > i32 =
00:08:02 verbose #7688 > >     !\\(status, $'"$0.code()"')
00:08:02 verbose #7689 > >
00:08:02 verbose #7690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #7691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #7692 > > │ ### stdin_write_all                                                          │
00:08:02 verbose #7693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #7694 > >
00:08:02 verbose #7695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #7696 > > inl stdin_write_all (stdin : threading.mutex_guard process_child_stdin) (text :
00:08:02 verbose #7697 > > string) : () =
00:08:02 verbose #7698 > >     inl stream = text |> sm'.as_bytes
00:08:02 verbose #7699 > >     inl stdin = join stdin
00:08:02 verbose #7700 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:08:02 verbose #7701 > >     (!\\(stdin, $'"true; std::io::Write::write_all(&mut *$0,
00:08:02 verbose #7702 > > !stream).unwrap()"') : bool) |> ignore
00:08:03 verbose #7703 > >
00:08:03 verbose #7704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:03 verbose #7705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:03 verbose #7706 > > │ ### stdin_flush                                                              │
00:08:03 verbose #7707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:03 verbose #7708 > >
00:08:03 verbose #7709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:03 verbose #7710 > > inl stdin_flush (stdin : threading.mutex_guard process_child_stdin) : () =
00:08:03 verbose #7711 > >     inl stdin = join stdin
00:08:03 verbose #7712 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:08:03 verbose #7713 > >     (!\\(stdin, $'"true; std::io::Write::flush(&mut *$0).unwrap()"') : bool) |>
00:08:03 verbose #7714 > > ignore
00:08:03 verbose #7715 > >
00:08:03 verbose #7716 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:03 verbose #7717 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:03 verbose #7718 > > │ ### new_process_command                                                      │
00:08:03 verbose #7719 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:03 verbose #7720 > >
00:08:03 verbose #7721 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:03 verbose #7722 > > inl new_process_command (file_name : string) : process_command =
00:08:03 verbose #7723 > >     !\\(file_name, $'"std::process::Command::new(&*$0)"')
00:08:04 verbose #7724 > >
00:08:04 verbose #7725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:04 verbose #7726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:04 verbose #7727 > > │ ### process_stdio_piped                                                      │
00:08:04 verbose #7728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:04 verbose #7729 > >
00:08:04 verbose #7730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:04 verbose #7731 > > inl process_stdio_piped () : process_stdio =
00:08:04 verbose #7732 > >     !\($'"std::process::Stdio::piped()"')
00:08:04 verbose #7733 > >
00:08:04 verbose #7734 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:04 verbose #7735 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:04 verbose #7736 > > │ ### process_command_args                                                     │
00:08:04 verbose #7737 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:04 verbose #7738 > >
00:08:04 verbose #7739 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:04 verbose #7740 > > inl process_command_args (args : am'.vec sm'.std_string) (c : process_command) :
00:08:04 verbose #7741 > > rust.ref (rust.mut' process_command) =
00:08:04 verbose #7742 > >     (!\($'"true; let mut !c = !c"') : bool) |> ignore
00:08:04 verbose #7743 > >     !\\((c, args), $'"std::process::Command::args(&mut $0, &*$1)"')
00:08:04 verbose #7744 > >
00:08:04 verbose #7745 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:04 verbose #7746 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:04 verbose #7747 > > │ ### process_command_stdout                                                   │
00:08:04 verbose #7748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:04 verbose #7749 > >
00:08:04 verbose #7750 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:04 verbose #7751 > > inl process_command_stdout (stdio : process_stdio) (c : rust.ref (rust.mut'
00:08:04 verbose #7752 > > process_command)) : rust.ref (rust.mut' process_command) =
00:08:04 verbose #7753 > >     !\\(c, $'"std::process::Command::stdout($0, std::process::Stdio::piped())"')
00:08:05 verbose #7754 > >
00:08:05 verbose #7755 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:05 verbose #7756 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:05 verbose #7757 > > │ ### process_command_stderr                                                   │
00:08:05 verbose #7758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:05 verbose #7759 > >
00:08:05 verbose #7760 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:05 verbose #7761 > > inl process_command_stderr (stdio : process_stdio) (c : rust.ref (rust.mut'
00:08:05 verbose #7762 > > process_command)) : rust.ref (rust.mut' process_command) =
00:08:05 verbose #7763 > >     !\\(c, $'"std::process::Command::stderr($0, std::process::Stdio::piped())"')
00:08:05 verbose #7764 > >
00:08:05 verbose #7765 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:05 verbose #7766 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:05 verbose #7767 > > │ ### process_command_stdin                                                    │
00:08:05 verbose #7768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:05 verbose #7769 > >
00:08:05 verbose #7770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:05 verbose #7771 > > inl process_command_stdin (stdio : process_stdio) (c : rust.ref (rust.mut'
00:08:05 verbose #7772 > > process_command)) : rust.ref (rust.mut' process_command) =
00:08:05 verbose #7773 > >     !\\(c, $'"std::process::Command::stdin($0, std::process::Stdio::piped())"')
00:08:06 verbose #7774 > >
00:08:06 verbose #7775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:06 verbose #7776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:06 verbose #7777 > > │ ### process_command_current_dir                                              │
00:08:06 verbose #7778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:06 verbose #7779 > >
00:08:06 verbose #7780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:06 verbose #7781 > > inl process_command_current_dir
00:08:06 verbose #7782 > >     (dir : string)
00:08:06 verbose #7783 > >     (c : rust.ref (rust.mut' process_command))
00:08:06 verbose #7784 > >     : rust.ref (rust.mut' process_command)
00:08:06 verbose #7785 > >     =
00:08:06 verbose #7786 > >     !\\(dir, $'"std::process::Command::current_dir(!c, &*$0)"')
00:08:06 verbose #7787 > >
00:08:06 verbose #7788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:06 verbose #7789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:06 verbose #7790 > > │ ### process_command_env                                                      │
00:08:06 verbose #7791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:06 verbose #7792 > >
00:08:06 verbose #7793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:06 verbose #7794 > > inl process_command_env
00:08:06 verbose #7795 > >     (key : string)
00:08:06 verbose #7796 > >     (value : string)
00:08:06 verbose #7797 > >     (c : rust.ref (rust.mut' process_command))
00:08:06 verbose #7798 > >     : rust.ref (rust.mut' process_command)
00:08:06 verbose #7799 > >     =
00:08:06 verbose #7800 > >     !\\((key, value), $'"std::process::Command::env(!c, &*$0, &*$1)"')
00:08:07 verbose #7801 > >
00:08:07 verbose #7802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:07 verbose #7803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:07 verbose #7804 > > │ ### process_command_spawn                                                    │
00:08:07 verbose #7805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 verbose #7806 > >
00:08:07 verbose #7807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 verbose #7808 > > inl process_command_spawn
00:08:07 verbose #7809 > >     (c : rust.ref (rust.mut' process_command))
00:08:07 verbose #7810 > >     : resultm.result' process_child stream.io_error
00:08:07 verbose #7811 > >     =
00:08:07 verbose #7812 > >     !\\(c, $'"std::process::Command::spawn($0)"')
00:08:07 verbose #7813 > >
00:08:07 verbose #7814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:07 verbose #7815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:07 verbose #7816 > > │ ### child_wait_with_output                                                   │
00:08:07 verbose #7817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:07 verbose #7818 > >
00:08:07 verbose #7819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:07 verbose #7820 > > inl child_wait_with_output
00:08:07 verbose #7821 > >     (child : process_child)
00:08:07 verbose #7822 > >     : resultm.result' process_output stream.io_error
00:08:07 verbose #7823 > >     =
00:08:07 verbose #7824 > >     !\\(child, $'"$0.wait_with_output()"')
00:08:08 verbose #7825 > >
00:08:08 verbose #7826 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:08 verbose #7827 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:08 verbose #7828 > > │ ### stdio_line                                                               │
00:08:08 verbose #7829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:08 verbose #7830 > >
00:08:08 verbose #7831 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:08 verbose #7832 > > inl stdio_line
00:08:08 verbose #7833 > >     (stdio : result () ())
00:08:08 verbose #7834 > >     (trace' : bool)
00:08:08 verbose #7835 > >     (channel_sender : threading.arc (threading.mutex (threading.channel_sender
00:08:08 verbose #7836 > > sm'.std_string)))
00:08:08 verbose #7837 > >     (line : resultm.result' sm'.std_string stream.io_error)
00:08:08 verbose #7838 > >     : resultm.result' () sm'.std_string
00:08:08 verbose #7839 > >     =
00:08:08 verbose #7840 > >     inl highlight text =
00:08:08 verbose #7841 > >         $'$"\\u001b[[4;7m{!text}\\u001b[[0m"'
00:08:08 verbose #7842 > >     inl line =
00:08:08 verbose #7843 > >         match
00:08:08 verbose #7844 > >             line
00:08:08 verbose #7845 > >             |> resultm.map_error' sm'.format'
00:08:08 verbose #7846 > >             |> resultm.unbox'
00:08:08 verbose #7847 > >         with
00:08:08 verbose #7848 > >         | Ok line =>
00:08:08 verbose #7849 > >             inl line =
00:08:08 verbose #7850 > >                 line
00:08:08 verbose #7851 > >                 |> sm'.from_std_string
00:08:08 verbose #7852 > >                 // |> sm'.as_bytes
00:08:08 verbose #7853 > >                 // |> am'.slice_to_vec
00:08:08 verbose #7854 > >                 |> sm'.encoding_encode' (sm'.encoding_utf8' ())
00:08:08 verbose #7855 > >                 |> rust.cow_as_ref
00:08:08 verbose #7856 > >                 |> sm'.str_from_utf8
00:08:08 verbose #7857 > >                 // |> sm'.utf8_decode
00:08:08 verbose #7858 > >                 |> resultm.unwrap'
00:08:08 verbose #7859 > >                 |> sm'.ref_to_std_string
00:08:08 verbose #7860 > >                 // String::from_utf8_lossy(line.as_bytes()).into()
00:08:08 verbose #7861 > >             inl line_log = line |> sm'.from_std_string
00:08:08 verbose #7862 > >             inl text =
00:08:08 verbose #7863 > >                 match stdio with
00:08:08 verbose #7864 > >                 | Ok () => $'$"> {!line_log}"'
00:08:08 verbose #7865 > >                 | Error () => $'$"\! {!line_log}"'
00:08:08 verbose #7866 > >             if trace'
00:08:08 verbose #7867 > >             then trace Verbose (fun () => text) id
00:08:08 verbose #7868 > >             else text |> console.write_line
00:08:08 verbose #7869 > >             match stdio with
00:08:08 verbose #7870 > >             | Ok () => line
00:08:08 verbose #7871 > >             | Error () => line |> highlight |> sm'.to_std_string
00:08:08 verbose #7872 > >         | Error e =>
00:08:08 verbose #7873 > >             trace Critical
00:08:08 verbose #7874 > >                 fun () => $'$"runtime.stdio_line"'
00:08:08 verbose #7875 > >                 fun () => { e }
00:08:08 verbose #7876 > >             e |> highlight |> sm'.to_std_string
00:08:08 verbose #7877 > >     channel_sender
00:08:08 verbose #7878 > >     |> threading.arc_mutex_lock
00:08:08 verbose #7879 > >     |> resultm.unwrap'
00:08:08 verbose #7880 > >     |> threading.mutex_guard_ref
00:08:08 verbose #7881 > >     |> threading.channel_send line
00:08:08 verbose #7882 > >     |> resultm.map_error' sm'.format'
00:08:08 verbose #7883 > >
00:08:08 verbose #7884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:08 verbose #7885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:08 verbose #7886 > > │ ### command                                                                  │
00:08:08 verbose #7887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:08 verbose #7888 > >
00:08:08 verbose #7889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:08 verbose #7890 > > nominal command =
00:08:08 verbose #7891 > >     `(
00:08:08 verbose #7892 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:08 verbose #7893 > > Fable.Core.Emit(\"clap::Command\")>]]\n#endif\ntype clap_Command = class end"
00:08:08 verbose #7894 > >         $'' : $'clap_Command'
00:08:08 verbose #7895 > >     )
00:08:09 verbose #7896 > >
00:08:09 verbose #7897 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:09 verbose #7898 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:09 verbose #7899 > > │ ### new_command                                                              │
00:08:09 verbose #7900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:09 verbose #7901 > >
00:08:09 verbose #7902 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:09 verbose #7903 > > inl new_command (s : rust.static_ref sm'.str) : command =
00:08:09 verbose #7904 > >     !\\(s, $'"clap::Command::new($0)"')
00:08:09 verbose #7905 > >
00:08:09 verbose #7906 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:09 verbose #7907 > > //// test
00:08:09 verbose #7908 > > ///! rust -d clap
00:08:09 verbose #7909 > >
00:08:09 verbose #7910 > > ##"command"
00:08:09 verbose #7911 > > |> new_command
00:08:09 verbose #7912 > > |> sm'.format_pretty
00:08:09 verbose #7913 > > |> _assert_string_contains "\"command\""
00:08:13 verbose #7914 > >
00:08:13 verbose #7915 > > ╭─[ 3.90s - return value ]─────────────────────────────────────────────────────╮
00:08:13 verbose #7916 > > │ __assert_string_contains / actual: ""command"" / expected: "Command {        │
00:08:13 verbose #7917 > > │     name: "command",                                                         │
00:08:13 verbose #7918 > > │     long_flag: None,                                                         │
00:08:13 verbose #7919 > > │     short_flag: None,                                                        │
00:08:13 verbose #7920 > > │     display_name: None,                                                      │
00:08:13 verbose #7921 > > │     bin_name: None,                                                          │
00:08:13 verbose #7922 > > │     author: None,                                                            │
00:08:13 verbose #7923 > > │     version: None,                                                           │
00:08:13 verbose #7924 > > │     long_version: None,                                                      │
00:08:13 verbose #7925 > > │     about: None,                                                             │
00:08:13 verbose #7926 > > │     long_about: None,                                                        │
00:08:13 verbose #7927 > > │     before_help: None,                                                       │
00:08:13 verbose #7928 > > │     before_long_help: None,                                                  │
00:08:13 verbose #7929 > > │     after_help: None,                                                        │
00:08:13 verbose #7930 > > │     after_long_help: None,                                                   │
00:08:13 verbose #7931 > > │     aliases: [],                                                             │
00:08:13 verbose #7932 > > │     short_flag_aliases: [],                                                  │
00:08:13 verbose #7933 > > │     long_flag_aliases: [],                                                   │
00:08:13 verbose #7934 > > │     usage_str: None,                                                         │
00:08:13 verbose #7935 > > │     usage_name: None,                                                        │
00:08:13 verbose #7936 > > │     help_str: None,                                                          │
00:08:13 verbose #7937 > > │     disp_ord: None,                                                          │
00:08:13 verbose #7938 > > │     template: None,                                                          │
00:08:13 verbose #7939 > > │     settings: AppFlags(                                                      │
00:08:13 verbose #7940 > > │         0,                                                                   │
00:08:13 verbose #7941 > > │     ),                                                                       │
00:08:13 verbose #7942 > > │     g_settings: AppFlags(                                                    │
00:08:13 verbose #7943 > > │         0,                                                                   │
00:08:13 verbose #7944 > > │     ),                                                                       │
00:08:13 verbose #7945 > > │     args: MKeyMap {                                                          │
00:08:13 verbose #7946 > > │         args: [],                                                            │
00:08:13 verbose #7947 > > │         keys: [],                                                            │
00:08:13 verbose #7948 > > │     },                                                                       │
00:08:13 verbose #7949 > > │     subcommands: [],                                                         │
00:08:13 verbose #7950 > > │     groups: [],                                                              │
00:08:13 verbose #7951 > > │     current_help_heading: None,                                              │
00:08:13 verbose #7952 > > │     current_disp_ord: Some(                                                  │
00:08:13 verbose #7953 > > │         0,                                                                   │
00:08:13 verbose #7954 > > │     ),                                                                       │
00:08:13 verbose #7955 > > │     subcommand_value_name: None,                                             │
00:08:13 verbose #7956 > > │     subcommand_heading: None,                                                │
00:08:13 verbose #7957 > > │     external_value_parser: None,                                             │
00:08:13 verbose #7958 > > │     long_help_exists: false,                                                 │
00:08:13 verbose #7959 > > │     deferred: None,                                                          │
00:08:13 verbose #7960 > > │     app_ext: Extensions {                                                    │
00:08:13 verbose #7961 > > │         extensions: FlatMap {                                                │
00:08:13 verbose #7962 > > │             keys: [],                                                        │
00:08:13 verbose #7963 > > │             values: [],                                                      │
00:08:13 verbose #7964 > > │         },                                                                   │
00:08:13 verbose #7965 > > │     },                                                                       │
00:08:13 verbose #7966 > > │ }"                                                                           │
00:08:13 verbose #7967 > > │                                                                              │
00:08:13 verbose #7968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 verbose #7969 > >
00:08:13 verbose #7970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 verbose #7971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 verbose #7972 > > │ ### arg                                                                      │
00:08:13 verbose #7973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 verbose #7974 > >
00:08:13 verbose #7975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:13 verbose #7976 > > nominal arg =
00:08:13 verbose #7977 > >     `(
00:08:13 verbose #7978 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:13 verbose #7979 > > Fable.Core.Emit(\"clap::Arg\")>]]\n#endif\ntype clap_Arg = class end"
00:08:13 verbose #7980 > >         $'' : $'clap_Arg'
00:08:13 verbose #7981 > >     )
00:08:13 verbose #7982 > >
00:08:13 verbose #7983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:13 verbose #7984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:13 verbose #7985 > > │ ### new_arg                                                                  │
00:08:13 verbose #7986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:13 verbose #7987 > >
00:08:13 verbose #7988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:13 verbose #7989 > > inl new_arg (s : rust.static_ref sm'.str) : arg =
00:08:13 verbose #7990 > >     !\\(s, $'"clap::Arg::new($0)"')
00:08:14 verbose #7991 > >
00:08:14 verbose #7992 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:14 verbose #7993 > > //// test
00:08:14 verbose #7994 > > ///! rust -d clap
00:08:14 verbose #7995 > >
00:08:14 verbose #7996 > > ##"arg"
00:08:14 verbose #7997 > > |> new_arg
00:08:14 verbose #7998 > > |> sm'.format_pretty
00:08:14 verbose #7999 > > |> _assert_string_contains "\"arg\""
00:08:17 verbose #8000 > >
00:08:17 verbose #8001 > > ╭─[ 3.26s - return value ]─────────────────────────────────────────────────────╮
00:08:17 verbose #8002 > > │ __assert_string_contains / actual: ""arg"" / expected: "Arg {                │
00:08:17 verbose #8003 > > │     id: "arg",                                                               │
00:08:17 verbose #8004 > > │     help: None,                                                              │
00:08:17 verbose #8005 > > │     long_help: None,                                                         │
00:08:17 verbose #8006 > > │     action: None,                                                            │
00:08:17 verbose #8007 > > │     value_parser: None,                                                      │
00:08:17 verbose #8008 > > │     blacklist: [],                                                           │
00:08:17 verbose #8009 > > │     settings: ArgFlags(                                                      │
00:08:17 verbose #8010 > > │         0,                                                                   │
00:08:17 verbose #8011 > > │     ),                                                                       │
00:08:17 verbose #8012 > > │     overrides: [],                                                           │
00:08:17 verbose #8013 > > │     groups: [],                                                              │
00:08:17 verbose #8014 > > │     requires: [],                                                            │
00:08:17 verbose #8015 > > │     r_ifs: [],                                                               │
00:08:17 verbose #8016 > > │     r_unless: [],                                                            │
00:08:17 verbose #8017 > > │     short: None,                                                             │
00:08:17 verbose #8018 > > │     long: None,                                                              │
00:08:17 verbose #8019 > > │     aliases: [],                                                             │
00:08:17 verbose #8020 > > │     short_aliases: [],                                                       │
00:08:17 verbose #8021 > > │     disp_ord: None,                                                          │
00:08:17 verbose #8022 > > │     val_names: [],                                                           │
00:08:17 verbose #8023 > > │     num_vals: None,                                                          │
00:08:17 verbose #8024 > > │     val_delim: None,                                                         │
00:08:17 verbose #8025 > > │     default_vals: [],                                                        │
00:08:17 verbose #8026 > > │     default_vals_ifs: [],                                                    │
00:08:17 verbose #8027 > > │     terminator: None,                                                        │
00:08:17 verbose #8028 > > │     index: None,                                                             │
00:08:17 verbose #8029 > > │     help_heading: None,                                                      │
00:08:17 verbose #8030 > > │     default_missing_vals: [],                                                │
00:08:17 verbose #8031 > > │     ext: Extensions {                                                        │
00:08:17 verbose #8032 > > │         extensions: FlatMap {                                                │
00:08:17 verbose #8033 > > │             keys: [],                                                        │
00:08:17 verbose #8034 > > │             values: [],                                                      │
00:08:17 verbose #8035 > > │         },                                                                   │
00:08:17 verbose #8036 > > │     },                                                                       │
00:08:17 verbose #8037 > > │ }"                                                                           │
00:08:17 verbose #8038 > > │                                                                              │
00:08:17 verbose #8039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #8040 > >
00:08:17 verbose #8041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:17 verbose #8042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:17 verbose #8043 > > │ ### command_arg                                                              │
00:08:17 verbose #8044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #8045 > >
00:08:17 verbose #8046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 verbose #8047 > > inl command_arg (arg : arg) (command : command) : command =
00:08:17 verbose #8048 > >     !\\((command, arg), $'"clap::Command::arg($0, $1)"')
00:08:17 verbose #8049 > >
00:08:17 verbose #8050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:17 verbose #8051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:17 verbose #8052 > > │ ### arg_required                                                             │
00:08:17 verbose #8053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #8054 > >
00:08:17 verbose #8055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 verbose #8056 > > inl arg_required (value : bool) (arg : arg) : arg =
00:08:17 verbose #8057 > >     !\\((arg, value), $'"$0.required($1)"')
00:08:18 verbose #8058 > >
00:08:18 verbose #8059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 verbose #8060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 verbose #8061 > > │ ### arg_require_equals                                                       │
00:08:18 verbose #8062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 verbose #8063 > >
00:08:18 verbose #8064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 verbose #8065 > > inl arg_require_equals (value : bool) (arg : arg) : arg =
00:08:18 verbose #8066 > >     !\\((arg, value), $'"$0.require_equals($1)"')
00:08:18 verbose #8067 > >
00:08:18 verbose #8068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 verbose #8069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 verbose #8070 > > │ ### arg_default_value                                                        │
00:08:18 verbose #8071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 verbose #8072 > >
00:08:18 verbose #8073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 verbose #8074 > > inl arg_default_value (value : string) (arg : arg) : arg =
00:08:18 verbose #8075 > >     inl value = #value
00:08:18 verbose #8076 > >     !\\((arg, value), $'"$0.default_value($1)"')
00:08:19 verbose #8077 > >
00:08:19 verbose #8078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 verbose #8079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 verbose #8080 > > │ ### arg_default_missing_value                                                │
00:08:19 verbose #8081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 verbose #8082 > >
00:08:19 verbose #8083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 verbose #8084 > > inl arg_default_missing_value (value : string) (arg : arg) : arg =
00:08:19 verbose #8085 > >     inl value = #value
00:08:19 verbose #8086 > >     !\\((arg, value), $'"$0.default_missing_value($1)"')
00:08:19 verbose #8087 > >
00:08:19 verbose #8088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 verbose #8089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 verbose #8090 > > │ ### arg_overrides_with                                                       │
00:08:19 verbose #8091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 verbose #8092 > >
00:08:19 verbose #8093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 verbose #8094 > > inl arg_overrides_with (value : string) (arg : arg) : arg =
00:08:19 verbose #8095 > >     inl value = #value
00:08:19 verbose #8096 > >     !\\((arg, value), $'"$0.overrides_with($1)"')
00:08:20 verbose #8097 > >
00:08:20 verbose #8098 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:20 verbose #8099 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:20 verbose #8100 > > │ ### arg_short                                                                │
00:08:20 verbose #8101 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:20 verbose #8102 > >
00:08:20 verbose #8103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 verbose #8104 > > inl arg_short (value : char) (arg : arg) : arg =
00:08:20 verbose #8105 > >     !\\((arg, value), $'"$0.short($1)"')
00:08:20 verbose #8106 > >
00:08:20 verbose #8107 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:20 verbose #8108 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:20 verbose #8109 > > │ ### arg_long                                                                 │
00:08:20 verbose #8110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:20 verbose #8111 > >
00:08:20 verbose #8112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 verbose #8113 > > inl arg_long (value : rust.static_ref sm'.str) (arg : arg) : arg =
00:08:20 verbose #8114 > >     !\\((arg, value), $'"$0.long($1)"')
00:08:21 verbose #8115 > >
00:08:21 verbose #8116 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 verbose #8117 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 verbose #8118 > > │ ### arg_value_names                                                          │
00:08:21 verbose #8119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #8120 > >
00:08:21 verbose #8121 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 verbose #8122 > > inl arg_value_names (values : array_base (rust.static_ref sm'.str)) (arg : arg)
00:08:21 verbose #8123 > > : arg =
00:08:21 verbose #8124 > >     inl values = values |> am'.to_vec
00:08:21 verbose #8125 > >     !\\((arg, values), $'"$0.value_names($1)"')
00:08:21 verbose #8126 > >
00:08:21 verbose #8127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 verbose #8128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 verbose #8129 > > │ ### arg_num_args                                                             │
00:08:21 verbose #8130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #8131 > >
00:08:21 verbose #8132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 verbose #8133 > > inl arg_num_args (value : i32) (arg : arg) : arg =
00:08:21 verbose #8134 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:08:21 verbose #8135 > >
00:08:21 verbose #8136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:21 verbose #8137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:21 verbose #8138 > > │ ### value_range                                                              │
00:08:21 verbose #8139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:21 verbose #8140 > >
00:08:21 verbose #8141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:21 verbose #8142 > > nominal value_range =
00:08:21 verbose #8143 > >     `(
00:08:21 verbose #8144 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:21 verbose #8145 > > Fable.Core.Emit(\"clap::builder::ValueRange\")>]]\n#endif\ntype
00:08:21 verbose #8146 > > clap_builder_ValueRange = class end"
00:08:21 verbose #8147 > >         $'' : $'clap_builder_ValueRange'
00:08:21 verbose #8148 > >     )
00:08:22 verbose #8149 > >
00:08:22 verbose #8150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:22 verbose #8151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:22 verbose #8152 > > │ ### new_value_range                                                          │
00:08:22 verbose #8153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:22 verbose #8154 > >
00:08:22 verbose #8155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:22 verbose #8156 > > inl new_value_range inclusive start end : value_range =
00:08:22 verbose #8157 > >     inl len = 0i32 |> convert
00:08:22 verbose #8158 > >     inl start, end =
00:08:22 verbose #8159 > >         open am'
00:08:22 verbose #8160 > >         match start, end with
00:08:22 verbose #8161 > >         | Start start, End fn =>
00:08:22 verbose #8162 > >             start, len |> fn
00:08:22 verbose #8163 > >         | End start_fn, End end_fn =>
00:08:22 verbose #8164 > >             start_fn len, end_fn len
00:08:22 verbose #8165 > >     inl inclusive =
00:08:22 verbose #8166 > >         if inclusive
00:08:22 verbose #8167 > >         then "="
00:08:22 verbose #8168 > >         else ""
00:08:22 verbose #8169 > >     match start, end with
00:08:22 verbose #8170 > >     | start, end when end =. len => !\\(start,
00:08:22 verbose #8171 > > $'"clap::builder::ValueRange::new($0..)"')
00:08:22 verbose #8172 > >     | start, end => !\\((start, end), $'"clap::builder::ValueRange::new($0.." +
00:08:22 verbose #8173 > > !inclusive + "$1)"')
00:08:22 verbose #8174 > >
00:08:22 verbose #8175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:22 verbose #8176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:22 verbose #8177 > > │ ### arg_num_args_range                                                       │
00:08:22 verbose #8178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:22 verbose #8179 > >
00:08:22 verbose #8180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:22 verbose #8181 > > inl arg_num_args_range (value : value_range) (arg : arg) : arg =
00:08:22 verbose #8182 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:08:23 verbose #8183 > >
00:08:23 verbose #8184 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:23 verbose #8185 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:23 verbose #8186 > > │ ### arg_value_name                                                           │
00:08:23 verbose #8187 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:23 verbose #8188 > >
00:08:23 verbose #8189 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:23 verbose #8190 > > inl arg_value_name (value : string) (arg : arg) : arg =
00:08:23 verbose #8191 > >     inl value = value |> sm'.as_str
00:08:23 verbose #8192 > >     !\\((arg, value), $'"$0.value_name($1)"')
00:08:23 verbose #8193 > >
00:08:23 verbose #8194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:23 verbose #8195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:23 verbose #8196 > > │ ### value_parser                                                             │
00:08:23 verbose #8197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:23 verbose #8198 > >
00:08:23 verbose #8199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:23 verbose #8200 > > nominal value_parser =
00:08:23 verbose #8201 > >     `(
00:08:23 verbose #8202 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:23 verbose #8203 > > Fable.Core.Emit(\"clap::builder::ValueParser\")>]]\n#endif\ntype
00:08:23 verbose #8204 > > clap_builder_ValueParser = class end"
00:08:23 verbose #8205 > >         $'' : $'clap_builder_ValueParser'
00:08:23 verbose #8206 > >     )
00:08:24 verbose #8207 > >
00:08:24 verbose #8208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:24 verbose #8209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:24 verbose #8210 > > │ ### possible_value                                                           │
00:08:24 verbose #8211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:24 verbose #8212 > >
00:08:24 verbose #8213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:24 verbose #8214 > > nominal possible_value =
00:08:24 verbose #8215 > >     `(
00:08:24 verbose #8216 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:24 verbose #8217 > > Fable.Core.Emit(\"clap::builder::PossibleValue\")>]]\n#endif\ntype
00:08:24 verbose #8218 > > clap_builder_PossibleValue = class end"
00:08:24 verbose #8219 > >         $'' : $'clap_builder_PossibleValue'
00:08:24 verbose #8220 > >     )
00:08:24 verbose #8221 > >
00:08:24 verbose #8222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:24 verbose #8223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:24 verbose #8224 > > │ ### new_possible_value                                                       │
00:08:24 verbose #8225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:24 verbose #8226 > >
00:08:24 verbose #8227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:24 verbose #8228 > > inl new_possible_value forall t. (x : t) : possible_value =
00:08:24 verbose #8229 > >     !\\(x, $'"clap::builder::PossibleValue::new(&**$0)"')
00:08:25 verbose #8230 > >
00:08:25 verbose #8231 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 verbose #8232 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 verbose #8233 > > │ ### value_parser_path_buf                                                    │
00:08:25 verbose #8234 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #8235 > >
00:08:25 verbose #8236 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 verbose #8237 > > inl value_parser_path_buf () : value_parser =
00:08:25 verbose #8238 > >     !\($'"clap::value_parser\!(std::path::PathBuf)"')
00:08:25 verbose #8239 > >
00:08:25 verbose #8240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:25 verbose #8241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:25 verbose #8242 > > │ ### value_parser_expr                                                        │
00:08:25 verbose #8243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:25 verbose #8244 > >
00:08:25 verbose #8245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:25 verbose #8246 > > inl value_parser_expr (expr : string) : value_parser =
00:08:25 verbose #8247 > >     !\($'"clap::value_parser\!(" + !expr + ").into()"')
00:08:26 verbose #8248 > >
00:08:26 verbose #8249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:26 verbose #8250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:26 verbose #8251 > > │ ### arg_value_parser                                                         │
00:08:26 verbose #8252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:26 verbose #8253 > >
00:08:26 verbose #8254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:26 verbose #8255 > > inl arg_value_parser (values : value_parser) (arg : arg) : arg =
00:08:26 verbose #8256 > >     !\\((arg, values), $'"$0.value_parser($1)"')
00:08:26 verbose #8257 > >
00:08:26 verbose #8258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:26 verbose #8259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:26 verbose #8260 > > │ ### arg_action                                                               │
00:08:26 verbose #8261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:26 verbose #8262 > >
00:08:26 verbose #8263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:26 verbose #8264 > > nominal arg_action' =
00:08:26 verbose #8265 > >     `(
00:08:26 verbose #8266 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:26 verbose #8267 > > Fable.Core.Emit(\"clap::ArgAction\")>]]\n#endif\ntype clap_ArgAction = class
00:08:26 verbose #8268 > > end"
00:08:26 verbose #8269 > >         $'' : $'clap_ArgAction'
00:08:26 verbose #8270 > >     )
00:08:26 verbose #8271 > >
00:08:26 verbose #8272 > > union arg_action =
00:08:26 verbose #8273 > >     | Set
00:08:26 verbose #8274 > >     | Append
00:08:26 verbose #8275 > >     | SetTrue
00:08:26 verbose #8276 > >     | SetFalse
00:08:26 verbose #8277 > >     | Count
00:08:26 verbose #8278 > >     | Help
00:08:26 verbose #8279 > >     | HelpShort
00:08:26 verbose #8280 > >     | HelpLong
00:08:26 verbose #8281 > >     | Version
00:08:26 verbose #8282 > >
00:08:26 verbose #8283 > > inl arg_action = function
00:08:26 verbose #8284 > >     | Set => !\($'"clap::ArgAction::Set"') : arg_action'
00:08:26 verbose #8285 > >     | Append => !\($'"clap::ArgAction::Append"') : arg_action'
00:08:26 verbose #8286 > >     | SetTrue => !\($'"clap::ArgAction::SetTrue"') : arg_action'
00:08:26 verbose #8287 > >     | SetFalse => !\($'"clap::ArgAction::SetFalse"') : arg_action'
00:08:26 verbose #8288 > >     | Count => !\($'"clap::ArgAction::Count"') : arg_action'
00:08:26 verbose #8289 > >     | Help => !\($'"clap::ArgAction::Help"') : arg_action'
00:08:26 verbose #8290 > >     | HelpShort => !\($'"clap::ArgAction::HelpShort"') : arg_action'
00:08:26 verbose #8291 > >     | HelpLong => !\($'"clap::ArgAction::HelpLong"') : arg_action'
00:08:26 verbose #8292 > >     | Version => !\($'"clap::ArgAction::Version"') : arg_action'
00:08:26 verbose #8293 > >
00:08:26 verbose #8294 > > inl arg_action (value : arg_action) (arg : arg) : arg =
00:08:26 verbose #8295 > >     inl value = value |> arg_action
00:08:26 verbose #8296 > >     !\\((arg, value), $'"$0.action($1)"')
00:08:27 verbose #8297 > >
00:08:27 verbose #8298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #8299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #8300 > > │ ### arg_index                                                                │
00:08:27 verbose #8301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #8302 > >
00:08:27 verbose #8303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #8304 > > inl arg_index (value : i32) (arg : arg) : arg =
00:08:27 verbose #8305 > >     !\\((arg, value), $'"$0.index($1)"')
00:08:27 verbose #8306 > >
00:08:27 verbose #8307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #8308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #8309 > > │ ### arg_matches                                                              │
00:08:27 verbose #8310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #8311 > >
00:08:27 verbose #8312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #8313 > > nominal arg_matches =
00:08:27 verbose #8314 > >     `(
00:08:27 verbose #8315 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:27 verbose #8316 > > Fable.Core.Emit(\"clap::ArgMatches\")>]]\n#endif\ntype clap_ArgMatches = class
00:08:27 verbose #8317 > > end"
00:08:27 verbose #8318 > >         $'' : $'clap_ArgMatches'
00:08:27 verbose #8319 > >     )
00:08:27 verbose #8320 > >
00:08:27 verbose #8321 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:27 verbose #8322 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:27 verbose #8323 > > │ ### command_get_matches                                                      │
00:08:27 verbose #8324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:27 verbose #8325 > >
00:08:27 verbose #8326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:27 verbose #8327 > > inl command_get_matches (command : command) : arg_matches =
00:08:27 verbose #8328 > >     !\\(command, $'"clap::Command::get_matches($0)"')
00:08:28 verbose #8329 > >
00:08:28 verbose #8330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:28 verbose #8331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:28 verbose #8332 > > │ ### command_get_matches_from                                                 │
00:08:28 verbose #8333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:28 verbose #8334 > >
00:08:28 verbose #8335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:28 verbose #8336 > > inl command_get_matches_from (args : array_base string) (command : command) :
00:08:28 verbose #8337 > > arg_matches =
00:08:28 verbose #8338 > >     inl args = args |> am'.to_vec |> am'.vec_map sm'.to_std_string
00:08:28 verbose #8339 > >     !\\(command, $'"clap::Command::get_matches_from($0, !args)"')
00:08:28 verbose #8340 > >
00:08:28 verbose #8341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:28 verbose #8342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:28 verbose #8343 > > │ ### command_args_override_self                                               │
00:08:28 verbose #8344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:28 verbose #8345 > >
00:08:28 verbose #8346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:28 verbose #8347 > > inl command_args_override_self (yes : bool) (command : command) : command =
00:08:28 verbose #8348 > >     !\\(command, $'"clap::Command::args_override_self($0, !yes)"')
00:08:29 verbose #8349 > >
00:08:29 verbose #8350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8352 > > │ ### command_init_arg                                                         │
00:08:29 verbose #8353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8354 > >
00:08:29 verbose #8355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:29 verbose #8356 > > inl command_init_arg (long, short) fn command =
00:08:29 verbose #8357 > >     command
00:08:29 verbose #8358 > >     |> command_arg (
00:08:29 verbose #8359 > >         new_arg ##long
00:08:29 verbose #8360 > >         |> arg_short short
00:08:29 verbose #8361 > >         |> arg_long ##long
00:08:29 verbose #8362 > >         |> fn
00:08:29 verbose #8363 > >     )
00:08:29 verbose #8364 > >
00:08:29 verbose #8365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8367 > > │ ### matches_get_one                                                          │
00:08:29 verbose #8368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8369 > >
00:08:29 verbose #8370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:29 verbose #8371 > > inl matches_get_one forall t. (x : string) (matches : arg_matches) :
00:08:29 verbose #8372 > > optionm'.option' t =
00:08:29 verbose #8373 > >     inl x = join x
00:08:29 verbose #8374 > >     inl x = x |> sm'.as_str
00:08:29 verbose #8375 > >     !\\(matches, $'"clap::ArgMatches::get_one(&$0, !x).cloned()"')
00:08:30 verbose #8376 > >
00:08:30 verbose #8377 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8378 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8379 > > │ ### matches_get_flag                                                         │
00:08:30 verbose #8380 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8381 > >
00:08:30 verbose #8382 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:30 verbose #8383 > > inl matches_get_flag (x : string) (matches : arg_matches) : bool =
00:08:30 verbose #8384 > >     inl x = join x
00:08:30 verbose #8385 > >     inl x = x |> sm'.as_str
00:08:30 verbose #8386 > >     !\($'"clap::ArgMatches::get_flag(&!matches, !x)"')
00:08:30 verbose #8387 > >
00:08:30 verbose #8388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8390 > > │ ### matches_get_many                                                         │
00:08:30 verbose #8391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8392 > >
00:08:30 verbose #8393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:30 verbose #8394 > > inl matches_get_many forall t. (x : string) (matches : arg_matches) :
00:08:30 verbose #8395 > > optionm'.option' (am'.vec t) =
00:08:30 verbose #8396 > >     inl x = join x
00:08:30 verbose #8397 > >     inl x = x |> sm'.as_str
00:08:30 verbose #8398 > >     !\\(matches, $'"clap::ArgMatches::get_many(&$0, !x).map(|x|
00:08:30 verbose #8399 > > x.cloned().into_iter().collect())"')
00:08:31 verbose #8400 > >
00:08:31 verbose #8401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8403 > > │ ### matches_get_occurrences                                                  │
00:08:31 verbose #8404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8405 > >
00:08:31 verbose #8406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:31 verbose #8407 > > inl matches_get_occurrences (x : string) (matches : arg_matches) :
00:08:31 verbose #8408 > > optionm'.option' (array_base sm'.std_string) =
00:08:31 verbose #8409 > >     inl x = join x
00:08:31 verbose #8410 > >     inl x = x |> sm'.as_str
00:08:31 verbose #8411 > >     !\($'"clap::ArgMatches::get_occurrences(&!matches, !x).cloned()"')
00:08:31 verbose #8412 > >
00:08:31 verbose #8413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8415 > > │ ### matches_subcommand                                                       │
00:08:31 verbose #8416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8417 > >
00:08:31 verbose #8418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:31 verbose #8419 > > inl matches_subcommand (matches : arg_matches) : optionm'.option'
00:08:31 verbose #8420 > > (sm'.std_string * arg_matches) =
00:08:31 verbose #8421 > >     !\\((matches, sm'.ref_to_std_string),
00:08:31 verbose #8422 > > $'"clap::ArgMatches::subcommand(Box::leak(Box::new($0))).map(|(a, b)| ($1(a),
00:08:31 verbose #8423 > > b.clone()))"')
00:08:31 verbose #8424 > >
00:08:31 verbose #8425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8427 > > │ ### matches_values_of                                                        │
00:08:31 verbose #8428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8429 > >
00:08:31 verbose #8430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:31 verbose #8431 > > inl matches_values_of (x : string) (matches : arg_matches) : array_base
00:08:31 verbose #8432 > > sm'.std_string =
00:08:31 verbose #8433 > >     !\\((matches, x), $'"clap::ArgMatches::values_of($0, &*$1)"')
00:08:32 verbose #8434 > >
00:08:32 verbose #8435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:32 verbose #8436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:32 verbose #8437 > > │ ### command_subcommand_required                                              │
00:08:32 verbose #8438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:32 verbose #8439 > >
00:08:32 verbose #8440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:32 verbose #8441 > > inl command_subcommand_required (value : bool) (command : command) : command =
00:08:32 verbose #8442 > >     !\\(command, $'"clap::Command::subcommand_required($0, !value)"')
00:08:32 verbose #8443 > >
00:08:32 verbose #8444 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:32 verbose #8445 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:32 verbose #8446 > > │ ### command_subcommand                                                       │
00:08:32 verbose #8447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:32 verbose #8448 > >
00:08:32 verbose #8449 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:32 verbose #8450 > > inl command_subcommand (subcommand : command) (command : command) : command =
00:08:32 verbose #8451 > >     !\\(command, $'"clap::Command::subcommand($0, !subcommand)"')
00:08:33 verbose #8452 > >
00:08:33 verbose #8453 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:33 verbose #8454 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:33 verbose #8455 > > │ ### value_parser_possible_values                                             │
00:08:33 verbose #8456 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:33 verbose #8457 > >
00:08:33 verbose #8458 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:33 verbose #8459 > > inl value_parser_possible_values (values : array_base string) : value_parser =
00:08:33 verbose #8460 > >     inl values =
00:08:33 verbose #8461 > >         values
00:08:33 verbose #8462 > >         |> am'.to_vec
00:08:33 verbose #8463 > >         |> am'.vec_map (sm'.to_std_string >> rust.new_box >> rust.box_leak >>
00:08:33 verbose #8464 > > new_possible_value)
00:08:33 verbose #8465 > >     !\\(values,
00:08:33 verbose #8466 > > $'"Into::<clap::builder::ValueParser>::into(clap::builder::PossibleValuesParser:
00:08:33 verbose #8467 > > :new($0))"')
00:08:33 verbose #8468 > >
00:08:33 verbose #8469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:33 verbose #8470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:33 verbose #8471 > > │ ### arg_union                                                                │
00:08:33 verbose #8472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:33 verbose #8473 > >
00:08:33 verbose #8474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:33 verbose #8475 > > inl arg_union forall union_type. (fn : union_type -> ()) (arg : arg) : arg =
00:08:33 verbose #8476 > >     arg
00:08:33 verbose #8477 > >     |> arg_value_parser (
00:08:33 verbose #8478 > >         real reflection.get_union_fields_untag `union_type ()
00:08:33 verbose #8479 > >         |> fun x => x : _ (string * union_type)
00:08:33 verbose #8480 > >         |> listm.map fst
00:08:33 verbose #8481 > >         |> listm'.box
00:08:33 verbose #8482 > >         |> listm'.to_array'
00:08:33 verbose #8483 > >         |> value_parser_possible_values
00:08:33 verbose #8484 > >     )
00:08:34 verbose #8485 > >
00:08:34 verbose #8486 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:34 verbose #8487 > > //// test
00:08:34 verbose #8488 > > ///! rust -d clap
00:08:34 verbose #8489 > >
00:08:34 verbose #8490 > > ##"command"
00:08:34 verbose #8491 > > |> new_command
00:08:34 verbose #8492 > > |> command_init_arg ("trace-level", 't') (
00:08:34 verbose #8493 > >     real arg_union `trace_level ignore
00:08:34 verbose #8494 > > )
00:08:34 verbose #8495 > > |> command_get_matches_from ;[[ "_"; "--trace-level"; "Critical" ]]
00:08:34 verbose #8496 > > |> matches_get_one "trace-level"
00:08:34 verbose #8497 > > |> optionm'.unwrap
00:08:34 verbose #8498 > > |> sm'.from_std_string
00:08:34 verbose #8499 > > |> reflection.union_try_pick
00:08:34 verbose #8500 > > |> optionm.value
00:08:34 verbose #8501 > > |> _assert_eq Critical
00:08:38 verbose #8502 > >
00:08:38 verbose #8503 > > ╭─[ 4.05s - return value ]─────────────────────────────────────────────────────╮
00:08:38 verbose #8504 > > │ __assert_eq / actual: US1_4 / expected: US1_4                                │
00:08:38 verbose #8505 > > │                                                                              │
00:08:38 verbose #8506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:38 verbose #8507 > >
00:08:38 verbose #8508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:38 verbose #8509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:38 verbose #8510 > > │ ### command_debug_assert                                                     │
00:08:38 verbose #8511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:38 verbose #8512 > >
00:08:38 verbose #8513 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:38 verbose #8514 > > inl command_debug_assert (command : command) : () =
00:08:38 verbose #8515 > >     !\\(command, $'"clap::Command::debug_assert($0)"')
00:08:38 verbose #8516 > >
00:08:38 verbose #8517 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:38 verbose #8518 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:38 verbose #8519 > > │ ## fsharp                                                                    │
00:08:38 verbose #8520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:38 verbose #8521 > >
00:08:38 verbose #8522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:38 verbose #8523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:38 verbose #8524 > > │ ### process                                                                  │
00:08:38 verbose #8525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:38 verbose #8526 > >
00:08:38 verbose #8527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:38 verbose #8528 > > nominal process = $'System.Diagnostics.Process'
00:08:39 verbose #8529 > >
00:08:39 verbose #8530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:39 verbose #8531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:39 verbose #8532 > > │ ### process_start_info                                                       │
00:08:39 verbose #8533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:39 verbose #8534 > >
00:08:39 verbose #8535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:39 verbose #8536 > > nominal process_start_info = $'System.Diagnostics.ProcessStartInfo'
00:08:39 verbose #8537 > >
00:08:39 verbose #8538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:39 verbose #8539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:39 verbose #8540 > > │ ### data_received_event_args                                                 │
00:08:39 verbose #8541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:39 verbose #8542 > >
00:08:39 verbose #8543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:39 verbose #8544 > > nominal data_received_event_args = $'System.Diagnostics.DataReceivedEventArgs'
00:08:40 verbose #8545 > >
00:08:40 verbose #8546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:40 verbose #8547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:40 verbose #8548 > > │ ### new_process                                                              │
00:08:40 verbose #8549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:40 verbose #8550 > >
00:08:40 verbose #8551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:40 verbose #8552 > > inl new_process (process_start_info : process_start_info) : process =
00:08:40 verbose #8553 > >     $'new `process (StartInfo = !process_start_info)'
00:08:40 verbose #8554 > >
00:08:40 verbose #8555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:40 verbose #8556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:40 verbose #8557 > > │ ### process_start                                                            │
00:08:40 verbose #8558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:40 verbose #8559 > >
00:08:40 verbose #8560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:40 verbose #8561 > > inl process_start (process : process) : bool =
00:08:40 verbose #8562 > >     $'!process.Start' ()
00:08:40 verbose #8563 > >
00:08:40 verbose #8564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:40 verbose #8565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:40 verbose #8566 > > │ ### process_exit_code                                                        │
00:08:40 verbose #8567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:40 verbose #8568 > >
00:08:40 verbose #8569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:40 verbose #8570 > > inl process_exit_code (process : process) : i32 =
00:08:40 verbose #8571 > >     $'!process.ExitCode'
00:08:41 verbose #8572 > >
00:08:41 verbose #8573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:41 verbose #8574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:41 verbose #8575 > > │ ### process_id                                                               │
00:08:41 verbose #8576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:41 verbose #8577 > >
00:08:41 verbose #8578 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:41 verbose #8579 > > inl process_id (process : process) : i32 =
00:08:41 verbose #8580 > >     $'!process.Id'
00:08:41 verbose #8581 > >
00:08:41 verbose #8582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:41 verbose #8583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:41 verbose #8584 > > │ ### process_has_exited                                                       │
00:08:41 verbose #8585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:41 verbose #8586 > >
00:08:41 verbose #8587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:41 verbose #8588 > > inl process_has_exited (process : process) : bool =
00:08:41 verbose #8589 > >     run_target function
00:08:41 verbose #8590 > >         | Fsharp (Native) => fun () =>
00:08:41 verbose #8591 > >             $'!process.HasExited'
00:08:41 verbose #8592 > >         | _ => fun () => null ()
00:08:42 verbose #8593 > >
00:08:42 verbose #8594 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:42 verbose #8595 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:42 verbose #8596 > > │ ### process_kill                                                             │
00:08:42 verbose #8597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #8598 > >
00:08:42 verbose #8599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:42 verbose #8600 > > inl process_kill (process : process) : () =
00:08:42 verbose #8601 > >     run_target function
00:08:42 verbose #8602 > >         | Fsharp (Native) => fun () =>
00:08:42 verbose #8603 > >             $'!process.Kill' ()
00:08:42 verbose #8604 > >         | _ => fun () => ()
00:08:42 verbose #8605 > >
00:08:42 verbose #8606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:42 verbose #8607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:42 verbose #8608 > > │ ### process_begin_error_read_line                                            │
00:08:42 verbose #8609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #8610 > >
00:08:42 verbose #8611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:42 verbose #8612 > > inl process_begin_error_read_line (process : process) : () =
00:08:42 verbose #8613 > >     $'!process.BeginErrorReadLine' ()
00:08:43 verbose #8614 > >
00:08:43 verbose #8615 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:43 verbose #8616 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:43 verbose #8617 > > │ ### process_begin_output_read_line                                           │
00:08:43 verbose #8618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:43 verbose #8619 > >
00:08:43 verbose #8620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:43 verbose #8621 > > inl process_begin_output_read_line (process : process) : () =
00:08:43 verbose #8622 > >     $'!process.BeginOutputReadLine' ()
00:08:43 verbose #8623 > >
00:08:43 verbose #8624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:43 verbose #8625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:43 verbose #8626 > > │ ### process_add_output_data_received                                         │
00:08:43 verbose #8627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:43 verbose #8628 > >
00:08:43 verbose #8629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:43 verbose #8630 > > inl process_add_output_data_received fn (process : process) : () =
00:08:43 verbose #8631 > >     $'!process.OutputDataReceived.Add !fn '
00:08:44 verbose #8632 > >
00:08:44 verbose #8633 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:44 verbose #8634 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:44 verbose #8635 > > │ ### process_add_error_data_received                                          │
00:08:44 verbose #8636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:44 verbose #8637 > >
00:08:44 verbose #8638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:44 verbose #8639 > > inl process_add_error_data_received fn (process : process) : () =
00:08:44 verbose #8640 > >     $'!process.ErrorDataReceived.Add !fn '
00:08:44 verbose #8641 > >
00:08:44 verbose #8642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:44 verbose #8643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:44 verbose #8644 > > │ ### process_wait_for_exit_async                                              │
00:08:44 verbose #8645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:44 verbose #8646 > >
00:08:44 verbose #8647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:44 verbose #8648 > > inl process_wait_for_exit_async (ct : threading.cancellation_token) (process :
00:08:44 verbose #8649 > > process) : async.task () =
00:08:44 verbose #8650 > >     $'!process.WaitForExitAsync !ct '
00:08:45 verbose #8651 > >
00:08:45 verbose #8652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:45 verbose #8653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:45 verbose #8654 > > │ ### event_data                                                               │
00:08:45 verbose #8655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:45 verbose #8656 > >
00:08:45 verbose #8657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:45 verbose #8658 > > inl event_data (e : data_received_event_args) : string =
00:08:45 verbose #8659 > >     $'!e.Data'
00:08:45 verbose #8660 > >
00:08:45 verbose #8661 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:45 verbose #8662 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:45 verbose #8663 > > │ ### execute_with_options_async                                               │
00:08:45 verbose #8664 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:45 verbose #8665 > >
00:08:45 verbose #8666 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:45 verbose #8667 > > let execute_with_options_async (options : execution_options) : _ (i32 * string)
00:08:45 verbose #8668 > > =
00:08:45 verbose #8669 > >     run_target function
00:08:45 verbose #8670 > >         | Fsharp (Native) => fun () =>
00:08:45 verbose #8671 > >             fun () =>
00:08:45 verbose #8672 > >                 inl file_name, arguments = options.command |> split_command |>
00:08:45 verbose #8673 > > resultm.get
00:08:45 verbose #8674 > >                 inl working_directory = options.working_directory |>
00:08:45 verbose #8675 > > optionm'.unbox |> optionm'.default_value ""
00:08:45 verbose #8676 > >
00:08:45 verbose #8677 > >                 trace Debug
00:08:45 verbose #8678 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:08:45 verbose #8679 > >                     fun () => { options }
00:08:45 verbose #8680 > >
00:08:45 verbose #8681 > >                 inl utf8 = sm'.encoding_utf8 ()
00:08:45 verbose #8682 > >                 inl arguments = arguments |> optionm'.default_value ""
00:08:45 verbose #8683 > >
00:08:45 verbose #8684 > >                 $'let start_info = System.Diagnostics.ProcessStartInfo ('
00:08:45 verbose #8685 > >                 $'  Arguments = !arguments,'
00:08:45 verbose #8686 > >                 $'  StandardOutputEncoding = !utf8,'
00:08:45 verbose #8687 > >                 $'  WorkingDirectory = !working_directory,'
00:08:45 verbose #8688 > >                 $'  FileName = !file_name,'
00:08:45 verbose #8689 > >                 $'  CreateNoWindow = true,'
00:08:45 verbose #8690 > >                 $'  RedirectStandardError = true,'
00:08:45 verbose #8691 > >                 $'  RedirectStandardOutput = true,'
00:08:45 verbose #8692 > >                 $'  UseShellExecute = false'
00:08:45 verbose #8693 > >                 $')'
00:08:45 verbose #8694 > >                 inl start_info : process_start_info = $'start_info'
00:08:45 verbose #8695 > >
00:08:45 verbose #8696 > >                 (a options.environment_variables : _ i32 _)
00:08:45 verbose #8697 > >                 |> am.iter fun key, value =>
00:08:45 verbose #8698 > >                     $'!start_info.EnvironmentVariables.[[!key]] <- !value '
00:08:45 verbose #8699 > >
00:08:45 verbose #8700 > >                 inl proc = start_info |> new_process |> use
00:08:45 verbose #8701 > >                 inl output : _ string = threading.new_concurrent_stack ()
00:08:45 verbose #8702 > >
00:08:45 verbose #8703 > >                 inl event error (e : data_received_event_args) = async.new_async
00:08:45 verbose #8704 > > fun () =>
00:08:45 verbose #8705 > >                     inl data = e |> event_data
00:08:45 verbose #8706 > >                     if data <> null () then
00:08:45 verbose #8707 > >                         match options.on_line |> optionm'.unbox with
00:08:45 verbose #8708 > >                         | Some on_line =>
00:08:45 verbose #8709 > >                             on_line
00:08:45 verbose #8710 > >                                 {
00:08:45 verbose #8711 > >                                     process_id = proc |> process_id
00:08:45 verbose #8712 > >                                     line = data
00:08:45 verbose #8713 > >                                     error = error
00:08:45 verbose #8714 > >                                 }
00:08:45 verbose #8715 > >                             |> async.do
00:08:45 verbose #8716 > >                         | None => ()
00:08:45 verbose #8717 > >
00:08:45 verbose #8718 > >                         inl text =
00:08:45 verbose #8719 > >                             if error
00:08:45 verbose #8720 > >                             then $'$"\! {!data}"'
00:08:45 verbose #8721 > >                             else $'$"> {!data}"'
00:08:45 verbose #8722 > >                         if options.trace
00:08:45 verbose #8723 > >                         then trace Verbose (fun () => text) id
00:08:45 verbose #8724 > >                         else text |> console.write_line
00:08:45 verbose #8725 > >
00:08:45 verbose #8726 > >                         inl l = if error then $'"\\u001b[[7;4m"' else ""
00:08:45 verbose #8727 > >                         inl r = if error then $'"\\u001b[[0m"' else ""
00:08:45 verbose #8728 > >                         output |> threading.concurrent_stack_push
00:08:45 verbose #8729 > > $'$"{!l}{!data}{!r}"'
00:08:45 verbose #8730 > >
00:08:45 verbose #8731 > >                 proc |> process_add_output_data_received (event false >>
00:08:45 verbose #8732 > > async.start_immediate)
00:08:45 verbose #8733 > >                 proc |> process_add_error_data_received (event true >>
00:08:45 verbose #8734 > > async.start_immediate)
00:08:45 verbose #8735 > >
00:08:45 verbose #8736 > >                 if proc |> process_start |> not
00:08:45 verbose #8737 > >                 then failwith $'$"runtime.execute_with_options_async
00:08:45 verbose #8738 > > process_start error"'
00:08:45 verbose #8739 > >
00:08:45 verbose #8740 > >                 proc |> process_begin_error_read_line
00:08:45 verbose #8741 > >                 proc |> process_begin_output_read_line
00:08:45 verbose #8742 > >
00:08:45 verbose #8743 > >                 inl ct =
00:08:45 verbose #8744 > >                     options.cancellation_token
00:08:45 verbose #8745 > >                     |> optionm'.unbox
00:08:45 verbose #8746 > >                     |> optionm'.default_with threading.token_none
00:08:45 verbose #8747 > >                     |> async.merge_cancellation_token_with_default_async
00:08:45 verbose #8748 > >                     |> async.let'
00:08:45 verbose #8749 > >
00:08:45 verbose #8750 > >                 ct |> threading.token_register fun () =>
00:08:45 verbose #8751 > >                     if proc |> process_has_exited |> not
00:08:45 verbose #8752 > >                     then proc |> process_kill
00:08:45 verbose #8753 > >                 |> use
00:08:45 verbose #8754 > >                 |> ignore
00:08:45 verbose #8755 > >
00:08:45 verbose #8756 > >                 inl exit_code : i32 =
00:08:45 verbose #8757 > >                     fun () =>
00:08:45 verbose #8758 > >                         try_unit
00:08:45 verbose #8759 > >                             fun () =>
00:08:45 verbose #8760 > >                                 proc
00:08:45 verbose #8761 > >                                 |> process_wait_for_exit_async ct
00:08:45 verbose #8762 > >                                 |> async.await_task
00:08:45 verbose #8763 > >                                 |> async.do
00:08:45 verbose #8764 > >                                 proc |> process_exit_code |> return
00:08:45 verbose #8765 > >                             fun ex =>
00:08:45 verbose #8766 > >                                 // with :?
00:08:45 verbose #8767 > > System.Threading.Tasks.TaskCanceledException as ex =>
00:08:45 verbose #8768 > >                                 inl ex' = ex |> sm'.format_exception
00:08:45 verbose #8769 > >                                 output |> threading.concurrent_stack_push ex'
00:08:45 verbose #8770 > >                                 inl ex : async.task_canceled_exception = ex |>
00:08:45 verbose #8771 > > unbox
00:08:45 verbose #8772 > >                                 trace Warning
00:08:45 verbose #8773 > >                                     fun () =>
00:08:45 verbose #8774 > > $'$"runtime.execute_with_options_async / WaitForExitAsync"'
00:08:45 verbose #8775 > >                                     fun () => { ex }
00:08:45 verbose #8776 > >                                 (limit.min : i32) |> return
00:08:45 verbose #8777 > >                     |> async.new_async_unit
00:08:45 verbose #8778 > >                     |> async.let'
00:08:45 verbose #8779 > >
00:08:45 verbose #8780 > >                 inl output =
00:08:45 verbose #8781 > >                     output
00:08:45 verbose #8782 > >                     |> seq.rev''
00:08:45 verbose #8783 > >                     |> fun x => x : seq.seq' string
00:08:45 verbose #8784 > >                     |> sm'.concat "\n"
00:08:45 verbose #8785 > >
00:08:45 verbose #8786 > >                 trace Debug
00:08:45 verbose #8787 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:08:45 verbose #8788 > >                     fun () => { exit_code output_length = output |> sm'.length :
00:08:45 verbose #8789 > > i32 }
00:08:45 verbose #8790 > >
00:08:45 verbose #8791 > >                 (exit_code, output) |> return
00:08:45 verbose #8792 > >             |> async.new_async_unit
00:08:45 verbose #8793 > >         | _ => fun () =>
00:08:45 verbose #8794 > >             global "#if FABLE_COMPILER\n[[<CompilationRepresentation
00:08:45 verbose #8795 > > (CompilationRepresentationFlags.ModuleSuffix)>]]\nmodule System =\n module
00:08:45 verbose #8796 > > Diagnostics =\n  type Process = unit\n  type DataReceivedEventArgs =
00:08:45 verbose #8797 > > unit\n#endif"
00:08:45 verbose #8798 > >             null ()
00:08:45 verbose #8799 > >
00:08:45 verbose #8800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:45 verbose #8801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:45 verbose #8802 > > │ ### execute_async                                                            │
00:08:45 verbose #8803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:45 verbose #8804 > >
00:08:45 verbose #8805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:45 verbose #8806 > > inl execute_async command =
00:08:45 verbose #8807 > >     execution_options fun x => { x with
00:08:45 verbose #8808 > >         command = command
00:08:45 verbose #8809 > >     }
00:08:45 verbose #8810 > >     |> execute_with_options_async
00:08:46 verbose #8811 > >
00:08:46 verbose #8812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:46 verbose #8813 > > //// test
00:08:46 verbose #8814 > >
00:08:46 verbose #8815 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:08:46 verbose #8816 > > fun () =>
00:08:46 verbose #8817 > >     inl file_name = "test.txt"
00:08:46 verbose #8818 > >     inl temp_dir, disposable =
00:08:46 verbose #8819 > >         (file_name, content)
00:08:46 verbose #8820 > >         |> sm'.format_debug
00:08:46 verbose #8821 > >         |> crypto.hash_text
00:08:46 verbose #8822 > >         |> file_system.create_temp_dir'
00:08:46 verbose #8823 > >     disposable |> use |> ignore
00:08:46 verbose #8824 > >
00:08:46 verbose #8825 > >     inl path = temp_dir </> file_name
00:08:46 verbose #8826 > >
00:08:46 verbose #8827 > >     inl exit_code, result = execute_async $'\@$"pwsh -c ""Get-Content
00:08:46 verbose #8828 > > {!path}"""' |> async.let'
00:08:46 verbose #8829 > >     exit_code |> join _assert_eq 1
00:08:46 verbose #8830 > >     result |> _assert_string_contains "not exist"
00:08:46 verbose #8831 > >
00:08:46 verbose #8832 > >     content |> file_system.write_all_text_async path |> async.do
00:08:46 verbose #8833 > >
00:08:46 verbose #8834 > >     execution_options fun x => { x with
00:08:46 verbose #8835 > >         command = $'\@$"cat ""{!file_name}"""'
00:08:46 verbose #8836 > >         working_directory = Some temp_dir |> optionm'.box
00:08:46 verbose #8837 > >     }
00:08:46 verbose #8838 > >     |> execute_with_options_async
00:08:46 verbose #8839 > >     |> async.let'
00:08:46 verbose #8840 > >     |> ignore
00:08:46 verbose #8841 > >
00:08:46 verbose #8842 > >     execution_options fun x => { x with
00:08:46 verbose #8843 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:08:46 verbose #8844 > > [[System.Text.Encoding]]::UTF8; Get-Content {!file_name}"""'
00:08:46 verbose #8845 > >         working_directory = Some temp_dir |> optionm'.box
00:08:46 verbose #8846 > >     }
00:08:46 verbose #8847 > >     |> execute_with_options_async
00:08:46 verbose #8848 > >     |> async.return_await
00:08:46 verbose #8849 > > |> async.new_async_unit
00:08:46 verbose #8850 > > |> async.run_with_timeout 10000
00:08:46 verbose #8851 > > |> function
00:08:46 verbose #8852 > >     | Some (exit_code, output) =>
00:08:46 verbose #8853 > >         exit_code |> join _assert_eq 0i32
00:08:46 verbose #8854 > >         output |> join _assert_eq content
00:08:46 verbose #8855 > >         true
00:08:46 verbose #8856 > >     | _ => false
00:08:46 verbose #8857 > > |> _assert_eq true
00:08:56 verbose #8858 > >
00:08:56 verbose #8859 > > ╭─[ 10.31s - stdout ]──────────────────────────────────────────────────────────╮
00:08:56 verbose #8860 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:08:56 verbose #8861 > > │ command = pwsh -c "Get-Content                                               │
00:08:56 verbose #8862 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-81 │
00:08:56 verbose #8863 > > │ 3b-88ad-7791-7ce2871edce9\test.txt"; cancellation_token = None;              │
00:08:56 verbose #8864 > > │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
00:08:56 verbose #8865 > > │ working_directory = None } }                                                 │
00:08:56 verbose #8866 > > │ 00:00:00 verbose #2 ! Get-Content: Cannot find path           │
00:08:56 verbose #8867 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:08:56 verbose #8868 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist.            │
00:08:56 verbose #8869 > > │ 00:00:01   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:08:56 verbose #8870 > > │ 1; output_length = 197 }                                                     │
00:08:56 verbose #8871 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:08:56 verbose #8872 > > │ __assert_string_contains / actual: "not exist" / expected: "[             │
00:08:56 verbose #8873 > > │ 31;1mGet-Content: Cannot find path                                      │
00:08:56 verbose #8874 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:08:56 verbose #8875 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist."         │
00:08:56 verbose #8876 > > │ 00:00:01   debug #4 runtime.execute_with_options_async / { options = {  │
00:08:56 verbose #8877 > > │ command = cat "test.txt"; cancellation_token = None; environment_variables = │
00:08:56 verbose #8878 > > │ [||]; on_line = None; stdin = None; trace = true; working_directory = Some   │
00:08:56 verbose #8879 > > │                                                                              │
00:08:56 verbose #8880 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:08:56 verbose #8881 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:08:56 verbose #8882 > > │ 00:00:01 verbose #5 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:08:56 verbose #8883 > > │ 00:00:01   debug #6 runtime.execute_with_options_async / { exit_code =  │
00:08:56 verbose #8884 > > │ 0; output_length = 22 }                                                      │
00:08:56 verbose #8885 > > │ 00:00:01   debug #7 runtime.execute_with_options_async / { options = {  │
00:08:56 verbose #8886 > > │ command = pwsh -c "[System.Console]::OutputEncoding = [                      │
00:08:56 verbose #8887 > > │ System.Text.Encoding]::UTF8; Get-Content test.txt"; cancellation_token =     │
00:08:56 verbose #8888 > > │ None; environment_variables = [||]; on_line = None; stdin = None; trace =    │
00:08:56 verbose #8889 > > │ true; working_directory = Some                                               │
00:08:56 verbose #8890 > > │                                                                              │
00:08:56 verbose #8891 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:08:56 verbose #8892 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:08:56 verbose #8893 > > │ 00:00:01 verbose #8 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:08:56 verbose #8894 > > │ 00:00:01   debug #9 runtime.execute_with_options_async / { exit_code =  │
00:08:56 verbose #8895 > > │ 0; output_length = 22 }                                                      │
00:08:56 verbose #8896 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:08:56 verbose #8897 > > │ __assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─ │
00:08:56 verbose #8898 > > │ [ 你好,世界!こんにちは世界! ]─╮"                                          │
00:08:56 verbose #8899 > > │ __assert_eq / actual: true / expected: true                                  │
00:08:56 verbose #8900 > > │                                                                              │
00:08:56 verbose #8901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #8902 > >
00:08:56 verbose #8903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #8904 > > //// test
00:08:56 verbose #8905 > >
00:08:56 verbose #8906 > > fun () =>
00:08:56 verbose #8907 > >     inl file_name = "test.txt"
00:08:56 verbose #8908 > >     inl text = "0"
00:08:56 verbose #8909 > >
00:08:56 verbose #8910 > >     inl temp_dir, disposable =
00:08:56 verbose #8911 > >         (file_name, text)
00:08:56 verbose #8912 > >         |> sm'.format_debug
00:08:56 verbose #8913 > >         |> crypto.hash_text
00:08:56 verbose #8914 > >         |> file_system.create_temp_dir'
00:08:56 verbose #8915 > >     disposable |> use |> ignore
00:08:56 verbose #8916 > >     inl path = temp_dir </> file_name
00:08:56 verbose #8917 > >     text |> file_system.write_all_text_async path |> async.do
00:08:56 verbose #8918 > >
00:08:56 verbose #8919 > >     inl cts = threading.new_cancellation_token_source ()
00:08:56 verbose #8920 > >     trace Debug (fun () => "1") id
00:08:56 verbose #8921 > >     inl result =
00:08:56 verbose #8922 > >         execution_options fun x => { x with
00:08:56 verbose #8923 > >             command = $'\@$"pwsh -c ""Get-Content {!path}"""'
00:08:56 verbose #8924 > >             cancellation_token = cts |> threading.cancellation_source_token |>
00:08:56 verbose #8925 > > Some |> optionm'.box
00:08:56 verbose #8926 > >         }
00:08:56 verbose #8927 > >         |> execute_with_options_async
00:08:56 verbose #8928 > >         |> async.start_child
00:08:56 verbose #8929 > >         |> async.let'
00:08:56 verbose #8930 > >     trace Debug (fun () => "2") id
00:08:56 verbose #8931 > >     async.sleep 100 |> async.do
00:08:56 verbose #8932 > >     trace Debug (fun () => "3") id
00:08:56 verbose #8933 > >     cts |> threading.cancellation_source_cancel
00:08:56 verbose #8934 > >     trace Debug (fun () => "4") id
00:08:56 verbose #8935 > >     inl exit_code, output = result |> async.let'
00:08:56 verbose #8936 > >     trace Debug (fun () => "5") id
00:08:56 verbose #8937 > >     (exit_code, output) |> return
00:08:56 verbose #8938 > > |> async.new_async_unit
00:08:56 verbose #8939 > > |> async.run_with_timeout 10000
00:08:56 verbose #8940 > > |> function
00:08:56 verbose #8941 > >     | Some (exit_code, output) =>
00:08:56 verbose #8942 > >         exit_code |> _assert_eq -2147483648i32
00:08:56 verbose #8943 > >         output |> _assert_eq (join
00:08:56 verbose #8944 > > "System.Threading.Tasks.TaskCanceledException: A task was canceled.")
00:08:56 verbose #8945 > >         true
00:08:56 verbose #8946 > >     | _ => false
00:08:56 verbose #8947 > > |> _assert_eq true
00:09:05 verbose #8948 > >
00:09:05 verbose #8949 > > ╭─[ 8.57s - stdout ]───────────────────────────────────────────────────────────╮
00:09:05 verbose #8950 > > │ 00:00:00   debug #1 1                                                   │
00:09:05 verbose #8951 > > │ 00:00:00   debug #2 2                                                   │
00:09:05 verbose #8952 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { options = {  │
00:09:05 verbose #8953 > > │ command = pwsh -c "Get-Content                                               │
00:09:05 verbose #8954 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-01 │
00:09:05 verbose #8955 > > │ 6e-d959-8d21-02dc1c63c252\test.txt"; cancellation_token = Some               │
00:09:05 verbose #8956 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:09:05 verbose #8957 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:09:05 verbose #8958 > > │ 00:00:00   debug #4 3                                                   │
00:09:05 verbose #8959 > > │ 00:00:00   debug #5 4                                                   │
00:09:05 verbose #8960 > > │ 00:00:00 warning #6 runtime.execute_with_options_async /                │
00:09:05 verbose #8961 > > │ WaitForExitAsync / { ex = System.Threading.Tasks.TaskCanceledException: A    │
00:09:05 verbose #8962 > > │ task was canceled. }                                                         │
00:09:05 verbose #8963 > > │ 00:00:00   debug #7 runtime.execute_with_options_async / { exit_code =  │
00:09:05 verbose #8964 > > │ -2147483648; output_length = 66 }                                            │
00:09:05 verbose #8965 > > │ 00:00:00   debug #8 5                                                   │
00:09:05 verbose #8966 > > │ __assert_eq / actual: -2147483648 / expected: -2147483648                    │
00:09:05 verbose #8967 > > │ __assert_eq / actual: "System.Threading.Tasks.TaskCanceledException: A task  │
00:09:05 verbose #8968 > > │ was canceled." / expected: "System.Threading.Tasks.TaskCanceledException: A  │
00:09:05 verbose #8969 > > │ task was canceled."                                                          │
00:09:05 verbose #8970 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:05 verbose #8971 > > │                                                                              │
00:09:05 verbose #8972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #8973 > >
00:09:05 verbose #8974 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:05 verbose #8975 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:05 verbose #8976 > > │ ### current_process_kill                                                     │
00:09:05 verbose #8977 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #8978 > >
00:09:05 verbose #8979 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:05 verbose #8980 > > inl current_process_kill () =
00:09:05 verbose #8981 > >     run_target function
00:09:05 verbose #8982 > >         | Fsharp (Native) => fun () =>
00:09:05 verbose #8983 > >             inl fn () =
00:09:05 verbose #8984 > >                 run_target function
00:09:05 verbose #8985 > >                     | Fsharp (Native) => fun () =>
00:09:05 verbose #8986 > >                         trace Warning (fun () => "runtime.current_process_kill
00:09:05 verbose #8987 > > exiting... 3") id
00:09:05 verbose #8988 > >                         $'System.Threading.Thread.Sleep 300'
00:09:05 verbose #8989 > >                         trace Warning (fun () => "runtime.current_process_kill
00:09:05 verbose #8990 > > exiting... 2") id
00:09:05 verbose #8991 > >                         $'System.Console.Out.Flush ()'
00:09:05 verbose #8992 > >                         $'System.Threading.Thread.Sleep 60'
00:09:05 verbose #8993 > >                         trace Warning (fun () => "runtime.current_process_kill
00:09:05 verbose #8994 > > exiting... 1") id
00:09:05 verbose #8995 > >                         $'System.Diagnostics.Process.GetCurrentProcess().Kill
00:09:05 verbose #8996 > > ()' : ()
00:09:05 verbose #8997 > >                     | _ => fun () => ()
00:09:05 verbose #8998 > >             inl thread : threading.thread = $'new System.Threading.Thread (!fn)'
00:09:05 verbose #8999 > >             thread |> $'_.Start()' : ()
00:09:05 verbose #9000 > >         | _ => fun () => ()
00:09:05 verbose #9001 > >
00:09:05 verbose #9002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:05 verbose #9003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:05 verbose #9004 > > │ ### gc_collect                                                               │
00:09:05 verbose #9005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:05 verbose #9006 > >
00:09:05 verbose #9007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:05 verbose #9008 > > inl gc_collect () =
00:09:05 verbose #9009 > >     run_target function
00:09:05 verbose #9010 > >         | Fsharp _ => fun () => $'System.GC.Collect' () : ()
00:09:05 verbose #9011 > >         | Python _ => fun () =>
00:09:05 verbose #9012 > >             backend_switch {
00:09:05 verbose #9013 > >                 Python = fun () => global "import gc"
00:09:05 verbose #9014 > >             }
00:09:05 verbose #9015 > >             ($'gc.collect()' : int) |> ignore
00:09:05 verbose #9016 > >         | _ => fun () => ()
00:09:06 verbose #9017 > >
00:09:06 verbose #9018 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #9019 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #9020 > > │ ## runtime                                                                   │
00:09:06 verbose #9021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #9022 > >
00:09:06 verbose #9023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #9024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #9025 > > │ ### execute_with_options                                                     │
00:09:06 verbose #9026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #9027 > >
00:09:06 verbose #9028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 verbose #9029 > > let execute_with_options (options : execution_options) : i32 * string =
00:09:06 verbose #9030 > >     run_target function
00:09:06 verbose #9031 > >         | Fsharp (Native) => fun () =>
00:09:06 verbose #9032 > >             options |> execute_with_options_async |> async.run_synchronously
00:09:06 verbose #9033 > >         | Rust (Native) => fun () =>
00:09:06 verbose #9034 > >             inl command = join options.command
00:09:06 verbose #9035 > >             inl file_name, arguments = command |> split_command |> resultm.get
00:09:06 verbose #9036 > >             inl arguments =
00:09:06 verbose #9037 > >                 arguments
00:09:06 verbose #9038 > >                 |> optionm'.default_value ""
00:09:06 verbose #9039 > >                 |> split_args
00:09:06 verbose #9040 > >                 |> resultm.get
00:09:06 verbose #9041 > >                 |> am'.to_vec
00:09:06 verbose #9042 > >                 |> am'.vec_map sm'.to_std_string
00:09:06 verbose #9043 > >
00:09:06 verbose #9044 > >             trace Debug
00:09:06 verbose #9045 > >                 fun () => $'$"runtime.execute_with_options"'
00:09:06 verbose #9046 > >                 fun () => { file_name arguments options }
00:09:06 verbose #9047 > >
00:09:06 verbose #9048 > >             fun () =>
00:09:06 verbose #9049 > >                 fun () =>
00:09:06 verbose #9050 > >                     file_name
00:09:06 verbose #9051 > >                     |> new_process_command
00:09:06 verbose #9052 > >                     |> process_command_args arguments
00:09:06 verbose #9053 > >                     |> process_command_stdout (process_stdio_piped ())
00:09:06 verbose #9054 > >                     |> process_command_stderr (process_stdio_piped ())
00:09:06 verbose #9055 > >                     |> process_command_stdin (process_stdio_piped ())
00:09:06 verbose #9056 > >                     |> fun command =>
00:09:06 verbose #9057 > >                         match options.working_directory |> optionm'.unbox with
00:09:06 verbose #9058 > >                         | Some working_directory =>
00:09:06 verbose #9059 > >                             command
00:09:06 verbose #9060 > >                             |> process_command_current_dir working_directory
00:09:06 verbose #9061 > >                         | None => command
00:09:06 verbose #9062 > >                     |> fun command =>
00:09:06 verbose #9063 > >                         match options.environment_variables with
00:09:06 verbose #9064 > >                         | ;[[]] => command
00:09:06 verbose #9065 > >                         | vars =>
00:09:06 verbose #9066 > >                             (command, vars |> am'.to_vec)
00:09:06 verbose #9067 > >                             ||> am'.vec_fold' fun command (key, value) =>
00:09:06 verbose #9068 > >                                 command |> process_command_env key value
00:09:06 verbose #9069 > >                     |> process_command_spawn
00:09:06 verbose #9070 > >                     |> resultm.map_error' sm'.format'
00:09:06 verbose #9071 > >                     |> resultm.map' (optionm'.some' >> threading.new_arc_mutex)
00:09:06 verbose #9072 > >                     |> resultm.unbox'
00:09:06 verbose #9073 > >                     |> function
00:09:06 verbose #9074 > >                         | Ok child =>
00:09:06 verbose #9075 > >                             inl stdout =
00:09:06 verbose #9076 > >                                 fun () =>
00:09:06 verbose #9077 > >                                     child
00:09:06 verbose #9078 > >                                     |> threading.arc_mutex_lock
00:09:06 verbose #9079 > >                                     |> resultm.unwrap'
00:09:06 verbose #9080 > >                                     |> threading.mutex_guard_ref_mut
00:09:06 verbose #9081 > >                                     |> optionm'.as_mut
00:09:06 verbose #9082 > >                                     |> optionm'.unwrap
00:09:06 verbose #9083 > >                                     |> process_child_stdout
00:09:06 verbose #9084 > >                                     |> optionm'.take_ref_mut
00:09:06 verbose #9085 > >                                     |> optionm'.unwrap
00:09:06 verbose #9086 > >                                 |> rust.capture
00:09:06 verbose #9087 > >
00:09:06 verbose #9088 > >                             inl stderr =
00:09:06 verbose #9089 > >                                 fun () =>
00:09:06 verbose #9090 > >                                     child
00:09:06 verbose #9091 > >                                     |> threading.arc_mutex_lock
00:09:06 verbose #9092 > >                                     |> resultm.unwrap'
00:09:06 verbose #9093 > >                                     |> threading.mutex_guard_ref_mut
00:09:06 verbose #9094 > >                                     |> optionm'.as_mut
00:09:06 verbose #9095 > >                                     |> optionm'.unwrap
00:09:06 verbose #9096 > >                                     |> process_child_stderr
00:09:06 verbose #9097 > >                                     |> optionm'.take_ref_mut
00:09:06 verbose #9098 > >                                     |> optionm'.unwrap
00:09:06 verbose #9099 > >                                 |> rust.capture
00:09:06 verbose #9100 > >
00:09:06 verbose #9101 > >                             inl stdin =
00:09:06 verbose #9102 > >                                 fun () =>
00:09:06 verbose #9103 > >                                     child
00:09:06 verbose #9104 > >                                     |> threading.arc_mutex_lock
00:09:06 verbose #9105 > >                                     |> resultm.unwrap'
00:09:06 verbose #9106 > >                                     |> threading.mutex_guard_ref_mut
00:09:06 verbose #9107 > >                                     |> optionm'.as_mut
00:09:06 verbose #9108 > >                                     |> optionm'.unwrap
00:09:06 verbose #9109 > >                                     |> process_child_stdin
00:09:06 verbose #9110 > >                                     |> optionm'.take_ref_mut
00:09:06 verbose #9111 > >                                     |> optionm'.unwrap
00:09:06 verbose #9112 > >                                     |> optionm'.some'
00:09:06 verbose #9113 > >                                     |> threading.new_arc_mutex
00:09:06 verbose #9114 > >                                 |> rust.capture
00:09:06 verbose #9115 > >
00:09:06 verbose #9116 > >                             inl channel_sender, channel_receiver =
00:09:06 verbose #9117 > > threading.new_channel ()
00:09:06 verbose #9118 > >                             inl channel_sender'' = channel_sender |>
00:09:06 verbose #9119 > > threading.new_arc_mutex
00:09:06 verbose #9120 > >                             inl channel_sender' = channel_sender |>
00:09:06 verbose #9121 > > threading.new_arc_mutex
00:09:06 verbose #9122 > >                             inl channel_receiver' = channel_receiver |>
00:09:06 verbose #9123 > > threading.new_arc_mutex
00:09:06 verbose #9124 > >
00:09:06 verbose #9125 > >                             inl stdout_handle =
00:09:06 verbose #9126 > >                                 fun () =>
00:09:06 verbose #9127 > >                                     stdout
00:09:06 verbose #9128 > >                                     |> stream.decode_reader_bytes_build
00:09:06 verbose #9129 > >                                     |> stream.new_buf_reader
00:09:06 verbose #9130 > >                                     |> stream.buf_read_lines
00:09:06 verbose #9131 > >                                     |> iter.try_for_each fun lines =>
00:09:06 verbose #9132 > >                                         inl channel_sender'' = channel_sender''
00:09:06 verbose #9133 > > |> rust.clone
00:09:06 verbose #9134 > >                                         lines
00:09:06 verbose #9135 > >                                         |> stdio_line (Ok ()) options.trace
00:09:06 verbose #9136 > > channel_sender''
00:09:06 verbose #9137 > >                                         |> resultm.to_try
00:09:06 verbose #9138 > >                                 |> threading.spawn (1, 0) 1
00:09:06 verbose #9139 > >
00:09:06 verbose #9140 > >                             inl stderr_handle =
00:09:06 verbose #9141 > >                                 fun () =>
00:09:06 verbose #9142 > >                                     stderr
00:09:06 verbose #9143 > >                                     |> stream.decode_reader_bytes_build
00:09:06 verbose #9144 > >                                     |> stream.new_buf_reader
00:09:06 verbose #9145 > >                                     |> stream.buf_read_lines
00:09:06 verbose #9146 > >                                     |> iter.try_for_each fun lines =>
00:09:06 verbose #9147 > >                                         inl channel_sender' = channel_sender' |>
00:09:06 verbose #9148 > > rust.clone
00:09:06 verbose #9149 > >                                         lines
00:09:06 verbose #9150 > >                                         |> stdio_line (Error ()) options.trace
00:09:06 verbose #9151 > > channel_sender'
00:09:06 verbose #9152 > >                                         |> resultm.to_try
00:09:06 verbose #9153 > >                                 |> threading.spawn (1, 0) 1
00:09:06 verbose #9154 > >
00:09:06 verbose #9155 > >                             match options.stdin |> optionm'.unbox with
00:09:06 verbose #9156 > >                             | Some stdin' =>
00:09:06 verbose #9157 > >                                 stdin
00:09:06 verbose #9158 > >                                 |> threading.arc_mutex_lock
00:09:06 verbose #9159 > >                                 |> resultm.unwrap'
00:09:06 verbose #9160 > >                                 |> threading.mutex_guard_ref_mut
00:09:06 verbose #9161 > >                                 |> optionm'.take_ref_mut
00:09:06 verbose #9162 > >                                 |> optionm'.map' threading.new_arc_mutex
00:09:06 verbose #9163 > >                                 |> optionm'.unbox
00:09:06 verbose #9164 > >                                 |> function
00:09:06 verbose #9165 > >                                     | Some stdin =>
00:09:06 verbose #9166 > >                                         stdin |> stdin'
00:09:06 verbose #9167 > >                                         stdin
00:09:06 verbose #9168 > >                                         |> threading.arc_mutex_lock
00:09:06 verbose #9169 > >                                         |> resultm.unwrap'
00:09:06 verbose #9170 > >                                         |> stdin_flush
00:09:06 verbose #9171 > >                                     | None => ()
00:09:06 verbose #9172 > >                             | None => ()
00:09:06 verbose #9173 > >
00:09:06 verbose #9174 > >                             inl output =
00:09:06 verbose #9175 > >                                 child
00:09:06 verbose #9176 > >                                 |> threading.arc_mutex_lock
00:09:06 verbose #9177 > >                                 |> resultm.unwrap'
00:09:06 verbose #9178 > >                                 |> threading.mutex_guard_ref_mut
00:09:06 verbose #9179 > >                                 |> optionm'.take_ref_mut
00:09:06 verbose #9180 > >                                 |> optionm'.unwrap
00:09:06 verbose #9181 > >                                 |> child_wait_with_output
00:09:06 verbose #9182 > >                                 |> resultm.map_error' sm'.format'
00:09:06 verbose #9183 > >
00:09:06 verbose #9184 > >                             [[ stdout_handle; stderr_handle ]]
00:09:06 verbose #9185 > >                             |> am'.new_vec
00:09:06 verbose #9186 > >                             |> am'.vec_for_each' (threading.join' >>
00:09:06 verbose #9187 > > resultm.unwrap' >> resultm.unwrap')
00:09:06 verbose #9188 > >
00:09:06 verbose #9189 > >                             match output |> resultm.unbox with
00:09:06 verbose #9190 > >                             | Ok output =>
00:09:06 verbose #9191 > >                                 inl exit_code =
00:09:06 verbose #9192 > >                                     output
00:09:06 verbose #9193 > >                                     |> process_output_status
00:09:06 verbose #9194 > >                                     |> process_exit_status_code
00:09:06 verbose #9195 > >                                     |> optionm'.unbox
00:09:06 verbose #9196 > >                                 match exit_code with
00:09:06 verbose #9197 > >                                 | Some exit_code => exit_code, None, Some
00:09:06 verbose #9198 > > channel_receiver'
00:09:06 verbose #9199 > >                                 | None =>
00:09:06 verbose #9200 > >                                     -1,
00:09:06 verbose #9201 > >                                     ("runtime.execute_with_options
00:09:06 verbose #9202 > > exit_code=None" |> sm'.to_std_string |> Some),
00:09:06 verbose #9203 > >                                     Some channel_receiver'
00:09:06 verbose #9204 > >                             | Error error =>
00:09:06 verbose #9205 > >                                 trace Critical
00:09:06 verbose #9206 > >                                     fun () => $'$"runtime.execute_with_options
00:09:06 verbose #9207 > > output error"'
00:09:06 verbose #9208 > >                                     fun () => { error }
00:09:06 verbose #9209 > >                                 -2i32, error |> Some, None
00:09:06 verbose #9210 > >                         | Error error =>
00:09:06 verbose #9211 > >                             trace Critical
00:09:06 verbose #9212 > >                                 fun () => $'$"runtime.execute_with_options
00:09:06 verbose #9213 > > child error"'
00:09:06 verbose #9214 > >                                 fun () => { error }
00:09:06 verbose #9215 > >                             -1i32, error |> Some, None
00:09:06 verbose #9216 > >                     |> function
00:09:06 verbose #9217 > >                         | exit_code, std_trace, channel_receiver =>
00:09:06 verbose #9218 > >                             inl std_trace =
00:09:06 verbose #9219 > >                                 channel_receiver
00:09:06 verbose #9220 > >                                 |> optionm'.box
00:09:06 verbose #9221 > >                                 |> optionm'.map' fun channel_receiver =>
00:09:06 verbose #9222 > >                                     channel_receiver
00:09:06 verbose #9223 > >                                     |> threading.arc_mutex_lock
00:09:06 verbose #9224 > >                                     |> resultm.unwrap'
00:09:06 verbose #9225 > >                                     |> iter.iter
00:09:06 verbose #9226 > >                                     |> iter_collect''
00:09:06 verbose #9227 > >                                     |> am'.vec_map sm'.from_std_string
00:09:06 verbose #9228 > >                                     |> am'.from_vec
00:09:06 verbose #9229 > >                                     |> fun x => x : _ i32 _
00:09:06 verbose #9230 > >                                     |> seq.of_array
00:09:06 verbose #9231 > >                                     |> sm'.concat "\n"
00:09:06 verbose #9232 > >                                 |> optionm'.default_value' (
00:09:06 verbose #9233 > >                                     std_trace
00:09:06 verbose #9234 > >                                     |> optionm.map sm'.from_std_string
00:09:06 verbose #9235 > >                                     |> optionm'.default_value ""
00:09:06 verbose #9236 > >                                 )
00:09:06 verbose #9237 > >                             trace Verbose
00:09:06 verbose #9238 > >                                 fun () => $'$"runtime.execute_with_options
00:09:06 verbose #9239 > > result"'
00:09:06 verbose #9240 > >                                 fun () => { exit_code std_trace_length =
00:09:06 verbose #9241 > > std_trace |> sm'.length : i32 }
00:09:06 verbose #9242 > >                             new_pair exit_code std_trace
00:09:06 verbose #9243 > >                 |> capture
00:09:06 verbose #9244 > >             // |> async.new_future_move
00:09:06 verbose #9245 > >             // |> async.block_on
00:09:06 verbose #9246 > >             |> fun x => x ()
00:09:06 verbose #9247 > >             |> from_pair
00:09:06 verbose #9248 > >         | _ => fun () => null ()
00:09:06 verbose #9249 > >
00:09:06 verbose #9250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:06 verbose #9251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:06 verbose #9252 > > │ #### execute                                                                 │
00:09:06 verbose #9253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:06 verbose #9254 > >
00:09:06 verbose #9255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:06 verbose #9256 > > inl execute command =
00:09:06 verbose #9257 > >     execution_options fun x => { x with
00:09:06 verbose #9258 > >         command = command
00:09:06 verbose #9259 > >     }
00:09:06 verbose #9260 > >     |> execute_with_options
00:09:07 verbose #9261 > >
00:09:07 verbose #9262 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:07 verbose #9263 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:07 verbose #9264 > > │ #### tests                                                                   │
00:09:07 verbose #9265 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:07 verbose #9266 > >
00:09:07 verbose #9267 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:07 verbose #9268 > > //// test
00:09:07 verbose #9269 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:09:07 verbose #9270 > >
00:09:07 verbose #9271 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:09:07 verbose #9272 > >
00:09:07 verbose #9273 > > inl file_name = join "test.txt"
00:09:07 verbose #9274 > > inl temp_dir, disposable =
00:09:07 verbose #9275 > >     (file_name, content)
00:09:07 verbose #9276 > >     |> sm'.format_debug
00:09:07 verbose #9277 > >     |> crypto.hash_text
00:09:07 verbose #9278 > >     |> file_system.create_temp_dir'
00:09:07 verbose #9279 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:09:07 verbose #9280 > > inl exit_code, result =
00:09:07 verbose #9281 > >     execute $'\@$"pwsh -c ""[[IO.File]]::ReadAllText(\'{!path}\')"""'
00:09:07 verbose #9282 > > exit_code |> _assert_eq 1
00:09:07 verbose #9283 > > result |> _assert_string_contains "not find file"
00:09:07 verbose #9284 > >
00:09:07 verbose #9285 > > content |> file_system.write_all_text path
00:09:07 verbose #9286 > >
00:09:07 verbose #9287 > > execution_options fun x => { x with
00:09:07 verbose #9288 > >     command = $'\@$"cat ""{!file_name}"""'
00:09:07 verbose #9289 > >     working_directory = Some temp_dir |> optionm'.box
00:09:07 verbose #9290 > > }
00:09:07 verbose #9291 > > |> execute_with_options
00:09:07 verbose #9292 > > |> ignore
00:09:07 verbose #9293 > >
00:09:07 verbose #9294 > > inl exit_code, output =
00:09:07 verbose #9295 > >     execution_options fun x => { x with
00:09:07 verbose #9296 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:09:07 verbose #9297 > > [[System.Text.Encoding]]::UTF8; [[IO.File]]::ReadAllText(\'{!file_name}\')"""'
00:09:07 verbose #9298 > >         working_directory = Some temp_dir |> optionm'.box
00:09:07 verbose #9299 > >     }
00:09:07 verbose #9300 > >     |> execute_with_options
00:09:07 verbose #9301 > >
00:09:07 verbose #9302 > > exit_code |> _assert_eq 0i32
00:09:07 verbose #9303 > > output |> _assert_eq content
00:09:07 verbose #9304 > >
00:09:07 verbose #9305 > > disposable |> use |> ignore
00:09:19 verbose #9306 > >
00:09:19 verbose #9307 > > ╭─[ 11.98s - return value ]────────────────────────────────────────────────────╮
00:09:19 verbose #9308 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:09:19 verbose #9309 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a469d1c1 │
00:09:19 verbose #9310 > > │ 55f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2cf2\9242780b-ce0e-9155- │
00:09:19 verbose #9311 > > │ 5e07-f6ee5667aa16 }                                                          │
00:09:19 verbose #9312 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:09:19 verbose #9313 > > │ arguments = [                                                                │
00:09:19 verbose #9314 > > │     "-c",                                                                    │
00:09:19 verbose #9315 > > │     "[                                                                       │
00:09:19 verbose #9316 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:09:19 verbose #9317 > > │ spiral_builder_a469d1c155f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2 │
00:09:19 verbose #9318 > > │ cf2/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')",                        │
00:09:19 verbose #9319 > > │ ]; options = { command = pwsh -c "[                                          │
00:09:19 verbose #9320 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:09:19 verbose #9321 > > │ spiral_builder_a469d1c155f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2 │
00:09:19 verbose #9322 > > │ cf2/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"; cancellation_token =   │
00:09:19 verbose #9323 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:09:19 verbose #9324 > > │ None; trace = true; working_directory = None } }                             │
00:09:19 verbose #9325 > > │ 00:00:00 verbose #3 ! MethodInvocationException: Exception   │
00:09:19 verbose #9326 > > │ calling "ReadAllText" with "1" argument(s): "Could not find file             │
00:09:19 verbose #9327 > > │ 'c:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a469d1c │
00:09:19 verbose #9328 > > │ 155f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2cf2\9242780b-ce0e-9155 │
00:09:19 verbose #9329 > > │ -5e07-f6ee5667aa16\test.txt'."                                             │
00:09:19 verbose #9330 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:09:19 verbose #9331 > > │ exit_code = 1; std_trace_length = 312 }                                      │
00:09:19 verbose #9332 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:09:19 verbose #9333 > > │ __assert_string_contains / actual: "not find file" / expected: "[         │
00:09:19 verbose #9334 > > │ 31;1m...t.txt",                                                              │
00:09:19 verbose #9335 > > │ ]; options = { command = cat "test.txt"; cancellation_token = None;          │
00:09:19 verbose #9336 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:09:19 verbose #9337 > > │ trace = true; working_directory = Some(                                      │
00:09:19 verbose #9338 > > │                                                                              │
00:09:19 verbose #9339 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a469d1c │
00:09:19 verbose #9340 > > │ 155f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2cf2\9242780b-ce0e-9155 │
00:09:19 verbose #9341 > > │ -5e07-f6ee5667aa16",                                                         │
00:09:19 verbose #9342 > > │ ) } }                                                                        │
00:09:19 verbose #9343 > > │ 00:00:00 verbose #6 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:09:19 verbose #9344 > > │ 00:00:00 verbose #7 runtime.execute_with_options / result / {          │
00:09:19 verbose #9345 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:09:19 verbose #9346 > > │ 00:00:00   debug #8 runtime.execute_with_options / { file_name = pwsh; │
00:09:19 verbose #9347 > > │ arguments = [                                                                │
00:09:19 verbose #9348 > > │     "-c",                                                                    │
00:09:19 verbose #9349 > > │     "[System.Console]::OutputEncoding = [System.Text.Encoding]::UTF8; [      │
00:09:19 verbose #9350 > > │ IO.File]::ReadAllText('test.txt')",                                          │
00:09:19 verbose #9351 > > │ ]; options = { command = pwsh -c "[System.Console]::OutputEncoding = [       │
00:09:19 verbose #9352 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')";            │
00:09:19 verbose #9353 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:09:19 verbose #9354 > > │ on_line = None; stdin = None; trace = true; working_directory = Some(        │
00:09:19 verbose #9355 > > │                                                                              │
00:09:19 verbose #9356 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a469d1c │
00:09:19 verbose #9357 > > │ 155f8362edcef34253d95e7248d00fbb8d58d3cc220c92c2cdb8f2cf2\9242780b-ce0e-9155 │
00:09:19 verbose #9358 > > │ -5e07-f6ee5667aa16",                                                         │
00:09:19 verbose #9359 > > │ ) } }                                                                        │
00:09:19 verbose #9360 > > │ 00:00:01 verbose #9 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:09:19 verbose #9361 > > │ 00:00:01 verbose #10 runtime.execute_with_options / result / {         │
00:09:19 verbose #9362 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:09:19 verbose #9363 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:09:19 verbose #9364 > > │ __assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─ │
00:09:19 verbose #9365 > > │ [ 你好,世界!こんにちは世界! ]─╮"                                          │
00:09:19 verbose #9366 > > │                                                                              │
00:09:19 verbose #9367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:19 verbose #9368 > >
00:09:19 verbose #9369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:19 verbose #9370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:19 verbose #9371 > > │ ### execute_retry                                                            │
00:09:19 verbose #9372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:19 verbose #9373 > >
00:09:19 verbose #9374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:19 verbose #9375 > > let execute_retry retries options =
00:09:19 verbose #9376 > >     fun () =>
00:09:19 verbose #9377 > >         inl exit_code, result = options |> execute_with_options
00:09:19 verbose #9378 > >         if exit_code = 0
00:09:19 verbose #9379 > >         then Ok (exit_code, result)
00:09:19 verbose #9380 > >         else Error (exit_code, result)
00:09:19 verbose #9381 > >     |> retry_fn' retries
00:09:20 verbose #9382 > >
00:09:20 verbose #9383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:20 verbose #9384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:20 verbose #9385 > > │ ## main                                                                      │
00:09:20 verbose #9386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:20 verbose #9387 > >
00:09:20 verbose #9388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:20 verbose #9389 > > inl main () =
00:09:20 verbose #9390 > >     init_trace_state None
00:09:20 verbose #9391 > >     $'let current_process_kill () = !current_process_kill ()' : ()
00:09:20 verbose #9392 > >     $'let execute_async x = !execute_async x' : ()
00:09:20 verbose #9393 > >     $'let execute_with_options_async x = !execute_with_options_async x' : ()
00:09:20 verbose #9394 > >     inl execution_options fn =
00:09:20 verbose #9395 > >         execution_options fun x =>
00:09:20 verbose #9396 > >             x
00:09:20 verbose #9397 > >             |> heap
00:09:20 verbose #9398 > >             |> fn
00:09:20 verbose #9399 > >             |> fun x => !x
00:09:20 verbose #9400 > >     $'let execution_options x = !execution_options x' : ()
00:09:20 verbose #9401 > >     inl split_args x = x |> split_args |> resultm.box
00:09:20 verbose #9402 > >     $'let split_args x = !split_args x' : ()
00:09:26 verbose #9403 > 00:02:03 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 122945 }
00:09:26 verbose #9404 > 00:02:03   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:09:26 verbose #9405 >     "nbconvert",
00:09:26 verbose #9406 >     "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb",
00:09:26 verbose #9407 >     "--to",
00:09:26 verbose #9408 >     "html",
00:09:26 verbose #9409 >     "--HTMLExporter.theme=dark",
00:09:26 verbose #9410 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:29 verbose #9411 > 00:02:06 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb to html
00:09:29 verbose #9412 > 00:02:06 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:09:29 verbose #9413 > 00:02:06 verbose #7 !   validate(nb)
00:09:35 verbose #9414 > 00:02:12 verbose #8 ! [NbConvertApp] Writing 581060 bytes to c:\home\git\polyglot\lib\spiral\runtime.dib.html
00:09:35 verbose #9415 > 00:02:12 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:09:35 verbose #9416 > 00:02:12   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:09:35 verbose #9417 > 00:02:13   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:09:35 verbose #9418 >     "-c",
00:09:35 verbose #9419 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:09:35 verbose #9420 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:36 verbose #9421 > 00:02:13 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:09:36 verbose #9422 > 00:02:13   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:09:36 verbose #9423 > 00:02:13   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 123649 }
00:09:36   debug #9424 runtime.execute_with_options_async / { exit_code = 0; output_length = 130980 }
00:09:36   debug #10 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3
00:09:36   debug #9425 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:36 verbose #9426 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "trace.dib", "--retries", "3"])) }
00:09:36 verbose #9427 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:09:36 verbose #9428 >     "repl",
00:09:36 verbose #9429 >     "--exit-after-run",
00:09:36 verbose #9430 >     "--run",
00:09:36 verbose #9431 >     "c:/home/git/polyglot/lib/spiral/trace.dib",
00:09:36 verbose #9432 >     "--output-path",
00:09:36 verbose #9433 >     "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb",
00:09:36 verbose #9434 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/trace.dib" --output-path "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:09:39 verbose #9435 > >
00:09:39 verbose #9436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:39 verbose #9437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:39 verbose #9438 > > │ # trace                                                                      │
00:09:39 verbose #9439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:43 verbose #9440 > >
00:09:43 verbose #9441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:43 verbose #9442 > > //// test
00:09:43 verbose #9443 > >
00:09:43 verbose #9444 > > open testing
00:09:45 verbose #9445 > >
00:09:45 verbose #9446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 verbose #9447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 verbose #9448 > > │ ## trace                                                                     │
00:09:45 verbose #9449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 verbose #9450 > >
00:09:45 verbose #9451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:45 verbose #9452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:45 verbose #9453 > > │ ### trace_level                                                              │
00:09:45 verbose #9454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:45 verbose #9455 > >
00:09:45 verbose #9456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:45 verbose #9457 > > union trace_level =
00:09:45 verbose #9458 > >     | Verbose
00:09:45 verbose #9459 > >     | Debug
00:09:45 verbose #9460 > >     | Info
00:09:45 verbose #9461 > >     | Warning
00:09:45 verbose #9462 > >     | Critical
00:09:46 verbose #9463 > >
00:09:46 verbose #9464 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #9465 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #9466 > > │ ### read_state                                                               │
00:09:46 verbose #9467 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #9468 > >
00:09:46 verbose #9469 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #9470 > > inl read_state () =
00:09:46 verbose #9471 > >     run_target function
00:09:46 verbose #9472 > >         | Rust (Wasm) => fun () =>
00:09:46 verbose #9473 > >             {
00:09:46 verbose #9474 > >                 trace_level = None
00:09:46 verbose #9475 > >                 repl_start = None
00:09:46 verbose #9476 > >             }
00:09:46 verbose #9477 > >         | Rust (Contract) => fun () =>
00:09:46 verbose #9478 > >             {
00:09:46 verbose #9479 > >                 trace_level = None
00:09:46 verbose #9480 > >                 repl_start =
00:09:46 verbose #9481 > >                     open rust.rust_operators
00:09:46 verbose #9482 > >                     inl automation = env.get_environment_variable_comptime
00:09:46 verbose #9483 > > "AUTOMATION"
00:09:46 verbose #9484 > >                     if automation <>. "True"
00:09:46 verbose #9485 > >                     then None
00:09:46 verbose #9486 > >                     else
00:09:46 verbose #9487 > >                         inl timestamp : u64 =
00:09:46 verbose #9488 > > !\($'$"near_sdk::env::block_timestamp()"')
00:09:46 verbose #9489 > >                         timestamp |> i64 |> Some
00:09:46 verbose #9490 > >             }
00:09:46 verbose #9491 > >         | _ => fun () =>
00:09:46 verbose #9492 > >             {
00:09:46 verbose #9493 > >                 trace_level =
00:09:46 verbose #9494 > >                     (join "TRACE_LEVEL")
00:09:46 verbose #9495 > >                     |> env.get_environment_variable
00:09:46 verbose #9496 > >                     |> reflection.union_try_pick
00:09:46 verbose #9497 > >                 repl_start =
00:09:46 verbose #9498 > >                     inl automation = env.get_environment_variable (join
00:09:46 verbose #9499 > > "AUTOMATION")
00:09:46 verbose #9500 > >                     if automation = "True"
00:09:46 verbose #9501 > >                     then date_time.now () |> date_time.ticks |> fun
00:09:46 verbose #9502 > > (date_time.timestamp x) => x |> Some
00:09:46 verbose #9503 > >                     else None
00:09:46 verbose #9504 > >             }
00:09:46 verbose #9505 > >
00:09:46 verbose #9506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #9507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #9508 > > │ ### trace_state                                                              │
00:09:46 verbose #9509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #9510 > >
00:09:46 verbose #9511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #9512 > > type trace_state =
00:09:46 verbose #9513 > >     {
00:09:46 verbose #9514 > >         count : mut i64
00:09:46 verbose #9515 > >         trace_file : mut (string -> ())
00:09:46 verbose #9516 > >         enabled : mut bool
00:09:46 verbose #9517 > >         acc : mut string
00:09:46 verbose #9518 > >         level : mut trace_level
00:09:46 verbose #9519 > >         repl_start : optionm'.option' i64
00:09:46 verbose #9520 > >     }
00:09:46 verbose #9521 > >
00:09:46 verbose #9522 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:46 verbose #9523 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:46 verbose #9524 > > │ ### new_trace_state                                                          │
00:09:46 verbose #9525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:46 verbose #9526 > >
00:09:46 verbose #9527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:46 verbose #9528 > > let new_trace_state trace_level' =
00:09:46 verbose #9529 > >     inl { repl_start trace_level } = read_state ()
00:09:46 verbose #9530 > >     {
00:09:46 verbose #9531 > >         count = mut 0i64
00:09:46 verbose #9532 > >         trace_file = mut ignore
00:09:46 verbose #9533 > >         enabled = mut true
00:09:46 verbose #9534 > >         acc = mut ""
00:09:46 verbose #9535 > >         level = trace_level |> optionm'.default_value trace_level' |> mut
00:09:46 verbose #9536 > >         repl_start = repl_start |> optionm'.box
00:09:46 verbose #9537 > >     } : trace_state
00:09:47 verbose #9538 > >
00:09:47 verbose #9539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:47 verbose #9540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:47 verbose #9541 > > │ ### init_trace_state                                                         │
00:09:47 verbose #9542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:47 verbose #9543 > >
00:09:47 verbose #9544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:47 verbose #9545 > > inl init_trace_state trace_level : () =
00:09:47 verbose #9546 > >     inl trace_level = trace_level |> optionm'.default_value Verbose
00:09:47 verbose #9547 > >     backend_switch {
00:09:47 verbose #9548 > >         Fsharp = fun () =>
00:09:47 verbose #9549 > >             backend_switch {
00:09:47 verbose #9550 > >                 Fsharp = fun () =>
00:09:47 verbose #9551 > >                     global "module TraceState = let mutable trace_state = None"
00:09:47 verbose #9552 > >             }
00:09:47 verbose #9553 > >             fun () =>
00:09:47 verbose #9554 > >                 if $'TraceState.trace_state.IsNone' then
00:09:47 verbose #9555 > >                     inl trace_state = new_trace_state trace_level |>
00:09:47 verbose #9556 > > optionm'.some'
00:09:47 verbose #9557 > >                     $'TraceState.trace_state <- !trace_state ' : ()
00:09:47 verbose #9558 > >             |> exec_unit
00:09:47 verbose #9559 > >         Python = fun () =>
00:09:47 verbose #9560 > >             global "class TraceState: trace_state = None"
00:09:47 verbose #9561 > >             $'if TraceState.trace_state is None: TraceState.trace_state =
00:09:47 verbose #9562 > > !new_trace_state(!trace_level)' : ()
00:09:47 verbose #9563 > >     }
00:09:47 verbose #9564 > >
00:09:47 verbose #9565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:47 verbose #9566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:47 verbose #9567 > > │ ### get_trace_state_or_init                                                  │
00:09:47 verbose #9568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:47 verbose #9569 > >
00:09:47 verbose #9570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:47 verbose #9571 > > inl get_trace_state_or_init trace_level : trace_state =
00:09:47 verbose #9572 > >     init_trace_state trace_level
00:09:47 verbose #9573 > >     // $'match State.trace_state with Some x -> x | None -> failwith
00:09:47 verbose #9574 > > "trace.get_trace_state_or_init / State.trace_state=None"'
00:09:47 verbose #9575 > >     backend_switch {
00:09:47 verbose #9576 > >         Fsharp = fun () =>
00:09:47 verbose #9577 > >             $'TraceState.trace_state.Value' : trace_state
00:09:47 verbose #9578 > >         Python = fun () =>
00:09:47 verbose #9579 > >             $'TraceState.trace_state' : trace_state
00:09:47 verbose #9580 > >     }
00:09:48 verbose #9581 > >
00:09:48 verbose #9582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:48 verbose #9583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:48 verbose #9584 > > │ ### test_trace_level                                                         │
00:09:48 verbose #9585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:48 verbose #9586 > >
00:09:48 verbose #9587 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:48 verbose #9588 > > inl test_trace_level level : bool =
00:09:48 verbose #9589 > >     inl state = get_trace_state_or_init None
00:09:48 verbose #9590 > >     inl level' = *state.level
00:09:48 verbose #9591 > >     if *state.enabled |> not
00:09:48 verbose #9592 > >     then false
00:09:48 verbose #9593 > >     else
00:09:48 verbose #9594 > >         inl level : i32 = real real_core.union_tag level
00:09:48 verbose #9595 > >         inl level' : i32 = real real_core.union_tag level'
00:09:48 verbose #9596 > >         level >= level'
00:09:48 verbose #9597 > >
00:09:48 verbose #9598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:48 verbose #9599 > > //// test
00:09:48 verbose #9600 > > ///! fsharp
00:09:48 verbose #9601 > > ///! cuda
00:09:48 verbose #9602 > > ///! rust
00:09:48 verbose #9603 > > ///! typescript
00:09:48 verbose #9604 > > ///! python
00:09:48 verbose #9605 > >
00:09:48 verbose #9606 > > test_trace_level Critical |> _assert_eq true
00:09:48 verbose #9607 > > test_trace_level Verbose |> _assert_eq true
00:09:48 verbose #9608 > >
00:09:48 verbose #9609 > > inl level = get_trace_state_or_init None .level
00:09:48 verbose #9610 > > level <- Debug
00:09:48 verbose #9611 > > test_trace_level Verbose |> _assert_eq false
00:09:48 verbose #9612 > > level <- Verbose
00:09:48 verbose #9613 > > test_trace_level Verbose |> _assert_eq true
00:09:57 verbose #9614 > >
00:09:57 verbose #9615 > > ╭─[ 9.40s - return value ]─────────────────────────────────────────────────────╮
00:09:57 verbose #9616 > > │                                                                              │
00:09:57 verbose #9617 > > │ .py output (Cuda):                                                           │
00:09:57 verbose #9618 > > │ __assert_eq / actual: True / expected: True                                  │
00:09:57 verbose #9619 > > │ __assert_eq / actual: True / expected: True                                  │
00:09:57 verbose #9620 > > │ __assert_eq / actual: False / expected: False                                │
00:09:57 verbose #9621 > > │ __assert_eq / actual: True / expected: True                                  │
00:09:57 verbose #9622 > > │                                                                              │
00:09:57 verbose #9623 > > │                                                                              │
00:09:57 verbose #9624 > > │ .rs output:                                                                  │
00:09:57 verbose #9625 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9626 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9627 > > │ __assert_eq / actual: false / expected: false                                │
00:09:57 verbose #9628 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9629 > > │                                                                              │
00:09:57 verbose #9630 > > │                                                                              │
00:09:57 verbose #9631 > > │ .ts output:                                                                  │
00:09:57 verbose #9632 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9633 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9634 > > │ __assert_eq / actual: false / expected: false                                │
00:09:57 verbose #9635 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9636 > > │                                                                              │
00:09:57 verbose #9637 > > │                                                                              │
00:09:57 verbose #9638 > > │ .py output:                                                                  │
00:09:57 verbose #9639 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9640 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9641 > > │ __assert_eq / actual: false / expected: false                                │
00:09:57 verbose #9642 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9643 > > │                                                                              │
00:09:57 verbose #9644 > > │                                                                              │
00:09:57 verbose #9645 > > │                                                                              │
00:09:57 verbose #9646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #9647 > >
00:09:57 verbose #9648 > > ╭─[ 9.41s - stdout ]───────────────────────────────────────────────────────────╮
00:09:57 verbose #9649 > > │ .fsx output:                                                                 │
00:09:57 verbose #9650 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9651 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9652 > > │ __assert_eq / actual: false / expected: false                                │
00:09:57 verbose #9653 > > │ __assert_eq / actual: true / expected: true                                  │
00:09:57 verbose #9654 > > │                                                                              │
00:09:57 verbose #9655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #9656 > >
00:09:57 verbose #9657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:57 verbose #9658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:57 verbose #9659 > > │ ### trace_raw                                                                │
00:09:57 verbose #9660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #9661 > >
00:09:57 verbose #9662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:57 verbose #9663 > > inl trace_raw level fn =
00:09:57 verbose #9664 > >     fun () =>
00:09:57 verbose #9665 > >         inl ({ count acc } & trace_state) = get_trace_state_or_init None
00:09:57 verbose #9666 > >         if level |> test_trace_level then
00:09:57 verbose #9667 > >             fun () => count <- *count + 1
00:09:57 verbose #9668 > >             |> exec_unit
00:09:57 verbose #9669 > >
00:09:57 verbose #9670 > >             inl text = fn ()
00:09:57 verbose #9671 > >             open rust
00:09:57 verbose #9672 > >             open rust.rust_operators
00:09:57 verbose #9673 > >             run_target_args (fun () => text, console.write_line) function
00:09:57 verbose #9674 > >                 | Rust (Contract) => fun text, _ =>
00:09:57 verbose #9675 > >                     inl new_acc =
00:09:57 verbose #9676 > >                         if *acc = ""
00:09:57 verbose #9677 > >                         then text
00:09:57 verbose #9678 > >                         elif text = ""
00:09:57 verbose #9679 > >                         then *acc
00:09:57 verbose #9680 > >                         else *acc +. "\n" +. text
00:09:57 verbose #9681 > >
00:09:57 verbose #9682 > >                     inl chunks =
00:09:57 verbose #9683 > >                         new_acc
00:09:57 verbose #9684 > >                         |> sm'.as_str
00:09:57 verbose #9685 > >                         |> sm'.chars
00:09:57 verbose #9686 > >                         |> rust.from_mut
00:09:57 verbose #9687 > >                         |> iter_collect
00:09:57 verbose #9688 > >                         |> am'.vec_chunks 15000
00:09:57 verbose #9689 > >                         |> am'.vec_map fun x =>
00:09:57 verbose #9690 > >                             x |> sm'.from_iter
00:09:57 verbose #9691 > >
00:09:57 verbose #9692 > >                     inl chunks_len = chunks |> am'.vec_len |> i32
00:09:57 verbose #9693 > >
00:09:57 verbose #9694 > >                     if text <>. "" && chunks_len <= 1
00:09:57 verbose #9695 > >                     then acc <- new_acc
00:09:57 verbose #9696 > >                     else
00:09:57 verbose #9697 > >                         acc <- ""
00:09:57 verbose #9698 > >                         chunks
00:09:57 verbose #9699 > >                         |> am'.vec_for_each' near.log
00:09:57 verbose #9700 > >                 | Rust _ => fun text, _ =>
00:09:57 verbose #9701 > >                     !\\(text, $'\@"println\!(""{}"", $0)"')
00:09:57 verbose #9702 > >                 | _ => fun text, write_line =>
00:09:57 verbose #9703 > >                     text |> write_line
00:09:57 verbose #9704 > >             *trace_state.trace_file text
00:09:57 verbose #9705 > >     |> exec_unit
00:09:58 verbose #9706 > >
00:09:58 verbose #9707 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:58 verbose #9708 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:58 verbose #9709 > > │ ### trace                                                                    │
00:09:58 verbose #9710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:58 verbose #9711 > >
00:09:58 verbose #9712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:58 verbose #9713 > > inl trace (level : trace_level) (text_fn : () -> string) (locals : () -> _) =
00:09:58 verbose #9714 > >     fun () =>
00:09:58 verbose #9715 > >         inl trace_state = get_trace_state_or_init None
00:09:58 verbose #9716 > >         inl time =
00:09:58 verbose #9717 > >             run_target fun target =>
00:09:58 verbose #9718 > >                 match target with
00:09:58 verbose #9719 > >                 | Rust (Contract) => fun () =>
00:09:58 verbose #9720 > >                     open rust.rust_operators
00:09:58 verbose #9721 > >                     open rust
00:09:58 verbose #9722 > >                     inl timestamp : u64 =
00:09:58 verbose #9723 > > !\($'$"near_sdk::env::block_timestamp()"')
00:09:58 verbose #9724 > >                     inl timestamp =
00:09:58 verbose #9725 > >                         match trace_state.repl_start |> optionm'.unbox with
00:09:58 verbose #9726 > >                         | Some repl_start => timestamp - u64 repl_start
00:09:58 verbose #9727 > >                         | None => timestamp
00:09:58 verbose #9728 > >                     inl timestamp_s = timestamp / 1_000_000_000
00:09:58 verbose #9729 > >                     inl s = timestamp_s % 60
00:09:58 verbose #9730 > >                     inl m = (timestamp_s / 60) % 60
00:09:58 verbose #9731 > >                     inl h = (timestamp_s / 3600) % 24
00:09:58 verbose #9732 > >                     inl str : sm'.std_string =
00:09:58 verbose #9733 > >                         !\\((h, m, s),
00:09:58 verbose #9734 > > $'$"format\!(\\\"{{:02}}:{{:02}}:{{:02}}\\\", $0, $1, $2)"')
00:09:58 verbose #9735 > >                     str |> sm'.from_std_string
00:09:58 verbose #9736 > >                 | _ => fun () =>
00:09:58 verbose #9737 > >                     match trace_state.repl_start |> optionm'.unbox with
00:09:58 verbose #9738 > >                     | Some repl_start =>
00:09:58 verbose #9739 > >                         inl t =
00:09:58 verbose #9740 > >                             (date_time.now () |> date_time.ticks |> fun
00:09:58 verbose #9741 > > (date_time.timestamp x) => x)
00:09:58 verbose #9742 > >                             - repl_start |> date_time.time_span
00:09:58 verbose #9743 > >                         date_time.date_time_milliseconds
00:09:58 verbose #9744 > >                             1i32 1i32 1i32
00:09:58 verbose #9745 > >                             (t |> date_time.hours)
00:09:58 verbose #9746 > >                             (t |> date_time.minutes)
00:09:58 verbose #9747 > >                             (t |> date_time.seconds)
00:09:58 verbose #9748 > >                             (t |> date_time.milliseconds)
00:09:58 verbose #9749 > >                     | None => date_time.now ()
00:09:58 verbose #9750 > >                     |> date_time.format (
00:09:58 verbose #9751 > >                         backend_switch {
00:09:58 verbose #9752 > >                             Fsharp = fun () =>
00:09:58 verbose #9753 > >                                 match target with
00:09:58 verbose #9754 > >                                 | Rust _ => join "hh:mm:ss"
00:09:58 verbose #9755 > >                                 | _ => join "HH:mm:ss"
00:09:58 verbose #9756 > >                             Python = fun () => "%H:%M:%S"
00:09:58 verbose #9757 > >                         }
00:09:58 verbose #9758 > >                     )
00:09:58 verbose #9759 > >         inl level_str = level |> reflection.union_to_string |> sm'.to_lower |>
00:09:58 verbose #9760 > > sm'.pad_left 7 ' '
00:09:58 verbose #9761 > >         inl level_str =
00:09:58 verbose #9762 > >             run_target function
00:09:58 verbose #9763 > >             | Rust _ => fun () =>
00:09:58 verbose #9764 > >                 open rust
00:09:58 verbose #9765 > >                 open rust.rust_operators
00:09:58 verbose #9766 > >                 inl color : rust.ref sm'.str =
00:09:58 verbose #9767 > >                     match level with
00:09:58 verbose #9768 > >                     | Verbose =>
00:09:58 verbose #9769 > > !\($'"inline_colorization::color_bright_black"')
00:09:58 verbose #9770 > >                     | Debug => !\($'"inline_colorization::color_bright_blue"')
00:09:58 verbose #9771 > >                     | Info => !\($'"inline_colorization::color_bright_green"')
00:09:58 verbose #9772 > >                     | Warning => !\($'"inline_colorization::color_yellow"')
00:09:58 verbose #9773 > >                     | Critical => !\($'"inline_colorization::color_bright_red"')
00:09:58 verbose #9774 > >                 inl level_str = level_str |> sm'.as_str
00:09:58 verbose #9775 > >                 inl color_reset : rust.ref sm'.str =
00:09:58 verbose #9776 > > !\($'"inline_colorization::color_reset"')
00:09:58 verbose #9777 > >                 $'"\\\"{!color}{!level_str}{!color_reset}\\\""'
00:09:58 verbose #9778 > >                 |> sm'.format''
00:09:58 verbose #9779 > >                 |> sm'.from_std_string
00:09:58 verbose #9780 > >             | _ => fun () =>
00:09:58 verbose #9781 > >                 inl color =
00:09:58 verbose #9782 > >                     match level with
00:09:58 verbose #9783 > >                     | Verbose => $'"\\u001b[[90m"'
00:09:58 verbose #9784 > >                     | Debug => $'"\\u001b[[94m"'
00:09:58 verbose #9785 > >                     | Info => $'"\\u001b[[92m"'
00:09:58 verbose #9786 > >                     | Warning => $'"\\u001b[[93m"'
00:09:58 verbose #9787 > >                     | Critical => $'"\\u001b[[91m"'
00:09:58 verbose #9788 > >                 inl color_reset = join $'"\\u001b[[0m"'
00:09:58 verbose #9789 > >                 color +. level_str +. color_reset
00:09:58 verbose #9790 > >         inl count = *trace_state.count
00:09:58 verbose #9791 > >         inl locals = locals () |> sm'.format
00:09:58 verbose #9792 > >         inl text = text_fn ()
00:09:58 verbose #9793 > >         if text = ""
00:09:58 verbose #9794 > >         then ""
00:09:58 verbose #9795 > >         else
00:09:58 verbose #9796 > >             backend_switch {
00:09:58 verbose #9797 > >                 Fsharp = fun () => $'$"{!time} {!level_str} #{!count} %s{!text}
00:09:58 verbose #9798 > > / {!locals}"' : string
00:09:58 verbose #9799 > >                 Python = fun () => $'f"{!time} {!level_str} #{!count} {!text}
00:09:58 verbose #9800 > > {!locals}"' : string
00:09:58 verbose #9801 > >             }
00:09:58 verbose #9802 > >             |> sm'.trim_start [[]]
00:09:58 verbose #9803 > >             |> sm'.trim_end [[ ' '; '/' ]]
00:09:58 verbose #9804 > >     |> trace_raw level
00:09:58 verbose #9805 > >
00:09:58 verbose #9806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:58 verbose #9807 > > //// test
00:09:58 verbose #9808 > > ///! fsharp
00:09:58 verbose #9809 > > ///! cuda
00:09:58 verbose #9810 > > ///! rust
00:09:58 verbose #9811 > > ///! typescript
00:09:58 verbose #9812 > > ///! python
00:09:58 verbose #9813 > >
00:09:58 verbose #9814 > > trace Debug (fun () => "test1") id
00:09:58 verbose #9815 > > trace Debug (fun () => "test2") id
00:09:58 verbose #9816 > > get_trace_state_or_init None .count
00:09:58 verbose #9817 > > |> fun x => *x
00:09:58 verbose #9818 > > |> _assert_eq 2
00:10:05 verbose #9819 > >
00:10:05 verbose #9820 > > ╭─[ 7.01s - return value ]─────────────────────────────────────────────────────╮
00:10:05 verbose #9821 > > │                                                                              │
00:10:05 verbose #9822 > > │ .py output (Cuda):                                                           │
00:10:05 verbose #9823 > > │ 00:00:00   debug #1 test1                                               │
00:10:05 verbose #9824 > > │ 00:00:00   debug #2 test2                                               │
00:10:05 verbose #9825 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:10:05 verbose #9826 > > │                                                                              │
00:10:05 verbose #9827 > > │                                                                              │
00:10:05 verbose #9828 > > │ .rs output:                                                                  │
00:10:05 verbose #9829 > > │ 00:00:00   debug #1 test1                                              │
00:10:05 verbose #9830 > > │ 00:00:00   debug #2 test2                                              │
00:10:05 verbose #9831 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:10:05 verbose #9832 > > │                                                                              │
00:10:05 verbose #9833 > > │                                                                              │
00:10:05 verbose #9834 > > │ .ts output:                                                                  │
00:10:05 verbose #9835 > > │ 00:00:00   debug #1 test1                                               │
00:10:05 verbose #9836 > > │ 00:00:00   debug #2 test2                                               │
00:10:05 verbose #9837 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:10:05 verbose #9838 > > │                                                                              │
00:10:05 verbose #9839 > > │                                                                              │
00:10:05 verbose #9840 > > │ .py output:                                                                  │
00:10:05 verbose #9841 > > │ 00:00:00   debug #1 test1                                               │
00:10:05 verbose #9842 > > │ 00:00:00   debug #2 test2                                               │
00:10:05 verbose #9843 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:10:05 verbose #9844 > > │                                                                              │
00:10:05 verbose #9845 > > │                                                                              │
00:10:05 verbose #9846 > > │                                                                              │
00:10:05 verbose #9847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:05 verbose #9848 > >
00:10:05 verbose #9849 > > ╭─[ 7.02s - stdout ]───────────────────────────────────────────────────────────╮
00:10:05 verbose #9850 > > │ .fsx output:                                                                 │
00:10:05 verbose #9851 > > │ 00:00:00   debug #1 test1                                               │
00:10:05 verbose #9852 > > │ 00:00:00   debug #2 test2                                               │
00:10:05 verbose #9853 > > │ __assert_eq / actual: 2L / expected: 2L                                      │
00:10:05 verbose #9854 > > │                                                                              │
00:10:05 verbose #9855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:05 verbose #9856 > >
00:10:05 verbose #9857 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:05 verbose #9858 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:05 verbose #9859 > > │ ## main                                                                      │
00:10:05 verbose #9860 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:05 verbose #9861 > >
00:10:05 verbose #9862 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:05 verbose #9863 > > inl main () =
00:10:05 verbose #9864 > >     init_trace_state None
00:10:05 verbose #9865 > >     inl trace level text_fn (locals : () -> string) = trace level text_fn locals
00:10:05 verbose #9866 > >     $'let trace x = !trace x' : ()
00:10:07 verbose #9867 > 00:00:30 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 20897 }
00:10:07 verbose #9868 > 00:00:30   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:10:07 verbose #9869 >     "nbconvert",
00:10:07 verbose #9870 >     "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb",
00:10:07 verbose #9871 >     "--to",
00:10:07 verbose #9872 >     "html",
00:10:07 verbose #9873 >     "--HTMLExporter.theme=dark",
00:10:07 verbose #9874 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:10 verbose #9875 > 00:00:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/trace.dib.ipynb to html
00:10:10 verbose #9876 > 00:00:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:10:10 verbose #9877 > 00:00:34 verbose #7 !   validate(nb)
00:10:12 verbose #9878 > 00:00:36 verbose #8 ! [NbConvertApp] Writing 323133 bytes to c:\home\git\polyglot\lib\spiral\trace.dib.html
00:10:12 verbose #9879 > 00:00:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:10:12 verbose #9880 > 00:00:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:10:12 verbose #9881 > 00:00:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:10:12 verbose #9882 >     "-c",
00:10:12 verbose #9883 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:10:12 verbose #9884 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:13 verbose #9885 > 00:00:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:10:13 verbose #9886 > 00:00:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:10:13 verbose #9887 > 00:00:37   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 21597 }
00:10:13   debug #9888 runtime.execute_with_options_async / { exit_code = 0; output_length = 25130 }
00:10:13   debug #11 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3
00:10:13   debug #9889 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:13 verbose #9890 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "am'.dib", "--retries", "3"])) }
00:10:13 verbose #9891 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:10:13 verbose #9892 >     "repl",
00:10:13 verbose #9893 >     "--exit-after-run",
00:10:13 verbose #9894 >     "--run",
00:10:13 verbose #9895 >     "c:/home/git/polyglot/lib/spiral/am'.dib",
00:10:13 verbose #9896 >     "--output-path",
00:10:13 verbose #9897 >     "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb",
00:10:13 verbose #9898 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/am'.dib" --output-path "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:10:16 verbose #9899 > >
00:10:16 verbose #9900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:16 verbose #9901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:16 verbose #9902 > > │ # am'                                                                        │
00:10:16 verbose #9903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:21 verbose #9904 > >
00:10:21 verbose #9905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:21 verbose #9906 > > //// test
00:10:21 verbose #9907 > >
00:10:21 verbose #9908 > > open testing
00:10:23 verbose #9909 > >
00:10:23 verbose #9910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #9911 > > open rust
00:10:23 verbose #9912 > > open rust_operators
00:10:23 verbose #9913 > >
00:10:23 verbose #9914 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #9915 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #9916 > > │ ## am'                                                                       │
00:10:23 verbose #9917 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #9918 > >
00:10:23 verbose #9919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #9920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #9921 > > │ ### length                                                                   │
00:10:23 verbose #9922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #9923 > >
00:10:23 verbose #9924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #9925 > > inl length forall dim {int} el. (a : a dim el) : dim =
00:10:23 verbose #9926 > >     a |> length
00:10:24 verbose #9927 > >
00:10:24 verbose #9928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:24 verbose #9929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:24 verbose #9930 > > │ ### index                                                                    │
00:10:24 verbose #9931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 verbose #9932 > >
00:10:24 verbose #9933 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 verbose #9934 > > inl index forall dim {int} el. (i : dim) (a : a dim el) : el =
00:10:24 verbose #9935 > >     backend_switch {
00:10:24 verbose #9936 > >         Fsharp = fun () => index a i
00:10:24 verbose #9937 > >         Python = fun () => $'!a[[!i]]' : el
00:10:24 verbose #9938 > >     }
00:10:24 verbose #9939 > >
00:10:24 verbose #9940 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:24 verbose #9941 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:24 verbose #9942 > > │ ### index_base                                                               │
00:10:24 verbose #9943 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 verbose #9944 > >
00:10:24 verbose #9945 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 verbose #9946 > > inl index_base forall el. (i : int) (ar : array_base el) : el =
00:10:24 verbose #9947 > >     ar |> a |> index i
00:10:24 verbose #9948 > >
00:10:24 verbose #9949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:24 verbose #9950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:24 verbose #9951 > > │ ### base                                                                     │
00:10:24 verbose #9952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:24 verbose #9953 > >
00:10:24 verbose #9954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:24 verbose #9955 > > inl base forall dim {int} el. ((a a) : a dim el) : array_base el =
00:10:24 verbose #9956 > >     a
00:10:25 verbose #9957 > >
00:10:25 verbose #9958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:25 verbose #9959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:25 verbose #9960 > > │ ### base'                                                                    │
00:10:25 verbose #9961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:25 verbose #9962 > >
00:10:25 verbose #9963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:25 verbose #9964 > > inl base' forall el. ((a a) : a int el) : array_base el =
00:10:25 verbose #9965 > >     a
00:10:25 verbose #9966 > >
00:10:25 verbose #9967 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:25 verbose #9968 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:25 verbose #9969 > > │ ### generic_equable                                                          │
00:10:25 verbose #9970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:25 verbose #9971 > >
00:10:25 verbose #9972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:25 verbose #9973 > > inl generic_equable x1 x2 =
00:10:25 verbose #9974 > >     if length x1 <>.. length x2
00:10:25 verbose #9975 > >     then false
00:10:25 verbose #9976 > >     else
00:10:25 verbose #9977 > >         let rec loop i =
00:10:25 verbose #9978 > >             if i < length x1
00:10:25 verbose #9979 > >             then index i x1 = index i x2 && loop (i + 1)
00:10:25 verbose #9980 > >             else true
00:10:25 verbose #9981 > >         loop 0
00:10:26 verbose #9982 > >
00:10:26 verbose #9983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:26 verbose #9984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:26 verbose #9985 > > │ ### equable                                                                  │
00:10:26 verbose #9986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:26 verbose #9987 > >
00:10:26 verbose #9988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:26 verbose #9989 > > instance equable a dim {number; int} t = generic_equable
00:10:26 verbose #9990 > >
00:10:26 verbose #9991 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:26 verbose #9992 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:26 verbose #9993 > > │ ### append                                                                   │
00:10:26 verbose #9994 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:26 verbose #9995 > >
00:10:26 verbose #9996 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:26 verbose #9997 > > instance append a dim {int; number} t = am.append
00:10:27 verbose #9998 > >
00:10:27 verbose #9999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:27 verbose #10000 > > //// test
00:10:27 verbose #10001 > > ///! fsharp
00:10:27 verbose #10002 > > ///! cuda
00:10:27 verbose #10003 > > ///! rust
00:10:27 verbose #10004 > > ///! typescript
00:10:27 verbose #10005 > > ///! python
00:10:27 verbose #10006 > >
00:10:27 verbose #10007 > > a' ;[[ -1i64; 0 ]] ++ a' ;[[ 1; 2 ]]
00:10:27 verbose #10008 > > |> _assert_eq (a' ;[[ -1; 0; 1; 2 ]])
00:10:35 verbose #10009 > >
00:10:35 verbose #10010 > > ╭─[ 8.70s - return value ]─────────────────────────────────────────────────────╮
00:10:35 verbose #10011 > > │                                                                              │
00:10:35 verbose #10012 > > │ .py output (Cuda):                                                           │
00:10:35 verbose #10013 > > │ Traceback (most recent call last):                                     │
00:10:35 verbose #10014 > > │   File                                                                   │
00:10:35 verbose #10015 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:10:35 verbose #10016 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 159, in <module>     │
00:10:35 verbose #10017 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:10:35 verbose #10018 > > │ else print(result)                                                         │
00:10:35 verbose #10019 > > │                                         ^^^^^^                         │
00:10:35 verbose #10020 > > │   File                                                                   │
00:10:35 verbose #10021 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:10:35 verbose #10022 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 157, in main         │
00:10:35 verbose #10023 > > │     return method0()                                                   │
00:10:35 verbose #10024 > > │            ^^^^^^^^^                                                   │
00:10:35 verbose #10025 > > │   File                                                                   │
00:10:35 verbose #10026 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\68b9bb09c502ee0e564185d4d3 │
00:10:35 verbose #10027 > > │ fcabb90047190021dd0f7720e2e9dc1b639e8e\main.py", line 96, in method0       │
00:10:35 verbose #10028 > > │     v0 = cp.array([-1, 0],dtype=cp.int64)                              │
00:10:35 verbose #10029 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              │
00:10:35 verbose #10030 > > │   File                                                                   │
00:10:35 verbose #10031 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:10:35 verbose #10032 > > │ rom_data.py", line 53, in array                                            │
00:10:35 verbose #10033 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:10:35 verbose #10034 > > │ 0m                                                                           │
00:10:35 verbose #10035 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:10:35 verbose #10036 > > │ 0m                                                                           │
00:10:35 verbose #10037 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:10:35 verbose #10038 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:10:35 verbose #10039 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:10:35 verbose #10040 > > │ cupy._core.core._array_default                                             │
00:10:35 verbose #10041 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:10:35 verbose #10042 > > │ cupy._core.core.ndarray.__new__                                            │
00:10:35 verbose #10043 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:10:35 verbose #10044 > > │ cupy._core.core._ndarray_base._init                                        │
00:10:35 verbose #10045 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:10:35 verbose #10046 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:10:35 verbose #10047 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:35 verbose #10048 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:10:35 verbose #10049 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:35 verbose #10050 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:10:35 verbose #10051 > > │ [0m                                                                          │
00:10:35 verbose #10052 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:10:35 verbose #10053 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:10:35 verbose #10054 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:10:35 verbose #10055 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:10:35 verbose #10056 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:10:35 verbose #10057 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:10:35 verbose #10058 > > │ runtime version                                                            │
00:10:35 verbose #10059 > > │                                                                              │
00:10:35 verbose #10060 > > │ .rs output:                                                                  │
00:10:35 verbose #10061 > > │ __assert_eq / actual: Array(MutCell([-1, 0, 1, 2])) / expected:              │
00:10:35 verbose #10062 > > │ Array(MutCell([-1, 0, 1, 2]))                                                │
00:10:35 verbose #10063 > > │                                                                              │
00:10:35 verbose #10064 > > │ .ts output:                                                                  │
00:10:35 verbose #10065 > > │ __assert_eq / actual: -1,0,1,2 / expected: -1,0,1,2                          │
00:10:35 verbose #10066 > > │                                                                              │
00:10:35 verbose #10067 > > │ .py output:                                                                  │
00:10:35 verbose #10068 > > │ __assert_eq / actual: [-1, 0, 1, 2] / expected: array('q', [-1, 0, 1, 2])    │
00:10:35 verbose #10069 > > │                                                                              │
00:10:35 verbose #10070 > > │                                                                              │
00:10:35 verbose #10071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:35 verbose #10072 > >
00:10:35 verbose #10073 > > ╭─[ 8.73s - stdout ]───────────────────────────────────────────────────────────╮
00:10:35 verbose #10074 > > │ .fsx output:                                                                 │
00:10:35 verbose #10075 > > │ __assert_eq / actual: [|-1L; 0L; 1L; 2L|] / expected: [|-1L; 0L; 1L; 2L|]    │
00:10:35 verbose #10076 > > │                                                                              │
00:10:35 verbose #10077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:35 verbose #10078 > >
00:10:35 verbose #10079 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:35 verbose #10080 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:35 verbose #10081 > > │ ### map_base                                                                 │
00:10:35 verbose #10082 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:35 verbose #10083 > >
00:10:35 verbose #10084 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:35 verbose #10085 > > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:10:35 verbose #10086 > >     a x
00:10:35 verbose #10087 > >     |> am.map fn
00:10:35 verbose #10088 > >     |> fun (a x : _ int _) => x
00:10:36 verbose #10089 > >
00:10:36 verbose #10090 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:36 verbose #10091 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:36 verbose #10092 > > │ ### collect                                                                  │
00:10:36 verbose #10093 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:36 verbose #10094 > >
00:10:36 verbose #10095 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:36 verbose #10096 > > inl collect forall t r. (fn : t -> a int r) (items : a int t) : a int r =
00:10:36 verbose #10097 > >     items
00:10:36 verbose #10098 > >     |> am.map fn
00:10:36 verbose #10099 > >     |> am.fold (++) (a ;[[]])
00:10:36 verbose #10100 > >
00:10:36 verbose #10101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:36 verbose #10102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:36 verbose #10103 > > │ ### init                                                                     │
00:10:36 verbose #10104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:36 verbose #10105 > >
00:10:36 verbose #10106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:36 verbose #10107 > > inl init n : array_base _ =
00:10:36 verbose #10108 > >     am.init n id
00:10:36 verbose #10109 > >     |> fun (a x : _ int _) => x
00:10:37 verbose #10110 > >
00:10:37 verbose #10111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:37 verbose #10112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:37 verbose #10113 > > │ ### choose                                                                   │
00:10:37 verbose #10114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:37 verbose #10115 > >
00:10:37 verbose #10116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #10117 > > inl choose f l =
00:10:37 verbose #10118 > >     (l, [[]])
00:10:37 verbose #10119 > >     ||> am.foldBack fun x acc =>
00:10:37 verbose #10120 > >         match f x with
00:10:37 verbose #10121 > >         | Some y => y :: acc
00:10:37 verbose #10122 > >         | None => acc
00:10:37 verbose #10123 > >     |> listm.toArray
00:10:37 verbose #10124 > >
00:10:37 verbose #10125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #10126 > > //// test
00:10:37 verbose #10127 > > ///! fsharp
00:10:37 verbose #10128 > > ///! cuda
00:10:37 verbose #10129 > > ////! rust // v0.get_mut()[[v2.get().clone() as usize]] = match
00:10:37 verbose #10130 > > v1.get().clone().as_ref() { ^ expected `i32`, found `usize`
00:10:37 verbose #10131 > > ///! typescript
00:10:37 verbose #10132 > > ///! python
00:10:37 verbose #10133 > >
00:10:37 verbose #10134 > > 10
00:10:37 verbose #10135 > > |> init
00:10:37 verbose #10136 > > |> fun x => a x : _ int _
00:10:37 verbose #10137 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:10:37 verbose #10138 > > |> _assert_eq (a' ;[[ 0; 2; 4; 6; 8 ]])
00:10:41 verbose #10139 > >
00:10:41 verbose #10140 > > ╭─[ 4.27s - return value ]─────────────────────────────────────────────────────╮
00:10:41 verbose #10141 > > │                                                                              │
00:10:41 verbose #10142 > > │ .py output (Cuda):                                                           │
00:10:41 verbose #10143 > > │ Traceback (most recent call last):                                     │
00:10:41 verbose #10144 > > │   File                                                                   │
00:10:41 verbose #10145 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:10:41 verbose #10146 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 240, in <module>     │
00:10:41 verbose #10147 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:10:41 verbose #10148 > > │ else print(result)                                                         │
00:10:41 verbose #10149 > > │                                         ^^^^^^                         │
00:10:41 verbose #10150 > > │   File                                                                   │
00:10:41 verbose #10151 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:10:41 verbose #10152 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 238, in main         │
00:10:41 verbose #10153 > > │     return method0()                                                   │
00:10:41 verbose #10154 > > │            ^^^^^^^^^                                                   │
00:10:41 verbose #10155 > > │   File                                                                   │
00:10:41 verbose #10156 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\9d4ad739531a383d55562d2d54 │
00:10:41 verbose #10157 > > │ e83a808122db5c2290b3d9af7adfba08f40e71\main.py", line 155, in method0      │
00:10:41 verbose #10158 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:10:41 verbose #10159 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:10:41 verbose #10160 > > │   File                                                                   │
00:10:41 verbose #10161 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:10:41 verbose #10162 > > │ asic.py", line 31, in empty                                                │
00:10:41 verbose #10163 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:10:41 verbose #10164 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:10:41 verbose #10165 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:10:41 verbose #10166 > > │ cupy._core.core.ndarray.__new__                                            │
00:10:41 verbose #10167 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:10:41 verbose #10168 > > │ cupy._core.core._ndarray_base._init                                        │
00:10:41 verbose #10169 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:10:41 verbose #10170 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:10:41 verbose #10171 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:41 verbose #10172 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:10:41 verbose #10173 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:41 verbose #10174 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:10:41 verbose #10175 > > │ [0m                                                                          │
00:10:41 verbose #10176 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:10:41 verbose #10177 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:10:41 verbose #10178 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:10:41 verbose #10179 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:10:41 verbose #10180 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:10:41 verbose #10181 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:10:41 verbose #10182 > > │ runtime version                                                            │
00:10:41 verbose #10183 > > │                                                                              │
00:10:41 verbose #10184 > > │ .ts output:                                                                  │
00:10:41 verbose #10185 > > │ __assert_eq / actual: 0,2,4,6,8 / expected: 0,2,4,6,8                        │
00:10:41 verbose #10186 > > │                                                                              │
00:10:41 verbose #10187 > > │ .py output:                                                                  │
00:10:41 verbose #10188 > > │ __assert_eq / actual: [0, 2, 4, 6, 8] / expected: array('l', [0, 2, 4, 6,    │
00:10:41 verbose #10189 > > │ 8])                                                                          │
00:10:41 verbose #10190 > > │                                                                              │
00:10:41 verbose #10191 > > │                                                                              │
00:10:41 verbose #10192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #10193 > >
00:10:41 verbose #10194 > > ╭─[ 4.28s - stdout ]───────────────────────────────────────────────────────────╮
00:10:41 verbose #10195 > > │ .fsx output:                                                                 │
00:10:41 verbose #10196 > > │ __assert_eq / actual: [|0; 2; 4; 6; 8|] / expected: [|0; 2; 4; 6; 8|]        │
00:10:41 verbose #10197 > > │                                                                              │
00:10:41 verbose #10198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #10199 > >
00:10:41 verbose #10200 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:41 verbose #10201 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:41 verbose #10202 > > │ ### sum                                                                      │
00:10:41 verbose #10203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #10204 > >
00:10:41 verbose #10205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:41 verbose #10206 > > inl sum a =
00:10:41 verbose #10207 > >     a |> am.fold (+) 0
00:10:42 verbose #10208 > >
00:10:42 verbose #10209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:42 verbose #10210 > > //// test
00:10:42 verbose #10211 > > ///! fsharp
00:10:42 verbose #10212 > > ///! cuda
00:10:42 verbose #10213 > > ///! rust
00:10:42 verbose #10214 > > ///! typescript
00:10:42 verbose #10215 > > ///! python
00:10:42 verbose #10216 > >
00:10:42 verbose #10217 > > 10
00:10:42 verbose #10218 > > |> init
00:10:42 verbose #10219 > > |> fun x => a x : _ int _
00:10:42 verbose #10220 > > |> sum
00:10:42 verbose #10221 > > |> _assert_eq 45
00:10:47 verbose #10222 > >
00:10:47 verbose #10223 > > ╭─[ 5.69s - return value ]─────────────────────────────────────────────────────╮
00:10:47 verbose #10224 > > │                                                                              │
00:10:47 verbose #10225 > > │ .py output (Cuda):                                                           │
00:10:47 verbose #10226 > > │ Traceback (most recent call last):                                     │
00:10:47 verbose #10227 > > │   File                                                                   │
00:10:47 verbose #10228 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:10:47 verbose #10229 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 124, in <module>     │
00:10:47 verbose #10230 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:10:47 verbose #10231 > > │ else print(result)                                                         │
00:10:47 verbose #10232 > > │                                         ^^^^^^                         │
00:10:47 verbose #10233 > > │   File                                                                   │
00:10:47 verbose #10234 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:10:47 verbose #10235 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 122, in main         │
00:10:47 verbose #10236 > > │     return method0()                                                   │
00:10:47 verbose #10237 > > │            ^^^^^^^^^                                                   │
00:10:47 verbose #10238 > > │   File                                                                   │
00:10:47 verbose #10239 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\d2ff92bc98ea55b61391a67d35 │
00:10:47 verbose #10240 > > │ 68f034e4f65522e461ab8b56245677d24c8308\main.py", line 77, in method0       │
00:10:47 verbose #10241 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:10:47 verbose #10242 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:10:47 verbose #10243 > > │   File                                                                   │
00:10:47 verbose #10244 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:10:47 verbose #10245 > > │ asic.py", line 31, in empty                                                │
00:10:47 verbose #10246 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:10:47 verbose #10247 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:10:47 verbose #10248 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:10:47 verbose #10249 > > │ cupy._core.core.ndarray.__new__                                            │
00:10:47 verbose #10250 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:10:47 verbose #10251 > > │ cupy._core.core._ndarray_base._init                                        │
00:10:47 verbose #10252 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:10:47 verbose #10253 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:10:47 verbose #10254 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:47 verbose #10255 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:10:47 verbose #10256 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:47 verbose #10257 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:10:47 verbose #10258 > > │ [0m                                                                          │
00:10:47 verbose #10259 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:10:47 verbose #10260 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:10:47 verbose #10261 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:10:47 verbose #10262 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:10:47 verbose #10263 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:10:47 verbose #10264 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:10:47 verbose #10265 > > │ runtime version                                                            │
00:10:47 verbose #10266 > > │                                                                              │
00:10:47 verbose #10267 > > │ .rs output:                                                                  │
00:10:47 verbose #10268 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:10:47 verbose #10269 > > │                                                                              │
00:10:47 verbose #10270 > > │ .ts output:                                                                  │
00:10:47 verbose #10271 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:10:47 verbose #10272 > > │                                                                              │
00:10:47 verbose #10273 > > │ .py output:                                                                  │
00:10:47 verbose #10274 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:10:47 verbose #10275 > > │                                                                              │
00:10:47 verbose #10276 > > │                                                                              │
00:10:47 verbose #10277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #10278 > >
00:10:47 verbose #10279 > > ╭─[ 5.70s - stdout ]───────────────────────────────────────────────────────────╮
00:10:47 verbose #10280 > > │ .fsx output:                                                                 │
00:10:47 verbose #10281 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:10:47 verbose #10282 > > │                                                                              │
00:10:47 verbose #10283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #10284 > >
00:10:47 verbose #10285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 verbose #10286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 verbose #10287 > > │ ### init_series                                                              │
00:10:47 verbose #10288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #10289 > >
00:10:47 verbose #10290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 verbose #10291 > > inl init_series start end inc : array_base _ =
00:10:47 verbose #10292 > >     inl total = conv ((end - start) / inc) + 1
00:10:47 verbose #10293 > >     am.init total (conv >> (*) inc >> (+) start)
00:10:47 verbose #10294 > >     |> fun (a x : _ int _) => x
00:10:48 verbose #10295 > >
00:10:48 verbose #10296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 verbose #10297 > > //// test
00:10:48 verbose #10298 > > ///! fsharp
00:10:48 verbose #10299 > > ///! cuda
00:10:48 verbose #10300 > > ///! rust
00:10:48 verbose #10301 > > ///! typescript
00:10:48 verbose #10302 > > ///! python
00:10:48 verbose #10303 > >
00:10:48 verbose #10304 > > init_series 0 4 2
00:10:48 verbose #10305 > > |> _assert_eq' ;[[ 0i32; 2; 4 ]]
00:10:53 verbose #10306 > >
00:10:53 verbose #10307 > > ╭─[ 5.73s - return value ]─────────────────────────────────────────────────────╮
00:10:53 verbose #10308 > > │                                                                              │
00:10:53 verbose #10309 > > │ .py output (Cuda):                                                           │
00:10:53 verbose #10310 > > │ Traceback (most recent call last):                                     │
00:10:53 verbose #10311 > > │   File                                                                   │
00:10:53 verbose #10312 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:10:53 verbose #10313 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 101, in <module>     │
00:10:53 verbose #10314 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:10:53 verbose #10315 > > │ else print(result)                                                         │
00:10:53 verbose #10316 > > │                                         ^^^^^^                         │
00:10:53 verbose #10317 > > │   File                                                                   │
00:10:53 verbose #10318 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:10:53 verbose #10319 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 99, in main          │
00:10:53 verbose #10320 > > │     return method0()                                                   │
00:10:53 verbose #10321 > > │            ^^^^^^^^^                                                   │
00:10:53 verbose #10322 > > │   File                                                                   │
00:10:53 verbose #10323 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\cc6bc9f685a23ff0387e2d5ade │
00:10:53 verbose #10324 > > │ efc74ebf5530960aa10194948f6cbeed681926\main.py", line 67, in method0       │
00:10:53 verbose #10325 > > │     v0 = cp.empty(3,dtype=cp.int32)                                    │
00:10:53 verbose #10326 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^                                    │
00:10:53 verbose #10327 > > │   File                                                                   │
00:10:53 verbose #10328 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:10:53 verbose #10329 > > │ asic.py", line 31, in empty                                                │
00:10:53 verbose #10330 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:10:53 verbose #10331 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:10:53 verbose #10332 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:10:53 verbose #10333 > > │ cupy._core.core.ndarray.__new__                                            │
00:10:53 verbose #10334 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:10:53 verbose #10335 > > │ cupy._core.core._ndarray_base._init                                        │
00:10:53 verbose #10336 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:10:53 verbose #10337 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:10:53 verbose #10338 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:53 verbose #10339 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:10:53 verbose #10340 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:53 verbose #10341 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:10:53 verbose #10342 > > │ [0m                                                                          │
00:10:53 verbose #10343 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:10:53 verbose #10344 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:10:53 verbose #10345 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:10:53 verbose #10346 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:10:53 verbose #10347 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:10:53 verbose #10348 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:10:53 verbose #10349 > > │ runtime version                                                            │
00:10:53 verbose #10350 > > │                                                                              │
00:10:53 verbose #10351 > > │ .rs output:                                                                  │
00:10:53 verbose #10352 > > │ __assert_eq' / actual: Array(MutCell([0, 2, 4])) / expected: Array(MutCell([ │
00:10:53 verbose #10353 > > │ 0, 2, 4]))                                                                   │
00:10:53 verbose #10354 > > │                                                                              │
00:10:53 verbose #10355 > > │ .ts output:                                                                  │
00:10:53 verbose #10356 > > │ __assert_eq' / actual: 0,2,4 / expected: 0,2,4                               │
00:10:53 verbose #10357 > > │                                                                              │
00:10:53 verbose #10358 > > │ .py output:                                                                  │
00:10:53 verbose #10359 > > │ __assert_eq' / actual: [0, 2, 4] / expected: array('l', [0, 2, 4])           │
00:10:53 verbose #10360 > > │                                                                              │
00:10:53 verbose #10361 > > │                                                                              │
00:10:53 verbose #10362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #10363 > >
00:10:53 verbose #10364 > > ╭─[ 5.73s - stdout ]───────────────────────────────────────────────────────────╮
00:10:53 verbose #10365 > > │ .fsx output:                                                                 │
00:10:53 verbose #10366 > > │ __assert_eq' / actual: [|0; 2; 4|] / expected: [|0; 2; 4|]                   │
00:10:53 verbose #10367 > > │                                                                              │
00:10:53 verbose #10368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #10369 > >
00:10:53 verbose #10370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 verbose #10371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 verbose #10372 > > │ ### head                                                                     │
00:10:53 verbose #10373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #10374 > >
00:10:53 verbose #10375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 verbose #10376 > > inl head (ar : a _ _) =
00:10:53 verbose #10377 > >     if var_is ar || length ar > 0
00:10:53 verbose #10378 > >     then ar |> index 0
00:10:53 verbose #10379 > >     else error_type "The length of the array should be greater than 0."
00:10:54 verbose #10380 > >
00:10:54 verbose #10381 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:54 verbose #10382 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:54 verbose #10383 > > │ ### last                                                                     │
00:10:54 verbose #10384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:54 verbose #10385 > >
00:10:54 verbose #10386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:54 verbose #10387 > > inl last (ar : a _ _) =
00:10:54 verbose #10388 > >     inl len = length ar
00:10:54 verbose #10389 > >     if var_is ar || len > 0
00:10:54 verbose #10390 > >     then ar |> index (len - 1)
00:10:54 verbose #10391 > >     else error_type "The length of the array should be greater than 0."
00:10:54 verbose #10392 > >
00:10:54 verbose #10393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:54 verbose #10394 > > //// test
00:10:54 verbose #10395 > > ///! fsharp
00:10:54 verbose #10396 > > ///! cuda
00:10:54 verbose #10397 > > ///! rust
00:10:54 verbose #10398 > > ///! typescript
00:10:54 verbose #10399 > > ///! python
00:10:54 verbose #10400 > >
00:10:54 verbose #10401 > > 10
00:10:54 verbose #10402 > > |> init
00:10:54 verbose #10403 > > |> fun x => a x : _ int _
00:10:54 verbose #10404 > > |> last
00:10:54 verbose #10405 > > |> _assert_eq 9
00:10:59 verbose #10406 > >
00:10:59 verbose #10407 > > ╭─[ 5.17s - return value ]─────────────────────────────────────────────────────╮
00:10:59 verbose #10408 > > │                                                                              │
00:10:59 verbose #10409 > > │ .py output (Cuda):                                                           │
00:10:59 verbose #10410 > > │ Traceback (most recent call last):                                     │
00:10:59 verbose #10411 > > │   File                                                                   │
00:10:59 verbose #10412 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:10:59 verbose #10413 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 103, in <module>     │
00:10:59 verbose #10414 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:10:59 verbose #10415 > > │ else print(result)                                                         │
00:10:59 verbose #10416 > > │                                         ^^^^^^                         │
00:10:59 verbose #10417 > > │   File                                                                   │
00:10:59 verbose #10418 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:10:59 verbose #10419 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 101, in main         │
00:10:59 verbose #10420 > > │     return method0()                                                   │
00:10:59 verbose #10421 > > │            ^^^^^^^^^                                                   │
00:10:59 verbose #10422 > > │   File                                                                   │
00:10:59 verbose #10423 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\ed1d249488022df51e5f876496 │
00:10:59 verbose #10424 > > │ d2021ed16162ab1f9734f72e17cda34328ce10\main.py", line 67, in method0       │
00:10:59 verbose #10425 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:10:59 verbose #10426 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:10:59 verbose #10427 > > │   File                                                                   │
00:10:59 verbose #10428 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:10:59 verbose #10429 > > │ asic.py", line 31, in empty                                                │
00:10:59 verbose #10430 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:10:59 verbose #10431 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:10:59 verbose #10432 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:10:59 verbose #10433 > > │ cupy._core.core.ndarray.__new__                                            │
00:10:59 verbose #10434 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:10:59 verbose #10435 > > │ cupy._core.core._ndarray_base._init                                        │
00:10:59 verbose #10436 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:10:59 verbose #10437 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:10:59 verbose #10438 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:59 verbose #10439 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:10:59 verbose #10440 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:10:59 verbose #10441 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:10:59 verbose #10442 > > │ [0m                                                                          │
00:10:59 verbose #10443 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:10:59 verbose #10444 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:10:59 verbose #10445 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:10:59 verbose #10446 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:10:59 verbose #10447 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:10:59 verbose #10448 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:10:59 verbose #10449 > > │ runtime version                                                            │
00:10:59 verbose #10450 > > │                                                                              │
00:10:59 verbose #10451 > > │ .rs output:                                                                  │
00:10:59 verbose #10452 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:10:59 verbose #10453 > > │                                                                              │
00:10:59 verbose #10454 > > │ .ts output:                                                                  │
00:10:59 verbose #10455 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:10:59 verbose #10456 > > │                                                                              │
00:10:59 verbose #10457 > > │ .py output:                                                                  │
00:10:59 verbose #10458 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:10:59 verbose #10459 > > │                                                                              │
00:10:59 verbose #10460 > > │                                                                              │
00:10:59 verbose #10461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:59 verbose #10462 > >
00:10:59 verbose #10463 > > ╭─[ 5.18s - stdout ]───────────────────────────────────────────────────────────╮
00:10:59 verbose #10464 > > │ .fsx output:                                                                 │
00:10:59 verbose #10465 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:10:59 verbose #10466 > > │                                                                              │
00:10:59 verbose #10467 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:59 verbose #10468 > >
00:10:59 verbose #10469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:59 verbose #10470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:59 verbose #10471 > > │ ### try_pick                                                                 │
00:10:59 verbose #10472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:59 verbose #10473 > >
00:10:59 verbose #10474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:59 verbose #10475 > > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:10:59 verbose #10476 > >     (array, None)
00:10:59 verbose #10477 > >     ||> am.foldBack fun x acc =>
00:10:59 verbose #10478 > >         match acc with
00:10:59 verbose #10479 > >         | Some _ => acc
00:10:59 verbose #10480 > >         | None => x |> fn
00:11:00 verbose #10481 > >
00:11:00 verbose #10482 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:00 verbose #10483 > > //// test
00:11:00 verbose #10484 > > ///! fsharp
00:11:00 verbose #10485 > > ///! cuda
00:11:00 verbose #10486 > > ////! rust // match &v23 { Spiral_builder::US0::US0_0(x) => x.clone(), _ =>
00:11:00 verbose #10487 > > unreachable!(), } == 5_i32
00:11:00 verbose #10488 > > ///! typescript
00:11:00 verbose #10489 > > ///! python
00:11:00 verbose #10490 > >
00:11:00 verbose #10491 > > 10
00:11:00 verbose #10492 > > |> init
00:11:00 verbose #10493 > > |> fun x => a x : _ int _
00:11:00 verbose #10494 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:11:00 verbose #10495 > > |> _assert_eq (Some 5i32)
00:11:03 verbose #10496 > >
00:11:03 verbose #10497 > > ╭─[ 3.48s - return value ]─────────────────────────────────────────────────────╮
00:11:03 verbose #10498 > > │                                                                              │
00:11:03 verbose #10499 > > │ .py output (Cuda):                                                           │
00:11:03 verbose #10500 > > │ Traceback (most recent call last):                                     │
00:11:03 verbose #10501 > > │   File                                                                   │
00:11:03 verbose #10502 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:11:03 verbose #10503 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 157, in <module>     │
00:11:03 verbose #10504 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:11:03 verbose #10505 > > │ else print(result)                                                         │
00:11:03 verbose #10506 > > │                                         ^^^^^^                         │
00:11:03 verbose #10507 > > │   File                                                                   │
00:11:03 verbose #10508 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:11:03 verbose #10509 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 155, in main         │
00:11:03 verbose #10510 > > │     return method0()                                                   │
00:11:03 verbose #10511 > > │            ^^^^^^^^^                                                   │
00:11:03 verbose #10512 > > │   File                                                                   │
00:11:03 verbose #10513 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\f574f6aa78dd2d474cc9a15e98 │
00:11:03 verbose #10514 > > │ 16e77781ab6f25f1c539d19fe6f862f7ac5433\main.py", line 83, in method0       │
00:11:03 verbose #10515 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:11:03 verbose #10516 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:11:03 verbose #10517 > > │   File                                                                   │
00:11:03 verbose #10518 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:11:03 verbose #10519 > > │ asic.py", line 31, in empty                                                │
00:11:03 verbose #10520 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:11:03 verbose #10521 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:11:03 verbose #10522 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:11:03 verbose #10523 > > │ cupy._core.core.ndarray.__new__                                            │
00:11:03 verbose #10524 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:11:03 verbose #10525 > > │ cupy._core.core._ndarray_base._init                                        │
00:11:03 verbose #10526 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:11:03 verbose #10527 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:11:03 verbose #10528 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:11:03 verbose #10529 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:11:03 verbose #10530 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:11:03 verbose #10531 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:11:03 verbose #10532 > > │ [0m                                                                          │
00:11:03 verbose #10533 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:11:03 verbose #10534 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:11:03 verbose #10535 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:11:03 verbose #10536 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:11:03 verbose #10537 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:11:03 verbose #10538 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:11:03 verbose #10539 > > │ runtime version                                                            │
00:11:03 verbose #10540 > > │                                                                              │
00:11:03 verbose #10541 > > │ .ts output:                                                                  │
00:11:03 verbose #10542 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:11:03 verbose #10543 > > │                                                                              │
00:11:03 verbose #10544 > > │ .py output:                                                                  │
00:11:03 verbose #10545 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:11:03 verbose #10546 > > │                                                                              │
00:11:03 verbose #10547 > > │                                                                              │
00:11:03 verbose #10548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #10549 > >
00:11:03 verbose #10550 > > ╭─[ 3.48s - stdout ]───────────────────────────────────────────────────────────╮
00:11:03 verbose #10551 > > │ .fsx output:                                                                 │
00:11:03 verbose #10552 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:11:03 verbose #10553 > > │                                                                              │
00:11:03 verbose #10554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #10555 > >
00:11:03 verbose #10556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:03 verbose #10557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:03 verbose #10558 > > │ ### indexed                                                                  │
00:11:03 verbose #10559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #10560 > >
00:11:03 verbose #10561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:03 verbose #10562 > > inl indexed forall t u {number}. (ar : array_base t) : array_base (u * t) =
00:11:03 verbose #10563 > >     ((0, a ;[[]]), (a ar : _ int _))
00:11:03 verbose #10564 > >     ||> am.fold fun (i, acc) x =>
00:11:03 verbose #10565 > >         i + 1, acc ++ a ;[[i, x]]
00:11:03 verbose #10566 > >     |> snd
00:11:03 verbose #10567 > >     |> fun (a x : _ int _) => x
00:11:04 verbose #10568 > >
00:11:04 verbose #10569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:04 verbose #10570 > > //// test
00:11:04 verbose #10571 > > ///! fsharp
00:11:04 verbose #10572 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:11:04 verbose #10573 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:11:04 verbose #10574 > > ///! rust
00:11:04 verbose #10575 > > ///! typescript
00:11:04 verbose #10576 > > ///! python
00:11:04 verbose #10577 > >
00:11:04 verbose #10578 > > am.init 3i32 ((*) 2)
00:11:04 verbose #10579 > > |> fun (a x : _ int _) => x
00:11:04 verbose #10580 > > |> indexed
00:11:04 verbose #10581 > > |> _assert_eq' ;[[0i32, 0; 1, 2; 2, 4]]
00:11:08 verbose #10582 > >
00:11:08 verbose #10583 > > ╭─[ 4.19s - return value ]─────────────────────────────────────────────────────╮
00:11:08 verbose #10584 > > │ .rs output:                                                                  │
00:11:08 verbose #10585 > > │ __assert_eq' / actual: Array(MutCell([(0, 0), (1, 2), (2, 4)])) / expected:  │
00:11:08 verbose #10586 > > │ Array(MutCell([(0, 0), (1, 2), (2, 4)]))                                     │
00:11:08 verbose #10587 > > │                                                                              │
00:11:08 verbose #10588 > > │ .ts output:                                                                  │
00:11:08 verbose #10589 > > │ __assert_eq' / actual: 0,0,1,2,2,4 / expected: 0,0,1,2,2,4                   │
00:11:08 verbose #10590 > > │                                                                              │
00:11:08 verbose #10591 > > │ .py output:                                                                  │
00:11:08 verbose #10592 > > │ __assert_eq' / actual: [(0, 0), (1, 2), (2, 4)] / expected: [(0, 0), (1, 2), │
00:11:08 verbose #10593 > > │ (2, 4)]                                                                      │
00:11:08 verbose #10594 > > │                                                                              │
00:11:08 verbose #10595 > > │                                                                              │
00:11:08 verbose #10596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:08 verbose #10597 > >
00:11:08 verbose #10598 > > ╭─[ 4.19s - stdout ]───────────────────────────────────────────────────────────╮
00:11:08 verbose #10599 > > │ .fsx output:                                                                 │
00:11:08 verbose #10600 > > │ __assert_eq' / actual: [|struct (0, 0); struct (1, 2); struct (2, 4)|] /     │
00:11:08 verbose #10601 > > │ expected: [|struct (0, 0); struct (1, 2); struct (2, 4)|]                    │
00:11:08 verbose #10602 > > │                                                                              │
00:11:08 verbose #10603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:08 verbose #10604 > >
00:11:08 verbose #10605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:08 verbose #10606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:08 verbose #10607 > > │ ### slice                                                                    │
00:11:08 verbose #10608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:08 verbose #10609 > >
00:11:08 verbose #10610 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:08 verbose #10611 > > inl slice forall dim {int; number} el. from nearTo s : a dim el =
00:11:08 verbose #10612 > >     am.slice { from nearTo } s
00:11:08 verbose #10613 > >
00:11:08 verbose #10614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:08 verbose #10615 > > //// test
00:11:08 verbose #10616 > > ///! fsharp
00:11:08 verbose #10617 > > ///! cuda
00:11:08 verbose #10618 > > ///! rust
00:11:08 verbose #10619 > > ///! typescript
00:11:08 verbose #10620 > > ///! python
00:11:08 verbose #10621 > >
00:11:08 verbose #10622 > > inl x : _ i32 _ = a ;[[ 1i32; 2; 3 ]]
00:11:08 verbose #10623 > > x |> slice 0 0 |> _assert_eq (a ;[[]])
00:11:08 verbose #10624 > > x |> slice 0 1 |> _assert_eq (a ;[[ 1 ]])
00:11:08 verbose #10625 > > x |> slice 1 1 |> _assert_eq (a ;[[]])
00:11:08 verbose #10626 > > x |> slice 1 2 |> _assert_eq (a ;[[ 2 ]])
00:11:08 verbose #10627 > > x |> slice 2 2 |> _assert_eq (a ;[[]])
00:11:08 verbose #10628 > > x |> slice 0 2 |> _assert_eq (a ;[[ 1; 2 ]])
00:11:14 verbose #10629 > >
00:11:14 verbose #10630 > > ╭─[ 5.65s - return value ]─────────────────────────────────────────────────────╮
00:11:14 verbose #10631 > > │                                                                              │
00:11:14 verbose #10632 > > │ .py output (Cuda):                                                           │
00:11:14 verbose #10633 > > │ Traceback (most recent call last):                                     │
00:11:14 verbose #10634 > > │   File                                                                   │
00:11:14 verbose #10635 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:11:14 verbose #10636 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 367, in <module>     │
00:11:14 verbose #10637 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:11:14 verbose #10638 > > │ else print(result)                                                         │
00:11:14 verbose #10639 > > │                                         ^^^^^^                         │
00:11:14 verbose #10640 > > │   File                                                                   │
00:11:14 verbose #10641 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:11:14 verbose #10642 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 365, in main         │
00:11:14 verbose #10643 > > │     return method0()                                                   │
00:11:14 verbose #10644 > > │            ^^^^^^^^^                                                   │
00:11:14 verbose #10645 > > │   File                                                                   │
00:11:14 verbose #10646 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\a8adc9f979fb0d14587fb26faf │
00:11:14 verbose #10647 > > │ e8b2f1cddc6a9cfe0d328177faf8a154a65c7b\main.py", line 108, in method0      │
00:11:14 verbose #10648 > > │     v0 = cp.array([1, 2, 3],dtype=cp.int32)                            │
00:11:14 verbose #10649 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            │
00:11:14 verbose #10650 > > │   File                                                                   │
00:11:14 verbose #10651 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:11:14 verbose #10652 > > │ rom_data.py", line 53, in array                                            │
00:11:14 verbose #10653 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:11:14 verbose #10654 > > │ 0m                                                                           │
00:11:14 verbose #10655 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:11:14 verbose #10656 > > │ 0m                                                                           │
00:11:14 verbose #10657 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:11:14 verbose #10658 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:11:14 verbose #10659 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:11:14 verbose #10660 > > │ cupy._core.core._array_default                                             │
00:11:14 verbose #10661 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:11:14 verbose #10662 > > │ cupy._core.core.ndarray.__new__                                            │
00:11:14 verbose #10663 > > │   F...moryPool.malloc                                                  │
00:11:14 verbose #10664 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:11:14 verbose #10665 > > │ [0m                                                                          │
00:11:14 verbose #10666 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:11:14 verbose #10667 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:11:14 verbose #10668 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:11:14 verbose #10669 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:11:14 verbose #10670 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:11:14 verbose #10671 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:11:14 verbose #10672 > > │ runtime version                                                            │
00:11:14 verbose #10673 > > │                                                                              │
00:11:14 verbose #10674 > > │                                                                              │
00:11:14 verbose #10675 > > │ .rs output:                                                                  │
00:11:14 verbose #10676 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:11:14 verbose #10677 > > │ __assert_eq / actual: Array(MutCell([1])) / expected: Array(MutCell([1]))    │
00:11:14 verbose #10678 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:11:14 verbose #10679 > > │ __assert_eq / actual: Array(MutCell([2])) / expected: Array(MutCell([2]))    │
00:11:14 verbose #10680 > > │ __assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))      │
00:11:14 verbose #10681 > > │ __assert_eq / actual: Array(MutCell([1, 2])) / expected: Array(MutCell([1,   │
00:11:14 verbose #10682 > > │ 2]))                                                                         │
00:11:14 verbose #10683 > > │                                                                              │
00:11:14 verbose #10684 > > │                                                                              │
00:11:14 verbose #10685 > > │ .ts output:                                                                  │
00:11:14 verbose #10686 > > │ __assert_eq / actual:  / expected:                                           │
00:11:14 verbose #10687 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:11:14 verbose #10688 > > │ __assert_eq / actual:  / expected:                                           │
00:11:14 verbose #10689 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:11:14 verbose #10690 > > │ __assert_eq / actual:  / expected:                                           │
00:11:14 verbose #10691 > > │ __assert_eq / actual: 1,2 / expected: 1,2                                    │
00:11:14 verbose #10692 > > │                                                                              │
00:11:14 verbose #10693 > > │                                                                              │
00:11:14 verbose #10694 > > │ .py output:                                                                  │
00:11:14 verbose #10695 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:11:14 verbose #10696 > > │ __assert_eq / actual: [1] / expected: array('l', [1])                        │
00:11:14 verbose #10697 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:11:14 verbose #10698 > > │ __assert_eq / actual: [2] / expected: array('l', [2])                        │
00:11:14 verbose #10699 > > │ __assert_eq / actual: [] / expected: array('l')                              │
00:11:14 verbose #10700 > > │ __assert_eq / actual: [1, 2] / expected: array('l', [1, 2])                  │
00:11:14 verbose #10701 > > │                                                                              │
00:11:14 verbose #10702 > > │                                                                              │
00:11:14 verbose #10703 > > │                                                                              │
00:11:14 verbose #10704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #10705 > >
00:11:14 verbose #10706 > > ╭─[ 5.66s - stdout ]───────────────────────────────────────────────────────────╮
00:11:14 verbose #10707 > > │ .fsx output:                                                                 │
00:11:14 verbose #10708 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:11:14 verbose #10709 > > │ __assert_eq / actual: [|1|] / expected: [|1|]                                │
00:11:14 verbose #10710 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:11:14 verbose #10711 > > │ __assert_eq / actual: [|2|] / expected: [|2|]                                │
00:11:14 verbose #10712 > > │ __assert_eq / actual: [||] / expected: [||]                                  │
00:11:14 verbose #10713 > > │ __assert_eq / actual: [|1; 2|] / expected: [|1; 2|]                          │
00:11:14 verbose #10714 > > │                                                                              │
00:11:14 verbose #10715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #10716 > >
00:11:14 verbose #10717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:14 verbose #10718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:14 verbose #10719 > > │ ### range                                                                    │
00:11:14 verbose #10720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #10721 > >
00:11:14 verbose #10722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:14 verbose #10723 > > union range dim =
00:11:14 verbose #10724 > >     | Start : dim
00:11:14 verbose #10725 > >     | End : dim -> dim
00:11:14 verbose #10726 > >
00:11:14 verbose #10727 > > inl range start end s =
00:11:14 verbose #10728 > >     inl start, end =
00:11:14 verbose #10729 > >         match start, end with
00:11:14 verbose #10730 > >         | Start start, End fn =>
00:11:14 verbose #10731 > >             start, s |> length |> conv |> fn
00:11:14 verbose #10732 > >         | End start_fn, End end_fn =>
00:11:14 verbose #10733 > >             inl len = s |> length |> conv
00:11:14 verbose #10734 > >             start_fn len, end_fn len
00:11:14 verbose #10735 > >     s |> slice (start |> unbox) (end |> unbox)
00:11:15 verbose #10736 > >
00:11:15 verbose #10737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #10738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #10739 > > │ ## rust                                                                      │
00:11:15 verbose #10740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #10741 > >
00:11:15 verbose #10742 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #10743 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #10744 > > │ ### vec                                                                      │
00:11:15 verbose #10745 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #10746 > >
00:11:15 verbose #10747 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:15 verbose #10748 > > nominal vec t =
00:11:15 verbose #10749 > >     `(
00:11:15 verbose #10750 > >         backend_switch `(()) `({}) {
00:11:15 verbose #10751 > >             Fsharp =
00:11:15 verbose #10752 > >                 (fun () =>
00:11:15 verbose #10753 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:15 verbose #10754 > > Fable.Core.Emit(\"Vec<$0>\")>]]\n#endif\ntype Vec<'T> = class end"
00:11:15 verbose #10755 > >                 ) : () -> ()
00:11:15 verbose #10756 > >         }
00:11:15 verbose #10757 > >         $'' : $'Vec<`t>'
00:11:15 verbose #10758 > >     )
00:11:15 verbose #10759 > >
00:11:15 verbose #10760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #10761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #10762 > > │ ### from_vec                                                                 │
00:11:15 verbose #10763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #10764 > >
00:11:15 verbose #10765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:15 verbose #10766 > > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:11:15 verbose #10767 > >     !\\(vec, $'"fable_library_rust::NativeArray_::array_from($0)"')
00:11:15 verbose #10768 > >
00:11:15 verbose #10769 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #10770 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #10771 > > │ ### to_vec                                                                   │
00:11:15 verbose #10772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #10773 > >
00:11:15 verbose #10774 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:15 verbose #10775 > > inl to_vec forall t. (ab : array_base t) : vec t =
00:11:15 verbose #10776 > >     !\\(ab, $'"$0.to_vec()"')
00:11:16 verbose #10777 > >
00:11:16 verbose #10778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:16 verbose #10779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:16 verbose #10780 > > │ ### to_vec'                                                                  │
00:11:16 verbose #10781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:16 verbose #10782 > >
00:11:16 verbose #10783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:16 verbose #10784 > > inl to_vec' forall (t : * -> * -> *) u v. (x : t u v) : vec u =
00:11:16 verbose #10785 > >     !\($'$"!x.to_vec()"')
00:11:16 verbose #10786 > >
00:11:16 verbose #10787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:16 verbose #10788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:16 verbose #10789 > > │ ### to_vec''                                                                 │
00:11:16 verbose #10790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:16 verbose #10791 > >
00:11:16 verbose #10792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:16 verbose #10793 > > inl to_vec'' forall (t : * -> *) (u : * -> *) v. (x : t (u v)) : vec v =
00:11:16 verbose #10794 > >     !\($'$"!x.to_vec()"')
00:11:17 verbose #10795 > >
00:11:17 verbose #10796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:17 verbose #10797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:17 verbose #10798 > > │ ### vec_push                                                                 │
00:11:17 verbose #10799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:17 verbose #10800 > >
00:11:17 verbose #10801 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:17 verbose #10802 > > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:11:17 verbose #10803 > >     inl el = join el
00:11:17 verbose #10804 > >     inl vec = join vec
00:11:17 verbose #10805 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:11:17 verbose #10806 > >     // inl vec = vec |> rust.to_mut
00:11:17 verbose #10807 > >     (!\($'"true; !vec.push(!el)"') : bool) |> ignore
00:11:17 verbose #10808 > >     !\($'"!vec"')
00:11:17 verbose #10809 > >
00:11:17 verbose #10810 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:17 verbose #10811 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:17 verbose #10812 > > │ ### vec_reverse                                                              │
00:11:17 verbose #10813 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:17 verbose #10814 > >
00:11:17 verbose #10815 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:17 verbose #10816 > > inl vec_reverse forall el. (vec : vec el) : vec el =
00:11:17 verbose #10817 > >     inl vec = join vec
00:11:17 verbose #10818 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:11:17 verbose #10819 > >     (!\($'"true; !vec.reverse()"') : bool) |> ignore
00:11:17 verbose #10820 > >     !\($'"!vec"')
00:11:17 verbose #10821 > >
00:11:17 verbose #10822 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:17 verbose #10823 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:17 verbose #10824 > > │ ### vec_retain                                                               │
00:11:17 verbose #10825 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:17 verbose #10826 > >
00:11:17 verbose #10827 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:17 verbose #10828 > > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:11:17 verbose #10829 > >     inl vec = join vec
00:11:17 verbose #10830 > >     inl fn = join fn
00:11:17 verbose #10831 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:11:17 verbose #10832 > >     // inl vec = vec |> rust.to_mut
00:11:17 verbose #10833 > >     (!\($'"true; !vec.retain(|x| !fn(x.clone()))"') : bool) |> ignore
00:11:17 verbose #10834 > >     !\($'"!vec"')
00:11:18 verbose #10835 > >
00:11:18 verbose #10836 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:18 verbose #10837 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:18 verbose #10838 > > │ ### vec_sort_by_key                                                          │
00:11:18 verbose #10839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:18 verbose #10840 > >
00:11:18 verbose #10841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:18 verbose #10842 > > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:11:18 verbose #10843 > >     inl vec = join vec
00:11:18 verbose #10844 > >     inl fn = join fn
00:11:18 verbose #10845 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:11:18 verbose #10846 > >     // inl vec = vec |> rust.to_mut
00:11:18 verbose #10847 > >     (!\($'"true; !vec.sort_by_key(|x| !fn(x.clone()))"') : bool) |> ignore
00:11:18 verbose #10848 > >     !\($'"!vec"')
00:11:18 verbose #10849 > >
00:11:18 verbose #10850 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:18 verbose #10851 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:18 verbose #10852 > > │ ### vec_extend                                                               │
00:11:18 verbose #10853 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:18 verbose #10854 > >
00:11:18 verbose #10855 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:18 verbose #10856 > > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:11:18 verbose #10857 > >     inl el = join el
00:11:18 verbose #10858 > >     inl vec = join vec
00:11:18 verbose #10859 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:11:18 verbose #10860 > >     // inl vec = vec |> rust.to_mut
00:11:18 verbose #10861 > >     (!\($'"true; !vec.extend(!el)"') : bool) |> ignore
00:11:18 verbose #10862 > >     !\($'"!vec"')
00:11:18 verbose #10863 > >
00:11:18 verbose #10864 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:18 verbose #10865 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:18 verbose #10866 > > │ ### vec_collect                                                              │
00:11:18 verbose #10867 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:18 verbose #10868 > >
00:11:18 verbose #10869 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:18 verbose #10870 > > inl vec_collect fn vec =
00:11:18 verbose #10871 > >     ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:11:18 verbose #10872 > >     ||> am.fold fun acc x =>
00:11:18 verbose #10873 > >         acc |> vec_extend (fn x)
00:11:19 verbose #10874 > >
00:11:19 verbose #10875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:19 verbose #10876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:19 verbose #10877 > > │ ### vec_collect_option                                                       │
00:11:19 verbose #10878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:19 verbose #10879 > >
00:11:19 verbose #10880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:19 verbose #10881 > > inl vec_collect_option vec =
00:11:19 verbose #10882 > >     ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:11:19 verbose #10883 > >     ||> am.fold fun acc x =>
00:11:19 verbose #10884 > >         x
00:11:19 verbose #10885 > >         |> resultm.unbox
00:11:19 verbose #10886 > >         |> fun x =>
00:11:19 verbose #10887 > >             match acc, x |> resultm.map optionm'.unbox with
00:11:19 verbose #10888 > >             | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:11:19 verbose #10889 > >             | _, Error error => error |> Error
00:11:19 verbose #10890 > >             | _ => acc
00:11:19 verbose #10891 > >
00:11:19 verbose #10892 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:19 verbose #10893 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:19 verbose #10894 > > │ ### vec_collect_into                                                         │
00:11:19 verbose #10895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:19 verbose #10896 > >
00:11:19 verbose #10897 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:19 verbose #10898 > > inl vec_collect_into forall (c : * -> * -> *) t e.
00:11:19 verbose #10899 > >     (x : vec (c t e))
00:11:19 verbose #10900 > >     : c (vec t) e
00:11:19 verbose #10901 > >     =
00:11:19 verbose #10902 > >     !\($'"!x.into_iter().collect()"')
00:11:20 verbose #10903 > >
00:11:20 verbose #10904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:20 verbose #10905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:20 verbose #10906 > > │ ### vec_mapi                                                                 │
00:11:20 verbose #10907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:20 verbose #10908 > >
00:11:20 verbose #10909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:20 verbose #10910 > > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:11:20 verbose #10911 > >     inl fn = join fn
00:11:20 verbose #10912 > >     inl ar = join ar
00:11:20 verbose #10913 > >     !\($'"!ar.iter().enumerate().map(|(i, x)|
00:11:20 verbose #10914 > > !fn(i.try_into().unwrap())(x.clone())).collect::<Vec<_>>()"')
00:11:20 verbose #10915 > >
00:11:20 verbose #10916 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:20 verbose #10917 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:20 verbose #10918 > > │ ### vec_map                                                                  │
00:11:20 verbose #10919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:20 verbose #10920 > >
00:11:20 verbose #10921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:20 verbose #10922 > > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:11:20 verbose #10923 > >     (!\\(ar, $'"true; let _vec_map : Vec<_> = $0.into_iter().map(|x| { //"') :
00:11:20 verbose #10924 > > bool) |> ignore
00:11:20 verbose #10925 > >     inl result = fn !\($'"x"')
00:11:20 verbose #10926 > >     inl is_unit =
00:11:20 verbose #10927 > >         real
00:11:20 verbose #10928 > >             typecase u with
00:11:20 verbose #10929 > >             | () => true
00:11:20 verbose #10930 > >             | _ => false
00:11:20 verbose #10931 > >     if is_unit
00:11:20 verbose #10932 > >     then (!\($'"true; }}).collect::<Vec<_>>()"') : bool) |> ignore
00:11:20 verbose #10933 > >     else (!\\(result, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:11:20 verbose #10934 > >     !\($'"_vec_map"')
00:11:20 verbose #10935 > >
00:11:20 verbose #10936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:20 verbose #10937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:20 verbose #10938 > > │ ### vec_map'                                                                 │
00:11:20 verbose #10939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:20 verbose #10940 > >
00:11:20 verbose #10941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:20 verbose #10942 > > inl vec_map' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:11:20 verbose #10943 > >     !\\((ar, fn), $'"$0.into_iter().map(|x|
00:11:20 verbose #10944 > > $1(x.clone())).collect::<Vec<_>>()"')
00:11:21 verbose #10945 > >
00:11:21 verbose #10946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:21 verbose #10947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:21 verbose #10948 > > │ ### vec_fold'                                                                │
00:11:21 verbose #10949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:21 verbose #10950 > >
00:11:21 verbose #10951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:21 verbose #10952 > > inl vec_fold' forall t u. (fn : u -> t -> u) (init : u) (ar : vec t) : u =
00:11:21 verbose #10953 > >     (!\\(ar, $'"true; let _vec_fold_ = $0.into_iter().fold(!init, |acc, x| {
00:11:21 verbose #10954 > > //"') : bool) |> ignore
00:11:21 verbose #10955 > >     (!\\(fn !\($'"acc"') !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:11:21 verbose #10956 > >     !\($'"_vec_fold_"')
00:11:21 verbose #10957 > >
00:11:21 verbose #10958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:21 verbose #10959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:21 verbose #10960 > > │ ### vec_for_each                                                             │
00:11:21 verbose #10961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:21 verbose #10962 > >
00:11:21 verbose #10963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:21 verbose #10964 > > inl vec_for_each forall t. (fn : t -> ()) (ar : vec t) : () =
00:11:21 verbose #10965 > >     (!\\((ar, fn), $'"true; $0.iter().for_each(|x| { $1(x.clone()); }); //"') :
00:11:21 verbose #10966 > > bool) |> ignore
00:11:22 verbose #10967 > >
00:11:22 verbose #10968 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:22 verbose #10969 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:22 verbose #10970 > > │ ### vec_for_each'                                                            │
00:11:22 verbose #10971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:22 verbose #10972 > >
00:11:22 verbose #10973 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:22 verbose #10974 > > inl vec_for_each' forall t. (fn : t -> ()) (ar : vec t) : () =
00:11:22 verbose #10975 > >     (!\\(ar, $'"true; $0.into_iter().for_each(|x| { //"') : bool) |> ignore
00:11:22 verbose #10976 > >     (!\\(fn !\($'"x"'), $'$"true;"') : bool) |> ignore
00:11:22 verbose #10977 > >     (!\($'"true; }}); { //"') : bool) |> ignore
00:11:22 verbose #10978 > >
00:11:22 verbose #10979 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:22 verbose #10980 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:22 verbose #10981 > > │ ### vec_filter                                                               │
00:11:22 verbose #10982 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:22 verbose #10983 > >
00:11:22 verbose #10984 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:22 verbose #10985 > > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:11:22 verbose #10986 > >     inl fn = join fn
00:11:22 verbose #10987 > >     inl ar = join ar
00:11:22 verbose #10988 > >     !\($'"!ar.into_iter().filter(|x|
00:11:22 verbose #10989 > > !fn(x.clone().clone())).collect::<Vec<_>>()"')
00:11:23 verbose #10990 > >
00:11:23 verbose #10991 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:23 verbose #10992 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:23 verbose #10993 > > │ ### vec_len                                                                  │
00:11:23 verbose #10994 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:23 verbose #10995 > >
00:11:23 verbose #10996 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:23 verbose #10997 > > inl vec_len forall t. (vec : vec t) : unativeint =
00:11:23 verbose #10998 > >     !\\(vec, $'"$0.len()"')
00:11:23 verbose #10999 > >
00:11:23 verbose #11000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:23 verbose #11001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:23 verbose #11002 > > │ ### vec_chunks                                                               │
00:11:23 verbose #11003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:23 verbose #11004 > >
00:11:23 verbose #11005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:23 verbose #11006 > > inl vec_chunks forall t. (n : i32) (vec : vec t) : vec (vec t) =
00:11:23 verbose #11007 > >     !\\(vec, $'"$0.chunks(!n).map(|x| x.into_iter().map(|x|
00:11:23 verbose #11008 > > x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"')
00:11:23 verbose #11009 > >
00:11:23 verbose #11010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:23 verbose #11011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:23 verbose #11012 > > │ ### slice                                                                    │
00:11:23 verbose #11013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:23 verbose #11014 > >
00:11:23 verbose #11015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:23 verbose #11016 > > nominal slice t =
00:11:23 verbose #11017 > >     `(
00:11:23 verbose #11018 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:23 verbose #11019 > > Fable.Core.Emit(\"[[$0]]\")>]]\n#endif\ntype Slice<'T> = class end"
00:11:23 verbose #11020 > >         $'' : $'Slice<`t>'
00:11:23 verbose #11021 > >     )
00:11:24 verbose #11022 > >
00:11:24 verbose #11023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:24 verbose #11024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:24 verbose #11025 > > │ ### slice'                                                                   │
00:11:24 verbose #11026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:24 verbose #11027 > >
00:11:24 verbose #11028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:24 verbose #11029 > > nominal slice' el dim =
00:11:24 verbose #11030 > >     `(
00:11:24 verbose #11031 > >         backend_switch `(()) `({}) {
00:11:24 verbose #11032 > >             Fsharp =
00:11:24 verbose #11033 > >                 (fun () =>
00:11:24 verbose #11034 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:24 verbose #11035 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype Slice'<'T> = class end"
00:11:24 verbose #11036 > >                 ) : () -> ()
00:11:24 verbose #11037 > >         }
00:11:24 verbose #11038 > >         $'' : $'Slice\'<`el>'
00:11:24 verbose #11039 > >     )
00:11:24 verbose #11040 > >
00:11:24 verbose #11041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:24 verbose #11042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:24 verbose #11043 > > │ ### slice_singleton                                                          │
00:11:24 verbose #11044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:24 verbose #11045 > >
00:11:24 verbose #11046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:24 verbose #11047 > > inl slice_singleton forall dim el. (x : option el) : slice' el dim =
00:11:24 verbose #11048 > >     match x with
00:11:24 verbose #11049 > >     | Some x => !\($'"[[!x]]"')
00:11:24 verbose #11050 > >     | None =>
00:11:24 verbose #11051 > >         !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:11:24 verbose #11052 > >             // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:11:24 verbose #11053 > > slice' el 10
00:11:24 verbose #11054 > >             // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:11:25 verbose #11055 > >
00:11:25 verbose #11056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:25 verbose #11057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:25 verbose #11058 > > │ ### slice_length                                                             │
00:11:25 verbose #11059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:25 verbose #11060 > >
00:11:25 verbose #11061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:25 verbose #11062 > > inl slice_length forall t dim. (x : slice' t dim) : unativeint =
00:11:25 verbose #11063 > >     !\($'"!x.len()"')
00:11:25 verbose #11064 > >
00:11:25 verbose #11065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:25 verbose #11066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:25 verbose #11067 > > │ ### slice_range                                                              │
00:11:25 verbose #11068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:25 verbose #11069 > >
00:11:25 verbose #11070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:25 verbose #11071 > > inl slice_range forall t dim. (start : range t) (end : range t) (s : slice' t
00:11:25 verbose #11072 > > dim) : rust.ref (slice' t dim) =
00:11:25 verbose #11073 > >     inl len = s |> slice_length
00:11:25 verbose #11074 > >     inl start, (end : unativeint) =
00:11:25 verbose #11075 > >         match start, end with
00:11:25 verbose #11076 > >         | Start start, End fn => start, len |> convert |> fn |> convert
00:11:25 verbose #11077 > >         | End start_fn, End end_fn => len |> convert |> start_fn, len |> convert
00:11:25 verbose #11078 > > |> end_fn |> convert
00:11:25 verbose #11079 > >     match start, end with
00:11:25 verbose #11080 > >     | start, end when unbox end =. len => !\($'"&!s[[!start..]]"')
00:11:25 verbose #11081 > >     | start, end => !\\((start, end), $'"&!s[[$0..$1]]"')
00:11:26 verbose #11082 > >
00:11:26 verbose #11083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:26 verbose #11084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:26 verbose #11085 > > │ ### new_slice                                                                │
00:11:26 verbose #11086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:26 verbose #11087 > >
00:11:26 verbose #11088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:26 verbose #11089 > > inl new_slice forall el dim. (el : el) : slice' el dim =
00:11:26 verbose #11090 > >     !\\(el, $'"[[$0; @dim]]"')
00:11:26 verbose #11091 > >
00:11:26 verbose #11092 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:26 verbose #11093 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:26 verbose #11094 > > │ ### as_slice                                                                 │
00:11:26 verbose #11095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:26 verbose #11096 > >
00:11:26 verbose #11097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:26 verbose #11098 > > inl as_slice forall t. (x : array_base t) : rust.ref (slice t) =
00:11:26 verbose #11099 > >     inl x = x |> to_vec
00:11:26 verbose #11100 > >     !\($'"!x.as_slice()"')
00:11:26 verbose #11101 > >
00:11:26 verbose #11102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:26 verbose #11103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:26 verbose #11104 > > │ ### slice_to_vec                                                             │
00:11:26 verbose #11105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:26 verbose #11106 > >
00:11:26 verbose #11107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:26 verbose #11108 > > inl slice_to_vec forall t. (slice : rust.ref (slice t)) : vec t =
00:11:26 verbose #11109 > >     !\\(slice, $'"$0.iter().map(|x| *x).collect::<Vec<_>>()"')
00:11:27 verbose #11110 > >
00:11:27 verbose #11111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:27 verbose #11112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:27 verbose #11113 > > │ ### to_le_bytes                                                              │
00:11:27 verbose #11114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:27 verbose #11115 > >
00:11:27 verbose #11116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:27 verbose #11117 > > inl to_le_bytes forall t. (x : t) : slice' u8 8 =
00:11:27 verbose #11118 > >     !\($'$"!x.to_le_bytes()"')
00:11:27 verbose #11119 > >
00:11:27 verbose #11120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:27 verbose #11121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:27 verbose #11122 > > │ ### as_bytes                                                                 │
00:11:27 verbose #11123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:27 verbose #11124 > >
00:11:27 verbose #11125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:27 verbose #11126 > > inl as_bytes forall t. (x : t) : rust.ref (slice u8) =
00:11:27 verbose #11127 > >     !\($'$"!x.as_bytes()"')
00:11:28 verbose #11128 > >
00:11:28 verbose #11129 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:28 verbose #11130 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:28 verbose #11131 > > │ ### any                                                                      │
00:11:28 verbose #11132 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #11133 > >
00:11:28 verbose #11134 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #11135 > > inl any forall t. (fn : t -> bool) (source : array_base t) : bool =
00:11:28 verbose #11136 > >     !\($'"!source.any(|x| !fn(x))"')
00:11:28 verbose #11137 > >
00:11:28 verbose #11138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:28 verbose #11139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:28 verbose #11140 > > │ ### iter_collect vec                                                         │
00:11:28 verbose #11141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #11142 > >
00:11:28 verbose #11143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #11144 > > instance iter_collect vec = fun (iter : into_iterator u) =>
00:11:28 verbose #11145 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:11:28 verbose #11146 > >
00:11:28 verbose #11147 > > instance iter_collect'' vec = fun (iter : into_iterator (t (u v))) =>
00:11:28 verbose #11148 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:11:29 verbose #11149 > >
00:11:29 verbose #11150 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:29 verbose #11151 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:29 verbose #11152 > > │ ### new_vec                                                                  │
00:11:29 verbose #11153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:29 verbose #11154 > >
00:11:29 verbose #11155 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:29 verbose #11156 > > inl new_vec forall t. (items : list t) : vec t =
00:11:29 verbose #11157 > >     inl items =
00:11:29 verbose #11158 > >         (items, ("", 0i32))
00:11:29 verbose #11159 > >         ||> listm.foldBack fun (x : t) (acc, i) =>
00:11:29 verbose #11160 > >             inl x = join x
00:11:29 verbose #11161 > >             $'"!x"' +. (if i = 0 then "" else ", ") +. acc, i + 1
00:11:29 verbose #11162 > >         |> fst
00:11:29 verbose #11163 > >     !\($'"vec\![[" + !items + "]]"')
00:11:29 verbose #11164 > >
00:11:29 verbose #11165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:29 verbose #11166 > > //// test
00:11:29 verbose #11167 > > ///! rust
00:11:29 verbose #11168 > >
00:11:29 verbose #11169 > > [[ 0i32; 1 ]]
00:11:29 verbose #11170 > > |> new_vec
00:11:29 verbose #11171 > > |> sm'.format_debug'
00:11:29 verbose #11172 > > |> sm'.from_std_string
00:11:29 verbose #11173 > > |> _assert_eq "[[0, 1]]"
00:11:33 verbose #11174 > >
00:11:33 verbose #11175 > > ╭─[ 3.62s - return value ]─────────────────────────────────────────────────────╮
00:11:33 verbose #11176 > > │ __assert_eq / actual: "[0, 1]" / expected: "[0, 1]"                          │
00:11:33 verbose #11177 > > │                                                                              │
00:11:33 verbose #11178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #11179 > >
00:11:33 verbose #11180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:33 verbose #11181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:33 verbose #11182 > > │ ## fsharp                                                                    │
00:11:33 verbose #11183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #11184 > >
00:11:33 verbose #11185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:33 verbose #11186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:33 verbose #11187 > > │ ### average                                                                  │
00:11:33 verbose #11188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #11189 > >
00:11:33 verbose #11190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #11191 > > inl average forall el {number}. (a : a _ el) : el =
00:11:33 verbose #11192 > >     $'!a |> Array.average'
00:11:33 verbose #11193 > >
00:11:33 verbose #11194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:33 verbose #11195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:33 verbose #11196 > > │ ### distinct                                                                 │
00:11:33 verbose #11197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #11198 > >
00:11:33 verbose #11199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #11200 > > inl distinct forall dim el. (a : a dim el) : a dim el =
00:11:33 verbose #11201 > >     $'!a |> Array.distinct'
00:11:34 verbose #11202 > >
00:11:34 verbose #11203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #11204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #11205 > > │ ### skip                                                                     │
00:11:34 verbose #11206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #11207 > >
00:11:34 verbose #11208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #11209 > > inl skip forall dim el. (n : dim) (a : a dim el) : a dim el =
00:11:34 verbose #11210 > >     $'!a |> Array.skip !n '
00:11:34 verbose #11211 > >
00:11:34 verbose #11212 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #11213 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #11214 > > │ ### skip_while                                                               │
00:11:34 verbose #11215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #11216 > >
00:11:34 verbose #11217 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #11218 > > inl skip_while forall dim el. (fn : el -> bool) (a : a dim el) : a dim el =
00:11:34 verbose #11219 > >     $'!a |> Array.skipWhile !fn '
00:11:34 verbose #11220 > >
00:11:34 verbose #11221 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #11222 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #11223 > > │ ### to_list'                                                                 │
00:11:34 verbose #11224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #11225 > >
00:11:34 verbose #11226 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #11227 > > inl to_list' forall dim t. (items : a dim t) : listm'.list' t =
00:11:34 verbose #11228 > >     $'!items |> Array.toList'
00:11:35 verbose #11229 > >
00:11:35 verbose #11230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:35 verbose #11231 > > //// test
00:11:35 verbose #11232 > > ///! fsharp
00:11:35 verbose #11233 > > ////! cuda
00:11:35 verbose #11234 > > ///! rust
00:11:35 verbose #11235 > > ///! typescript
00:11:35 verbose #11236 > > ///! python
00:11:35 verbose #11237 > >
00:11:35 verbose #11238 > > a' ;[[ -3i32; 6 ]]
00:11:35 verbose #11239 > > |> to_list'
00:11:35 verbose #11240 > > |> listm'.unbox
00:11:35 verbose #11241 > > |> _assert_eq [[ -3; 6 ]]
00:11:39 verbose #11242 > >
00:11:39 verbose #11243 > > ╭─[ 3.92s - return value ]─────────────────────────────────────────────────────╮
00:11:39 verbose #11244 > > │ .rs output:                                                                  │
00:11:39 verbose #11245 > > │ __assert_eq / actual: UH0_1(-3, UH0_1(6, UH0_0)) / expected: UH0_1(-3,       │
00:11:39 verbose #11246 > > │ UH0_1(6, UH0_0))                                                             │
00:11:39 verbose #11247 > > │                                                                              │
00:11:39 verbose #11248 > > │ .ts output:                                                                  │
00:11:39 verbose #11249 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:11:39 verbose #11250 > > │ UH0_1 (6, UH0_0))                                                            │
00:11:39 verbose #11251 > > │                                                                              │
00:11:39 verbose #11252 > > │ .py output:                                                                  │
00:11:39 verbose #11253 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:11:39 verbose #11254 > > │ UH0_1 (6, UH0_0))                                                            │
00:11:39 verbose #11255 > > │                                                                              │
00:11:39 verbose #11256 > > │                                                                              │
00:11:39 verbose #11257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #11258 > >
00:11:39 verbose #11259 > > ╭─[ 3.92s - stdout ]───────────────────────────────────────────────────────────╮
00:11:39 verbose #11260 > > │ .fsx output:                                                                 │
00:11:39 verbose #11261 > > │ __assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,    │
00:11:39 verbose #11262 > > │ UH0_1 (6, UH0_0))                                                            │
00:11:39 verbose #11263 > > │                                                                              │
00:11:39 verbose #11264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #11265 > >
00:11:39 verbose #11266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:39 verbose #11267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:39 verbose #11268 > > │ ### parallel_map                                                             │
00:11:39 verbose #11269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #11270 > >
00:11:39 verbose #11271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:39 verbose #11272 > > inl parallel_map forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el'
00:11:39 verbose #11273 > > =
00:11:39 verbose #11274 > >     $'!a |> Array.Parallel.map !fn '
00:11:39 verbose #11275 > >
00:11:39 verbose #11276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:39 verbose #11277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:39 verbose #11278 > > │ ### map'                                                                     │
00:11:39 verbose #11279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #11280 > >
00:11:39 verbose #11281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:39 verbose #11282 > > inl map' forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el' =
00:11:39 verbose #11283 > >     $'!a |> Array.map !fn '
00:11:40 verbose #11284 > >
00:11:40 verbose #11285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:40 verbose #11286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:40 verbose #11287 > > │ ### sort_by                                                                  │
00:11:40 verbose #11288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:40 verbose #11289 > >
00:11:40 verbose #11290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:40 verbose #11291 > > inl sort_by forall dim el. (fn : el -> _) (a : a dim el) : a dim el =
00:11:40 verbose #11292 > >     $'!a |> Array.sortBy !fn '
00:11:40 verbose #11293 > >
00:11:40 verbose #11294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:40 verbose #11295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:40 verbose #11296 > > │ ### sort                                                                     │
00:11:40 verbose #11297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:40 verbose #11298 > >
00:11:40 verbose #11299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:40 verbose #11300 > > inl sort forall dim el. (a : a dim el) : a dim el =
00:11:40 verbose #11301 > >     $'!a |> Array.sort'
00:11:41 verbose #11302 > >
00:11:41 verbose #11303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:41 verbose #11304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:41 verbose #11305 > > │ ### sort_descending                                                          │
00:11:41 verbose #11306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:41 verbose #11307 > >
00:11:41 verbose #11308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:41 verbose #11309 > > inl sort_descending forall dim el. (a : a dim el) : a dim el =
00:11:41 verbose #11310 > >     $'!a |> Array.sortDescending'
00:11:41 verbose #11311 > >
00:11:41 verbose #11312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:41 verbose #11313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:41 verbose #11314 > > │ ### transpose                                                                │
00:11:41 verbose #11315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:41 verbose #11316 > >
00:11:41 verbose #11317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:41 verbose #11318 > > inl transpose forall el. (a : array_base (array_base el)) : array_base
00:11:41 verbose #11319 > > (array_base el) =
00:11:41 verbose #11320 > >     $'!a |> Array.transpose'
00:11:41 verbose #11321 > >
00:11:41 verbose #11322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:41 verbose #11323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:41 verbose #11324 > > │ ### try_item                                                                 │
00:11:41 verbose #11325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:41 verbose #11326 > >
00:11:41 verbose #11327 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:41 verbose #11328 > > inl try_item forall dim el. (i : i32) (a : a dim el) : option el =
00:11:41 verbose #11329 > >     $'!a |> Array.tryItem !i ' |> optionm'.unbox
00:11:42 verbose #11330 > 00:01:29 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 83420 }
00:11:42 verbose #11331 > 00:01:29   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:11:42 verbose #11332 >     "nbconvert",
00:11:42 verbose #11333 >     "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb",
00:11:42 verbose #11334 >     "--to",
00:11:42 verbose #11335 >     "html",
00:11:42 verbose #11336 >     "--HTMLExporter.theme=dark",
00:11:42 verbose #11337 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:45 verbose #11338 > 00:01:31 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/am'.dib.ipynb to html
00:11:45 verbose #11339 > 00:01:31 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:45 verbose #11340 > 00:01:31 verbose #7 !   validate(nb)
00:11:49 verbose #11341 > 00:01:35 verbose #8 ! [NbConvertApp] Writing 464373 bytes to c:\home\git\polyglot\lib\spiral\am'.dib.html
00:11:49 verbose #11342 > 00:01:35 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:11:49 verbose #11343 > 00:01:35   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:11:49 verbose #11344 > 00:01:35   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:11:49 verbose #11345 >     "-c",
00:11:49 verbose #11346 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:11:49 verbose #11347 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:50 verbose #11348 > 00:01:36 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:50 verbose #11349 > 00:01:36   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:50 verbose #11350 > 00:01:36   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 84116 }
00:11:50   debug #11351 runtime.execute_with_options_async / { exit_code = 0; output_length = 89631 }
00:11:50   debug #12 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3
00:11:50   debug #11352 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:50 verbose #11353 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "crypto.dib", "--retries", "3"])) }
00:11:50 verbose #11354 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:11:50 verbose #11355 >     "repl",
00:11:50 verbose #11356 >     "--exit-after-run",
00:11:50 verbose #11357 >     "--run",
00:11:50 verbose #11358 >     "c:/home/git/polyglot/lib/spiral/crypto.dib",
00:11:50 verbose #11359 >     "--output-path",
00:11:50 verbose #11360 >     "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb",
00:11:50 verbose #11361 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/crypto.dib" --output-path "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:53 verbose #11362 > >
00:11:53 verbose #11363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #11364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #11365 > > │ # crypto                                                                     │
00:11:53 verbose #11366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:58 verbose #11367 > >
00:11:58 verbose #11368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:58 verbose #11369 > > open rust
00:11:58 verbose #11370 > > open rust_operators
00:12:00 verbose #11371 > >
00:12:00 verbose #11372 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:00 verbose #11373 > > //// test
00:12:00 verbose #11374 > >
00:12:00 verbose #11375 > > open testing
00:12:00 verbose #11376 > > open file_system_operators
00:12:00 verbose #11377 > >
00:12:00 verbose #11378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:00 verbose #11379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:00 verbose #11380 > > │ ## fsharp                                                                    │
00:12:00 verbose #11381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:00 verbose #11382 > >
00:12:00 verbose #11383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:00 verbose #11384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:00 verbose #11385 > > │ ### sha256                                                                   │
00:12:00 verbose #11386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:00 verbose #11387 > >
00:12:00 verbose #11388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:00 verbose #11389 > > nominal sha256 = $'System.Security.Cryptography.SHA256'
00:12:00 verbose #11390 > >
00:12:00 verbose #11391 > > inl sha256 () : sha256 =
00:12:00 verbose #11392 > >     $'`sha256.Create' ()
00:12:00 verbose #11393 > >
00:12:00 verbose #11394 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:00 verbose #11395 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:00 verbose #11396 > > │ ### sha256_compute_hash                                                      │
00:12:00 verbose #11397 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:00 verbose #11398 > >
00:12:00 verbose #11399 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:00 verbose #11400 > > inl sha256_compute_hash (x : sha256) (data : a i32 u8) : a i32 u8 =
00:12:00 verbose #11401 > >     data |> $'!x.ComputeHash'
00:12:01 verbose #11402 > >
00:12:01 verbose #11403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:01 verbose #11404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:01 verbose #11405 > > │ ## rust                                                                      │
00:12:01 verbose #11406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:01 verbose #11407 > >
00:12:01 verbose #11408 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:01 verbose #11409 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:01 verbose #11410 > > │ ### get_file_hash'                                                           │
00:12:01 verbose #11411 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:01 verbose #11412 > >
00:12:01 verbose #11413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:01 verbose #11414 > > inl get_file_hash' (path : string) : result string string =
00:12:01 verbose #11415 > >     inl path = path |> file_system.normalize_path
00:12:01 verbose #11416 > >     inl exit_code, result =
00:12:01 verbose #11417 > >         runtime.execution_options fun x => { x with
00:12:01 verbose #11418 > >             command = $'$"pwsh -c \\\"(Get-FileHash \'{!path}\' -Algorithm
00:12:01 verbose #11419 > > SHA256).Hash\\\""'
00:12:01 verbose #11420 > >         }
00:12:01 verbose #11421 > >         |> runtime.execute_with_options
00:12:01 verbose #11422 > >     if exit_code = 0
00:12:01 verbose #11423 > >     then result |> sm'.to_lower |> Ok
00:12:01 verbose #11424 > >     else result |> Error
00:12:01 verbose #11425 > >
00:12:01 verbose #11426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:01 verbose #11427 > > //// test
00:12:01 verbose #11428 > >
00:12:01 verbose #11429 > > inl file_name = "test.txt"
00:12:01 verbose #11430 > > inl text = "\n"
00:12:01 verbose #11431 > >
00:12:01 verbose #11432 > > inl temp_dir, disposable =
00:12:01 verbose #11433 > >     (file_name, text)
00:12:01 verbose #11434 > >     |> sm'.format_debug
00:12:01 verbose #11435 > >     |> crypto.hash_text
00:12:01 verbose #11436 > >     |> file_system.create_temp_dir'
00:12:01 verbose #11437 > > disposable |> use |> ignore
00:12:01 verbose #11438 > > inl path = temp_dir </> file_name
00:12:01 verbose #11439 > > text |> file_system.write_all_text_async path |> async.run_synchronously
00:12:01 verbose #11440 > > path
00:12:01 verbose #11441 > > |> get_file_hash'
00:12:01 verbose #11442 > > |> resultm.get
00:12:01 verbose #11443 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:12:17 verbose #11444 > >
00:12:17 verbose #11445 > > ╭─[ 16.15s - stdout ]──────────────────────────────────────────────────────────╮
00:12:17 verbose #11446 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:12:17 verbose #11447 > > │ command = pwsh -c "(Get-FileHash                                             │
00:12:17 verbose #11448 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/dotnet-repl/9ca8b18d-e │
00:12:17 verbose #11449 > > │ e77-4684-ad12-21e1354945fc/test.txt' -Algorithm SHA256).Hash";               │
00:12:17 verbose #11450 > > │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
00:12:17 verbose #11451 > > │ stdin = None; trace = true; working_directory = None } }                     │
00:12:17 verbose #11452 > > │ 00:00:00 verbose #2 >                                                   │
00:12:17 verbose #11453 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:12:17 verbose #11454 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:12:17 verbose #11455 > > │ 0; output_length = 64 }                                                      │
00:12:17 verbose #11456 > > │ __assert_eq / actual:                                                        │
00:12:17 verbose #11457 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:12:17 verbose #11458 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:12:17 verbose #11459 > > │                                                                              │
00:12:17 verbose #11460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #11461 > >
00:12:17 verbose #11462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #11463 > > //// test
00:12:17 verbose #11464 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:12:17 verbose #11465 > >
00:12:17 verbose #11466 > > inl file_name = "test.txt"
00:12:17 verbose #11467 > > inl text = "\n"
00:12:17 verbose #11468 > >
00:12:17 verbose #11469 > > inl temp_dir, disposable =
00:12:17 verbose #11470 > >     (file_name, text)
00:12:17 verbose #11471 > >     |> sm'.format_debug
00:12:17 verbose #11472 > >     |> crypto.hash_text
00:12:17 verbose #11473 > >     |> file_system.create_temp_dir'
00:12:17 verbose #11474 > > inl path = temp_dir </> file_name
00:12:17 verbose #11475 > > text |> file_system.write_all_text path
00:12:17 verbose #11476 > > path
00:12:17 verbose #11477 > > |> get_file_hash'
00:12:17 verbose #11478 > > |> resultm.get
00:12:17 verbose #11479 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:12:17 verbose #11480 > > disposable |> use |> ignore
00:12:30 verbose #11481 > >
00:12:30 verbose #11482 > > ╭─[ 12.88s - return value ]────────────────────────────────────────────────────╮
00:12:30 verbose #11483 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:12:30 verbose #11484 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_3be54dc5 │
00:12:30 verbose #11485 > > │ 1c5c923f40fd1ce0206270232ee3e06c34bed1804a37fd411b82b65e\ba0aa16a-6c5a-be3f- │
00:12:30 verbose #11486 > > │ b526-70110c680e36 }                                                          │
00:12:30 verbose #11487 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:12:30 verbose #11488 > > │ arguments = [                                                                │
00:12:30 verbose #11489 > > │     "-c",                                                                    │
00:12:30 verbose #11490 > > │     "(Get-FileHash                                                           │
00:12:30 verbose #11491 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_3be54dc │
00:12:30 verbose #11492 > > │ 51c5c923f40fd1ce0206270232ee3e06c34bed1804a37fd411b82b65e/ba0aa16a-6c5a-be3f │
00:12:30 verbose #11493 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash",                       │
00:12:30 verbose #11494 > > │ ]; options = { command = pwsh -c "(Get-FileHash                              │
00:12:30 verbose #11495 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_3be54dc │
00:12:30 verbose #11496 > > │ 51c5c923f40fd1ce0206270232ee3e06c34bed1804a37fd411b82b65e/ba0aa16a-6c5a-be3f │
00:12:30 verbose #11497 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"; cancellation_token =  │
00:12:30 verbose #11498 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:12:30 verbose #11499 > > │ None; trace = true; working_directory = None } }                             │
00:12:30 verbose #11500 > > │ 00:00:00 verbose #3 >                                                  │
00:12:30 verbose #11501 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:12:30 verbose #11502 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:12:30 verbose #11503 > > │ exit_code = 0; std_trace_length = 64 }                                       │
00:12:30 verbose #11504 > > │ __assert_eq / actual:                                                        │
00:12:30 verbose #11505 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:12:30 verbose #11506 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:12:30 verbose #11507 > > │                                                                              │
00:12:30 verbose #11508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:30 verbose #11509 > >
00:12:30 verbose #11510 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:30 verbose #11511 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:30 verbose #11512 > > │ ### sha256'                                                                  │
00:12:30 verbose #11513 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:30 verbose #11514 > >
00:12:30 verbose #11515 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:30 verbose #11516 > > nominal sha256' =
00:12:30 verbose #11517 > >     `(
00:12:30 verbose #11518 > >         backend_switch `(()) `({}) {
00:12:30 verbose #11519 > >             Fsharp =
00:12:30 verbose #11520 > >                 (fun () =>
00:12:30 verbose #11521 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:12:30 verbose #11522 > > Fable.Core.Emit(\"sha2::Sha256\")>]]\n#endif\ntype sha2_Sha256 = class end"
00:12:30 verbose #11523 > >                 ) : () -> ()
00:12:30 verbose #11524 > >         }
00:12:30 verbose #11525 > >         $'' : $'sha2_Sha256'
00:12:30 verbose #11526 > >     )
00:12:31 verbose #11527 > >
00:12:31 verbose #11528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:31 verbose #11529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:31 verbose #11530 > > │ ### new_sha256                                                               │
00:12:31 verbose #11531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:31 verbose #11532 > >
00:12:31 verbose #11533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:31 verbose #11534 > > inl new_sha256 () : sha256' =
00:12:31 verbose #11535 > >     !\($'"let result : sha2::Sha256 = sha2::Digest::new()"')
00:12:31 verbose #11536 > >     !\($'"result"')
00:12:31 verbose #11537 > >
00:12:31 verbose #11538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:31 verbose #11539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:31 verbose #11540 > > │ ### hasher_update                                                            │
00:12:31 verbose #11541 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:31 verbose #11542 > >
00:12:31 verbose #11543 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:31 verbose #11544 > > inl hasher_update forall el dim. (slice : rust.ref (am'.slice' el dim)) (hasher
00:12:31 verbose #11545 > > : sha256') : () =
00:12:31 verbose #11546 > >     !\($'"sha2::Digest::update(&mut !hasher, !slice)"')
00:12:32 verbose #11547 > >
00:12:32 verbose #11548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #11549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #11550 > > │ ### hasher_finalize                                                          │
00:12:32 verbose #11551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #11552 > >
00:12:32 verbose #11553 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #11554 > > inl hasher_finalize (hasher : sha256') : rust.ref (am'.slice u8) =
00:12:32 verbose #11555 > >     !\($'"&sha2::Digest::finalize(!hasher)"')
00:12:32 verbose #11556 > >
00:12:32 verbose #11557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #11558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #11559 > > │ ### hash_read                                                                │
00:12:32 verbose #11560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #11561 > >
00:12:32 verbose #11562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #11563 > > inl hash_read data : resultm.result' string stream.io_error =
00:12:32 verbose #11564 > >     inl reader = data |> stream.new_buf_reader
00:12:32 verbose #11565 > >     (!\($'"true; let mut !reader = !reader"') : bool) |> ignore
00:12:32 verbose #11566 > >     inl hasher = new_sha256 ()
00:12:32 verbose #11567 > >     (!\($'"true; let mut !hasher = !hasher"') : bool) |> ignore
00:12:32 verbose #11568 > >
00:12:32 verbose #11569 > >     real
00:12:32 verbose #11570 > >         inl size = 1024
00:12:32 verbose #11571 > >         inl zero = convert `i32 `unativeint 0
00:12:32 verbose #11572 > >         inl buffer = am'.new_slice `u8 `@size 0u8
00:12:32 verbose #11573 > >
00:12:32 verbose #11574 > >         rust.loop 2 fun () =>
00:12:32 verbose #11575 > >             inl count = stream.buf_reader_read `u8 `@size buffer reader
00:12:32 verbose #11576 > >             inl count = resultm.unwrap' `unativeint `(stream.io_error) count
00:12:32 verbose #11577 > >
00:12:32 verbose #11578 > >             if (=.) `unativeint count zero then rust.break ()
00:12:32 verbose #11579 > >
00:12:32 verbose #11580 > >             hasher_update `u8 `@size
00:12:32 verbose #11581 > >                 (
00:12:32 verbose #11582 > >                     am'.slice_range `u8 `@size
00:12:32 verbose #11583 > >                         (am'.Start `unativeint zero)
00:12:32 verbose #11584 > >                         (am'.End `unativeint ((fun _ => count) : unativeint ->
00:12:32 verbose #11585 > > unativeint))
00:12:32 verbose #11586 > >                         buffer
00:12:32 verbose #11587 > >                 )
00:12:32 verbose #11588 > >                 hasher
00:12:32 verbose #11589 > >
00:12:32 verbose #11590 > >     hasher
00:12:32 verbose #11591 > >     |> hasher_finalize
00:12:32 verbose #11592 > >     |> am'.slice_to_vec
00:12:32 verbose #11593 > >     |> am'.vec_map (sm'.format_hex' >> sm'.from_std_string)
00:12:32 verbose #11594 > >     |> am'.from_vec
00:12:32 verbose #11595 > >     |> fun x => x : _ i32 _
00:12:32 verbose #11596 > >     |> seq.of_array'
00:12:32 verbose #11597 > >     |> sm'.concat (join "")
00:12:32 verbose #11598 > >     |> Ok
00:12:32 verbose #11599 > >     |> resultm.box
00:12:33 verbose #11600 > >
00:12:33 verbose #11601 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:33 verbose #11602 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:33 verbose #11603 > > │ ### get_file_hash                                                            │
00:12:33 verbose #11604 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:33 verbose #11605 > >
00:12:33 verbose #11606 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:33 verbose #11607 > > inl get_file_hash (path : string) =
00:12:33 verbose #11608 > >     inl path = path |> file_system.normalize_path
00:12:33 verbose #11609 > >     inl file = path |> file_system.file_open |> resultm.unwrap'
00:12:33 verbose #11610 > >     inl reader = file |> stream.new_buf_reader
00:12:33 verbose #11611 > >     reader
00:12:33 verbose #11612 > >     |> hash_read
00:12:33 verbose #11613 > >
00:12:33 verbose #11614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:33 verbose #11615 > > //// test
00:12:33 verbose #11616 > > ///! rust -d chrono regex sha2
00:12:33 verbose #11617 > >
00:12:33 verbose #11618 > > inl file_name = join "test.txt"
00:12:33 verbose #11619 > > inl text = "\n"
00:12:33 verbose #11620 > >
00:12:33 verbose #11621 > > inl temp_dir, disposable =
00:12:33 verbose #11622 > >     (file_name, text)
00:12:33 verbose #11623 > >     |> sm'.format_debug
00:12:33 verbose #11624 > >     |> crypto.hash_text
00:12:33 verbose #11625 > >     |> file_system.create_temp_dir'
00:12:33 verbose #11626 > >
00:12:33 verbose #11627 > > inl path = temp_dir </> file_name
00:12:33 verbose #11628 > > text |> file_system.write_all_text path
00:12:33 verbose #11629 > >
00:12:33 verbose #11630 > > path
00:12:33 verbose #11631 > > |> get_file_hash
00:12:33 verbose #11632 > > |> resultm.unwrap'
00:12:33 verbose #11633 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:12:33 verbose #11634 > > disposable |> use |> ignore
00:12:39 verbose #11635 > >
00:12:39 verbose #11636 > > ╭─[ 5.57s - return value ]─────────────────────────────────────────────────────╮
00:12:39 verbose #11637 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:12:39 verbose #11638 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_b44d3599 │
00:12:39 verbose #11639 > > │ f407f9f07f68e829c649cac65dec20f36e57123a73d4a3447f040cd8\ba0aa16a-6c5a-be3f- │
00:12:39 verbose #11640 > > │ b526-70110c680e36 }                                                          │
00:12:39 verbose #11641 > > │ __assert_eq / actual:                                                        │
00:12:39 verbose #11642 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:12:39 verbose #11643 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:12:39 verbose #11644 > > │                                                                              │
00:12:39 verbose #11645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:39 verbose #11646 > >
00:12:39 verbose #11647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:39 verbose #11648 > > //// test
00:12:39 verbose #11649 > > ///! rust -d chrono regex sha2
00:12:39 verbose #11650 > >
00:12:39 verbose #11651 > > inl file_name = join "test.txt"
00:12:39 verbose #11652 > > inl text = ""
00:12:39 verbose #11653 > >
00:12:39 verbose #11654 > > inl temp_dir, disposable =
00:12:39 verbose #11655 > >     (file_name, text)
00:12:39 verbose #11656 > >     |> sm'.format_debug
00:12:39 verbose #11657 > >     |> crypto.hash_text
00:12:39 verbose #11658 > >     |> file_system.create_temp_dir'
00:12:39 verbose #11659 > >
00:12:39 verbose #11660 > > inl path = temp_dir </> file_name
00:12:39 verbose #11661 > > text |> file_system.write_all_text path
00:12:39 verbose #11662 > > path
00:12:39 verbose #11663 > > |> get_file_hash
00:12:39 verbose #11664 > > |> resultm.unwrap'
00:12:39 verbose #11665 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:12:39 verbose #11666 > > disposable |> use |> ignore
00:12:45 verbose #11667 > >
00:12:45 verbose #11668 > > ╭─[ 5.85s - return value ]─────────────────────────────────────────────────────╮
00:12:45 verbose #11669 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:12:45 verbose #11670 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_a93e4b00 │
00:12:45 verbose #11671 > > │ 490ef7ea4f097b75c6738743299cd5b8b99bcee0caf6e9d8132b44cb\c0e26dac-4cb1-4b09- │
00:12:45 verbose #11672 > > │ be07-ff616700f056 }                                                          │
00:12:45 verbose #11673 > > │ __assert_eq / actual:                                                        │
00:12:45 verbose #11674 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:12:45 verbose #11675 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:12:45 verbose #11676 > > │                                                                              │
00:12:45 verbose #11677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 verbose #11678 > >
00:12:45 verbose #11679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:45 verbose #11680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:45 verbose #11681 > > │ ## typescript                                                                │
00:12:45 verbose #11682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 verbose #11683 > >
00:12:45 verbose #11684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:45 verbose #11685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:45 verbose #11686 > > │ ### create_hash                                                              │
00:12:45 verbose #11687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 verbose #11688 > >
00:12:45 verbose #11689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:45 verbose #11690 > > inl create_hash (x : string) : any =
00:12:45 verbose #11691 > >     open typescript_operators
00:12:45 verbose #11692 > >     global "type ICryptoCreateHash = abstract createHash: x: string -> obj"
00:12:45 verbose #11693 > >     inl crypto : $'ICryptoCreateHash' = typescript.import_all "crypto"
00:12:45 verbose #11694 > >     !\\(x, $'"!crypto.createHash($0)"')
00:12:45 verbose #11695 > >
00:12:45 verbose #11696 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:45 verbose #11697 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:45 verbose #11698 > > │ ### hash_update                                                              │
00:12:45 verbose #11699 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:45 verbose #11700 > >
00:12:45 verbose #11701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:45 verbose #11702 > > inl hash_update (s : string) (x : any) : any =
00:12:45 verbose #11703 > >     open typescript_operators
00:12:45 verbose #11704 > >     !\\((x, s), $'"$0.update($1, \'utf8\')"')
00:12:46 verbose #11705 > >
00:12:46 verbose #11706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:46 verbose #11707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:46 verbose #11708 > > │ ### hash_digest                                                              │
00:12:46 verbose #11709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:46 verbose #11710 > >
00:12:46 verbose #11711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:46 verbose #11712 > > inl hash_digest (s : string) (x : any) : string =
00:12:46 verbose #11713 > >     open typescript_operators
00:12:46 verbose #11714 > >     !\\((x, s), $'"$0.digest($1)"')
00:12:46 verbose #11715 > >
00:12:46 verbose #11716 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:46 verbose #11717 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:46 verbose #11718 > > │ ## python                                                                    │
00:12:46 verbose #11719 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:46 verbose #11720 > >
00:12:46 verbose #11721 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:46 verbose #11722 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:46 verbose #11723 > > │ ### py_sha256                                                                │
00:12:46 verbose #11724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:46 verbose #11725 > >
00:12:46 verbose #11726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:46 verbose #11727 > > nominal py_sha256 = any
00:12:46 verbose #11728 > >
00:12:46 verbose #11729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:46 verbose #11730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:46 verbose #11731 > > │ ### hashlib_sha256                                                           │
00:12:46 verbose #11732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:46 verbose #11733 > >
00:12:46 verbose #11734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:46 verbose #11735 > > inl hashlib_sha256 () : py_sha256 =
00:12:46 verbose #11736 > >     backend_switch {
00:12:46 verbose #11737 > >         Fsharp = fun () =>
00:12:46 verbose #11738 > >             open python_operators
00:12:46 verbose #11739 > >             global "type IHashlibSha256 = abstract sha256: x: unit -> obj"
00:12:46 verbose #11740 > >             inl hashlib : $'IHashlibSha256' = python.import_all "hashlib"
00:12:46 verbose #11741 > >             !\($'"!hashlib.sha256()"') : py_sha256
00:12:46 verbose #11742 > >         Python = fun () =>
00:12:46 verbose #11743 > >             global "import hashlib"
00:12:46 verbose #11744 > >             $'hashlib.sha256()' : py_sha256
00:12:46 verbose #11745 > >     }
00:12:47 verbose #11746 > >
00:12:47 verbose #11747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 verbose #11748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 verbose #11749 > > │ ### sha256_update                                                            │
00:12:47 verbose #11750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 verbose #11751 > >
00:12:47 verbose #11752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:47 verbose #11753 > > inl sha256_update (x : string) (sha256 : py_sha256) : py_sha256 =
00:12:47 verbose #11754 > >     backend_switch {
00:12:47 verbose #11755 > >         Fsharp = fun () =>
00:12:47 verbose #11756 > >             open python_operators
00:12:47 verbose #11757 > >             !\\(x, $'"!sha256.update($0)"') : ()
00:12:47 verbose #11758 > >         Python = fun () =>
00:12:47 verbose #11759 > >             $'!sha256.update(!x)' : ()
00:12:47 verbose #11760 > >     }
00:12:47 verbose #11761 > >     sha256
00:12:47 verbose #11762 > >
00:12:47 verbose #11763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 verbose #11764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 verbose #11765 > > │ ### sha256_hexdigest                                                         │
00:12:47 verbose #11766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:47 verbose #11767 > >
00:12:47 verbose #11768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:47 verbose #11769 > > inl sha256_hexdigest (sha256 : py_sha256) : string =
00:12:47 verbose #11770 > >     backend_switch {
00:12:47 verbose #11771 > >         Fsharp = fun () =>
00:12:47 verbose #11772 > >             open python_operators
00:12:47 verbose #11773 > >             !\($'"!sha256.hexdigest()"') : string
00:12:47 verbose #11774 > >         Python = fun () =>
00:12:47 verbose #11775 > >             $'!sha256.hexdigest()' : string
00:12:47 verbose #11776 > >     }
00:12:48 verbose #11777 > >
00:12:48 verbose #11778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:48 verbose #11779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:48 verbose #11780 > > │ ## crypto                                                                    │
00:12:48 verbose #11781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:48 verbose #11782 > >
00:12:48 verbose #11783 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:48 verbose #11784 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:48 verbose #11785 > > │ ### hash_text                                                                │
00:12:48 verbose #11786 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:48 verbose #11787 > >
00:12:48 verbose #11788 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:48 verbose #11789 > > let hash_text (~input : string) =
00:12:48 verbose #11790 > >     run_target function
00:12:48 verbose #11791 > >         | Fsharp (Native) => fun () =>
00:12:48 verbose #11792 > >             inl sha256 = sha256 () |> use
00:12:48 verbose #11793 > >             input
00:12:48 verbose #11794 > >             |> sm'.utf8_get_bytes
00:12:48 verbose #11795 > >             |> sha256_compute_hash sha256
00:12:48 verbose #11796 > >             |> am.map (sm'.byte_to_string "x2")
00:12:48 verbose #11797 > >             |> seq.of_array'
00:12:48 verbose #11798 > >             |> sm'.concat (join "")
00:12:48 verbose #11799 > >         | TypeScript (Native) => fun () =>
00:12:48 verbose #11800 > >             create_hash "sha256"
00:12:48 verbose #11801 > >             |> hash_update input
00:12:48 verbose #11802 > >             |> hash_digest "hex"
00:12:48 verbose #11803 > >         | Rust (Native) => fun () =>
00:12:48 verbose #11804 > >             input
00:12:48 verbose #11805 > >             |> sm'.utf8_get_bytes
00:12:48 verbose #11806 > >             |> fun (a x) => x
00:12:48 verbose #11807 > >             |> am'.to_vec
00:12:48 verbose #11808 > >             |> stream.new_cursor
00:12:48 verbose #11809 > >             |> hash_read
00:12:48 verbose #11810 > >             |> resultm.unwrap'
00:12:48 verbose #11811 > >         | Python (Native) | Cuda (Native) => fun () =>
00:12:48 verbose #11812 > >             hashlib_sha256 ()
00:12:48 verbose #11813 > >             |> sha256_update (input |> sm'.encode_utf8)
00:12:48 verbose #11814 > >             |> sha256_hexdigest
00:12:48 verbose #11815 > >         | _ => fun () => null ()
00:12:48 verbose #11816 > >
00:12:48 verbose #11817 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:48 verbose #11818 > > //// test
00:12:48 verbose #11819 > > ///! fsharp
00:12:48 verbose #11820 > > ///! cuda
00:12:48 verbose #11821 > > ///! rust -d sha2
00:12:48 verbose #11822 > > ///! typescript
00:12:48 verbose #11823 > > ///! python
00:12:48 verbose #11824 > >
00:12:48 verbose #11825 > > "\n"
00:12:48 verbose #11826 > > |> hash_text
00:12:48 verbose #11827 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:12:48 verbose #11828 > >
00:12:48 verbose #11829 > > ""
00:12:48 verbose #11830 > > |> hash_text
00:12:48 verbose #11831 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:12:54 verbose #11832 > >
00:12:54 verbose #11833 > > ╭─[ 5.74s - return value ]─────────────────────────────────────────────────────╮
00:12:54 verbose #11834 > > │                                                                              │
00:12:54 verbose #11835 > > │ .py output (Cuda):                                                           │
00:12:54 verbose #11836 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11837 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:12:54 verbose #11838 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:12:54 verbose #11839 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11840 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:12:54 verbose #11841 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:12:54 verbose #11842 > > │                                                                              │
00:12:54 verbose #11843 > > │                                                                              │
00:12:54 verbose #11844 > > │ .rs output (rust -d sha2):                                                   │
00:12:54 verbose #11845 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11846 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:12:54 verbose #11847 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:12:54 verbose #11848 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11849 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:12:54 verbose #11850 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:12:54 verbose #11851 > > │                                                                              │
00:12:54 verbose #11852 > > │                                                                              │
00:12:54 verbose #11853 > > │ .ts output:                                                                  │
00:12:54 verbose #11854 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11855 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:12:54 verbose #11856 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:12:54 verbose #11857 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11858 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:12:54 verbose #11859 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:12:54 verbose #11860 > > │                                                                              │
00:12:54 verbose #11861 > > │                                                                              │
00:12:54 verbose #11862 > > │ .py output:                                                                  │
00:12:54 verbose #11863 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11864 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:12:54 verbose #11865 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:12:54 verbose #11866 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11867 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:12:54 verbose #11868 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:12:54 verbose #11869 > > │                                                                              │
00:12:54 verbose #11870 > > │                                                                              │
00:12:54 verbose #11871 > > │                                                                              │
00:12:54 verbose #11872 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #11873 > >
00:12:54 verbose #11874 > > ╭─[ 5.74s - stdout ]───────────────────────────────────────────────────────────╮
00:12:54 verbose #11875 > > │ .fsx output:                                                                 │
00:12:54 verbose #11876 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11877 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:12:54 verbose #11878 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:12:54 verbose #11879 > > │ __assert_eq / actual:                                                        │
00:12:54 verbose #11880 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:12:54 verbose #11881 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:12:54 verbose #11882 > > │                                                                              │
00:12:54 verbose #11883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #11884 > >
00:12:54 verbose #11885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:54 verbose #11886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:54 verbose #11887 > > │ ### hash_to_port                                                             │
00:12:54 verbose #11888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #11889 > >
00:12:54 verbose #11890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:54 verbose #11891 > > inl hash_to_port (text : string) : u16 =
00:12:54 verbose #11892 > >     inl first_letter_code = text |> sm'.index 0i32 |> i32
00:12:54 verbose #11893 > >     inl hash_part = text |> sm'.slice 0i32 7
00:12:54 verbose #11894 > >     inl combined_value = convert_i32_base 16 hash_part + first_letter_code |>
00:12:54 verbose #11895 > > u16
00:12:54 verbose #11896 > >     trace Verbose
00:12:54 verbose #11897 > >         fun () => "crypto.hash_to_port"
00:12:54 verbose #11898 > >         fun () => { first_letter_code hash_part combined_value }
00:12:54 verbose #11899 > >     combined_value % 48128 + 1024
00:12:54 verbose #11900 > >
00:12:54 verbose #11901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:54 verbose #11902 > > //// test
00:12:54 verbose #11903 > > ///! fsharp
00:12:54 verbose #11904 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:12:54 verbose #11905 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:12:54 verbose #11906 > > ///! rust -d sha2
00:12:54 verbose #11907 > > ///! typescript
00:12:54 verbose #11908 > > ///! python
00:12:54 verbose #11909 > >
00:12:54 verbose #11910 > > "\n"
00:12:54 verbose #11911 > > |> hash_text
00:12:54 verbose #11912 > > |> hash_to_port
00:12:54 verbose #11913 > > |> _assert_eq 19273
00:13:00 verbose #11914 > >
00:13:00 verbose #11915 > > ╭─[ 5.38s - return value ]─────────────────────────────────────────────────────╮
00:13:00 verbose #11916 > > │                                                                              │
00:13:00 verbose #11917 > > │ .rs output (rust -d sha2):                                                   │
00:13:00 verbose #11918 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;    │
00:13:00 verbose #11919 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:13:00 verbose #11920 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:13:00 verbose #11921 > > │                                                                              │
00:13:00 verbose #11922 > > │                                                                              │
00:13:00 verbose #11923 > > │ .ts output:                                                                  │
00:13:00 verbose #11924 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:13:00 verbose #11925 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:13:00 verbose #11926 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:13:00 verbose #11927 > > │                                                                              │
00:13:00 verbose #11928 > > │                                                                              │
00:13:00 verbose #11929 > > │ .py output:                                                                  │
00:13:00 verbose #11930 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:13:00 verbose #11931 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:13:00 verbose #11932 > > │ __assert_eq / actual: 19273 / expected: 19273                                │
00:13:00 verbose #11933 > > │                                                                              │
00:13:00 verbose #11934 > > │                                                                              │
00:13:00 verbose #11935 > > │                                                                              │
00:13:00 verbose #11936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #11937 > >
00:13:00 verbose #11938 > > ╭─[ 5.38s - stdout ]───────────────────────────────────────────────────────────╮
00:13:00 verbose #11939 > > │ .fsx output:                                                                 │
00:13:00 verbose #11940 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:13:00 verbose #11941 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:13:00 verbose #11942 > > │ __assert_eq / actual: 19273us / expected: 19273us                            │
00:13:00 verbose #11943 > > │                                                                              │
00:13:00 verbose #11944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #11945 > >
00:13:00 verbose #11946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:00 verbose #11947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:00 verbose #11948 > > │ ## main                                                                      │
00:13:00 verbose #11949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #11950 > >
00:13:00 verbose #11951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:00 verbose #11952 > > inl main () =
00:13:00 verbose #11953 > >     $'let hash_text x = !hash_text x' : ()
00:13:00 verbose #11954 > >     $'let hash_to_port x = !hash_to_port x' : ()
00:13:01 verbose #11955 > 00:01:11 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 29996 }
00:13:01 verbose #11956 > 00:01:11   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:13:01 verbose #11957 >     "nbconvert",
00:13:01 verbose #11958 >     "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb",
00:13:01 verbose #11959 >     "--to",
00:13:01 verbose #11960 >     "html",
00:13:01 verbose #11961 >     "--HTMLExporter.theme=dark",
00:13:01 verbose #11962 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:04 verbose #11963 > 00:01:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb to html
00:13:04 verbose #11964 > 00:01:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:13:04 verbose #11965 > 00:01:14 verbose #7 !   validate(nb)
00:13:06 verbose #11966 > 00:01:16 verbose #8 ! [NbConvertApp] Writing 341022 bytes to c:\home\git\polyglot\lib\spiral\crypto.dib.html
00:13:07 verbose #11967 > 00:01:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:13:07 verbose #11968 > 00:01:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:13:07 verbose #11969 > 00:01:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:13:07 verbose #11970 >     "-c",
00:13:07 verbose #11971 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:13:07 verbose #11972 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:07 verbose #11973 > 00:01:17 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:13:07 verbose #11974 > 00:01:17   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:13:07 verbose #11975 > 00:01:17   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 30698 }
00:13:07   debug #11976 runtime.execute_with_options_async / { exit_code = 0; output_length = 34562 }
00:13:07   debug #13 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3
00:13:07   debug #11977 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:07 verbose #11978 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "common.dib", "--retries", "3"])) }
00:13:07 verbose #11979 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:13:07 verbose #11980 >     "repl",
00:13:07 verbose #11981 >     "--exit-after-run",
00:13:07 verbose #11982 >     "--run",
00:13:07 verbose #11983 >     "c:/home/git/polyglot/lib/spiral/common.dib",
00:13:07 verbose #11984 >     "--output-path",
00:13:07 verbose #11985 >     "c:/home/git/polyglot/lib/spiral/common.dib.ipynb",
00:13:07 verbose #11986 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/common.dib" --output-path "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:13:10 verbose #11987 > >
00:13:10 verbose #11988 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:10 verbose #11989 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:10 verbose #11990 > > │ # common                                                                     │
00:13:10 verbose #11991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:15 verbose #11992 > >
00:13:15 verbose #11993 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:15 verbose #11994 > > //// test
00:13:15 verbose #11995 > >
00:13:15 verbose #11996 > > open testing
00:13:17 verbose #11997 > >
00:13:17 verbose #11998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:17 verbose #11999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:17 verbose #12000 > > │ ## common                                                                    │
00:13:17 verbose #12001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:17 verbose #12002 > >
00:13:17 verbose #12003 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:17 verbose #12004 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:17 verbose #12005 > > │ ### (:>)                                                                     │
00:13:17 verbose #12006 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:17 verbose #12007 > >
00:13:17 verbose #12008 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:17 verbose #12009 > > prototype (~:>) r : forall t. t -> r
00:13:17 verbose #12010 > >
00:13:17 verbose #12011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:17 verbose #12012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:17 verbose #12013 > > │ ### to_any                                                                   │
00:13:17 verbose #12014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:17 verbose #12015 > >
00:13:17 verbose #12016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:17 verbose #12017 > > inl to_any forall t. (obj : t) : any =
00:13:17 verbose #12018 > >     $'!obj '
00:13:17 verbose #12019 > >
00:13:17 verbose #12020 > > instance (~:>) any = to_any
00:13:18 verbose #12021 > >
00:13:18 verbose #12022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:18 verbose #12023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:18 verbose #12024 > > │ ### (||>)                                                                    │
00:13:18 verbose #12025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:18 verbose #12026 > >
00:13:18 verbose #12027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:18 verbose #12028 > > //// test
00:13:18 verbose #12029 > > ///! fsharp
00:13:18 verbose #12030 > > ///! cuda
00:13:18 verbose #12031 > > ///! rust
00:13:18 verbose #12032 > > ///! typescript
00:13:18 verbose #12033 > > ///! python
00:13:18 verbose #12034 > >
00:13:18 verbose #12035 > > (3i32, 2i32)
00:13:18 verbose #12036 > > ||> fun a b => a - b
00:13:18 verbose #12037 > > |> _assert_eq 1
00:13:25 verbose #12038 > >
00:13:25 verbose #12039 > > ╭─[ 6.93s - return value ]─────────────────────────────────────────────────────╮
00:13:25 verbose #12040 > > │ .py output (Cuda):                                                           │
00:13:25 verbose #12041 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:13:25 verbose #12042 > > │                                                                              │
00:13:25 verbose #12043 > > │ .rs output:                                                                  │
00:13:25 verbose #12044 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:13:25 verbose #12045 > > │                                                                              │
00:13:25 verbose #12046 > > │ .ts output:                                                                  │
00:13:25 verbose #12047 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:13:25 verbose #12048 > > │                                                                              │
00:13:25 verbose #12049 > > │ .py output:                                                                  │
00:13:25 verbose #12050 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:13:25 verbose #12051 > > │                                                                              │
00:13:25 verbose #12052 > > │                                                                              │
00:13:25 verbose #12053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:25 verbose #12054 > >
00:13:25 verbose #12055 > > ╭─[ 6.94s - stdout ]───────────────────────────────────────────────────────────╮
00:13:25 verbose #12056 > > │ .fsx output:                                                                 │
00:13:25 verbose #12057 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:13:25 verbose #12058 > > │                                                                              │
00:13:25 verbose #12059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:25 verbose #12060 > >
00:13:25 verbose #12061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:25 verbose #12062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:25 verbose #12063 > > │ ### flip                                                                     │
00:13:25 verbose #12064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:25 verbose #12065 > >
00:13:25 verbose #12066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:25 verbose #12067 > > inl flip fn a b =
00:13:25 verbose #12068 > >     fn b a
00:13:25 verbose #12069 > >
00:13:25 verbose #12070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:25 verbose #12071 > > //// test
00:13:25 verbose #12072 > > ///! fsharp
00:13:25 verbose #12073 > > ///! cuda
00:13:25 verbose #12074 > > ///! rust
00:13:25 verbose #12075 > > ///! typescript
00:13:25 verbose #12076 > > ///! python
00:13:25 verbose #12077 > >
00:13:25 verbose #12078 > > (1i32, 2i32)
00:13:25 verbose #12079 > > ||> flip pair
00:13:25 verbose #12080 > > |> _assert_eq (2, 1)
00:13:31 verbose #12081 > >
00:13:31 verbose #12082 > > ╭─[ 5.45s - return value ]─────────────────────────────────────────────────────╮
00:13:31 verbose #12083 > > │ .py output (Cuda):                                                           │
00:13:31 verbose #12084 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:13:31 verbose #12085 > > │                                                                              │
00:13:31 verbose #12086 > > │ .rs output:                                                                  │
00:13:31 verbose #12087 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:13:31 verbose #12088 > > │                                                                              │
00:13:31 verbose #12089 > > │ .ts output:                                                                  │
00:13:31 verbose #12090 > > │ __assert_eq / actual: 2,1 / expected: 2,1                                    │
00:13:31 verbose #12091 > > │                                                                              │
00:13:31 verbose #12092 > > │ .py output:                                                                  │
00:13:31 verbose #12093 > > │ __assert_eq / actual: (2, 1) / expected: (2, 1)                              │
00:13:31 verbose #12094 > > │                                                                              │
00:13:31 verbose #12095 > > │                                                                              │
00:13:31 verbose #12096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:31 verbose #12097 > >
00:13:31 verbose #12098 > > ╭─[ 5.46s - stdout ]───────────────────────────────────────────────────────────╮
00:13:31 verbose #12099 > > │ .fsx output:                                                                 │
00:13:31 verbose #12100 > > │ __assert_eq / actual: struct (2, 1) / expected: struct (2, 1)                │
00:13:31 verbose #12101 > > │                                                                              │
00:13:31 verbose #12102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:31 verbose #12103 > >
00:13:31 verbose #12104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:31 verbose #12105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:31 verbose #12106 > > │ ### join_body                                                                │
00:13:31 verbose #12107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:31 verbose #12108 > >
00:13:31 verbose #12109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:31 verbose #12110 > > inl join_body body acc x =
00:13:31 verbose #12111 > >     if var_is x |> not
00:13:31 verbose #12112 > >     then body acc x
00:13:31 verbose #12113 > >     else
00:13:31 verbose #12114 > >         inl acc = dyn acc
00:13:31 verbose #12115 > >         join body acc x
00:13:31 verbose #12116 > >
00:13:31 verbose #12117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:31 verbose #12118 > > //// test
00:13:31 verbose #12119 > >
00:13:31 verbose #12120 > > inl rec fold_list f s = function
00:13:31 verbose #12121 > >     | Cons (x, x') => fold_list f (f s x) x'
00:13:31 verbose #12122 > >     | Nil => s
00:13:32 verbose #12123 > >
00:13:32 verbose #12124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:32 verbose #12125 > > //// test
00:13:32 verbose #12126 > > ///! fsharp
00:13:32 verbose #12127 > > ///! cuda
00:13:32 verbose #12128 > > ///! rust
00:13:32 verbose #12129 > > ///! typescript
00:13:32 verbose #12130 > > ///! python
00:13:32 verbose #12131 > > //// print_code=true
00:13:32 verbose #12132 > >
00:13:32 verbose #12133 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:13:32 verbose #12134 > > |> fold_list (+) 0
00:13:32 verbose #12135 > > |> _assert_eq 15
00:13:37 verbose #12136 > >
00:13:37 verbose #12137 > > ╭─[ 5.34s - return value ]─────────────────────────────────────────────────────╮
00:13:37 verbose #12138 > > │ .py output (Cuda):                                                           │
00:13:37 verbose #12139 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:37 verbose #12140 > > │                                                                              │
00:13:37 verbose #12141 > > │ .rs output:                                                                  │
00:13:37 verbose #12142 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:37 verbose #12143 > > │                                                                              │
00:13:37 verbose #12144 > > │ .ts output:                                                                  │
00:13:37 verbose #12145 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:37 verbose #12146 > > │                                                                              │
00:13:37 verbose #12147 > > │ .py output:                                                                  │
00:13:37 verbose #12148 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:37 verbose #12149 > > │                                                                              │
00:13:37 verbose #12150 > > │                                                                              │
00:13:37 verbose #12151 > > │                                                                              │
00:13:37 verbose #12152 > > │                                                                              │
00:13:37 verbose #12153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:37 verbose #12154 > >
00:13:37 verbose #12155 > > ╭─[ 5.35s - stdout ]───────────────────────────────────────────────────────────╮
00:13:37 verbose #12156 > > │ .fsx:                                                                        │
00:13:37 verbose #12157 > > │ let rec method1 () : int32 =                                                 │
00:13:37 verbose #12158 > > │     3                                                                        │
00:13:37 verbose #12159 > > │ and method2 (v0 : bool) : bool =                                             │
00:13:37 verbose #12160 > > │     v0                                                                       │
00:13:37 verbose #12161 > > │ and closure0 (v0 : string) () : unit =                                       │
00:13:37 verbose #12162 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:13:37 verbose #12163 > > │     v1 v0                                                                    │
00:13:37 verbose #12164 > > │ and method0 () : unit =                                                      │
00:13:37 verbose #12165 > > │     let v0 : int32 = method1()                                               │
00:13:37 verbose #12166 > > │     let v1 : int32 = 9 + v0                                                  │
00:13:37 verbose #12167 > > │     let v2 : int32 = v1 + 2                                                  │
00:13:37 verbose #12168 > > │     let v3 : int32 = v2 + 1                                                  │
00:13:37 verbose #12169 > > │     let v4 : bool = v3 = 15                                                  │
00:13:37 verbose #12170 > > │     let v6 : bool =                                                          │
00:13:37 verbose #12171 > > │         if v4 then                                                           │
00:13:37 verbose #12172 > > │             true                                                             │
00:13:37 verbose #12173 > > │         else                                                                 │
00:13:37 verbose #12174 > > │             method2(v4)                                                      │
00:13:37 verbose #12175 > > │     let v7 : string = "__assert_eq"                                          │
00:13:37 verbose #12176 > > │     let v8 : string = $"{v7} / actual: %A{v3} / expected: %A{15}"            │
00:13:37 verbose #12177 > > │     let v11 : unit = ()                                                      │
00:13:37 verbose #12178 > > │     let v12 : (unit -> unit) = closure0(v8)                                  │
00:13:37 verbose #12179 > > │     let v13 : unit = (fun () -> v12 (); v11) ()                              │
00:13:37 verbose #12180 > > │     let v15 : bool = v6 = false                                              │
00:13:37 verbose #12181 > > │     if v15 then                                                              │
00:13:37 verbose #12182 > > │         failwith<unit> v8                                                    │
00:13:37 verbose #12183 > > │ method0()                                                                    │
00:13:37 verbose #12184 > > │                                                                              │
00:13:37 verbose #12185 > > │                                                                              │
00:13:37 verbose #12186 > > │ .rs:                                                                         │
00:13:37 verbose #12187 > > │ #![allow(dead_code)]                                                         │
00:13:37 verbose #12188 > > │ #![allow(non_camel_case_types)]                                              │
00:13:37 verbose #12189 > > │ #![allow(non_snake_case)]                                                    │
00:13:37 verbose #12190 > > │ #![allow(non_upper_case_globals)]                                            │
00:13:37 verbose #12191 > > │ #![allow(unreachable_code)]                                                  │
00:13:37 verbose #12192 > > │ #![allow(unused_attributes)]                                                 │
00:13:37 verbose #12193 > > │ #![allow(unused_imports)]                                                    │
00:13:37 verbose #12194 > > │ #![allow(unused_macros)]                                                     │
00:13:37 verbose #12195 > > │ #![allow(unused_parens)]                                                     │
00:13:37 verbose #12196 > > │ #![allow(unused_variables)]                                                  │
00:13:37 verbose #12197 > > │ mod module_b5c8272c {                                                        │
00:13:37 verbose #12198 > > │     pub mod Spiral_builder {                                                 │
00:13:37 verbose #12199 > > │         use super::*;                                                        │
00:13:37 verbose #12200 > > │         use fable_library_rust::Native_::on_startup;                         │
00:13:37 verbose #12201 > > │         use fable_library_rust::String_::printfn;                            │
00:13:37 verbose #12202 > > │         use fable_library_rust::String_::sprintf;                            │
00:13:37 verbose #12203 > > │         use fable_library_rust::String_::string;                             │
00:13:37 verbose #12204 > > │         pub fn method1() -> i32 {                                            │
00:13:37 verbose #12205 > > │             3_i32                                                            │
00:13:37 verbose #12206 > > │         }                                                                    │
00:13:37 verbose #12207 > > │         pub fn method2(v0: bool) -> bool {                                   │
00:13:37 verbose #12208 > > │             v0                                                               │
00:13:37 verbose #12209 > > │         }                                                                    │
00:13:37 verbose #12210 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:13:37 verbose #12211 > > │             printfn!("{0}", v0);                                             │
00:13:37 verbose #12212 > > │         }                                                                    │
00:13:37 verbose #12213 > > │         pub fn method0() {                                                   │
00:13:37 verbose #12214 > > │             let v3: i32 = 9_i32 + Spiral_builder::method1() + 2_i32 + 1_i32; │
00:13:37 verbose #12215 > > │             let v4: bool = v3 == 15_i32;                                     │
00:13:37 verbose #12216 > > │             let v6: bool = if v4 {                                           │
00:13:37 verbose #12217 > > │                 true                                                         │
00:13:37 verbose #12218 > > │             } else {                                                         │
00:13:37 verbose #12219 > > │                 Spiral_builder::method2(v4)                                  │
00:13:37 verbose #12220 > > │             };                                                               │
00:13:37 verbose #12221 > > │             let v8: string = sprintf!(                                       │
00:13:37 verbose #12222 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:13:37 verbose #12223 > > │                 string("__assert_eq"),                                       │
00:13:37 verbose #12224 > > │                 v3,                                                          │
00:13:37 verbose #12225 > > │                 15_i32                                                       │
00:13:37 verbose #12226 > > │             );                                                               │
00:13:37 verbose #12227 > > │             let v13: () = {                                                  │
00:13:37 verbose #12228 > > │                 Spiral_builder::closure0(v8.clone(), ());                    │
00:13:37 verbose #12229 > > │                 ()                                                           │
00:13:37 verbose #12230 > > │             };                                                               │
00:13:37 verbose #12231 > > │             if v6 == false {                                                 │
00:13:37 verbose #12232 > > │                 panic!("{}", v8,);                                           │
00:13:37 verbose #12233 > > │             }                                                                │
00:13:37 verbose #12234 > > │         }                                                                    │
00:13:37 verbose #12235 > > │         on_startup!(Spiral_builder::method0());                              │
00:13:37 verbose #12236 > > │     }                                                                        │
00:13:37 verbose #12237 > > │ }                                                                            │
00:13:37 verbose #12238 > > │ pub use module_b5c8272c::*;                                                  │
00:13:37 verbose #12239 > > │                                                                              │
00:13:37 verbose #12240 > > │ pub fn main() -> Result<(), String> {                                        │
00:13:37 verbose #12241 > > │     Ok(())                                                                   │
00:13:37 verbose #12242 > > │ }                                                                            │
00:13:37 verbose #12243 > > │                                                                              │
00:13:37 verbose #12244 > > │ .ts:                                                                         │
00:13:37 verbose #12245 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.20.0/Int32.js";    │
00:13:37 verbose #12246 > > │ import { interpolate, toText } from                                          │
00:13:37 verbose #12247 > > │ "./fable_modules/fable-library-ts.4.20.0/String.js";                         │
00:13:37 verbose #12248 > > │                                                                              │
00:13:37 verbose #12249 > > │ export function method1(): int32 {                                           │
00:13:37 verbose #12250 > > │     return 3;                                                                │
00:13:37 verbose #12251 > > │ }                                                                            │
00:13:37 verbose #12252 > > │                                                                              │
00:13:37 verbose #12253 > > │ export function method2(v0: boolean): boolean {                              │
00:13:37 verbose #12254 > > │     return v0;                                                               │
00:13:37 verbose #12255 > > │ }                                                                            │
00:13:37 verbose #12256 > > │                                                                              │
00:13:37 verbose #12257 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:13:37 verbose #12258 > > │     console.log(v0);                                                         │
00:13:37 verbose #12259 > > │ }                                                                            │
00:13:37 verbose #12260 > > │                                                                              │
00:13:37 verbose #12261 > > │ export function method0(): void {                                            │
00:13:37 verbose #12262 > > │     const v3: int32 = (((9 + method1()) + 2) + 1) | 0;                       │
00:13:37 verbose #12263 > > │     const v4: boolean = v3 === 15;                                           │
00:13:37 verbose #12264 > > │     const v6: boolean = v4 ? true : method2(v4);                             │
00:13:37 verbose #12265 > > │     const v8: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:13:37 verbose #12266 > > │ %A%P()", ["__assert_eq", v3, 15]));                                          │
00:13:37 verbose #12267 > > │     let v13: any;                                                            │
00:13:37 verbose #12268 > > │     closure0(v8, undefined);                                                 │
00:13:37 verbose #12269 > > │     v13 = undefined;                                                         │
00:13:37 verbose #12270 > > │     if (v6 === false) {                                                      │
00:13:37 verbose #12271 > > │         throw new Error(v8);                                                 │
00:13:37 verbose #12272 > > │     }                                                                        │
00:13:37 verbose #12273 > > │ }                                                                            │
00:13:37 verbose #12274 > > │                                                                              │
00:13:37 verbose #12275 > > │ method0();                                                                   │
00:13:37 verbose #12276 > > │                                                                              │
00:13:37 verbose #12277 > > │                                                                              │
00:13:37 verbose #12278 > > │                                                                              │
00:13:37 verbose #12279 > > │ // spiral_builder.process_typescript                                         │
00:13:37 verbose #12280 > > │                                                                              │
00:13:37 verbose #12281 > > │ .py:                                                                         │
00:13:37 verbose #12282 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:13:37 verbose #12283 > > │                                                                              │
00:13:37 verbose #12284 > > │ def method1(__unit: None=None) -> int:                                       │
00:13:37 verbose #12285 > > │     return 3                                                                 │
00:13:37 verbose #12286 > > │                                                                              │
00:13:37 verbose #12287 > > │                                                                              │
00:13:37 verbose #12288 > > │ def method2(v0: bool) -> bool:                                               │
00:13:37 verbose #12289 > > │     return v0                                                                │
00:13:37 verbose #12290 > > │                                                                              │
00:13:37 verbose #12291 > > │                                                                              │
00:13:37 verbose #12292 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:13:37 verbose #12293 > > │     print(v0)                                                                │
00:13:37 verbose #12294 > > │                                                                              │
00:13:37 verbose #12295 > > │                                                                              │
00:13:37 verbose #12296 > > │ def method0(__unit: None=None) -> None:                                      │
00:13:37 verbose #12297 > > │     v3: int = (((9 + method1()) + 2) + 1) or 0                               │
00:13:37 verbose #12298 > > │     v4: bool = v3 == 15                                                      │
00:13:37 verbose #12299 > > │     v6: bool = True if v4 else method2(v4)                                   │
00:13:37 verbose #12300 > > │     v8: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:13:37 verbose #12301 > > │ %A%P()", ["__assert_eq", v3, 15]))                                           │
00:13:37 verbose #12302 > > │     v13: None                                                                │
00:13:37 verbose #12303 > > │     closure0(v8, None)                                                       │
00:13:37 verbose #12304 > > │     v13 = None                                                               │
00:13:37 verbose #12305 > > │     if v6 == False:                                                          │
00:13:37 verbose #12306 > > │         raise Exception(v8)                                                  │
00:13:37 verbose #12307 > > │                                                                              │
00:13:37 verbose #12308 > > │                                                                              │
00:13:37 verbose #12309 > > │                                                                              │
00:13:37 verbose #12310 > > │ method0()                                                                    │
00:13:37 verbose #12311 > > │                                                                              │
00:13:37 verbose #12312 > > │                                                                              │
00:13:37 verbose #12313 > > │                                                                              │
00:13:37 verbose #12314 > > │ # spiral_builder.process_python                                              │
00:13:37 verbose #12315 > > │                                                                              │
00:13:37 verbose #12316 > > │ .py:                                                                         │
00:13:37 verbose #12317 > > │ kernel = r"""                                                                │
00:13:37 verbose #12318 > > │ """                                                                          │
00:13:37 verbose #12319 > > │ class static_array():                                                        │
00:13:37 verbose #12320 > > │     def __init__(self, length):                                              │
00:13:37 verbose #12321 > > │         self.ptr = []                                                        │
00:13:37 verbose #12322 > > │         for _ in range(length):                                              │
00:13:37 verbose #12323 > > │             self.ptr.append(None)                                            │
00:13:37 verbose #12324 > > │                                                                              │
00:13:37 verbose #12325 > > │     def __getitem__(self, index):                                            │
00:13:37 verbose #12326 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:37 verbose #12327 > > │ range."                                                                      │
00:13:37 verbose #12328 > > │         return self.ptr[index]                                               │
00:13:37 verbose #12329 > > │                                                                              │
00:13:37 verbose #12330 > > │     def __setitem__(self, index, value):                                     │
00:13:37 verbose #12331 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:37 verbose #12332 > > │ range."                                                                      │
00:13:37 verbose #12333 > > │         self.ptr[index] = value                                              │
00:13:37 verbose #12334 > > │                                                                              │
00:13:37 verbose #12335 > > │ class static_array_list(static_array):                                       │
00:13:37 verbose #12336 > > │     def __init__(self, length):                                              │
00:13:37 verbose #12337 > > │         super().__init__(length)                                             │
00:13:37 verbose #12338 > > │         self.length = 0                                                      │
00:13:37 verbose #12339 > > │                                                                              │
00:13:37 verbose #12340 > > │     def __getitem__(self, index):                                            │
00:13:37 verbose #12341 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:37 verbose #12342 > > │ range."                                                                      │
00:13:37 verbose #12343 > > │         return self.ptr[index]                                               │
00:13:37 verbose #12344 > > │                                                                              │
00:13:37 verbose #12345 > > │     def __setitem__(self, index, value):                                     │
00:13:37 verbose #12346 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:37 verbose #12347 > > │ range."                                                                      │
00:13:37 verbose #12348 > > │         self.ptr[index] = value                                              │
00:13:37 verbose #12349 > > │                                                                              │
00:13:37 verbose #12350 > > │     def push(self,value):                                                    │
00:13:37 verbose #12351 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:37 verbose #12352 > > │ to be less than the maximum length of the array."                            │
00:13:37 verbose #12353 > > │         self.ptr[self.length] = value                                        │
00:13:37 verbose #12354 > > │         self.length += 1                                                     │
00:13:37 verbose #12355 > > │                                                                              │
00:13:37 verbose #12356 > > │     def pop(self):                                                           │
00:13:37 verbose #12357 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:37 verbose #12358 > > │ greater than 0."                                                             │
00:13:37 verbose #12359 > > │         self.length -= 1                                                     │
00:13:37 verbose #12360 > > │         return self.ptr[self.length]                                         │
00:13:37 verbose #12361 > > │                                                                              │
00:13:37 verbose #12362 > > │     def unsafe_set_length(self,i):                                           │
00:13:37 verbose #12363 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:37 verbose #12364 > > │         self.length = i                                                      │
00:13:37 verbose #12365 > > │                                                                              │
00:13:37 verbose #12366 > > │ class dynamic_array(static_array):                                           │
00:13:37 verbose #12367 > > │     pass                                                                     │
00:13:37 verbose #12368 > > │                                                                              │
00:13:37 verbose #12369 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:37 verbose #12370 > > │     def length_(self): return self.length                                    │
00:13:37 verbose #12371 > > │                                                                              │
00:13:37 verbose #12372 > > │ import cupy as cp                                                            │
00:13:37 verbose #12373 > > │ from dataclasses import dataclass                                            │
00:13:37 verbose #12374 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:37 verbose #12375 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:37 verbose #12376 > > │ string = str                                                                 │
00:13:37 verbose #12377 > > │                                                                              │
00:13:37 verbose #12378 > > │ def method1() -> i32:                                                        │
00:13:37 verbose #12379 > > │     return 3                                                                 │
00:13:37 verbose #12380 > > │ def method2(v0 : bool) -> bool:                                              │
00:13:37 verbose #12381 > > │     return v0                                                                │
00:13:37 verbose #12382 > > │ def method0() -> None:                                                       │
00:13:37 verbose #12383 > > │     v0 = method1()                                                           │
00:13:37 verbose #12384 > > │     v1 = 9 + v0                                                              │
00:13:37 verbose #12385 > > │     del v0                                                                   │
00:13:37 verbose #12386 > > │     v2 = v1 + 2                                                              │
00:13:37 verbose #12387 > > │     del v1                                                                   │
00:13:37 verbose #12388 > > │     v3 = v2 + 1                                                              │
00:13:37 verbose #12389 > > │     del v2                                                                   │
00:13:37 verbose #12390 > > │     v4 = v3 == 15                                                            │
00:13:37 verbose #12391 > > │     if v4:                                                                   │
00:13:37 verbose #12392 > > │         v6 = True                                                            │
00:13:37 verbose #12393 > > │     else:                                                                    │
00:13:37 verbose #12394 > > │         v6 = method2(v4)                                                     │
00:13:37 verbose #12395 > > │     del v4                                                                   │
00:13:37 verbose #12396 > > │     v9 = "__assert_eq"                                                       │
00:13:37 verbose #12397 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:13:37 verbose #12398 > > │     del v3, v9                                                               │
00:13:37 verbose #12399 > > │     print(v10)                                                               │
00:13:37 verbose #12400 > > │     v16 = v6 == False                                                        │
00:13:37 verbose #12401 > > │     del v6                                                                   │
00:13:37 verbose #12402 > > │     if v16:                                                                  │
00:13:37 verbose #12403 > > │         del v16                                                              │
00:13:37 verbose #12404 > > │         raise Exception(v10)                                                 │
00:13:37 verbose #12405 > > │     else:                                                                    │
00:13:37 verbose #12406 > > │         del v10, v16                                                         │
00:13:37 verbose #12407 > > │         return                                                               │
00:13:37 verbose #12408 > > │ def main():                                                                  │
00:13:37 verbose #12409 > > │     return method0()                                                         │
00:13:37 verbose #12410 > > │                                                                              │
00:13:37 verbose #12411 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:37 verbose #12412 > > │ print(result)                                                                │
00:13:37 verbose #12413 > > │                                                                              │
00:13:37 verbose #12414 > > │                                                                              │
00:13:37 verbose #12415 > > │ .py:                                                                         │
00:13:37 verbose #12416 > > │ kernel = r"""                                                                │
00:13:37 verbose #12417 > > │ """                                                                          │
00:13:37 verbose #12418 > > │ class static_array():                                                        │
00:13:37 verbose #12419 > > │     def __init__(self, length):                                              │
00:13:37 verbose #12420 > > │         self.ptr = []                                                        │
00:13:37 verbose #12421 > > │         for _ in range(length):                                              │
00:13:37 verbose #12422 > > │             self.ptr.append(None)                                            │
00:13:37 verbose #12423 > > │                                                                              │
00:13:37 verbose #12424 > > │     def __getitem__(self, index):                                            │
00:13:37 verbose #12425 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:37 verbose #12426 > > │ range."                                                                      │
00:13:37 verbose #12427 > > │         return self.ptr[index]                                               │
00:13:37 verbose #12428 > > │                                                                              │
00:13:37 verbose #12429 > > │     def __setitem__(self, index, value):                                     │
00:13:37 verbose #12430 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:37 verbose #12431 > > │ range."                                                                      │
00:13:37 verbose #12432 > > │         self.ptr[index] = value                                              │
00:13:37 verbose #12433 > > │                                                                              │
00:13:37 verbose #12434 > > │ class static_array_list(static_array):                                       │
00:13:37 verbose #12435 > > │     def __init__(self, length):                                              │
00:13:37 verbose #12436 > > │         super().__init__(length)                                             │
00:13:37 verbose #12437 > > │         self.length = 0                                                      │
00:13:37 verbose #12438 > > │                                                                              │
00:13:37 verbose #12439 > > │     def __getitem__(self, index):                                            │
00:13:37 verbose #12440 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:37 verbose #12441 > > │ range."                                                                      │
00:13:37 verbose #12442 > > │         return self.ptr[index]                                               │
00:13:37 verbose #12443 > > │                                                                              │
00:13:37 verbose #12444 > > │     def __setitem__(self, index, value):                                     │
00:13:37 verbose #12445 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:37 verbose #12446 > > │ range."                                                                      │
00:13:37 verbose #12447 > > │         self.ptr[index] = value                                              │
00:13:37 verbose #12448 > > │                                                                              │
00:13:37 verbose #12449 > > │     def push(self,value):                                                    │
00:13:37 verbose #12450 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:37 verbose #12451 > > │ to be less than the maximum length of the array."                            │
00:13:37 verbose #12452 > > │         self.ptr[self.length] = value                                        │
00:13:37 verbose #12453 > > │         self.length += 1                                                     │
00:13:37 verbose #12454 > > │                                                                              │
00:13:37 verbose #12455 > > │     def pop(self):                                                           │
00:13:37 verbose #12456 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:37 verbose #12457 > > │ greater than 0."                                                             │
00:13:37 verbose #12458 > > │         self.length -= 1                                                     │
00:13:37 verbose #12459 > > │         return self.ptr[self.length]                                         │
00:13:37 verbose #12460 > > │                                                                              │
00:13:37 verbose #12461 > > │     def unsafe_set_length(self,i):                                           │
00:13:37 verbose #12462 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:37 verbose #12463 > > │         self.length = i                                                      │
00:13:37 verbose #12464 > > │                                                                              │
00:13:37 verbose #12465 > > │ class dynamic_array(static_array):                                           │
00:13:37 verbose #12466 > > │     pass                                                                     │
00:13:37 verbose #12467 > > │                                                                              │
00:13:37 verbose #12468 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:37 verbose #12469 > > │     def length_(self): return self.length                                    │
00:13:37 verbose #12470 > > │                                                                              │
00:13:37 verbose #12471 > > │ import cupy as cp                                                            │
00:13:37 verbose #12472 > > │ from dataclasses import dataclass                                            │
00:13:37 verbose #12473 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:37 verbose #12474 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:37 verbose #12475 > > │ string = str                                                                 │
00:13:37 verbose #12476 > > │                                                                              │
00:13:37 verbose #12477 > > │ def method1() -> i32:                                                        │
00:13:37 verbose #12478 > > │     return 3                                                                 │
00:13:37 verbose #12479 > > │ def method2(v0 : bool) -> bool:                                              │
00:13:37 verbose #12480 > > │     return v0                                                                │
00:13:37 verbose #12481 > > │ def method0() -> None:                                                       │
00:13:37 verbose #12482 > > │     v0 = method1()                                                           │
00:13:37 verbose #12483 > > │     v1 = 9 + v0                                                              │
00:13:37 verbose #12484 > > │     del v0                                                                   │
00:13:37 verbose #12485 > > │     v2 = v1 + 2                                                              │
00:13:37 verbose #12486 > > │     del v1                                                                   │
00:13:37 verbose #12487 > > │     v3 = v2 + 1                                                              │
00:13:37 verbose #12488 > > │     del v2                                                                   │
00:13:37 verbose #12489 > > │     v4 = v3 == 15                                                            │
00:13:37 verbose #12490 > > │     if v4:                                                                   │
00:13:37 verbose #12491 > > │         v6 = True                                                            │
00:13:37 verbose #12492 > > │     else:                                                                    │
00:13:37 verbose #12493 > > │         v6 = method2(v4)                                                     │
00:13:37 verbose #12494 > > │     del v4                                                                   │
00:13:37 verbose #12495 > > │     v9 = "__assert_eq"                                                       │
00:13:37 verbose #12496 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:13:37 verbose #12497 > > │     del v3, v9                                                               │
00:13:37 verbose #12498 > > │     print(v10)                                                               │
00:13:37 verbose #12499 > > │     v16 = v6 == False                                                        │
00:13:37 verbose #12500 > > │     del v6                                                                   │
00:13:37 verbose #12501 > > │     if v16:                                                                  │
00:13:37 verbose #12502 > > │         del v16                                                              │
00:13:37 verbose #12503 > > │         raise Exception(v10)                                                 │
00:13:37 verbose #12504 > > │     else:                                                                    │
00:13:37 verbose #12505 > > │         del v10, v16                                                         │
00:13:37 verbose #12506 > > │         return                                                               │
00:13:37 verbose #12507 > > │ def main():                                                                  │
00:13:37 verbose #12508 > > │     return method0()                                                         │
00:13:37 verbose #12509 > > │                                                                              │
00:13:37 verbose #12510 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:37 verbose #12511 > > │ print(result)                                                                │
00:13:37 verbose #12512 > > │                                                                              │
00:13:37 verbose #12513 > > │ .fsx output:                                                                 │
00:13:37 verbose #12514 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:37 verbose #12515 > > │                                                                              │
00:13:37 verbose #12516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:37 verbose #12517 > >
00:13:37 verbose #12518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:37 verbose #12519 > > //// test
00:13:37 verbose #12520 > > ///! fsharp
00:13:37 verbose #12521 > > ///! cuda
00:13:37 verbose #12522 > > ///! rust
00:13:37 verbose #12523 > > ///! typescript
00:13:37 verbose #12524 > > ///! python
00:13:37 verbose #12525 > > //// print_code=true
00:13:37 verbose #12526 > >
00:13:37 verbose #12527 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:13:37 verbose #12528 > > |> fold_list (join_body (+)) 0
00:13:37 verbose #12529 > > |> _assert_eq 15
00:13:42 verbose #12530 > >
00:13:42 verbose #12531 > > ╭─[ 5.36s - return value ]─────────────────────────────────────────────────────╮
00:13:42 verbose #12532 > > │ .py output (Cuda):                                                           │
00:13:42 verbose #12533 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:42 verbose #12534 > > │                                                                              │
00:13:42 verbose #12535 > > │ .rs output:                                                                  │
00:13:42 verbose #12536 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:42 verbose #12537 > > │                                                                              │
00:13:42 verbose #12538 > > │ .ts output:                                                                  │
00:13:42 verbose #12539 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:42 verbose #12540 > > │                                                                              │
00:13:42 verbose #12541 > > │ .py output:                                                                  │
00:13:42 verbose #12542 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:42 verbose #12543 > > │                                                                              │
00:13:42 verbose #12544 > > │                                                                              │
00:13:42 verbose #12545 > > │                                                                              │
00:13:42 verbose #12546 > > │                                                                              │
00:13:42 verbose #12547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:42 verbose #12548 > >
00:13:42 verbose #12549 > > ╭─[ 5.37s - stdout ]───────────────────────────────────────────────────────────╮
00:13:42 verbose #12550 > > │ .fsx:                                                                        │
00:13:42 verbose #12551 > > │ let rec method1 () : int32 =                                                 │
00:13:42 verbose #12552 > > │     3                                                                        │
00:13:42 verbose #12553 > > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │
00:13:42 verbose #12554 > > │     let v2 : int32 = v1 + v0                                                 │
00:13:42 verbose #12555 > > │     v2                                                                       │
00:13:42 verbose #12556 > > │ and method3 (v0 : bool) : bool =                                             │
00:13:42 verbose #12557 > > │     v0                                                                       │
00:13:42 verbose #12558 > > │ and closure0 (v0 : string) () : unit =                                       │
00:13:42 verbose #12559 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:13:42 verbose #12560 > > │     v1 v0                                                                    │
00:13:42 verbose #12561 > > │ and method0 () : unit =                                                      │
00:13:42 verbose #12562 > > │     let v0 : int32 = method1()                                               │
00:13:42 verbose #12563 > > │     let v1 : int32 = 9                                                       │
00:13:42 verbose #12564 > > │     let v2 : int32 = method2(v0, v1)                                         │
00:13:42 verbose #12565 > > │     let v3 : int32 = v2 + 2                                                  │
00:13:42 verbose #12566 > > │     let v4 : int32 = v3 + 1                                                  │
00:13:42 verbose #12567 > > │     let v5 : bool = v4 = 15                                                  │
00:13:42 verbose #12568 > > │     let v7 : bool =                                                          │
00:13:42 verbose #12569 > > │         if v5 then                                                           │
00:13:42 verbose #12570 > > │             true                                                             │
00:13:42 verbose #12571 > > │         else                                                                 │
00:13:42 verbose #12572 > > │             method3(v5)                                                      │
00:13:42 verbose #12573 > > │     let v8 : string = "__assert_eq"                                          │
00:13:42 verbose #12574 > > │     let v9 : string = $"{v8} / actual: %A{v4} / expected: %A{15}"            │
00:13:42 verbose #12575 > > │     let v12 : unit = ()                                                      │
00:13:42 verbose #12576 > > │     let v13 : (unit -> unit) = closure0(v9)                                  │
00:13:42 verbose #12577 > > │     let v14 : unit = (fun () -> v13 (); v12) ()                              │
00:13:42 verbose #12578 > > │     let v16 : bool = v7 = false                                              │
00:13:42 verbose #12579 > > │     if v16 then                                                              │
00:13:42 verbose #12580 > > │         failwith<unit> v9                                                    │
00:13:42 verbose #12581 > > │ method0()                                                                    │
00:13:42 verbose #12582 > > │                                                                              │
00:13:42 verbose #12583 > > │                                                                              │
00:13:42 verbose #12584 > > │ .rs:                                                                         │
00:13:42 verbose #12585 > > │ #![allow(dead_code)]                                                         │
00:13:42 verbose #12586 > > │ #![allow(non_camel_case_types)]                                              │
00:13:42 verbose #12587 > > │ #![allow(non_snake_case)]                                                    │
00:13:42 verbose #12588 > > │ #![allow(non_upper_case_globals)]                                            │
00:13:42 verbose #12589 > > │ #![allow(unreachable_code)]                                                  │
00:13:42 verbose #12590 > > │ #![allow(unused_attributes)]                                                 │
00:13:42 verbose #12591 > > │ #![allow(unused_imports)]                                                    │
00:13:42 verbose #12592 > > │ #![allow(unused_macros)]                                                     │
00:13:42 verbose #12593 > > │ #![allow(unused_parens)]                                                     │
00:13:42 verbose #12594 > > │ #![allow(unused_variables)]                                                  │
00:13:42 verbose #12595 > > │ mod module_737cfc4d {                                                        │
00:13:42 verbose #12596 > > │     pub mod Spiral_builder {                                                 │
00:13:42 verbose #12597 > > │         use super::*;                                                        │
00:13:42 verbose #12598 > > │         use fable_library_rust::Native_::on_startup;                         │
00:13:42 verbose #12599 > > │         use fable_library_rust::String_::printfn;                            │
00:13:42 verbose #12600 > > │         use fable_library_rust::String_::sprintf;                            │
00:13:42 verbose #12601 > > │         use fable_library_rust::String_::string;                             │
00:13:42 verbose #12602 > > │         pub fn method1() -> i32 {                                            │
00:13:42 verbose #12603 > > │             3_i32                                                            │
00:13:42 verbose #12604 > > │         }                                                                    │
00:13:42 verbose #12605 > > │         pub fn method2(v0: i32, v1: i32) -> i32 {                            │
00:13:42 verbose #12606 > > │             v1 + v0                                                          │
00:13:42 verbose #12607 > > │         }                                                                    │
00:13:42 verbose #12608 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:13:42 verbose #12609 > > │             v0                                                               │
00:13:42 verbose #12610 > > │         }                                                                    │
00:13:42 verbose #12611 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:13:42 verbose #12612 > > │             printfn!("{0}", v0);                                             │
00:13:42 verbose #12613 > > │         }                                                                    │
00:13:42 verbose #12614 > > │         pub fn method0() {                                                   │
00:13:42 verbose #12615 > > │             let v4: i32 = Spiral_builder::method2(Spiral_builder::method1(), │
00:13:42 verbose #12616 > > │ 9_i32) + 2_i32 + 1_i32;                                                      │
00:13:42 verbose #12617 > > │             let v5: bool = v4 == 15_i32;                                     │
00:13:42 verbose #12618 > > │             let v7: bool = if v5 {                                           │
00:13:42 verbose #12619 > > │                 true                                                         │
00:13:42 verbose #12620 > > │             } else {                                                         │
00:13:42 verbose #12621 > > │                 Spiral_builder::method3(v5)                                  │
00:13:42 verbose #12622 > > │             };                                                               │
00:13:42 verbose #12623 > > │             let v9: string = sprintf!(                                       │
00:13:42 verbose #12624 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:13:42 verbose #12625 > > │                 string("__assert_eq"),                                       │
00:13:42 verbose #12626 > > │                 v4,                                                          │
00:13:42 verbose #12627 > > │                 15_i32                                                       │
00:13:42 verbose #12628 > > │             );                                                               │
00:13:42 verbose #12629 > > │             let v14: () = {                                                  │
00:13:42 verbose #12630 > > │                 Spiral_builder::closure0(v9.clone(), ());                    │
00:13:42 verbose #12631 > > │                 ()                                                           │
00:13:42 verbose #12632 > > │             };                                                               │
00:13:42 verbose #12633 > > │             if v7 == false {                                                 │
00:13:42 verbose #12634 > > │                 panic!("{}", v9,);                                           │
00:13:42 verbose #12635 > > │             }                                                                │
00:13:42 verbose #12636 > > │         }                                                                    │
00:13:42 verbose #12637 > > │         on_startup!(Spiral_builder::method0());                              │
00:13:42 verbose #12638 > > │     }                                                                        │
00:13:42 verbose #12639 > > │ }                                                                            │
00:13:42 verbose #12640 > > │ pub use module_737cfc4d::*;                                                  │
00:13:42 verbose #12641 > > │                                                                              │
00:13:42 verbose #12642 > > │ pub fn main() -> Result<(), String> {                                        │
00:13:42 verbose #12643 > > │     Ok(())                                                                   │
00:13:42 verbose #12644 > > │ }                                                                            │
00:13:42 verbose #12645 > > │                                                                              │
00:13:42 verbose #12646 > > │ .ts:                                                                         │
00:13:42 verbose #12647 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.20.0/Int32.js";    │
00:13:42 verbose #12648 > > │ import { interpolate, toText } from                                          │
00:13:42 verbose #12649 > > │ "./fable_modules/fable-library-ts.4.20.0/String.js";                         │
00:13:42 verbose #12650 > > │                                                                              │
00:13:42 verbose #12651 > > │ export function method1(): int32 {                                           │
00:13:42 verbose #12652 > > │     return 3;                                                                │
00:13:42 verbose #12653 > > │ }                                                                            │
00:13:42 verbose #12654 > > │                                                                              │
00:13:42 verbose #12655 > > │ export function method2(v0: int32, v1: int32): int32 {                       │
00:13:42 verbose #12656 > > │     return v1 + v0;                                                          │
00:13:42 verbose #12657 > > │ }                                                                            │
00:13:42 verbose #12658 > > │                                                                              │
00:13:42 verbose #12659 > > │ export function method3(v0: boolean): boolean {                              │
00:13:42 verbose #12660 > > │     return v0;                                                               │
00:13:42 verbose #12661 > > │ }                                                                            │
00:13:42 verbose #12662 > > │                                                                              │
00:13:42 verbose #12663 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:13:42 verbose #12664 > > │     console.log(v0);                                                         │
00:13:42 verbose #12665 > > │ }                                                                            │
00:13:42 verbose #12666 > > │                                                                              │
00:13:42 verbose #12667 > > │ export function method0(): void {                                            │
00:13:42 verbose #12668 > > │     const v4: int32 = ((method2(method1(), 9) + 2) + 1) | 0;                 │
00:13:42 verbose #12669 > > │     const v5: boolean = v4 === 15;                                           │
00:13:42 verbose #12670 > > │     const v7: boolean = v5 ? true : method3(v5);                             │
00:13:42 verbose #12671 > > │     const v9: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:13:42 verbose #12672 > > │ %A%P()", ["__assert_eq", v4, 15]));                                          │
00:13:42 verbose #12673 > > │     let v14: any;                                                            │
00:13:42 verbose #12674 > > │     closure0(v9, undefined);                                                 │
00:13:42 verbose #12675 > > │     v14 = undefined;                                                         │
00:13:42 verbose #12676 > > │     if (v7 === false) {                                                      │
00:13:42 verbose #12677 > > │         throw new Error(v9);                                                 │
00:13:42 verbose #12678 > > │     }                                                                        │
00:13:42 verbose #12679 > > │ }                                                                            │
00:13:42 verbose #12680 > > │                                                                              │
00:13:42 verbose #12681 > > │ method0();                                                                   │
00:13:42 verbose #12682 > > │                                                                              │
00:13:42 verbose #12683 > > │                                                                              │
00:13:42 verbose #12684 > > │                                                                              │
00:13:42 verbose #12685 > > │ // spiral_builder.process_typescript                                         │
00:13:42 verbose #12686 > > │                                                                              │
00:13:42 verbose #12687 > > │ .py:                                                                         │
00:13:42 verbose #12688 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:13:42 verbose #12689 > > │                                                                              │
00:13:42 verbose #12690 > > │ def method1(__unit: None=None) -> int:                                       │
00:13:42 verbose #12691 > > │     return 3                                                                 │
00:13:42 verbose #12692 > > │                                                                              │
00:13:42 verbose #12693 > > │                                                                              │
00:13:42 verbose #12694 > > │ def method2(v0: int, v1: int) -> int:                                        │
00:13:42 verbose #12695 > > │     return v1 + v0                                                           │
00:13:42 verbose #12696 > > │                                                                              │
00:13:42 verbose #12697 > > │                                                                              │
00:13:42 verbose #12698 > > │ def method3(v0: bool) -> bool:                                               │
00:13:42 verbose #12699 > > │     return v0                                                                │
00:13:42 verbose #12700 > > │                                                                              │
00:13:42 verbose #12701 > > │                                                                              │
00:13:42 verbose #12702 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:13:42 verbose #12703 > > │     print(v0)                                                                │
00:13:42 verbose #12704 > > │                                                                              │
00:13:42 verbose #12705 > > │                                                                              │
00:13:42 verbose #12706 > > │ def method0(__unit: None=None) -> None:                                      │
00:13:42 verbose #12707 > > │     v4: int = ((method2(method1(), 9) + 2) + 1) or 0                         │
00:13:42 verbose #12708 > > │     v5: bool = v4 == 15                                                      │
00:13:42 verbose #12709 > > │     v7: bool = True if v5 else method3(v5)                                   │
00:13:42 verbose #12710 > > │     v9: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:13:42 verbose #12711 > > │ %A%P()", ["__assert_eq", v4, 15]))                                           │
00:13:42 verbose #12712 > > │     v14: None                                                                │
00:13:42 verbose #12713 > > │     closure0(v9, None)                                                       │
00:13:42 verbose #12714 > > │     v14 = None                                                               │
00:13:42 verbose #12715 > > │     if v7 == False:                                                          │
00:13:42 verbose #12716 > > │         raise Exception(v9)                                                  │
00:13:42 verbose #12717 > > │                                                                              │
00:13:42 verbose #12718 > > │                                                                              │
00:13:42 verbose #12719 > > │                                                                              │
00:13:42 verbose #12720 > > │ method0()                                                                    │
00:13:42 verbose #12721 > > │                                                                              │
00:13:42 verbose #12722 > > │                                                                              │
00:13:42 verbose #12723 > > │                                                                              │
00:13:42 verbose #12724 > > │ # spiral_builder.process_python                                              │
00:13:42 verbose #12725 > > │                                                                              │
00:13:42 verbose #12726 > > │ .py:                                                                         │
00:13:42 verbose #12727 > > │ kernel = r"""                                                                │
00:13:42 verbose #12728 > > │ """                                                                          │
00:13:42 verbose #12729 > > │ class static_array():                                                        │
00:13:42 verbose #12730 > > │     def __init__(self, length):                                              │
00:13:42 verbose #12731 > > │         self.ptr = []                                                        │
00:13:42 verbose #12732 > > │         for _ in range(length):                                              │
00:13:42 verbose #12733 > > │             self.ptr.append(None)                                            │
00:13:42 verbose #12734 > > │                                                                              │
00:13:42 verbose #12735 > > │     def __getitem__(self, index):                                            │
00:13:42 verbose #12736 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:42 verbose #12737 > > │ range."                                                                      │
00:13:42 verbose #12738 > > │         return self.ptr[index]                                               │
00:13:42 verbose #12739 > > │                                                                              │
00:13:42 verbose #12740 > > │     def __setitem__(self, index, value):                                     │
00:13:42 verbose #12741 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:42 verbose #12742 > > │ range."                                                                      │
00:13:42 verbose #12743 > > │         self.ptr[index] = value                                              │
00:13:42 verbose #12744 > > │                                                                              │
00:13:42 verbose #12745 > > │ class static_array_list(static_array):                                       │
00:13:42 verbose #12746 > > │     def __init__(self, length):                                              │
00:13:42 verbose #12747 > > │         super().__init__(length)                                             │
00:13:42 verbose #12748 > > │         self.length = 0                                                      │
00:13:42 verbose #12749 > > │                                                                              │
00:13:42 verbose #12750 > > │     def __getitem__(self, index):                                            │
00:13:42 verbose #12751 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:42 verbose #12752 > > │ range."                                                                      │
00:13:42 verbose #12753 > > │         return self.ptr[index]                                               │
00:13:42 verbose #12754 > > │                                                                              │
00:13:42 verbose #12755 > > │     def __setitem__(self, index, value):                                     │
00:13:42 verbose #12756 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:42 verbose #12757 > > │ range."                                                                      │
00:13:42 verbose #12758 > > │         self.ptr[index] = value                                              │
00:13:42 verbose #12759 > > │                                                                              │
00:13:42 verbose #12760 > > │     def push(self,value):                                                    │
00:13:42 verbose #12761 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:42 verbose #12762 > > │ to be less than the maximum length of the array."                            │
00:13:42 verbose #12763 > > │         self.ptr[self.length] = value                                        │
00:13:42 verbose #12764 > > │         self.length += 1                                                     │
00:13:42 verbose #12765 > > │                                                                              │
00:13:42 verbose #12766 > > │     def pop(self):                                                           │
00:13:42 verbose #12767 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:42 verbose #12768 > > │ greater than 0."                                                             │
00:13:42 verbose #12769 > > │         self.length -= 1                                                     │
00:13:42 verbose #12770 > > │         return self.ptr[self.length]                                         │
00:13:42 verbose #12771 > > │                                                                              │
00:13:42 verbose #12772 > > │     def unsafe_set_length(self,i):                                           │
00:13:42 verbose #12773 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:42 verbose #12774 > > │         self.length = i                                                      │
00:13:42 verbose #12775 > > │                                                                              │
00:13:42 verbose #12776 > > │ class dynamic_array(static_array):                                           │
00:13:42 verbose #12777 > > │     pass                                                                     │
00:13:42 verbose #12778 > > │                                                                              │
00:13:42 verbose #12779 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:42 verbose #12780 > > │     def length_(self): return self.length                                    │
00:13:42 verbose #12781 > > │                                                                              │
00:13:42 verbose #12782 > > │ import cupy as cp                                                            │
00:13:42 verbose #12783 > > │ from dataclasses import dataclass                                            │
00:13:42 verbose #12784 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:42 verbose #12785 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:42 verbose #12786 > > │ string = str                                                                 │
00:13:42 verbose #12787 > > │                                                                              │
00:13:42 verbose #12788 > > │ def method1() -> i32:                                                        │
00:13:42 verbose #12789 > > │     return 3                                                                 │
00:13:42 verbose #12790 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:13:42 verbose #12791 > > │     v2 = v1 + v0                                                             │
00:13:42 verbose #12792 > > │     del v0, v1                                                               │
00:13:42 verbose #12793 > > │     return v2                                                                │
00:13:42 verbose #12794 > > │ def method3(v0 : bool) -> bool:                                              │
00:13:42 verbose #12795 > > │     return v0                                                                │
00:13:42 verbose #12796 > > │ def method0() -> None:                                                       │
00:13:42 verbose #12797 > > │     v0 = method1()                                                           │
00:13:42 verbose #12798 > > │     v1 = 9                                                                   │
00:13:42 verbose #12799 > > │     v2 = method2(v0, v1)                                                     │
00:13:42 verbose #12800 > > │     del v0, v1                                                               │
00:13:42 verbose #12801 > > │     v3 = v2 + 2                                                              │
00:13:42 verbose #12802 > > │     del v2                                                                   │
00:13:42 verbose #12803 > > │     v4 = v3 + 1                                                              │
00:13:42 verbose #12804 > > │     del v3                                                                   │
00:13:42 verbose #12805 > > │     v5 = v4 == 15                                                            │
00:13:42 verbose #12806 > > │     if v5:                                                                   │
00:13:42 verbose #12807 > > │         v7 = True                                                            │
00:13:42 verbose #12808 > > │     else:                                                                    │
00:13:42 verbose #12809 > > │         v7 = method3(v5)                                                     │
00:13:42 verbose #12810 > > │     del v5                                                                   │
00:13:42 verbose #12811 > > │     v10 = "__assert_eq"                                                      │
00:13:42 verbose #12812 > > │     v11 = f"{v10} / actual: {v4} / expected: {15}"                           │
00:13:42 verbose #12813 > > │     del v4, v10                                                              │
00:13:42 verbose #12814 > > │     print(v11)                                                               │
00:13:42 verbose #12815 > > │     v17 = v7 == False                                                        │
00:13:42 verbose #12816 > > │     del v7                                                                   │
00:13:42 verbose #12817 > > │     if v17:                                                                  │
00:13:42 verbose #12818 > > │         del v17                                                              │
00:13:42 verbose #12819 > > │         raise Exception(v11)                                                 │
00:13:42 verbose #12820 > > │     else:                                                                    │
00:13:42 verbose #12821 > > │         del v11, v17                                                         │
00:13:42 verbose #12822 > > │         return                                                               │
00:13:42 verbose #12823 > > │ def main():                                                                  │
00:13:42 verbose #12824 > > │     return method0()                                                         │
00:13:42 verbose #12825 > > │                                                                              │
00:13:42 verbose #12826 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:42 verbose #12827 > > │ print(result)                                                                │
00:13:42 verbose #12828 > > │                                                                              │
00:13:42 verbose #12829 > > │                                                                              │
00:13:42 verbose #12830 > > │ .py:                                                                         │
00:13:42 verbose #12831 > > │ kernel = r"""                                                                │
00:13:42 verbose #12832 > > │ """                                                                          │
00:13:42 verbose #12833 > > │ class static_array():                                                        │
00:13:42 verbose #12834 > > │     def __init__(self, length):                                              │
00:13:42 verbose #12835 > > │         self.ptr = []                                                        │
00:13:42 verbose #12836 > > │         for _ in range(length):                                              │
00:13:42 verbose #12837 > > │             self.ptr.append(None)                                            │
00:13:42 verbose #12838 > > │                                                                              │
00:13:42 verbose #12839 > > │     def __getitem__(self, index):                                            │
00:13:42 verbose #12840 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:42 verbose #12841 > > │ range."                                                                      │
00:13:42 verbose #12842 > > │         return self.ptr[index]                                               │
00:13:42 verbose #12843 > > │                                                                              │
00:13:42 verbose #12844 > > │     def __setitem__(self, index, value):                                     │
00:13:42 verbose #12845 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:42 verbose #12846 > > │ range."                                                                      │
00:13:42 verbose #12847 > > │         self.ptr[index] = value                                              │
00:13:42 verbose #12848 > > │                                                                              │
00:13:42 verbose #12849 > > │ class static_array_list(static_array):                                       │
00:13:42 verbose #12850 > > │     def __init__(self, length):                                              │
00:13:42 verbose #12851 > > │         super().__init__(length)                                             │
00:13:42 verbose #12852 > > │         self.length = 0                                                      │
00:13:42 verbose #12853 > > │                                                                              │
00:13:42 verbose #12854 > > │     def __getitem__(self, index):                                            │
00:13:42 verbose #12855 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:42 verbose #12856 > > │ range."                                                                      │
00:13:42 verbose #12857 > > │         return self.ptr[index]                                               │
00:13:42 verbose #12858 > > │                                                                              │
00:13:42 verbose #12859 > > │     def __setitem__(self, index, value):                                     │
00:13:42 verbose #12860 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:42 verbose #12861 > > │ range."                                                                      │
00:13:42 verbose #12862 > > │         self.ptr[index] = value                                              │
00:13:42 verbose #12863 > > │                                                                              │
00:13:42 verbose #12864 > > │     def push(self,value):                                                    │
00:13:42 verbose #12865 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:42 verbose #12866 > > │ to be less than the maximum length of the array."                            │
00:13:42 verbose #12867 > > │         self.ptr[self.length] = value                                        │
00:13:42 verbose #12868 > > │         self.length += 1                                                     │
00:13:42 verbose #12869 > > │                                                                              │
00:13:42 verbose #12870 > > │     def pop(self):                                                           │
00:13:42 verbose #12871 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:42 verbose #12872 > > │ greater than 0."                                                             │
00:13:42 verbose #12873 > > │         self.length -= 1                                                     │
00:13:42 verbose #12874 > > │         return self.ptr[self.length]                                         │
00:13:42 verbose #12875 > > │                                                                              │
00:13:42 verbose #12876 > > │     def unsafe_set_length(self,i):                                           │
00:13:42 verbose #12877 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:42 verbose #12878 > > │         self.length = i                                                      │
00:13:42 verbose #12879 > > │                                                                              │
00:13:42 verbose #12880 > > │ class dynamic_array(static_array):                                           │
00:13:42 verbose #12881 > > │     pass                                                                     │
00:13:42 verbose #12882 > > │                                                                              │
00:13:42 verbose #12883 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:42 verbose #12884 > > │     def length_(self): return self.length                                    │
00:13:42 verbose #12885 > > │                                                                              │
00:13:42 verbose #12886 > > │ import cupy as cp                                                            │
00:13:42 verbose #12887 > > │ from dataclasses import dataclass                                            │
00:13:42 verbose #12888 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:42 verbose #12889 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:42 verbose #12890 > > │ string = str                                                                 │
00:13:42 verbose #12891 > > │                                                                              │
00:13:42 verbose #12892 > > │ def method1() -> i32:                                                        │
00:13:42 verbose #12893 > > │     return 3                                                                 │
00:13:42 verbose #12894 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:13:42 verbose #12895 > > │     v2 = v1 + v0                                                             │
00:13:42 verbose #12896 > > │     del v0, v1                                                               │
00:13:42 verbose #12897 > > │     return v2                                                                │
00:13:42 verbose #12898 > > │ def method3(v0 : bool) -> bool:                                              │
00:13:42 verbose #12899 > > │     return v0                                                                │
00:13:42 verbose #12900 > > │ def method0() -> None:                                                       │
00:13:42 verbose #12901 > > │     v0 = method1()                                                           │
00:13:42 verbose #12902 > > │     v1 = 9                                                                   │
00:13:42 verbose #12903 > > │     v2 = method2(v0, v1)                                                     │
00:13:42 verbose #12904 > > │     del v0, v1                                                               │
00:13:42 verbose #12905 > > │     v3 = v2 + 2                                                              │
00:13:42 verbose #12906 > > │     del v2                                                                   │
00:13:42 verbose #12907 > > │     v4 = v3 + 1                                                              │
00:13:42 verbose #12908 > > │     del v3                                                                   │
00:13:42 verbose #12909 > > │     v5 = v4 == 15                                                            │
00:13:42 verbose #12910 > > │     if v5:                                                                   │
00:13:42 verbose #12911 > > │         v7 = True                                                            │
00:13:42 verbose #12912 > > │     else:                                                                    │
00:13:42 verbose #12913 > > │         v7 = method3(v5)                                                     │
00:13:42 verbose #12914 > > │     del v5                                                                   │
00:13:42 verbose #12915 > > │     v10 = "__assert_eq"                                                      │
00:13:42 verbose #12916 > > │     v11 = f"{v10} / actual: {v4} / expected: {15}"                           │
00:13:42 verbose #12917 > > │     del v4, v10                                                              │
00:13:42 verbose #12918 > > │     print(v11)                                                               │
00:13:42 verbose #12919 > > │     v17 = v7 == False                                                        │
00:13:42 verbose #12920 > > │     del v7                                                                   │
00:13:42 verbose #12921 > > │     if v17:                                                                  │
00:13:42 verbose #12922 > > │         del v17                                                              │
00:13:42 verbose #12923 > > │         raise Exception(v11)                                                 │
00:13:42 verbose #12924 > > │     else:                                                                    │
00:13:42 verbose #12925 > > │         del v11, v17                                                         │
00:13:42 verbose #12926 > > │         return                                                               │
00:13:42 verbose #12927 > > │ def main():                                                                  │
00:13:42 verbose #12928 > > │     return method0()                                                         │
00:13:42 verbose #12929 > > │                                                                              │
00:13:42 verbose #12930 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:42 verbose #12931 > > │ print(result)                                                                │
00:13:42 verbose #12932 > > │                                                                              │
00:13:42 verbose #12933 > > │ .fsx output:                                                                 │
00:13:42 verbose #12934 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:42 verbose #12935 > > │                                                                              │
00:13:42 verbose #12936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:42 verbose #12937 > >
00:13:42 verbose #12938 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:42 verbose #12939 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:42 verbose #12940 > > │ ### join_body_unit                                                           │
00:13:42 verbose #12941 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:42 verbose #12942 > >
00:13:42 verbose #12943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:42 verbose #12944 > > inl join_body_unit body d x =
00:13:42 verbose #12945 > >     if var_is d |> not
00:13:42 verbose #12946 > >     then body x
00:13:42 verbose #12947 > >     else
00:13:42 verbose #12948 > >         inl x = dyn x
00:13:42 verbose #12949 > >         join body x
00:13:43 verbose #12950 > >
00:13:43 verbose #12951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:43 verbose #12952 > > //// test
00:13:43 verbose #12953 > > ///! fsharp
00:13:43 verbose #12954 > > ///! cuda
00:13:43 verbose #12955 > > ///! rust
00:13:43 verbose #12956 > > ///! typescript
00:13:43 verbose #12957 > > ///! python
00:13:43 verbose #12958 > > //// print_code=true
00:13:43 verbose #12959 > >
00:13:43 verbose #12960 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:13:43 verbose #12961 > > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:13:43 verbose #12962 > > |> _assert_eq 15
00:13:48 verbose #12963 > >
00:13:48 verbose #12964 > > ╭─[ 5.28s - return value ]─────────────────────────────────────────────────────╮
00:13:48 verbose #12965 > > │ .py output (Cuda):                                                           │
00:13:48 verbose #12966 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:48 verbose #12967 > > │                                                                              │
00:13:48 verbose #12968 > > │ .rs output:                                                                  │
00:13:48 verbose #12969 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:48 verbose #12970 > > │                                                                              │
00:13:48 verbose #12971 > > │ .ts output:                                                                  │
00:13:48 verbose #12972 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:48 verbose #12973 > > │                                                                              │
00:13:48 verbose #12974 > > │ .py output:                                                                  │
00:13:48 verbose #12975 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:48 verbose #12976 > > │                                                                              │
00:13:48 verbose #12977 > > │                                                                              │
00:13:48 verbose #12978 > > │                                                                              │
00:13:48 verbose #12979 > > │                                                                              │
00:13:48 verbose #12980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 verbose #12981 > >
00:13:48 verbose #12982 > > ╭─[ 5.28s - stdout ]───────────────────────────────────────────────────────────╮
00:13:48 verbose #12983 > > │ .fsx:                                                                        │
00:13:48 verbose #12984 > > │ let rec method1 () : int32 =                                                 │
00:13:48 verbose #12985 > > │     3                                                                        │
00:13:48 verbose #12986 > > │ and method2 (v0 : int32) : int32 =                                           │
00:13:48 verbose #12987 > > │     let v1 : int32 = 9 + v0                                                  │
00:13:48 verbose #12988 > > │     v1                                                                       │
00:13:48 verbose #12989 > > │ and method3 (v0 : bool) : bool =                                             │
00:13:48 verbose #12990 > > │     v0                                                                       │
00:13:48 verbose #12991 > > │ and closure0 (v0 : string) () : unit =                                       │
00:13:48 verbose #12992 > > │     let v1 : (string -> unit) = System.Console.WriteLine                     │
00:13:48 verbose #12993 > > │     v1 v0                                                                    │
00:13:48 verbose #12994 > > │ and method0 () : unit =                                                      │
00:13:48 verbose #12995 > > │     let v0 : int32 = method1()                                               │
00:13:48 verbose #12996 > > │     let v1 : int32 = method2(v0)                                             │
00:13:48 verbose #12997 > > │     let v2 : int32 = v1 + 2                                                  │
00:13:48 verbose #12998 > > │     let v3 : int32 = v2 + 1                                                  │
00:13:48 verbose #12999 > > │     let v4 : bool = v3 = 15                                                  │
00:13:48 verbose #13000 > > │     let v6 : bool =                                                          │
00:13:48 verbose #13001 > > │         if v4 then                                                           │
00:13:48 verbose #13002 > > │             true                                                             │
00:13:48 verbose #13003 > > │         else                                                                 │
00:13:48 verbose #13004 > > │             method3(v4)                                                      │
00:13:48 verbose #13005 > > │     let v7 : string = "__assert_eq"                                          │
00:13:48 verbose #13006 > > │     let v8 : string = $"{v7} / actual: %A{v3} / expected: %A{15}"            │
00:13:48 verbose #13007 > > │     let v11 : unit = ()                                                      │
00:13:48 verbose #13008 > > │     let v12 : (unit -> unit) = closure0(v8)                                  │
00:13:48 verbose #13009 > > │     let v13 : unit = (fun () -> v12 (); v11) ()                              │
00:13:48 verbose #13010 > > │     let v15 : bool = v6 = false                                              │
00:13:48 verbose #13011 > > │     if v15 then                                                              │
00:13:48 verbose #13012 > > │         failwith<unit> v8                                                    │
00:13:48 verbose #13013 > > │ method0()                                                                    │
00:13:48 verbose #13014 > > │                                                                              │
00:13:48 verbose #13015 > > │                                                                              │
00:13:48 verbose #13016 > > │ .rs:                                                                         │
00:13:48 verbose #13017 > > │ #![allow(dead_code)]                                                         │
00:13:48 verbose #13018 > > │ #![allow(non_camel_case_types)]                                              │
00:13:48 verbose #13019 > > │ #![allow(non_snake_case)]                                                    │
00:13:48 verbose #13020 > > │ #![allow(non_upper_case_globals)]                                            │
00:13:48 verbose #13021 > > │ #![allow(unreachable_code)]                                                  │
00:13:48 verbose #13022 > > │ #![allow(unused_attributes)]                                                 │
00:13:48 verbose #13023 > > │ #![allow(unused_imports)]                                                    │
00:13:48 verbose #13024 > > │ #![allow(unused_macros)]                                                     │
00:13:48 verbose #13025 > > │ #![allow(unused_parens)]                                                     │
00:13:48 verbose #13026 > > │ #![allow(unused_variables)]                                                  │
00:13:48 verbose #13027 > > │ mod module_2c87da30 {                                                        │
00:13:48 verbose #13028 > > │     pub mod Spiral_builder {                                                 │
00:13:48 verbose #13029 > > │         use super::*;                                                        │
00:13:48 verbose #13030 > > │         use fable_library_rust::Native_::on_startup;                         │
00:13:48 verbose #13031 > > │         use fable_library_rust::String_::printfn;                            │
00:13:48 verbose #13032 > > │         use fable_library_rust::String_::sprintf;                            │
00:13:48 verbose #13033 > > │         use fable_library_rust::String_::string;                             │
00:13:48 verbose #13034 > > │         pub fn method1() -> i32 {                                            │
00:13:48 verbose #13035 > > │             3_i32                                                            │
00:13:48 verbose #13036 > > │         }                                                                    │
00:13:48 verbose #13037 > > │         pub fn method2(v0: i32) -> i32 {                                     │
00:13:48 verbose #13038 > > │             9_i32 + v0                                                       │
00:13:48 verbose #13039 > > │         }                                                                    │
00:13:48 verbose #13040 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:13:48 verbose #13041 > > │             v0                                                               │
00:13:48 verbose #13042 > > │         }                                                                    │
00:13:48 verbose #13043 > > │         pub fn closure0(v0: string, unitVar: ()) {                           │
00:13:48 verbose #13044 > > │             printfn!("{0}", v0);                                             │
00:13:48 verbose #13045 > > │         }                                                                    │
00:13:48 verbose #13046 > > │         pub fn method0() {                                                   │
00:13:48 verbose #13047 > > │             let v3: i32 = Spiral_builder::method2(Spiral_builder::method1()) │
00:13:48 verbose #13048 > > │ + 2_i32 + 1_i32;                                                             │
00:13:48 verbose #13049 > > │             let v4: bool = v3 == 15_i32;                                     │
00:13:48 verbose #13050 > > │             let v6: bool = if v4 {                                           │
00:13:48 verbose #13051 > > │                 true                                                         │
00:13:48 verbose #13052 > > │             } else {                                                         │
00:13:48 verbose #13053 > > │                 Spiral_builder::method3(v4)                                  │
00:13:48 verbose #13054 > > │             };                                                               │
00:13:48 verbose #13055 > > │             let v8: string = sprintf!(                                       │
00:13:48 verbose #13056 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:13:48 verbose #13057 > > │                 string("__assert_eq"),                                       │
00:13:48 verbose #13058 > > │                 v3,                                                          │
00:13:48 verbose #13059 > > │                 15_i32                                                       │
00:13:48 verbose #13060 > > │             );                                                               │
00:13:48 verbose #13061 > > │             let v13: () = {                                                  │
00:13:48 verbose #13062 > > │                 Spiral_builder::closure0(v8.clone(), ());                    │
00:13:48 verbose #13063 > > │                 ()                                                           │
00:13:48 verbose #13064 > > │             };                                                               │
00:13:48 verbose #13065 > > │             if v6 == false {                                                 │
00:13:48 verbose #13066 > > │                 panic!("{}", v8,);                                           │
00:13:48 verbose #13067 > > │             }                                                                │
00:13:48 verbose #13068 > > │         }                                                                    │
00:13:48 verbose #13069 > > │         on_startup!(Spiral_builder::method0());                              │
00:13:48 verbose #13070 > > │     }                                                                        │
00:13:48 verbose #13071 > > │ }                                                                            │
00:13:48 verbose #13072 > > │ pub use module_2c87da30::*;                                                  │
00:13:48 verbose #13073 > > │                                                                              │
00:13:48 verbose #13074 > > │ pub fn main() -> Result<(), String> {                                        │
00:13:48 verbose #13075 > > │     Ok(())                                                                   │
00:13:48 verbose #13076 > > │ }                                                                            │
00:13:48 verbose #13077 > > │                                                                              │
00:13:48 verbose #13078 > > │ .ts:                                                                         │
00:13:48 verbose #13079 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.20.0/Int32.js";    │
00:13:48 verbose #13080 > > │ import { interpolate, toText } from                                          │
00:13:48 verbose #13081 > > │ "./fable_modules/fable-library-ts.4.20.0/String.js";                         │
00:13:48 verbose #13082 > > │                                                                              │
00:13:48 verbose #13083 > > │ export function method1(): int32 {                                           │
00:13:48 verbose #13084 > > │     return 3;                                                                │
00:13:48 verbose #13085 > > │ }                                                                            │
00:13:48 verbose #13086 > > │                                                                              │
00:13:48 verbose #13087 > > │ export function method2(v0: int32): int32 {                                  │
00:13:48 verbose #13088 > > │     return 9 + v0;                                                           │
00:13:48 verbose #13089 > > │ }                                                                            │
00:13:48 verbose #13090 > > │                                                                              │
00:13:48 verbose #13091 > > │ export function method3(v0: boolean): boolean {                              │
00:13:48 verbose #13092 > > │     return v0;                                                               │
00:13:48 verbose #13093 > > │ }                                                                            │
00:13:48 verbose #13094 > > │                                                                              │
00:13:48 verbose #13095 > > │ export function closure0(v0: string, unitVar: void): void {                  │
00:13:48 verbose #13096 > > │     console.log(v0);                                                         │
00:13:48 verbose #13097 > > │ }                                                                            │
00:13:48 verbose #13098 > > │                                                                              │
00:13:48 verbose #13099 > > │ export function method0(): void {                                            │
00:13:48 verbose #13100 > > │     const v3: int32 = ((method2(method1()) + 2) + 1) | 0;                    │
00:13:48 verbose #13101 > > │     const v4: boolean = v3 === 15;                                           │
00:13:48 verbose #13102 > > │     const v6: boolean = v4 ? true : method3(v4);                             │
00:13:48 verbose #13103 > > │     const v8: string = toText(interpolate("%P() / actual: %A%P() / expected: │
00:13:48 verbose #13104 > > │ %A%P()", ["__assert_eq", v3, 15]));                                          │
00:13:48 verbose #13105 > > │     let v13: any;                                                            │
00:13:48 verbose #13106 > > │     closure0(v8, undefined);                                                 │
00:13:48 verbose #13107 > > │     v13 = undefined;                                                         │
00:13:48 verbose #13108 > > │     if (v6 === false) {                                                      │
00:13:48 verbose #13109 > > │         throw new Error(v8);                                                 │
00:13:48 verbose #13110 > > │     }                                                                        │
00:13:48 verbose #13111 > > │ }                                                                            │
00:13:48 verbose #13112 > > │                                                                              │
00:13:48 verbose #13113 > > │ method0();                                                                   │
00:13:48 verbose #13114 > > │                                                                              │
00:13:48 verbose #13115 > > │                                                                              │
00:13:48 verbose #13116 > > │                                                                              │
00:13:48 verbose #13117 > > │ // spiral_builder.process_typescript                                         │
00:13:48 verbose #13118 > > │                                                                              │
00:13:48 verbose #13119 > > │ .py:                                                                         │
00:13:48 verbose #13120 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:13:48 verbose #13121 > > │                                                                              │
00:13:48 verbose #13122 > > │ def method1(__unit: None=None) -> int:                                       │
00:13:48 verbose #13123 > > │     return 3                                                                 │
00:13:48 verbose #13124 > > │                                                                              │
00:13:48 verbose #13125 > > │                                                                              │
00:13:48 verbose #13126 > > │ def method2(v0: int) -> int:                                                 │
00:13:48 verbose #13127 > > │     return 9 + v0                                                            │
00:13:48 verbose #13128 > > │                                                                              │
00:13:48 verbose #13129 > > │                                                                              │
00:13:48 verbose #13130 > > │ def method3(v0: bool) -> bool:                                               │
00:13:48 verbose #13131 > > │     return v0                                                                │
00:13:48 verbose #13132 > > │                                                                              │
00:13:48 verbose #13133 > > │                                                                              │
00:13:48 verbose #13134 > > │ def closure0(v0: str, unit_var: None) -> None:                               │
00:13:48 verbose #13135 > > │     print(v0)                                                                │
00:13:48 verbose #13136 > > │                                                                              │
00:13:48 verbose #13137 > > │                                                                              │
00:13:48 verbose #13138 > > │ def method0(__unit: None=None) -> None:                                      │
00:13:48 verbose #13139 > > │     v3: int = ((method2(method1()) + 2) + 1) or 0                            │
00:13:48 verbose #13140 > > │     v4: bool = v3 == 15                                                      │
00:13:48 verbose #13141 > > │     v6: bool = True if v4 else method3(v4)                                   │
00:13:48 verbose #13142 > > │     v8: str = to_text(interpolate("%P() / actual: %A%P() / expected:         │
00:13:48 verbose #13143 > > │ %A%P()", ["__assert_eq", v3, 15]))                                           │
00:13:48 verbose #13144 > > │     v13: None                                                                │
00:13:48 verbose #13145 > > │     closure0(v8, None)                                                       │
00:13:48 verbose #13146 > > │     v13 = None                                                               │
00:13:48 verbose #13147 > > │     if v6 == False:                                                          │
00:13:48 verbose #13148 > > │         raise Exception(v8)                                                  │
00:13:48 verbose #13149 > > │                                                                              │
00:13:48 verbose #13150 > > │                                                                              │
00:13:48 verbose #13151 > > │                                                                              │
00:13:48 verbose #13152 > > │ method0()                                                                    │
00:13:48 verbose #13153 > > │                                                                              │
00:13:48 verbose #13154 > > │                                                                              │
00:13:48 verbose #13155 > > │                                                                              │
00:13:48 verbose #13156 > > │ # spiral_builder.process_python                                              │
00:13:48 verbose #13157 > > │                                                                              │
00:13:48 verbose #13158 > > │ .py:                                                                         │
00:13:48 verbose #13159 > > │ kernel = r"""                                                                │
00:13:48 verbose #13160 > > │ """                                                                          │
00:13:48 verbose #13161 > > │ class static_array():                                                        │
00:13:48 verbose #13162 > > │     def __init__(self, length):                                              │
00:13:48 verbose #13163 > > │         self.ptr = []                                                        │
00:13:48 verbose #13164 > > │         for _ in range(length):                                              │
00:13:48 verbose #13165 > > │             self.ptr.append(None)                                            │
00:13:48 verbose #13166 > > │                                                                              │
00:13:48 verbose #13167 > > │     def __getitem__(self, index):                                            │
00:13:48 verbose #13168 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:48 verbose #13169 > > │ range."                                                                      │
00:13:48 verbose #13170 > > │         return self.ptr[index]                                               │
00:13:48 verbose #13171 > > │                                                                              │
00:13:48 verbose #13172 > > │     def __setitem__(self, index, value):                                     │
00:13:48 verbose #13173 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:48 verbose #13174 > > │ range."                                                                      │
00:13:48 verbose #13175 > > │         self.ptr[index] = value                                              │
00:13:48 verbose #13176 > > │                                                                              │
00:13:48 verbose #13177 > > │ class static_array_list(static_array):                                       │
00:13:48 verbose #13178 > > │     def __init__(self, length):                                              │
00:13:48 verbose #13179 > > │         super().__init__(length)                                             │
00:13:48 verbose #13180 > > │         self.length = 0                                                      │
00:13:48 verbose #13181 > > │                                                                              │
00:13:48 verbose #13182 > > │     def __getitem__(self, index):                                            │
00:13:48 verbose #13183 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:48 verbose #13184 > > │ range."                                                                      │
00:13:48 verbose #13185 > > │         return self.ptr[index]                                               │
00:13:48 verbose #13186 > > │                                                                              │
00:13:48 verbose #13187 > > │     def __setitem__(self, index, value):                                     │
00:13:48 verbose #13188 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:48 verbose #13189 > > │ range."                                                                      │
00:13:48 verbose #13190 > > │         self.ptr[index] = value                                              │
00:13:48 verbose #13191 > > │                                                                              │
00:13:48 verbose #13192 > > │     def push(self,value):                                                    │
00:13:48 verbose #13193 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:48 verbose #13194 > > │ to be less than the maximum length of the array."                            │
00:13:48 verbose #13195 > > │         self.ptr[self.length] = value                                        │
00:13:48 verbose #13196 > > │         self.length += 1                                                     │
00:13:48 verbose #13197 > > │                                                                              │
00:13:48 verbose #13198 > > │     def pop(self):                                                           │
00:13:48 verbose #13199 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:48 verbose #13200 > > │ greater than 0."                                                             │
00:13:48 verbose #13201 > > │         self.length -= 1                                                     │
00:13:48 verbose #13202 > > │         return self.ptr[self.length]                                         │
00:13:48 verbose #13203 > > │                                                                              │
00:13:48 verbose #13204 > > │     def unsafe_set_length(self,i):                                           │
00:13:48 verbose #13205 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:48 verbose #13206 > > │         self.length = i                                                      │
00:13:48 verbose #13207 > > │                                                                              │
00:13:48 verbose #13208 > > │ class dynamic_array(static_array):                                           │
00:13:48 verbose #13209 > > │     pass                                                                     │
00:13:48 verbose #13210 > > │                                                                              │
00:13:48 verbose #13211 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:48 verbose #13212 > > │     def length_(self): return self.length                                    │
00:13:48 verbose #13213 > > │                                                                              │
00:13:48 verbose #13214 > > │ import cupy as cp                                                            │
00:13:48 verbose #13215 > > │ from dataclasses import dataclass                                            │
00:13:48 verbose #13216 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:48 verbose #13217 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:48 verbose #13218 > > │ string = str                                                                 │
00:13:48 verbose #13219 > > │                                                                              │
00:13:48 verbose #13220 > > │ def method1() -> i32:                                                        │
00:13:48 verbose #13221 > > │     return 3                                                                 │
00:13:48 verbose #13222 > > │ def method2(v0 : i32) -> i32:                                                │
00:13:48 verbose #13223 > > │     v1 = 9 + v0                                                              │
00:13:48 verbose #13224 > > │     del v0                                                                   │
00:13:48 verbose #13225 > > │     return v1                                                                │
00:13:48 verbose #13226 > > │ def method3(v0 : bool) -> bool:                                              │
00:13:48 verbose #13227 > > │     return v0                                                                │
00:13:48 verbose #13228 > > │ def method0() -> None:                                                       │
00:13:48 verbose #13229 > > │     v0 = method1()                                                           │
00:13:48 verbose #13230 > > │     v1 = method2(v0)                                                         │
00:13:48 verbose #13231 > > │     del v0                                                                   │
00:13:48 verbose #13232 > > │     v2 = v1 + 2                                                              │
00:13:48 verbose #13233 > > │     del v1                                                                   │
00:13:48 verbose #13234 > > │     v3 = v2 + 1                                                              │
00:13:48 verbose #13235 > > │     del v2                                                                   │
00:13:48 verbose #13236 > > │     v4 = v3 == 15                                                            │
00:13:48 verbose #13237 > > │     if v4:                                                                   │
00:13:48 verbose #13238 > > │         v6 = True                                                            │
00:13:48 verbose #13239 > > │     else:                                                                    │
00:13:48 verbose #13240 > > │         v6 = method3(v4)                                                     │
00:13:48 verbose #13241 > > │     del v4                                                                   │
00:13:48 verbose #13242 > > │     v9 = "__assert_eq"                                                       │
00:13:48 verbose #13243 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:13:48 verbose #13244 > > │     del v3, v9                                                               │
00:13:48 verbose #13245 > > │     print(v10)                                                               │
00:13:48 verbose #13246 > > │     v16 = v6 == False                                                        │
00:13:48 verbose #13247 > > │     del v6                                                                   │
00:13:48 verbose #13248 > > │     if v16:                                                                  │
00:13:48 verbose #13249 > > │         del v16                                                              │
00:13:48 verbose #13250 > > │         raise Exception(v10)                                                 │
00:13:48 verbose #13251 > > │     else:                                                                    │
00:13:48 verbose #13252 > > │         del v10, v16                                                         │
00:13:48 verbose #13253 > > │         return                                                               │
00:13:48 verbose #13254 > > │ def main():                                                                  │
00:13:48 verbose #13255 > > │     return method0()                                                         │
00:13:48 verbose #13256 > > │                                                                              │
00:13:48 verbose #13257 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:48 verbose #13258 > > │ print(result)                                                                │
00:13:48 verbose #13259 > > │                                                                              │
00:13:48 verbose #13260 > > │                                                                              │
00:13:48 verbose #13261 > > │ .py:                                                                         │
00:13:48 verbose #13262 > > │ kernel = r"""                                                                │
00:13:48 verbose #13263 > > │ """                                                                          │
00:13:48 verbose #13264 > > │ class static_array():                                                        │
00:13:48 verbose #13265 > > │     def __init__(self, length):                                              │
00:13:48 verbose #13266 > > │         self.ptr = []                                                        │
00:13:48 verbose #13267 > > │         for _ in range(length):                                              │
00:13:48 verbose #13268 > > │             self.ptr.append(None)                                            │
00:13:48 verbose #13269 > > │                                                                              │
00:13:48 verbose #13270 > > │     def __getitem__(self, index):                                            │
00:13:48 verbose #13271 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:13:48 verbose #13272 > > │ range."                                                                      │
00:13:48 verbose #13273 > > │         return self.ptr[index]                                               │
00:13:48 verbose #13274 > > │                                                                              │
00:13:48 verbose #13275 > > │     def __setitem__(self, index, value):                                     │
00:13:48 verbose #13276 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:13:48 verbose #13277 > > │ range."                                                                      │
00:13:48 verbose #13278 > > │         self.ptr[index] = value                                              │
00:13:48 verbose #13279 > > │                                                                              │
00:13:48 verbose #13280 > > │ class static_array_list(static_array):                                       │
00:13:48 verbose #13281 > > │     def __init__(self, length):                                              │
00:13:48 verbose #13282 > > │         super().__init__(length)                                             │
00:13:48 verbose #13283 > > │         self.length = 0                                                      │
00:13:48 verbose #13284 > > │                                                                              │
00:13:48 verbose #13285 > > │     def __getitem__(self, index):                                            │
00:13:48 verbose #13286 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:13:48 verbose #13287 > > │ range."                                                                      │
00:13:48 verbose #13288 > > │         return self.ptr[index]                                               │
00:13:48 verbose #13289 > > │                                                                              │
00:13:48 verbose #13290 > > │     def __setitem__(self, index, value):                                     │
00:13:48 verbose #13291 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:13:48 verbose #13292 > > │ range."                                                                      │
00:13:48 verbose #13293 > > │         self.ptr[index] = value                                              │
00:13:48 verbose #13294 > > │                                                                              │
00:13:48 verbose #13295 > > │     def push(self,value):                                                    │
00:13:48 verbose #13296 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:13:48 verbose #13297 > > │ to be less than the maximum length of the array."                            │
00:13:48 verbose #13298 > > │         self.ptr[self.length] = value                                        │
00:13:48 verbose #13299 > > │         self.length += 1                                                     │
00:13:48 verbose #13300 > > │                                                                              │
00:13:48 verbose #13301 > > │     def pop(self):                                                           │
00:13:48 verbose #13302 > > │         assert (0 < self.length), "The length before popping has to be       │
00:13:48 verbose #13303 > > │ greater than 0."                                                             │
00:13:48 verbose #13304 > > │         self.length -= 1                                                     │
00:13:48 verbose #13305 > > │         return self.ptr[self.length]                                         │
00:13:48 verbose #13306 > > │                                                                              │
00:13:48 verbose #13307 > > │     def unsafe_set_length(self,i):                                           │
00:13:48 verbose #13308 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:13:48 verbose #13309 > > │         self.length = i                                                      │
00:13:48 verbose #13310 > > │                                                                              │
00:13:48 verbose #13311 > > │ class dynamic_array(static_array):                                           │
00:13:48 verbose #13312 > > │     pass                                                                     │
00:13:48 verbose #13313 > > │                                                                              │
00:13:48 verbose #13314 > > │ class dynamic_array_list(static_array_list):                                 │
00:13:48 verbose #13315 > > │     def length_(self): return self.length                                    │
00:13:48 verbose #13316 > > │                                                                              │
00:13:48 verbose #13317 > > │ import cupy as cp                                                            │
00:13:48 verbose #13318 > > │ from dataclasses import dataclass                                            │
00:13:48 verbose #13319 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:13:48 verbose #13320 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:13:48 verbose #13321 > > │ string = str                                                                 │
00:13:48 verbose #13322 > > │                                                                              │
00:13:48 verbose #13323 > > │ def method1() -> i32:                                                        │
00:13:48 verbose #13324 > > │     return 3                                                                 │
00:13:48 verbose #13325 > > │ def method2(v0 : i32) -> i32:                                                │
00:13:48 verbose #13326 > > │     v1 = 9 + v0                                                              │
00:13:48 verbose #13327 > > │     del v0                                                                   │
00:13:48 verbose #13328 > > │     return v1                                                                │
00:13:48 verbose #13329 > > │ def method3(v0 : bool) -> bool:                                              │
00:13:48 verbose #13330 > > │     return v0                                                                │
00:13:48 verbose #13331 > > │ def method0() -> None:                                                       │
00:13:48 verbose #13332 > > │     v0 = method1()                                                           │
00:13:48 verbose #13333 > > │     v1 = method2(v0)                                                         │
00:13:48 verbose #13334 > > │     del v0                                                                   │
00:13:48 verbose #13335 > > │     v2 = v1 + 2                                                              │
00:13:48 verbose #13336 > > │     del v1                                                                   │
00:13:48 verbose #13337 > > │     v3 = v2 + 1                                                              │
00:13:48 verbose #13338 > > │     del v2                                                                   │
00:13:48 verbose #13339 > > │     v4 = v3 == 15                                                            │
00:13:48 verbose #13340 > > │     if v4:                                                                   │
00:13:48 verbose #13341 > > │         v6 = True                                                            │
00:13:48 verbose #13342 > > │     else:                                                                    │
00:13:48 verbose #13343 > > │         v6 = method3(v4)                                                     │
00:13:48 verbose #13344 > > │     del v4                                                                   │
00:13:48 verbose #13345 > > │     v9 = "__assert_eq"                                                       │
00:13:48 verbose #13346 > > │     v10 = f"{v9} / actual: {v3} / expected: {15}"                            │
00:13:48 verbose #13347 > > │     del v3, v9                                                               │
00:13:48 verbose #13348 > > │     print(v10)                                                               │
00:13:48 verbose #13349 > > │     v16 = v6 == False                                                        │
00:13:48 verbose #13350 > > │     del v6                                                                   │
00:13:48 verbose #13351 > > │     if v16:                                                                  │
00:13:48 verbose #13352 > > │         del v16                                                              │
00:13:48 verbose #13353 > > │         raise Exception(v10)                                                 │
00:13:48 verbose #13354 > > │     else:                                                                    │
00:13:48 verbose #13355 > > │         del v10, v16                                                         │
00:13:48 verbose #13356 > > │         return                                                               │
00:13:48 verbose #13357 > > │ def main():                                                                  │
00:13:48 verbose #13358 > > │     return method0()                                                         │
00:13:48 verbose #13359 > > │                                                                              │
00:13:48 verbose #13360 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:13:48 verbose #13361 > > │ print(result)                                                                │
00:13:48 verbose #13362 > > │                                                                              │
00:13:48 verbose #13363 > > │ .fsx output:                                                                 │
00:13:48 verbose #13364 > > │ __assert_eq / actual: 15 / expected: 15                                      │
00:13:48 verbose #13365 > > │                                                                              │
00:13:48 verbose #13366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 verbose #13367 > >
00:13:48 verbose #13368 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:48 verbose #13369 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:48 verbose #13370 > > │ ### retry_fn'                                                                │
00:13:48 verbose #13371 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:48 verbose #13372 > >
00:13:48 verbose #13373 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:48 verbose #13374 > > inl retry_fn' retries fn =
00:13:48 verbose #13375 > >     let rec loop retry =
00:13:48 verbose #13376 > >         inl is_error, result =
00:13:48 verbose #13377 > >             match fn () with
00:13:48 verbose #13378 > >             | Ok x => false, x
00:13:48 verbose #13379 > >             | Error x => true, x
00:13:48 verbose #13380 > >         if not is_error || retry >= retries
00:13:48 verbose #13381 > >         then result
00:13:48 verbose #13382 > >         else
00:13:48 verbose #13383 > >             trace Debug
00:13:48 verbose #13384 > >                 fun () => $'"common.retry_fn\' / loop"'
00:13:48 verbose #13385 > >                 fun () => { is_error retry = $'$"{!retry}/{!retries}"' : string;
00:13:48 verbose #13386 > > result }
00:13:48 verbose #13387 > >             loop (retry + 1)
00:13:48 verbose #13388 > >     loop 1
00:13:49 verbose #13389 > >
00:13:49 verbose #13390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:49 verbose #13391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:49 verbose #13392 > > │ ## fsharp                                                                    │
00:13:49 verbose #13393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:49 verbose #13394 > >
00:13:49 verbose #13395 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:49 verbose #13396 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:49 verbose #13397 > > │ ### upcast                                                                   │
00:13:49 verbose #13398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:49 verbose #13399 > >
00:13:49 verbose #13400 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:49 verbose #13401 > > inl upcast forall t u. (x : t) : u =
00:13:49 verbose #13402 > >     $'!x :> `u '
00:13:49 verbose #13403 > >
00:13:49 verbose #13404 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:49 verbose #13405 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:49 verbose #13406 > > │ ### downcast                                                                 │
00:13:49 verbose #13407 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:49 verbose #13408 > >
00:13:49 verbose #13409 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:49 verbose #13410 > > inl downcast forall t u. (x : t) : u =
00:13:49 verbose #13411 > >     $'!x :?> `u '
00:13:49 verbose #13412 > >
00:13:49 verbose #13413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:49 verbose #13414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:49 verbose #13415 > > │ ### random                                                                   │
00:13:49 verbose #13416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:49 verbose #13417 > >
00:13:49 verbose #13418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:49 verbose #13419 > > nominal random = $'System.Random'
00:13:49 verbose #13420 > >
00:13:49 verbose #13421 > > inl random () : random =
00:13:49 verbose #13422 > >     $'`random ' ()
00:13:50 verbose #13423 > >
00:13:50 verbose #13424 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:50 verbose #13425 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:50 verbose #13426 > > │ ### random_next                                                              │
00:13:50 verbose #13427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:50 verbose #13428 > >
00:13:50 verbose #13429 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:50 verbose #13430 > > inl random_next (min : i32) (max : i32) (random : random) : i32 =
00:13:50 verbose #13431 > >     $'!random.Next (!min, !max)'
00:13:50 verbose #13432 > >
00:13:50 verbose #13433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:50 verbose #13434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:50 verbose #13435 > > │ ### disposable                                                               │
00:13:50 verbose #13436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:50 verbose #13437 > >
00:13:50 verbose #13438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:50 verbose #13439 > > nominal disposable t = $"backend_switch `({ Fsharp : $'System.IDisposable';
00:13:50 verbose #13440 > > Python : $'object' })"
00:13:51 verbose #13441 > >
00:13:51 verbose #13442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:51 verbose #13443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:51 verbose #13444 > > │ ### dispose                                                                  │
00:13:51 verbose #13445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:51 verbose #13446 > >
00:13:51 verbose #13447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #13448 > > inl dispose (disposable : disposable _) : () =
00:13:51 verbose #13449 > >     backend_switch {
00:13:51 verbose #13450 > >         Fsharp = fun () => disposable |> $'_.Dispose()' : ()
00:13:51 verbose #13451 > >         Python = fun () => $'!disposable.__exit__(None, None, None)' : ()
00:13:51 verbose #13452 > >     }
00:13:51 verbose #13453 > >
00:13:51 verbose #13454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:51 verbose #13455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:51 verbose #13456 > > │ ### return                                                                   │
00:13:51 verbose #13457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:51 verbose #13458 > >
00:13:51 verbose #13459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #13460 > > inl return forall t. (x : t) : () =
00:13:51 verbose #13461 > >     $'return !x '
00:13:51 verbose #13462 > >
00:13:51 verbose #13463 > > inl return' forall t. (x : t) : t =
00:13:51 verbose #13464 > >     $'return !x '
00:13:51 verbose #13465 > >
00:13:51 verbose #13466 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:51 verbose #13467 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:51 verbose #13468 > > │ ### retry_fn                                                                 │
00:13:51 verbose #13469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:51 verbose #13470 > >
00:13:51 verbose #13471 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:51 verbose #13472 > > inl retry_fn forall t. retries (fn : () -> t) : option t =
00:13:51 verbose #13473 > >     let rec loop retry =
00:13:51 verbose #13474 > >         try
00:13:51 verbose #13475 > >             fun () =>
00:13:51 verbose #13476 > >                 if retry < retries
00:13:51 verbose #13477 > >                 then fn () |> Some
00:13:51 verbose #13478 > >                 else None
00:13:51 verbose #13479 > >             fun ex =>
00:13:51 verbose #13480 > >                 trace Warning
00:13:51 verbose #13481 > >                     fun () => "common.retry_fn"
00:13:51 verbose #13482 > >                     fun () => { retry ex }
00:13:51 verbose #13483 > >                 None
00:13:51 verbose #13484 > >         |> function
00:13:51 verbose #13485 > >             | Some x => x
00:13:51 verbose #13486 > >             | None => loop (retry + 1)
00:13:51 verbose #13487 > >     loop 0
00:13:52 verbose #13488 > >
00:13:52 verbose #13489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:52 verbose #13490 > > //// test
00:13:52 verbose #13491 > > ///! fsharp
00:13:52 verbose #13492 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:13:52 verbose #13493 > > ///! rust
00:13:52 verbose #13494 > > ///! typescript
00:13:52 verbose #13495 > > ///! python
00:13:52 verbose #13496 > >
00:13:52 verbose #13497 > > inl retry_fn_test = mut 0i32
00:13:52 verbose #13498 > > fun () =>
00:13:52 verbose #13499 > >     retry_fn_test <- *retry_fn_test + 1
00:13:52 verbose #13500 > >     *retry_fn_test
00:13:52 verbose #13501 > > |> retry_fn 3i32
00:13:52 verbose #13502 > > |> _assert_eq' (Some 1i32)
00:13:58 verbose #13503 > >
00:13:58 verbose #13504 > > ╭─[ 5.96s - return value ]─────────────────────────────────────────────────────╮
00:13:58 verbose #13505 > > │ .rs output:                                                                  │
00:13:58 verbose #13506 > > │ __assert_eq' / actual: US0_0(1) / expected: US0_0(1)                         │
00:13:58 verbose #13507 > > │                                                                              │
00:13:58 verbose #13508 > > │ .ts output:                                                                  │
00:13:58 verbose #13509 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:13:58 verbose #13510 > > │                                                                              │
00:13:58 verbose #13511 > > │ .py output:                                                                  │
00:13:58 verbose #13512 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:13:58 verbose #13513 > > │                                                                              │
00:13:58 verbose #13514 > > │                                                                              │
00:13:58 verbose #13515 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #13516 > >
00:13:58 verbose #13517 > > ╭─[ 5.96s - stdout ]───────────────────────────────────────────────────────────╮
00:13:58 verbose #13518 > > │ .fsx output:                                                                 │
00:13:58 verbose #13519 > > │ __assert_eq' / actual: US0_0 1 / expected: US0_0 1                           │
00:13:58 verbose #13520 > > │                                                                              │
00:13:58 verbose #13521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #13522 > >
00:13:58 verbose #13523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:58 verbose #13524 > > //// test
00:13:58 verbose #13525 > > ///! fsharp
00:13:58 verbose #13526 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:13:58 verbose #13527 > > ///! rust
00:13:58 verbose #13528 > > ///! typescript
00:13:58 verbose #13529 > > ///! python
00:13:58 verbose #13530 > >
00:13:58 verbose #13531 > > inl retry_fn_test = mut 0i32
00:13:58 verbose #13532 > > fun () =>
00:13:58 verbose #13533 > >     if *retry_fn_test >= 2
00:13:58 verbose #13534 > >     then *retry_fn_test
00:13:58 verbose #13535 > >     else
00:13:58 verbose #13536 > >         retry_fn_test <- *retry_fn_test + 1
00:13:58 verbose #13537 > >         failwith "test"
00:13:58 verbose #13538 > > |> retry_fn 3i32
00:13:58 verbose #13539 > > |> _assert_eq' (Some 2i32)
00:14:03 verbose #13540 > >
00:14:03 verbose #13541 > > ╭─[ 4.98s - return value ]─────────────────────────────────────────────────────╮
00:14:03 verbose #13542 > > │                                                                              │
00:14:03 verbose #13543 > > │ .rs output:                                                                  │
00:14:03 verbose #13544 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Exception {    │
00:14:03 verbose #13545 > > │     message: "test",                                                         │
00:14:03 verbose #13546 > > │ } }                                                                          │
00:14:03 verbose #13547 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Exception {    │
00:14:03 verbose #13548 > > │     message: "test",                                                         │
00:14:03 verbose #13549 > > │ } }                                                                          │
00:14:03 verbose #13550 > > │ __assert_eq' / actual: US0_0(2) / expected: US0_0(2)                         │
00:14:03 verbose #13551 > > │                                                                              │
00:14:03 verbose #13552 > > │                                                                              │
00:14:03 verbose #13553 > > │ .ts output:                                                                  │
00:14:03 verbose #13554 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Error: test }   │
00:14:03 verbose #13555 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Error: test }   │
00:14:03 verbose #13556 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:14:03 verbose #13557 > > │                                                                              │
00:14:03 verbose #13558 > > │                                                                              │
00:14:03 verbose #13559 > > │ .py output:                                                                  │
00:14:03 verbose #13560 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = test }          │
00:14:03 verbose #13561 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = test }          │
00:14:03 verbose #13562 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:14:03 verbose #13563 > > │                                                                              │
00:14:03 verbose #13564 > > │                                                                              │
00:14:03 verbose #13565 > > │                                                                              │
00:14:03 verbose #13566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:03 verbose #13567 > >
00:14:03 verbose #13568 > > ╭─[ 4.98s - stdout ]───────────────────────────────────────────────────────────╮
00:14:03 verbose #13569 > > │ .fsx output:                                                                 │
00:14:03 verbose #13570 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex =                 │
00:14:03 verbose #13571 > > │ System.Exception: test                                                       │
00:14:03 verbose #13572 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:14:03 verbose #13573 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:14:03 verbose #13574 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex =                 │
00:14:03 verbose #13575 > > │ System.Exception: test                                                       │
00:14:03 verbose #13576 > > │    at FSI_0031.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:14:03 verbose #13577 > > │    at FSI_0031.method1(Mut0 v0, Int32 v1) }                                  │
00:14:03 verbose #13578 > > │ __assert_eq' / actual: US0_0 2 / expected: US0_0 2                           │
00:14:03 verbose #13579 > > │                                                                              │
00:14:03 verbose #13580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:03 verbose #13581 > >
00:14:03 verbose #13582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:03 verbose #13583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:03 verbose #13584 > > │ ## common                                                                    │
00:14:03 verbose #13585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:03 verbose #13586 > >
00:14:03 verbose #13587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:03 verbose #13588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:03 verbose #13589 > > │ ### random'                                                                  │
00:14:03 verbose #13590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:03 verbose #13591 > >
00:14:03 verbose #13592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:03 verbose #13593 > > inl random' forall t. (min : t) (max : t) : t =
00:14:03 verbose #13594 > >     run_target function
00:14:03 verbose #13595 > >         | Rust (Contract) => fun () =>
00:14:03 verbose #13596 > >             failwith "common.random' / target=Rust(Contract)"
00:14:03 verbose #13597 > >         | Rust _ => fun () =>
00:14:03 verbose #13598 > >             open rust.rust_operators
00:14:03 verbose #13599 > >             !\\((min, max), $'"rand::Rng::gen_range(&mut rand::thread_rng(),
00:14:03 verbose #13600 > > $0..$1)"')
00:14:03 verbose #13601 > >         | _ => fun () =>
00:14:03 verbose #13602 > >             random () |> random_next (i32 min) (i32 max) |> convert
00:14:03 verbose #13603 > >
00:14:03 verbose #13604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:03 verbose #13605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:03 verbose #13606 > > │ ### new_disposable                                                           │
00:14:03 verbose #13607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:03 verbose #13608 > >
00:14:03 verbose #13609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:03 verbose #13610 > > inl new_disposable (fn : () -> ()) : disposable _ =
00:14:03 verbose #13611 > >     run_target function
00:14:03 verbose #13612 > >         | Rust _ => fun () =>
00:14:03 verbose #13613 > >             global "type Disposable (f : unit -> unit) = interface
00:14:03 verbose #13614 > > System.IDisposable with member _.Dispose () = f ()"
00:14:03 verbose #13615 > >             inl fn = join fn
00:14:03 verbose #13616 > >             $'new Disposable (fun () -> Fable.Core.RustInterop.emitRustExpr !fn
00:14:03 verbose #13617 > > "$0()" )'
00:14:03 verbose #13618 > >         | Fsharp _ | TypeScript _ | Python _ => fun () =>
00:14:03 verbose #13619 > >             inl fn = join fn
00:14:03 verbose #13620 > >             $'{ new System.IDisposable with member _.Dispose () = !fn () }'
00:14:03 verbose #13621 > >         | Cuda _ => fun () =>
00:14:03 verbose #13622 > >             $'class Disposable:'
00:14:03 verbose #13623 > >             $'    def __init__(self, fn):'
00:14:03 verbose #13624 > >             $'        self.fn = fn'
00:14:03 verbose #13625 > >             $'    def __exit__(self, exc_type, exc_value, traceback):'
00:14:03 verbose #13626 > >             $'        self.fn()'
00:14:03 verbose #13627 > >             $'        return False'
00:14:03 verbose #13628 > >             $'Disposable(!fn)'
00:14:03 verbose #13629 > >         | _ => fun () => null ()
00:14:04 verbose #13630 > >
00:14:04 verbose #13631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:04 verbose #13632 > > //// test
00:14:04 verbose #13633 > > ///! fsharp
00:14:04 verbose #13634 > > ///! cuda
00:14:04 verbose #13635 > > ///! rust
00:14:04 verbose #13636 > > ///! typescript
00:14:04 verbose #13637 > > ///! python
00:14:04 verbose #13638 > >
00:14:04 verbose #13639 > > inl new_disposable_test = mut 0i32
00:14:04 verbose #13640 > > new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:14:04 verbose #13641 > > |> fun x => x : disposable ()
00:14:04 verbose #13642 > > |> dispose
00:14:04 verbose #13643 > > *new_disposable_test |> _assert_eq 1
00:14:09 verbose #13644 > >
00:14:09 verbose #13645 > > ╭─[ 5.29s - return value ]─────────────────────────────────────────────────────╮
00:14:09 verbose #13646 > > │ .py output (Cuda):                                                           │
00:14:09 verbose #13647 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:09 verbose #13648 > > │                                                                              │
00:14:09 verbose #13649 > > │ .rs output:                                                                  │
00:14:09 verbose #13650 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:09 verbose #13651 > > │                                                                              │
00:14:09 verbose #13652 > > │ .ts output:                                                                  │
00:14:09 verbose #13653 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:09 verbose #13654 > > │                                                                              │
00:14:09 verbose #13655 > > │ .py output:                                                                  │
00:14:09 verbose #13656 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:09 verbose #13657 > > │                                                                              │
00:14:09 verbose #13658 > > │                                                                              │
00:14:09 verbose #13659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #13660 > >
00:14:09 verbose #13661 > > ╭─[ 5.29s - stdout ]───────────────────────────────────────────────────────────╮
00:14:09 verbose #13662 > > │ .fsx output:                                                                 │
00:14:09 verbose #13663 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:09 verbose #13664 > > │                                                                              │
00:14:09 verbose #13665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:09 verbose #13666 > >
00:14:09 verbose #13667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:09 verbose #13668 > > //// test
00:14:09 verbose #13669 > >
00:14:09 verbose #13670 > > inl new_disposable_test = mut 0i32
00:14:09 verbose #13671 > > fun () =>
00:14:09 verbose #13672 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:14:09 verbose #13673 > >     |> fun x => x : disposable ()
00:14:09 verbose #13674 > >     |> use
00:14:09 verbose #13675 > >     |> ignore
00:14:09 verbose #13676 > >     |> return
00:14:09 verbose #13677 > > |> async.new_task
00:14:09 verbose #13678 > > |> async.await_task
00:14:09 verbose #13679 > > |> async.run_synchronously
00:14:09 verbose #13680 > > *new_disposable_test |> _assert_eq 1
00:14:10 verbose #13681 > >
00:14:10 verbose #13682 > > ╭─[ 729.94ms - stdout ]────────────────────────────────────────────────────────╮
00:14:10 verbose #13683 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:10 verbose #13684 > > │                                                                              │
00:14:10 verbose #13685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:10 verbose #13686 > >
00:14:10 verbose #13687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:10 verbose #13688 > > //// test
00:14:10 verbose #13689 > >
00:14:10 verbose #13690 > > inl new_disposable_test = mut 0i32
00:14:10 verbose #13691 > > fun () =>
00:14:10 verbose #13692 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:14:10 verbose #13693 > >     |> fun x => x : disposable ()
00:14:10 verbose #13694 > >     |> use
00:14:10 verbose #13695 > >     |> ignore
00:14:10 verbose #13696 > >     |> return
00:14:10 verbose #13697 > > |> async.new_async
00:14:10 verbose #13698 > > |> async.run_synchronously
00:14:10 verbose #13699 > > *new_disposable_test |> _assert_eq 1
00:14:10 verbose #13700 > >
00:14:10 verbose #13701 > > ╭─[ 500.08ms - stdout ]────────────────────────────────────────────────────────╮
00:14:10 verbose #13702 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:14:10 verbose #13703 > > │                                                                              │
00:14:10 verbose #13704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:10 verbose #13705 > >
00:14:10 verbose #13706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:10 verbose #13707 > > //// test
00:14:10 verbose #13708 > >
00:14:10 verbose #13709 > > inl new_disposable_test = mut 0i32
00:14:10 verbose #13710 > > fun () =>
00:14:10 verbose #13711 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:14:10 verbose #13712 > >     |> fun x => x : disposable ()
00:14:10 verbose #13713 > >     |> ignore
00:14:10 verbose #13714 > >     |> return
00:14:10 verbose #13715 > > |> async.new_async
00:14:10 verbose #13716 > > |> async.run_synchronously
00:14:10 verbose #13717 > > *new_disposable_test |> _assert_eq 0
00:14:11 verbose #13718 > >
00:14:11 verbose #13719 > > ╭─[ 484.12ms - stdout ]────────────────────────────────────────────────────────╮
00:14:11 verbose #13720 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:14:11 verbose #13721 > > │                                                                              │
00:14:11 verbose #13722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:11 verbose #13723 > >
00:14:11 verbose #13724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:11 verbose #13725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:11 verbose #13726 > > │ ## main                                                                      │
00:14:11 verbose #13727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:11 verbose #13728 > >
00:14:11 verbose #13729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:11 verbose #13730 > > inl main () =
00:14:11 verbose #13731 > >     init_trace_state None
00:14:11 verbose #13732 > >     inl new_disposable x : _ () = new_disposable x
00:14:11 verbose #13733 > >     $'let new_disposable x = !new_disposable x' : ()
00:14:11 verbose #13734 > >     inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () = retry_fn r x |>
00:14:11 verbose #13735 > > optionm'.box
00:14:11 verbose #13736 > >     $'let retry_fn x = !retry_fn x' : ()
00:14:11 verbose #13737 > >     inl memoize (fn : () -> ()) : () -> () = memoize fn
00:14:11 verbose #13738 > >     $'let memoize x = !memoize x' : ()
00:14:12 verbose #13739 > 00:01:04 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 122394 }
00:14:12 verbose #13740 > 00:01:04   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:14:12 verbose #13741 >     "nbconvert",
00:14:12 verbose #13742 >     "c:/home/git/polyglot/lib/spiral/common.dib.ipynb",
00:14:12 verbose #13743 >     "--to",
00:14:12 verbose #13744 >     "html",
00:14:12 verbose #13745 >     "--HTMLExporter.theme=dark",
00:14:12 verbose #13746 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:15 verbose #13747 > 00:01:07 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/common.dib.ipynb to html
00:14:15 verbose #13748 > 00:01:07 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:14:15 verbose #13749 > 00:01:07 verbose #7 !   validate(nb)
00:14:17 verbose #13750 > 00:01:10 verbose #8 ! [NbConvertApp] Writing 365624 bytes to c:\home\git\polyglot\lib\spiral\common.dib.html
00:14:18 verbose #13751 > 00:01:10 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:14:18 verbose #13752 > 00:01:10   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:14:18 verbose #13753 > 00:01:10   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:14:18 verbose #13754 >     "-c",
00:14:18 verbose #13755 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:14:18 verbose #13756 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:18 verbose #13757 > 00:01:11 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:14:18 verbose #13758 > 00:01:11   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:14:18 verbose #13759 > 00:01:11   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 123096 }
00:14:18   debug #13760 runtime.execute_with_options_async / { exit_code = 0; output_length = 129280 }
00:14:18   debug #14 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3
00:14:18   debug #13761 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:18 verbose #13762 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "resultm.dib", "--retries", "3"])) }
00:14:18 verbose #13763 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:14:18 verbose #13764 >     "repl",
00:14:18 verbose #13765 >     "--exit-after-run",
00:14:18 verbose #13766 >     "--run",
00:14:18 verbose #13767 >     "c:/home/git/polyglot/lib/spiral/resultm.dib",
00:14:18 verbose #13768 >     "--output-path",
00:14:18 verbose #13769 >     "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb",
00:14:18 verbose #13770 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/resultm.dib" --output-path "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:14:24 verbose #13771 > >
00:14:24 verbose #13772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:24 verbose #13773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:24 verbose #13774 > > │ # resultm                                                                    │
00:14:24 verbose #13775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:30 verbose #13776 > >
00:14:30 verbose #13777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:30 verbose #13778 > > open rust
00:14:30 verbose #13779 > > open rust_operators
00:14:31 verbose #13780 > >
00:14:31 verbose #13781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:31 verbose #13782 > > //// test
00:14:31 verbose #13783 > >
00:14:31 verbose #13784 > > open testing
00:14:32 verbose #13785 > >
00:14:32 verbose #13786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:32 verbose #13787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:32 verbose #13788 > > │ ## resultm                                                                   │
00:14:32 verbose #13789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:32 verbose #13790 > >
00:14:32 verbose #13791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:32 verbose #13792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:32 verbose #13793 > > │ ### from_option_error                                                        │
00:14:32 verbose #13794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:32 verbose #13795 > >
00:14:32 verbose #13796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:32 verbose #13797 > > inl from_option_error error opt =
00:14:32 verbose #13798 > >     match opt with
00:14:32 verbose #13799 > >     | Some x => Ok x
00:14:32 verbose #13800 > >     | None => Error error
00:14:32 verbose #13801 > >
00:14:32 verbose #13802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:32 verbose #13803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:32 verbose #13804 > > │ ### from_option                                                              │
00:14:32 verbose #13805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:32 verbose #13806 > >
00:14:32 verbose #13807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:32 verbose #13808 > > inl from_option opt =
00:14:32 verbose #13809 > >     opt |> from_option_error "resultm.from_option / Option does not have a
00:14:32 verbose #13810 > > value."
00:14:32 verbose #13811 > >
00:14:32 verbose #13812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:32 verbose #13813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:32 verbose #13814 > > │ ### flatten_option                                                           │
00:14:32 verbose #13815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:32 verbose #13816 > >
00:14:32 verbose #13817 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:32 verbose #13818 > > inl flatten_option forall t u. (x : option (result (option t) u)) : result
00:14:32 verbose #13819 > > (option t) u =
00:14:32 verbose #13820 > >     match x with
00:14:32 verbose #13821 > >     | Some (Error x) => Error x
00:14:32 verbose #13822 > >     | Some (Ok (Some x)) => Ok (Some x)
00:14:32 verbose #13823 > >     | _ => Ok None
00:14:33 verbose #13824 > >
00:14:33 verbose #13825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:33 verbose #13826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:33 verbose #13827 > > │ ### flatten                                                                  │
00:14:33 verbose #13828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:33 verbose #13829 > >
00:14:33 verbose #13830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:33 verbose #13831 > > inl flatten forall t u. (x : result (result t u) u) : result t u =
00:14:33 verbose #13832 > >     match x with
00:14:33 verbose #13833 > >     | Ok x => x
00:14:33 verbose #13834 > >     | Error x => Error x
00:14:33 verbose #13835 > >
00:14:33 verbose #13836 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:33 verbose #13837 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:33 verbose #13838 > > │ ### get                                                                      │
00:14:33 verbose #13839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:33 verbose #13840 > >
00:14:33 verbose #13841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:33 verbose #13842 > > inl get forall t e. (source : result t e) : t =
00:14:33 verbose #13843 > >     match source with
00:14:33 verbose #13844 > >     | Ok x => x
00:14:33 verbose #13845 > >     | Error x => failwith $'$"resultm.get / Result value was Error: {!x}"'
00:14:34 verbose #13846 > >
00:14:34 verbose #13847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:34 verbose #13848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:34 verbose #13849 > > │ ### map                                                                      │
00:14:34 verbose #13850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:34 verbose #13851 > >
00:14:34 verbose #13852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:34 verbose #13853 > > inl map forall t e u. (fn : t -> u) (source : result t e) : result u e =
00:14:34 verbose #13854 > >     match source with
00:14:34 verbose #13855 > >     | Ok x => x |> fn |> Ok
00:14:34 verbose #13856 > >     | Error x => Error x
00:14:34 verbose #13857 > >
00:14:34 verbose #13858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:34 verbose #13859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:34 verbose #13860 > > │ ### map_error                                                                │
00:14:34 verbose #13861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:34 verbose #13862 > >
00:14:34 verbose #13863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:34 verbose #13864 > > inl map_error forall t e u. (fn : e -> u) (source : result t e) : result t u =
00:14:34 verbose #13865 > >     match source with
00:14:34 verbose #13866 > >     | Ok x => Ok x
00:14:34 verbose #13867 > >     | Error x => x |> fn |> Error
00:14:34 verbose #13868 > >
00:14:34 verbose #13869 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:34 verbose #13870 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:34 verbose #13871 > > │ ### unwrap_err                                                               │
00:14:34 verbose #13872 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:34 verbose #13873 > >
00:14:34 verbose #13874 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:34 verbose #13875 > > inl unwrap_err forall t u. (x : result t u) : u =
00:14:34 verbose #13876 > >     match x with
00:14:34 verbose #13877 > >     | Ok x => failwith $'$"resultm.unwrap_err / x: {!x}"'
00:14:34 verbose #13878 > >     | Error x => x
00:14:35 verbose #13879 > >
00:14:35 verbose #13880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:35 verbose #13881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:35 verbose #13882 > > │ ### ok                                                                       │
00:14:35 verbose #13883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #13884 > >
00:14:35 verbose #13885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:35 verbose #13886 > > inl ok forall t. (x : result t _) : option t =
00:14:35 verbose #13887 > >     match x with
00:14:35 verbose #13888 > >     | Ok x => Some x
00:14:35 verbose #13889 > >     | Error _ => None
00:14:35 verbose #13890 > >
00:14:35 verbose #13891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:35 verbose #13892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:35 verbose #13893 > > │ ## fsharp                                                                    │
00:14:35 verbose #13894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #13895 > >
00:14:35 verbose #13896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:35 verbose #13897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:35 verbose #13898 > > │ ### result'                                                                  │
00:14:35 verbose #13899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:35 verbose #13900 > >
00:14:35 verbose #13901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:35 verbose #13902 > > nominal result' t u = $'Result<`t, `u>'
00:14:36 verbose #13903 > >
00:14:36 verbose #13904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:36 verbose #13905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:36 verbose #13906 > > │ ### unbox                                                                    │
00:14:36 verbose #13907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:36 verbose #13908 > >
00:14:36 verbose #13909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:36 verbose #13910 > > inl unbox forall t u. (x : result' t u) : result t u =
00:14:36 verbose #13911 > >     inl ok x : result t u = Ok x
00:14:36 verbose #13912 > >     inl error x : result t u = Error x
00:14:36 verbose #13913 > >     real
00:14:36 verbose #13914 > >         typecase t with
00:14:36 verbose #13915 > >         | () => $'match !x with Ok () -> !ok () | Error x -> !error x' : result
00:14:36 verbose #13916 > > t u
00:14:36 verbose #13917 > >         | _ => $'match !x with Ok x -> !ok x | Error x -> !error x' : result t u
00:14:36 verbose #13918 > >
00:14:36 verbose #13919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:36 verbose #13920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:36 verbose #13921 > > │ ### box                                                                      │
00:14:36 verbose #13922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:36 verbose #13923 > >
00:14:36 verbose #13924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:36 verbose #13925 > > inl box forall t u. (x : result t u) : result' t u =
00:14:36 verbose #13926 > >     match x with
00:14:36 verbose #13927 > >     | Ok x => $'Ok !x '
00:14:36 verbose #13928 > >     | Error err => $'Error !err '
00:14:36 verbose #13929 > >
00:14:36 verbose #13930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:36 verbose #13931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:36 verbose #13932 > > │ ## rust                                                                      │
00:14:36 verbose #13933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:36 verbose #13934 > >
00:14:36 verbose #13935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:36 verbose #13936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:36 verbose #13937 > > │ ### anyhow_result                                                            │
00:14:36 verbose #13938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:36 verbose #13939 > >
00:14:36 verbose #13940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:36 verbose #13941 > > nominal anyhow_result t =
00:14:36 verbose #13942 > >     `(
00:14:36 verbose #13943 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:14:36 verbose #13944 > > Fable.Core.Emit(\"anyhow::Result<$0>\")>]]\n#endif\ntype anyhow_Result<'T> =
00:14:36 verbose #13945 > > class end"
00:14:36 verbose #13946 > >         $'' : $'anyhow_Result<`t>'
00:14:36 verbose #13947 > >     )
00:14:37 verbose #13948 > >
00:14:37 verbose #13949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:37 verbose #13950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:37 verbose #13951 > > │ ### anyhow_error                                                             │
00:14:37 verbose #13952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:37 verbose #13953 > >
00:14:37 verbose #13954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:37 verbose #13955 > > nominal anyhow_error =
00:14:37 verbose #13956 > >     `(
00:14:37 verbose #13957 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:14:37 verbose #13958 > > Fable.Core.Emit(\"anyhow::Error\")>]]\n#endif\ntype anyhow_Error = class end"
00:14:37 verbose #13959 > >         $'' : $'anyhow_Error'
00:14:37 verbose #13960 > >     )
00:14:37 verbose #13961 > >
00:14:37 verbose #13962 > > inl anyhow_error error =
00:14:37 verbose #13963 > >     !\\(error, $'"anyhow::anyhow\!($0)"')
00:14:37 verbose #13964 > >
00:14:37 verbose #13965 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:37 verbose #13966 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:37 verbose #13967 > > │ ### try'                                                                     │
00:14:37 verbose #13968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:37 verbose #13969 > >
00:14:37 verbose #13970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:37 verbose #13971 > > inl try' forall t u. (x : result' t u) : t =
00:14:37 verbose #13972 > >     inl is_unit =
00:14:37 verbose #13973 > >         real
00:14:37 verbose #13974 > >             typecase t with
00:14:37 verbose #13975 > >             | () => true
00:14:37 verbose #13976 > >             | _ => false
00:14:37 verbose #13977 > >     if is_unit
00:14:37 verbose #13978 > >     then (!\\(x, $'"true; $0?"') : bool) |> fun _ => $''
00:14:37 verbose #13979 > >     else !\\(x, $'"$0?"')
00:14:38 verbose #13980 > >
00:14:38 verbose #13981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:38 verbose #13982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:38 verbose #13983 > > │ ### to_try                                                                   │
00:14:38 verbose #13984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:38 verbose #13985 > >
00:14:38 verbose #13986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:38 verbose #13987 > > inl to_try forall t u. (x : result' t u) : rust.try t =
00:14:38 verbose #13988 > >     !\\(x, $'"$0"')
00:14:38 verbose #13989 > >
00:14:38 verbose #13990 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:38 verbose #13991 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:38 verbose #13992 > > │ ### unwrap'                                                                  │
00:14:38 verbose #13993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:38 verbose #13994 > >
00:14:38 verbose #13995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:38 verbose #13996 > > inl unwrap' forall t u. (x : result' t u) : t =
00:14:38 verbose #13997 > >     !\\(x, $'"$0.unwrap()"')
00:14:39 verbose #13998 > >
00:14:39 verbose #13999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:39 verbose #14000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:39 verbose #14001 > > │ ### unbox'                                                                   │
00:14:39 verbose #14002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #14003 > >
00:14:39 verbose #14004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:39 verbose #14005 > > inl unbox' forall t u. (x : result' t u) : result t u =
00:14:39 verbose #14006 > >     inl ok x : result t u = Ok x
00:14:39 verbose #14007 > >     inl ok = join ok
00:14:39 verbose #14008 > >     inl error x : result t u = Error x
00:14:39 verbose #14009 > >     inl error = join error
00:14:39 verbose #14010 > >     real
00:14:39 verbose #14011 > >         typecase t with
00:14:39 verbose #14012 > >         | () =>
00:14:39 verbose #14013 > >             (~!\\)
00:14:39 verbose #14014 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:14:39 verbose #14015 > >                 `(result t u)
00:14:39 verbose #14016 > >                 ((ok, error), ($'"match !x { Ok(()) => $0(()), Err(e) => $1(e)
00:14:39 verbose #14017 > > }"' : string))
00:14:39 verbose #14018 > >         | _ =>
00:14:39 verbose #14019 > >             (~!\\)
00:14:39 verbose #14020 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:14:39 verbose #14021 > >                 `(result t u)
00:14:39 verbose #14022 > >                 ((ok, error), ($'"match !x { Ok(x) => $0(x), Err(e) => $1(e) }"'
00:14:39 verbose #14023 > > : string))
00:14:39 verbose #14024 > >
00:14:39 verbose #14025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:39 verbose #14026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:39 verbose #14027 > > │ ### map'                                                                     │
00:14:39 verbose #14028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #14029 > >
00:14:39 verbose #14030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:39 verbose #14031 > > inl map' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:14:39 verbose #14032 > >     (!\\(source, $'"true; let _result_map_ = $0.map(|x| { //"') : bool) |>
00:14:39 verbose #14033 > > ignore
00:14:39 verbose #14034 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:14:39 verbose #14035 > >     !\($'"_result_map_"')
00:14:39 verbose #14036 > >
00:14:39 verbose #14037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:39 verbose #14038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:39 verbose #14039 > > │ ### map''                                                                    │
00:14:39 verbose #14040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #14041 > >
00:14:39 verbose #14042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:39 verbose #14043 > > inl map'' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:14:39 verbose #14044 > >     inl fn = join fn
00:14:39 verbose #14045 > >     inl source = join source
00:14:39 verbose #14046 > >     !\($'"!source.map(|x| !fn(x))"')
00:14:40 verbose #14047 > >
00:14:40 verbose #14048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:40 verbose #14049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:40 verbose #14050 > > │ ### map_error'                                                               │
00:14:40 verbose #14051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:40 verbose #14052 > >
00:14:40 verbose #14053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:40 verbose #14054 > > inl map_error' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:14:40 verbose #14055 > > =
00:14:40 verbose #14056 > >     inl fn = join fn
00:14:40 verbose #14057 > >     !\\((source, fn), $'"$0.map_err(|x| $1(x))"')
00:14:40 verbose #14058 > >
00:14:40 verbose #14059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:40 verbose #14060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:40 verbose #14061 > > │ ### map_error''                                                              │
00:14:40 verbose #14062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:40 verbose #14063 > >
00:14:40 verbose #14064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:40 verbose #14065 > > inl map_error'' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:14:40 verbose #14066 > > =
00:14:40 verbose #14067 > >     (!\\(source, $'"true; let _result_map_error__ = $0.map_err(|x| { //"') :
00:14:40 verbose #14068 > > bool) |> ignore
00:14:40 verbose #14069 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:14:40 verbose #14070 > >     !\($'"_result_map_error__"')
00:14:41 verbose #14071 > >
00:14:41 verbose #14072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:41 verbose #14073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:41 verbose #14074 > > │ ### option_ok_or                                                             │
00:14:41 verbose #14075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:41 verbose #14076 > >
00:14:41 verbose #14077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:41 verbose #14078 > > inl option_ok_or forall t e. (e : e) (source : optionm'.option' t) : result' t e
00:14:41 verbose #14079 > > =
00:14:41 verbose #14080 > >     !\\(source, $'"$0.ok_or(!e)"')
00:14:41 verbose #14081 > >
00:14:41 verbose #14082 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:41 verbose #14083 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:41 verbose #14084 > > │ ### unwrap_or_else                                                           │
00:14:41 verbose #14085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:41 verbose #14086 > >
00:14:41 verbose #14087 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:41 verbose #14088 > > inl unwrap_or_else forall t e u. (fn : e -> u) (source : result' t e) : u =
00:14:41 verbose #14089 > >     (!\\(source, $'"true; let _result_unwrap_or_else = $0.unwrap_or_else(|x| {
00:14:41 verbose #14090 > > //"') : bool) |> ignore
00:14:41 verbose #14091 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:14:41 verbose #14092 > >     !\($'"_result_unwrap_or_else"')
00:14:41 verbose #14093 > >
00:14:41 verbose #14094 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:41 verbose #14095 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:41 verbose #14096 > > │ ### map_or_else                                                              │
00:14:41 verbose #14097 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:41 verbose #14098 > >
00:14:41 verbose #14099 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:41 verbose #14100 > > inl map_or_else forall t e u v. (fn : e -> v) (fn2 : u -> v) (source : result' t
00:14:41 verbose #14101 > > e) : v =
00:14:41 verbose #14102 > >     (!\\(source, $'"true; let _result_map_or_else = $0.map_or_else(|x| { //"') :
00:14:41 verbose #14103 > > bool) |> ignore
00:14:41 verbose #14104 > >     (!\\(fn !\($'"x"'), $'"true; $0 }, |x| { //"') : bool) |> ignore
00:14:41 verbose #14105 > >     (!\\(fn2 !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:14:41 verbose #14106 > >     !\($'"_result_map_or_else"')
00:14:42 verbose #14107 > >
00:14:42 verbose #14108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:42 verbose #14109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:42 verbose #14110 > > │ ### as_ref                                                                   │
00:14:42 verbose #14111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:42 verbose #14112 > >
00:14:42 verbose #14113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:42 verbose #14114 > > inl as_ref forall t e. (source : result' t e) : result' (rust.ref t) (rust.ref
00:14:42 verbose #14115 > > e) =
00:14:42 verbose #14116 > >     !\($'"!source.as_ref()"')
00:14:42 verbose #14117 > >
00:14:42 verbose #14118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:42 verbose #14119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:42 verbose #14120 > > │ ### as_ref'                                                                  │
00:14:42 verbose #14121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:42 verbose #14122 > >
00:14:42 verbose #14123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:42 verbose #14124 > > inl as_ref' forall t e. (source : rust.ref (result' t e)) : result' (rust.ref t)
00:14:42 verbose #14125 > > (rust.ref e) =
00:14:42 verbose #14126 > >     !\($'"!source.as_ref()"')
00:14:43 verbose #14127 > >
00:14:43 verbose #14128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:43 verbose #14129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:43 verbose #14130 > > │ ### unwrap_or'                                                               │
00:14:43 verbose #14131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:43 verbose #14132 > >
00:14:43 verbose #14133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:43 verbose #14134 > > inl unwrap_or' forall t u. (default : t) (x : result' t u) : t =
00:14:43 verbose #14135 > >     !\\((x, default), $'"$0.unwrap_or($1)"')
00:14:43 verbose #14136 > >
00:14:43 verbose #14137 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:43 verbose #14138 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:43 verbose #14139 > > │ ### expect                                                                   │
00:14:43 verbose #14140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:43 verbose #14141 > >
00:14:43 verbose #14142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:43 verbose #14143 > > inl expect forall t u. (error : rust.ref string) (x : result' t u) : t =
00:14:43 verbose #14144 > >     !\($'"!x.expect(&!error)"')
00:14:44 verbose #14145 > >
00:14:44 verbose #14146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:44 verbose #14147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:44 verbose #14148 > > │ ### is_err                                                                   │
00:14:44 verbose #14149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 verbose #14150 > >
00:14:44 verbose #14151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:44 verbose #14152 > > inl is_err forall t u. (x : result' t u) : bool =
00:14:44 verbose #14153 > >     run_target function
00:14:44 verbose #14154 > >         | Rust _ => fun () => !\\(x, $'"$0.is_err()"')
00:14:44 verbose #14155 > >         | _ => fun () => true
00:14:44 verbose #14156 > >
00:14:44 verbose #14157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:44 verbose #14158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:44 verbose #14159 > > │ ### ok'                                                                      │
00:14:44 verbose #14160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 verbose #14161 > >
00:14:44 verbose #14162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:44 verbose #14163 > > inl ok' forall t. (x : result' t _) : optionm'.option' t =
00:14:44 verbose #14164 > >     !\\(x, $'"$0.ok()"')
00:14:44 verbose #14165 > >
00:14:44 verbose #14166 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:44 verbose #14167 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:44 verbose #14168 > > │ ### err                                                                      │
00:14:44 verbose #14169 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:44 verbose #14170 > >
00:14:44 verbose #14171 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:44 verbose #14172 > > inl err forall t u. (x : u) : result' t u =
00:14:44 verbose #14173 > >     !\\(x, $'"Err($0)"')
00:14:45 verbose #14174 > >
00:14:45 verbose #14175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:45 verbose #14176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:45 verbose #14177 > > │ ### transpose                                                                │
00:14:45 verbose #14178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #14179 > >
00:14:45 verbose #14180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:45 verbose #14181 > > inl transpose forall t u. (x : optionm'.option' (result' t u)) : result'
00:14:45 verbose #14182 > > (optionm'.option' t) u =
00:14:45 verbose #14183 > >     !\\(x, $'"$0.transpose()"')
00:14:46 verbose #14184 > >
00:14:46 verbose #14185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:46 verbose #14186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:46 verbose #14187 > > │ ### rc_try_unwrap                                                            │
00:14:46 verbose #14188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:46 verbose #14189 > >
00:14:46 verbose #14190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:46 verbose #14191 > > inl rc_try_unwrap forall t. (x : rust.rc t) : result' t (rust.rc t) =
00:14:46 verbose #14192 > >     !\\(x, $'"std::rc::Rc::try_unwrap($0)"')
00:14:46 verbose #14193 > >
00:14:46 verbose #14194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:46 verbose #14195 > > //// test
00:14:46 verbose #14196 > > ///! rust
00:14:46 verbose #14197 > >
00:14:46 verbose #14198 > > rust.new_rc true
00:14:46 verbose #14199 > > |> rc_try_unwrap
00:14:46 verbose #14200 > > |> unbox
00:14:46 verbose #14201 > > |> _assert_eq (Ok true)
00:14:50 verbose #14202 > >
00:14:50 verbose #14203 > > ╭─[ 4.35s - return value ]─────────────────────────────────────────────────────╮
00:14:50 verbose #14204 > > │ __assert_eq / actual: US0_0(true) / expected: US0_0(true)                    │
00:14:50 verbose #14205 > > │                                                                              │
00:14:50 verbose #14206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:50 verbose #14207 > 00:00:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21754 }
00:14:50 verbose #14208 > 00:00:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:14:50 verbose #14209 >     "nbconvert",
00:14:50 verbose #14210 >     "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb",
00:14:50 verbose #14211 >     "--to",
00:14:50 verbose #14212 >     "html",
00:14:50 verbose #14213 >     "--HTMLExporter.theme=dark",
00:14:50 verbose #14214 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:54 verbose #14215 > 00:00:35 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb to html
00:14:54 verbose #14216 > 00:00:35 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:14:54 verbose #14217 > 00:00:35 verbose #7 !   validate(nb)
00:14:56 verbose #14218 > 00:00:37 verbose #8 ! [NbConvertApp] Writing 343620 bytes to c:\home\git\polyglot\lib\spiral\resultm.dib.html
00:14:56 verbose #14219 > 00:00:37 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:14:56 verbose #14220 > 00:00:37   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:14:56 verbose #14221 > 00:00:37   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:14:56 verbose #14222 >     "-c",
00:14:56 verbose #14223 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:14:56 verbose #14224 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:57 verbose #14225 > 00:00:38 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:14:57 verbose #14226 > 00:00:38   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:14:57 verbose #14227 > 00:00:38   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 22458 }
00:14:57   debug #14228 runtime.execute_with_options_async / { exit_code = 0; output_length = 26017 }
00:14:57   debug #15 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3
00:14:57   debug #14229 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:14:57 verbose #14230 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "console.dib", "--retries", "3"])) }
00:14:57 verbose #14231 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:14:57 verbose #14232 >     "repl",
00:14:57 verbose #14233 >     "--exit-after-run",
00:14:57 verbose #14234 >     "--run",
00:14:57 verbose #14235 >     "c:/home/git/polyglot/lib/spiral/console.dib",
00:14:57 verbose #14236 >     "--output-path",
00:14:57 verbose #14237 >     "c:/home/git/polyglot/lib/spiral/console.dib.ipynb",
00:14:57 verbose #14238 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/console.dib" --output-path "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:15:00 verbose #14239 > >
00:15:00 verbose #14240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:00 verbose #14241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:00 verbose #14242 > > │ # console                                                                    │
00:15:00 verbose #14243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:05 verbose #14244 > >
00:15:05 verbose #14245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:05 verbose #14246 > > //// test
00:15:05 verbose #14247 > >
00:15:05 verbose #14248 > > open testing
00:15:07 verbose #14249 > >
00:15:07 verbose #14250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:07 verbose #14251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:07 verbose #14252 > > │ ## fsharp                                                                    │
00:15:07 verbose #14253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:07 verbose #14254 > >
00:15:07 verbose #14255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:07 verbose #14256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:07 verbose #14257 > > │ ### console_color                                                            │
00:15:07 verbose #14258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:07 verbose #14259 > >
00:15:07 verbose #14260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:07 verbose #14261 > > nominal console_color = $'System.ConsoleColor'
00:15:07 verbose #14262 > >
00:15:07 verbose #14263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:07 verbose #14264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:07 verbose #14265 > > │ ### reset_color                                                              │
00:15:07 verbose #14266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:07 verbose #14267 > >
00:15:07 verbose #14268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:07 verbose #14269 > > inl reset_color () : () =
00:15:07 verbose #14270 > >     run_target function
00:15:07 verbose #14271 > >         | Fsharp => fun () => $'System.Console.ResetColor ()'
00:15:07 verbose #14272 > >         | _ => fun () => ()
00:15:07 verbose #14273 > >
00:15:07 verbose #14274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:07 verbose #14275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:07 verbose #14276 > > │ ### set_foreground_color                                                     │
00:15:07 verbose #14277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:07 verbose #14278 > >
00:15:07 verbose #14279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:07 verbose #14280 > > inl set_foreground_color (color : console_color) : () =
00:15:07 verbose #14281 > >     run_target function
00:15:07 verbose #14282 > >         | Fsharp => fun () => $'System.Console.ForegroundColor <- !color '
00:15:07 verbose #14283 > >         | _ => fun () => ()
00:15:08 verbose #14284 > >
00:15:08 verbose #14285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:08 verbose #14286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:08 verbose #14287 > > │ ## console                                                                   │
00:15:08 verbose #14288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #14289 > >
00:15:08 verbose #14290 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:08 verbose #14291 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:08 verbose #14292 > > │ ### write_line                                                               │
00:15:08 verbose #14293 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #14294 > >
00:15:08 verbose #14295 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:08 verbose #14296 > > inl write_line obj : () =
00:15:08 verbose #14297 > >     backend_switch {
00:15:08 verbose #14298 > >         Fsharp = fun () =>
00:15:08 verbose #14299 > >             fun () => obj |> $'System.Console.WriteLine'
00:15:08 verbose #14300 > >             |> exec_unit
00:15:08 verbose #14301 > >         Python = fun () => $'print(!obj)' : ()
00:15:08 verbose #14302 > >     }
00:15:08 verbose #14303 > >
00:15:08 verbose #14304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:08 verbose #14305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:08 verbose #14306 > > │ ### write                                                                    │
00:15:08 verbose #14307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #14308 > >
00:15:08 verbose #14309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:08 verbose #14310 > > inl write forall t. (x : t) : () =
00:15:08 verbose #14311 > >     inl s = x |> sm'.format
00:15:08 verbose #14312 > >     backend_switch {
00:15:08 verbose #14313 > >         Python = fun () => $'print(!s, end="")' : ()
00:15:08 verbose #14314 > >         Fsharp = fun () => $'!s |> System.Console.Write' : ()
00:15:08 verbose #14315 > >     }
00:15:08 verbose #14316 > >
00:15:08 verbose #14317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:08 verbose #14318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:08 verbose #14319 > > │ ### write_ln                                                                 │
00:15:08 verbose #14320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #14321 > >
00:15:08 verbose #14322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:08 verbose #14323 > > inl write_ln l : () =
00:15:08 verbose #14324 > >     write l
00:15:08 verbose #14325 > >     backend_switch {
00:15:08 verbose #14326 > >         Cuda = fun () => $'printf("\\n")' : ()
00:15:08 verbose #14327 > >         Python = fun () => $"print()" : ()
00:15:08 verbose #14328 > >         Fsharp = fun () => write_line () : ()
00:15:08 verbose #14329 > >     }
00:15:09 verbose #14330 > 00:00:11 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 4503 }
00:15:09 verbose #14331 > 00:00:11   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:15:09 verbose #14332 >     "nbconvert",
00:15:09 verbose #14333 >     "c:/home/git/polyglot/lib/spiral/console.dib.ipynb",
00:15:09 verbose #14334 >     "--to",
00:15:09 verbose #14335 >     "html",
00:15:09 verbose #14336 >     "--HTMLExporter.theme=dark",
00:15:09 verbose #14337 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/console.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:12 verbose #14338 > 00:00:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/console.dib.ipynb to html
00:15:12 verbose #14339 > 00:00:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:15:12 verbose #14340 > 00:00:14 verbose #7 !   validate(nb)
00:15:14 verbose #14341 > 00:00:16 verbose #8 ! [NbConvertApp] Writing 283391 bytes to c:\home\git\polyglot\lib\spiral\console.dib.html
00:15:14 verbose #14342 > 00:00:16 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:15:14 verbose #14343 > 00:00:16   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:15:14 verbose #14344 > 00:00:16   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:15:14 verbose #14345 >     "-c",
00:15:14 verbose #14346 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:15:14 verbose #14347 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:15 verbose #14348 > 00:00:17 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:15:15 verbose #14349 > 00:00:17   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:15:15 verbose #14350 > 00:00:17   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 5207 }
00:15:15   debug #14351 runtime.execute_with_options_async / { exit_code = 0; output_length = 8074 }
00:15:15   debug #16 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3
00:15:15   debug #14352 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:15 verbose #14353 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "base.dib", "--retries", "3"])) }
00:15:15 verbose #14354 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:15:15 verbose #14355 >     "repl",
00:15:15 verbose #14356 >     "--exit-after-run",
00:15:15 verbose #14357 >     "--run",
00:15:15 verbose #14358 >     "c:/home/git/polyglot/lib/spiral/base.dib",
00:15:15 verbose #14359 >     "--output-path",
00:15:15 verbose #14360 >     "c:/home/git/polyglot/lib/spiral/base.dib.ipynb",
00:15:15 verbose #14361 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/base.dib" --output-path "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:15:17 verbose #14362 > >
00:15:17 verbose #14363 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #14364 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #14365 > > │ # base                                                                       │
00:15:17 verbose #14366 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:22 verbose #14367 > >
00:15:22 verbose #14368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:22 verbose #14369 > > //// test
00:15:22 verbose #14370 > >
00:15:22 verbose #14371 > > open testing
00:15:24 verbose #14372 > >
00:15:24 verbose #14373 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 verbose #14374 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 verbose #14375 > > │ ## execution                                                                 │
00:15:24 verbose #14376 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 verbose #14377 > >
00:15:24 verbose #14378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 verbose #14379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 verbose #14380 > > │ ### emit                                                                     │
00:15:24 verbose #14381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 verbose #14382 > >
00:15:24 verbose #14383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:24 verbose #14384 > > inl emit forall t. (x : t) : t =
00:15:24 verbose #14385 > >     $'!x '
00:15:24 verbose #14386 > >
00:15:24 verbose #14387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:24 verbose #14388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:24 verbose #14389 > > │ ### emit_unit                                                                │
00:15:24 verbose #14390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:24 verbose #14391 > >
00:15:24 verbose #14392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:24 verbose #14393 > > inl emit_unit forall t. (x : t) : () =
00:15:24 verbose #14394 > >     $'!x '
00:15:25 verbose #14395 > >
00:15:25 verbose #14396 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 verbose #14397 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 verbose #14398 > > │ ### use                                                                      │
00:15:25 verbose #14399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #14400 > >
00:15:25 verbose #14401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:25 verbose #14402 > > inl use forall t. (x : t) : t =
00:15:25 verbose #14403 > >     $'use !x = !x ' : ()
00:15:25 verbose #14404 > >     $'!x '
00:15:25 verbose #14405 > >
00:15:25 verbose #14406 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 verbose #14407 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 verbose #14408 > > │ ## target                                                                    │
00:15:25 verbose #14409 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #14410 > >
00:15:25 verbose #14411 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:25 verbose #14412 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:25 verbose #14413 > > │ ### backend_switch                                                           │
00:15:25 verbose #14414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:25 verbose #14415 > >
00:15:25 verbose #14416 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:25 verbose #14417 > > inl backend_switch forall t. x : t =
00:15:25 verbose #14418 > >     real
00:15:25 verbose #14419 > >         inl backend key : t =
00:15:25 verbose #14420 > >             inl s = real_core.string_lit_to_symbol key
00:15:25 verbose #14421 > >             real_core.record_type_try_find `(`x) s
00:15:25 verbose #14422 > >                 (forall v'. => (x s) ())
00:15:25 verbose #14423 > >                 (fun () => $'' : t)
00:15:25 verbose #14424 > >         !!!!BackendSwitch (
00:15:25 verbose #14425 > >             ("Fsharp", backend "Fsharp"),
00:15:25 verbose #14426 > >             ("Python", backend "Python"),
00:15:25 verbose #14427 > >             ("Cuda", backend "Cuda")
00:15:25 verbose #14428 > >         )
00:15:26 verbose #14429 > >
00:15:26 verbose #14430 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 verbose #14431 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 verbose #14432 > > │ ### target_runtime                                                           │
00:15:26 verbose #14433 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 verbose #14434 > >
00:15:26 verbose #14435 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 verbose #14436 > > union target_runtime =
00:15:26 verbose #14437 > >     | Native
00:15:26 verbose #14438 > >     | Wasm
00:15:26 verbose #14439 > >     | Contract
00:15:26 verbose #14440 > >
00:15:26 verbose #14441 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 verbose #14442 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 verbose #14443 > > │ ### target                                                                   │
00:15:26 verbose #14444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 verbose #14445 > >
00:15:26 verbose #14446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 verbose #14447 > > union target =
00:15:26 verbose #14448 > >     | Fsharp : target_runtime
00:15:26 verbose #14449 > >     | Cuda : target_runtime
00:15:26 verbose #14450 > >     | Rust : target_runtime
00:15:26 verbose #14451 > >     | TypeScript : target_runtime
00:15:26 verbose #14452 > >     | Python : target_runtime
00:15:26 verbose #14453 > >
00:15:26 verbose #14454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:26 verbose #14455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:26 verbose #14456 > > │ ### run_target_args                                                          │
00:15:26 verbose #14457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:26 verbose #14458 > >
00:15:26 verbose #14459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:26 verbose #14460 > > inl run_target_args forall t u. (args : () -> u) (fn : target -> (u -> t)) : t =
00:15:26 verbose #14461 > >     inl args = args () |> dyn
00:15:26 verbose #14462 > >     backend_switch {
00:15:26 verbose #14463 > >         Fsharp = fun () =>
00:15:26 verbose #14464 > >             inl result = $'()' : $'unit'
00:15:26 verbose #14465 > >             inl emit_result x : () =
00:15:26 verbose #14466 > >                 $'let _!result = !x '
00:15:26 verbose #14467 > >             $'\n#if FABLE_COMPILER || WASM || CONTRACT'
00:15:26 verbose #14468 > >             $'\n#if FABLE_COMPILER_RUST && \!WASM && \!CONTRACT'
00:15:26 verbose #14469 > >             inl target = Rust Native
00:15:26 verbose #14470 > >             fn target args |> emit_result
00:15:26 verbose #14471 > >             $'#endif\n#if FABLE_COMPILER_RUST && WASM'
00:15:26 verbose #14472 > >             inl target = Rust Wasm
00:15:26 verbose #14473 > >             fn target args |> emit_result
00:15:26 verbose #14474 > >             $'#endif\n#if FABLE_COMPILER_RUST && CONTRACT'
00:15:26 verbose #14475 > >             inl target = Rust Contract
00:15:26 verbose #14476 > >             fn target args |> emit_result
00:15:26 verbose #14477 > >             $'#endif\n#if FABLE_COMPILER_TYPESCRIPT'
00:15:26 verbose #14478 > >             inl target = TypeScript Native
00:15:26 verbose #14479 > >             fn target args |> emit_result
00:15:26 verbose #14480 > >             $'#endif\n#if FABLE_COMPILER_PYTHON'
00:15:26 verbose #14481 > >             inl target = Python Native
00:15:26 verbose #14482 > >             fn target args |> emit_result
00:15:26 verbose #14483 > >             $'#endif\n#else'
00:15:26 verbose #14484 > >             inl target = Fsharp Native
00:15:26 verbose #14485 > >             fn target args |> emit_result
00:15:26 verbose #14486 > >             $'#endif'
00:15:26 verbose #14487 > >             $'_!result ' : t
00:15:26 verbose #14488 > >         Python = fun () =>
00:15:26 verbose #14489 > >             inl target = Cuda Native
00:15:26 verbose #14490 > >             fn target args
00:15:26 verbose #14491 > >     }
00:15:27 verbose #14492 > >
00:15:27 verbose #14493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:27 verbose #14494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:27 verbose #14495 > > │ ### run_target                                                               │
00:15:27 verbose #14496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 verbose #14497 > >
00:15:27 verbose #14498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 verbose #14499 > > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:15:27 verbose #14500 > >     run_target_args id fn
00:15:27 verbose #14501 > >
00:15:27 verbose #14502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 verbose #14503 > > //// test
00:15:27 verbose #14504 > > ///! fsharp
00:15:27 verbose #14505 > > ///! cuda
00:15:27 verbose #14506 > > ///! rust
00:15:27 verbose #14507 > > ///! typescript
00:15:27 verbose #14508 > > ///! python
00:15:27 verbose #14509 > >
00:15:27 verbose #14510 > > run_target function
00:15:27 verbose #14511 > >     | Fsharp (Native) => fun () => $'1uy'
00:15:27 verbose #14512 > >     | Cuda (Native) => fun () => $'1'
00:15:27 verbose #14513 > >     | Rust (Native) => fun () => $'1uy'
00:15:27 verbose #14514 > >     | TypeScript (Native) => fun () => $'1uy'
00:15:27 verbose #14515 > >     | Python (Native) => fun () => $'1uy'
00:15:27 verbose #14516 > >     | _ => fun () => $'2uy'
00:15:27 verbose #14517 > > |> _assert_eq 1u8
00:15:35 verbose #14518 > >
00:15:35 verbose #14519 > > ╭─[ 7.27s - return value ]─────────────────────────────────────────────────────╮
00:15:35 verbose #14520 > > │ .py output (Cuda):                                                           │
00:15:35 verbose #14521 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:35 verbose #14522 > > │                                                                              │
00:15:35 verbose #14523 > > │ .rs output:                                                                  │
00:15:35 verbose #14524 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:35 verbose #14525 > > │                                                                              │
00:15:35 verbose #14526 > > │ .ts output:                                                                  │
00:15:35 verbose #14527 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:35 verbose #14528 > > │                                                                              │
00:15:35 verbose #14529 > > │ .py output:                                                                  │
00:15:35 verbose #14530 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:35 verbose #14531 > > │                                                                              │
00:15:35 verbose #14532 > > │                                                                              │
00:15:35 verbose #14533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14534 > >
00:15:35 verbose #14535 > > ╭─[ 7.28s - stdout ]───────────────────────────────────────────────────────────╮
00:15:35 verbose #14536 > > │ .fsx output:                                                                 │
00:15:35 verbose #14537 > > │ __assert_eq / actual: 1uy / expected: 1uy                                    │
00:15:35 verbose #14538 > > │                                                                              │
00:15:35 verbose #14539 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14540 > >
00:15:35 verbose #14541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 verbose #14542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 verbose #14543 > > │ ## function                                                                  │
00:15:35 verbose #14544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14545 > >
00:15:35 verbose #14546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 verbose #14547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 verbose #14548 > > │ ### eval                                                                     │
00:15:35 verbose #14549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14550 > >
00:15:35 verbose #14551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 verbose #14552 > > inl eval fn =
00:15:35 verbose #14553 > >     fn ()
00:15:35 verbose #14554 > >
00:15:35 verbose #14555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 verbose #14556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 verbose #14557 > > │ ### exec_unit                                                                │
00:15:35 verbose #14558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14559 > >
00:15:35 verbose #14560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 verbose #14561 > > inl exec_unit (fn : () -> ()) : () =
00:15:35 verbose #14562 > >     backend_switch {
00:15:35 verbose #14563 > >         Fsharp = fun () =>
00:15:35 verbose #14564 > >             inl unit = $'()' : $'unit'
00:15:35 verbose #14565 > >             ($'(fun () -> !fn (); !unit) ()' : $'unit') |> ignore
00:15:35 verbose #14566 > >         Python = fun () => fn ()
00:15:35 verbose #14567 > >     }
00:15:35 verbose #14568 > >
00:15:35 verbose #14569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:35 verbose #14570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:35 verbose #14571 > > │ ### lazy                                                                     │
00:15:35 verbose #14572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:35 verbose #14573 > >
00:15:35 verbose #14574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:35 verbose #14575 > > nominal lazy t = $'Lazy<`t>'
00:15:36 verbose #14576 > >
00:15:36 verbose #14577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:36 verbose #14578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:36 verbose #14579 > > │ ### memoize                                                                  │
00:15:36 verbose #14580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:36 verbose #14581 > >
00:15:36 verbose #14582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:36 verbose #14583 > > nominal lazy t = $'Lazy<`t>'
00:15:36 verbose #14584 > >
00:15:36 verbose #14585 > > inl memoize forall t. (fn : () -> t) : () -> t =
00:15:36 verbose #14586 > >     inl fn = join fn
00:15:36 verbose #14587 > >     backend_switch {
00:15:36 verbose #14588 > >         Fsharp = fun () =>
00:15:36 verbose #14589 > >             inl result : lazy t = $'lazy !fn ()'
00:15:36 verbose #14590 > >             fun () => $'!result.Value' : t
00:15:36 verbose #14591 > >         Python = fun () =>
00:15:36 verbose #14592 > >             inl result = mut None
00:15:36 verbose #14593 > >             inl computed = mut false
00:15:36 verbose #14594 > >             fun () =>
00:15:36 verbose #14595 > >                 if *computed
00:15:36 verbose #14596 > >                 then *result
00:15:36 verbose #14597 > >                 else
00:15:36 verbose #14598 > >                     result <- fn () |> Some
00:15:36 verbose #14599 > >                     computed <- true
00:15:36 verbose #14600 > >                     *result
00:15:36 verbose #14601 > >                 |> optionm.value
00:15:36 verbose #14602 > >     }
00:15:36 verbose #14603 > >
00:15:36 verbose #14604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:36 verbose #14605 > > //// test
00:15:36 verbose #14606 > > ///! fsharp
00:15:36 verbose #14607 > > ///! cuda
00:15:36 verbose #14608 > > ///! rust
00:15:36 verbose #14609 > > ///! typescript
00:15:36 verbose #14610 > > ///! python
00:15:36 verbose #14611 > >
00:15:36 verbose #14612 > > inl count = mut 0i32
00:15:36 verbose #14613 > > inl add =
00:15:36 verbose #14614 > >     fun () =>
00:15:36 verbose #14615 > >         count <- *count + 1
00:15:36 verbose #14616 > >         count
00:15:36 verbose #14617 > >     |> memoize
00:15:36 verbose #14618 > >
00:15:36 verbose #14619 > > add () |> ignore
00:15:36 verbose #14620 > > add () |> ignore
00:15:36 verbose #14621 > > add () |> ignore
00:15:36 verbose #14622 > >
00:15:36 verbose #14623 > > *count
00:15:36 verbose #14624 > > |> _assert_eq 1
00:15:42 verbose #14625 > >
00:15:42 verbose #14626 > > ╭─[ 6.27s - return value ]─────────────────────────────────────────────────────╮
00:15:42 verbose #14627 > > │ .py output (Cuda):                                                           │
00:15:42 verbose #14628 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:42 verbose #14629 > > │                                                                              │
00:15:42 verbose #14630 > > │ .rs output:                                                                  │
00:15:42 verbose #14631 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:42 verbose #14632 > > │                                                                              │
00:15:42 verbose #14633 > > │ .ts output:                                                                  │
00:15:42 verbose #14634 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:42 verbose #14635 > > │                                                                              │
00:15:42 verbose #14636 > > │ .py output:                                                                  │
00:15:42 verbose #14637 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:42 verbose #14638 > > │                                                                              │
00:15:42 verbose #14639 > > │                                                                              │
00:15:42 verbose #14640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:42 verbose #14641 > >
00:15:42 verbose #14642 > > ╭─[ 6.27s - stdout ]───────────────────────────────────────────────────────────╮
00:15:42 verbose #14643 > > │ .fsx output:                                                                 │
00:15:42 verbose #14644 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:15:42 verbose #14645 > > │                                                                              │
00:15:42 verbose #14646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:42 verbose #14647 > >
00:15:42 verbose #14648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:42 verbose #14649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:42 verbose #14650 > > │ ### capture                                                                  │
00:15:42 verbose #14651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:42 verbose #14652 > >
00:15:42 verbose #14653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:42 verbose #14654 > > inl capture forall t. (fn : () -> t) : t =
00:15:42 verbose #14655 > >     inl result = dyn true
00:15:42 verbose #14656 > >     $'let mutable _!result : `t option = None '
00:15:42 verbose #14657 > >     $'('
00:15:42 verbose #14658 > >     $'(fun () ->'
00:15:42 verbose #14659 > >     $'(fun () ->'
00:15:42 verbose #14660 > >     fn () |> emit_unit
00:15:42 verbose #14661 > >     $')'
00:15:42 verbose #14662 > >     $'|> fun x -> x ()'
00:15:42 verbose #14663 > >     $') () )'
00:15:42 verbose #14664 > >     $'|> fun x -> _!result <- Some x'
00:15:42 verbose #14665 > >     $'match _!result with Some x -> x | None -> failwith "base.capture
00:15:42 verbose #14666 > > _!result=None"'
00:15:43 verbose #14667 > >
00:15:43 verbose #14668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:43 verbose #14669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:43 verbose #14670 > > │ ## arithmetic                                                                │
00:15:43 verbose #14671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:43 verbose #14672 > >
00:15:43 verbose #14673 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:43 verbose #14674 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:43 verbose #14675 > > │ ### (+.)                                                                     │
00:15:43 verbose #14676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:43 verbose #14677 > >
00:15:43 verbose #14678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:43 verbose #14679 > > inl (+.) forall t. (a : t) (b : t) : t =
00:15:43 verbose #14680 > >     $'!a + !b '
00:15:43 verbose #14681 > >
00:15:43 verbose #14682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:43 verbose #14683 > > //// test
00:15:43 verbose #14684 > > ///! fsharp
00:15:43 verbose #14685 > > ///! cuda
00:15:43 verbose #14686 > > ///! rust
00:15:43 verbose #14687 > > ///! typescript
00:15:43 verbose #14688 > > ///! python
00:15:43 verbose #14689 > >
00:15:43 verbose #14690 > > ($'3' : i32) +. ($'-6' : i32)
00:15:43 verbose #14691 > > |> _assert_eq -3i32
00:15:48 verbose #14692 > >
00:15:48 verbose #14693 > > ╭─[ 4.95s - return value ]─────────────────────────────────────────────────────╮
00:15:48 verbose #14694 > > │ .py output (Cuda):                                                           │
00:15:48 verbose #14695 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:48 verbose #14696 > > │                                                                              │
00:15:48 verbose #14697 > > │ .rs output:                                                                  │
00:15:48 verbose #14698 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:48 verbose #14699 > > │                                                                              │
00:15:48 verbose #14700 > > │ .ts output:                                                                  │
00:15:48 verbose #14701 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:48 verbose #14702 > > │                                                                              │
00:15:48 verbose #14703 > > │ .py output:                                                                  │
00:15:48 verbose #14704 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:48 verbose #14705 > > │                                                                              │
00:15:48 verbose #14706 > > │                                                                              │
00:15:48 verbose #14707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:48 verbose #14708 > >
00:15:48 verbose #14709 > > ╭─[ 4.95s - stdout ]───────────────────────────────────────────────────────────╮
00:15:48 verbose #14710 > > │ .fsx output:                                                                 │
00:15:48 verbose #14711 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:48 verbose #14712 > > │                                                                              │
00:15:48 verbose #14713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:48 verbose #14714 > >
00:15:48 verbose #14715 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:48 verbose #14716 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:48 verbose #14717 > > │ ### (-.)                                                                     │
00:15:48 verbose #14718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:48 verbose #14719 > >
00:15:48 verbose #14720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:48 verbose #14721 > > inl (-.) forall t. (a : t) (b : t) : t =
00:15:48 verbose #14722 > >     $'!a - !b '
00:15:49 verbose #14723 > >
00:15:49 verbose #14724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:49 verbose #14725 > > //// test
00:15:49 verbose #14726 > > ///! fsharp
00:15:49 verbose #14727 > > ///! cuda
00:15:49 verbose #14728 > > ///! rust
00:15:49 verbose #14729 > > ///! typescript
00:15:49 verbose #14730 > > ///! python
00:15:49 verbose #14731 > >
00:15:49 verbose #14732 > > ($'3' : i32) -. ($'6' : i32)
00:15:49 verbose #14733 > > |> _assert_eq -3i32
00:15:54 verbose #14734 > >
00:15:54 verbose #14735 > > ╭─[ 4.86s - return value ]─────────────────────────────────────────────────────╮
00:15:54 verbose #14736 > > │ .py output (Cuda):                                                           │
00:15:54 verbose #14737 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:54 verbose #14738 > > │                                                                              │
00:15:54 verbose #14739 > > │ .rs output:                                                                  │
00:15:54 verbose #14740 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:54 verbose #14741 > > │                                                                              │
00:15:54 verbose #14742 > > │ .ts output:                                                                  │
00:15:54 verbose #14743 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:54 verbose #14744 > > │                                                                              │
00:15:54 verbose #14745 > > │ .py output:                                                                  │
00:15:54 verbose #14746 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:54 verbose #14747 > > │                                                                              │
00:15:54 verbose #14748 > > │                                                                              │
00:15:54 verbose #14749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #14750 > >
00:15:54 verbose #14751 > > ╭─[ 4.87s - stdout ]───────────────────────────────────────────────────────────╮
00:15:54 verbose #14752 > > │ .fsx output:                                                                 │
00:15:54 verbose #14753 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:54 verbose #14754 > > │                                                                              │
00:15:54 verbose #14755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #14756 > >
00:15:54 verbose #14757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 verbose #14758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 verbose #14759 > > │ ### (*.)                                                                     │
00:15:54 verbose #14760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #14761 > >
00:15:54 verbose #14762 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 verbose #14763 > > inl (*.) forall t. (a : t) (b : t) : t =
00:15:54 verbose #14764 > >     $'!a * !b '
00:15:54 verbose #14765 > >
00:15:54 verbose #14766 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 verbose #14767 > > //// test
00:15:54 verbose #14768 > > ///! fsharp
00:15:54 verbose #14769 > > ///! cuda
00:15:54 verbose #14770 > > ///! rust
00:15:54 verbose #14771 > > ///! typescript
00:15:54 verbose #14772 > > ///! python
00:15:54 verbose #14773 > >
00:15:54 verbose #14774 > > ($'3' : i32) *. ($'-1' : i32)
00:15:54 verbose #14775 > > |> _assert_eq -3i32
00:15:59 verbose #14776 > >
00:15:59 verbose #14777 > > ╭─[ 4.84s - return value ]─────────────────────────────────────────────────────╮
00:15:59 verbose #14778 > > │ .py output (Cuda):                                                           │
00:15:59 verbose #14779 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:59 verbose #14780 > > │                                                                              │
00:15:59 verbose #14781 > > │ .rs output:                                                                  │
00:15:59 verbose #14782 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:59 verbose #14783 > > │                                                                              │
00:15:59 verbose #14784 > > │ .ts output:                                                                  │
00:15:59 verbose #14785 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:59 verbose #14786 > > │                                                                              │
00:15:59 verbose #14787 > > │ .py output:                                                                  │
00:15:59 verbose #14788 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:59 verbose #14789 > > │                                                                              │
00:15:59 verbose #14790 > > │                                                                              │
00:15:59 verbose #14791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:59 verbose #14792 > >
00:15:59 verbose #14793 > > ╭─[ 4.84s - stdout ]───────────────────────────────────────────────────────────╮
00:15:59 verbose #14794 > > │ .fsx output:                                                                 │
00:15:59 verbose #14795 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:15:59 verbose #14796 > > │                                                                              │
00:15:59 verbose #14797 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:59 verbose #14798 > >
00:15:59 verbose #14799 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:59 verbose #14800 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:59 verbose #14801 > > │ ### (/.)                                                                     │
00:15:59 verbose #14802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:59 verbose #14803 > >
00:15:59 verbose #14804 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:59 verbose #14805 > > inl (/.) forall t. (a : t) (b : t) : t =
00:15:59 verbose #14806 > >     $'!a / !b '
00:15:59 verbose #14807 > >
00:15:59 verbose #14808 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:59 verbose #14809 > > //// test
00:15:59 verbose #14810 > > ///! fsharp
00:15:59 verbose #14811 > > ///! cuda
00:15:59 verbose #14812 > > ///! rust
00:15:59 verbose #14813 > > ///! typescript
00:15:59 verbose #14814 > > ///! python
00:15:59 verbose #14815 > >
00:15:59 verbose #14816 > > ($'-3' : i32) /. ($'1' : i32)
00:15:59 verbose #14817 > > |> _assert_eq -3i32
00:16:04 verbose #14818 > >
00:16:04 verbose #14819 > > ╭─[ 4.82s - return value ]─────────────────────────────────────────────────────╮
00:16:04 verbose #14820 > > │ .py output (Cuda):                                                           │
00:16:04 verbose #14821 > > │ __assert_eq / actual: -3.0 / expected: -3                                    │
00:16:04 verbose #14822 > > │                                                                              │
00:16:04 verbose #14823 > > │ .rs output:                                                                  │
00:16:04 verbose #14824 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:16:04 verbose #14825 > > │                                                                              │
00:16:04 verbose #14826 > > │ .ts output:                                                                  │
00:16:04 verbose #14827 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:16:04 verbose #14828 > > │                                                                              │
00:16:04 verbose #14829 > > │ .py output:                                                                  │
00:16:04 verbose #14830 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:16:04 verbose #14831 > > │                                                                              │
00:16:04 verbose #14832 > > │                                                                              │
00:16:04 verbose #14833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #14834 > >
00:16:04 verbose #14835 > > ╭─[ 4.82s - stdout ]───────────────────────────────────────────────────────────╮
00:16:04 verbose #14836 > > │ .fsx output:                                                                 │
00:16:04 verbose #14837 > > │ __assert_eq / actual: -3 / expected: -3                                      │
00:16:04 verbose #14838 > > │                                                                              │
00:16:04 verbose #14839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #14840 > >
00:16:04 verbose #14841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:04 verbose #14842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:04 verbose #14843 > > │ ## comparison                                                                │
00:16:04 verbose #14844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #14845 > >
00:16:04 verbose #14846 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:04 verbose #14847 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:04 verbose #14848 > > │ ### (=.)                                                                     │
00:16:04 verbose #14849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:04 verbose #14850 > >
00:16:04 verbose #14851 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:04 verbose #14852 > > inl (=.) forall t. (a : t) (b : t) : bool =
00:16:04 verbose #14853 > >     backend_switch {
00:16:04 verbose #14854 > >         Fsharp = fun () => $'!a = !b ' : bool
00:16:04 verbose #14855 > >         Python = fun () => $'!a == !b ' : bool
00:16:04 verbose #14856 > >     }
00:16:04 verbose #14857 > >
00:16:04 verbose #14858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:04 verbose #14859 > > //// test
00:16:04 verbose #14860 > > ///! fsharp
00:16:04 verbose #14861 > > ///! cuda
00:16:04 verbose #14862 > > ///! rust
00:16:04 verbose #14863 > > ///! typescript
00:16:04 verbose #14864 > > ///! python
00:16:04 verbose #14865 > >
00:16:04 verbose #14866 > > ($'-3' : i32) =. ($'-3' : i32)
00:16:04 verbose #14867 > > |> _assert_eq true
00:16:09 verbose #14868 > >
00:16:09 verbose #14869 > > ╭─[ 4.97s - return value ]─────────────────────────────────────────────────────╮
00:16:09 verbose #14870 > > │ .py output (Cuda):                                                           │
00:16:09 verbose #14871 > > │ __assert_eq / actual: True / expected: True                                  │
00:16:09 verbose #14872 > > │                                                                              │
00:16:09 verbose #14873 > > │ .rs output:                                                                  │
00:16:09 verbose #14874 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:09 verbose #14875 > > │                                                                              │
00:16:09 verbose #14876 > > │ .ts output:                                                                  │
00:16:09 verbose #14877 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:09 verbose #14878 > > │                                                                              │
00:16:09 verbose #14879 > > │ .py output:                                                                  │
00:16:09 verbose #14880 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:09 verbose #14881 > > │                                                                              │
00:16:09 verbose #14882 > > │                                                                              │
00:16:09 verbose #14883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:09 verbose #14884 > >
00:16:09 verbose #14885 > > ╭─[ 4.97s - stdout ]───────────────────────────────────────────────────────────╮
00:16:09 verbose #14886 > > │ .fsx output:                                                                 │
00:16:09 verbose #14887 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:09 verbose #14888 > > │                                                                              │
00:16:09 verbose #14889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:09 verbose #14890 > >
00:16:09 verbose #14891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:09 verbose #14892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:09 verbose #14893 > > │ ### (<>.)                                                                    │
00:16:09 verbose #14894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:09 verbose #14895 > >
00:16:09 verbose #14896 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:09 verbose #14897 > > inl (<>.) forall t. (a : t) (b : t) : bool =
00:16:09 verbose #14898 > >     backend_switch {
00:16:09 verbose #14899 > >         Fsharp = fun () => $'!a <> !b ' : bool
00:16:09 verbose #14900 > >         Python = fun () => $'!a \!= !b ' : bool
00:16:09 verbose #14901 > >     }
00:16:10 verbose #14902 > >
00:16:10 verbose #14903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:10 verbose #14904 > > //// test
00:16:10 verbose #14905 > > ///! fsharp
00:16:10 verbose #14906 > > ///! cuda
00:16:10 verbose #14907 > > ///! rust
00:16:10 verbose #14908 > > ///! typescript
00:16:10 verbose #14909 > > ///! python
00:16:10 verbose #14910 > >
00:16:10 verbose #14911 > > ($'-3' : i32) <>. ($'3' : i32)
00:16:10 verbose #14912 > > |> _assert_eq true
00:16:15 verbose #14913 > >
00:16:15 verbose #14914 > > ╭─[ 5.09s - return value ]─────────────────────────────────────────────────────╮
00:16:15 verbose #14915 > > │ .py output (Cuda):                                                           │
00:16:15 verbose #14916 > > │ __assert_eq / actual: True / expected: True                                  │
00:16:15 verbose #14917 > > │                                                                              │
00:16:15 verbose #14918 > > │ .rs output:                                                                  │
00:16:15 verbose #14919 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:15 verbose #14920 > > │                                                                              │
00:16:15 verbose #14921 > > │ .ts output:                                                                  │
00:16:15 verbose #14922 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:15 verbose #14923 > > │                                                                              │
00:16:15 verbose #14924 > > │ .py output:                                                                  │
00:16:15 verbose #14925 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:15 verbose #14926 > > │                                                                              │
00:16:15 verbose #14927 > > │                                                                              │
00:16:15 verbose #14928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:15 verbose #14929 > >
00:16:15 verbose #14930 > > ╭─[ 5.09s - stdout ]───────────────────────────────────────────────────────────╮
00:16:15 verbose #14931 > > │ .fsx output:                                                                 │
00:16:15 verbose #14932 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:15 verbose #14933 > > │                                                                              │
00:16:15 verbose #14934 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:15 verbose #14935 > >
00:16:15 verbose #14936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:15 verbose #14937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:15 verbose #14938 > > │ ## (<>..)                                                                    │
00:16:15 verbose #14939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:15 verbose #14940 > >
00:16:15 verbose #14941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:15 verbose #14942 > > inl (<>..) a b =
00:16:15 verbose #14943 > >     fun () => a = b
00:16:15 verbose #14944 > >     |> dyn
00:16:15 verbose #14945 > >     |> eval
00:16:15 verbose #14946 > >     |> not
00:16:15 verbose #14947 > >
00:16:15 verbose #14948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:15 verbose #14949 > > //// test
00:16:15 verbose #14950 > > ///! fsharp
00:16:15 verbose #14951 > > ///! cuda
00:16:15 verbose #14952 > > ///! rust
00:16:15 verbose #14953 > > ///! typescript
00:16:15 verbose #14954 > > ///! python
00:16:15 verbose #14955 > >
00:16:15 verbose #14956 > > ($'-3' : i32) <>.. ($'3' : i32)
00:16:15 verbose #14957 > > |> _assert_eq true
00:16:21 verbose #14958 > >
00:16:21 verbose #14959 > > ╭─[ 5.15s - return value ]─────────────────────────────────────────────────────╮
00:16:21 verbose #14960 > > │ .py output (Cuda):                                                           │
00:16:21 verbose #14961 > > │ __assert_eq / actual: True / expected: True                                  │
00:16:21 verbose #14962 > > │                                                                              │
00:16:21 verbose #14963 > > │ .rs output:                                                                  │
00:16:21 verbose #14964 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:21 verbose #14965 > > │                                                                              │
00:16:21 verbose #14966 > > │ .ts output:                                                                  │
00:16:21 verbose #14967 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:21 verbose #14968 > > │                                                                              │
00:16:21 verbose #14969 > > │ .py output:                                                                  │
00:16:21 verbose #14970 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:21 verbose #14971 > > │                                                                              │
00:16:21 verbose #14972 > > │                                                                              │
00:16:21 verbose #14973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #14974 > >
00:16:21 verbose #14975 > > ╭─[ 5.15s - stdout ]───────────────────────────────────────────────────────────╮
00:16:21 verbose #14976 > > │ .fsx output:                                                                 │
00:16:21 verbose #14977 > > │ __assert_eq / actual: true / expected: true                                  │
00:16:21 verbose #14978 > > │                                                                              │
00:16:21 verbose #14979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #14980 > >
00:16:21 verbose #14981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:21 verbose #14982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:21 verbose #14983 > > │ ## composition                                                               │
00:16:21 verbose #14984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #14985 > >
00:16:21 verbose #14986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:21 verbose #14987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:21 verbose #14988 > > │ ### append                                                                   │
00:16:21 verbose #14989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #14990 > >
00:16:21 verbose #14991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:21 verbose #14992 > > prototype append t : t -> t -> t
00:16:21 verbose #14993 > >
00:16:21 verbose #14994 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:21 verbose #14995 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:21 verbose #14996 > > │ ### (++)                                                                     │
00:16:21 verbose #14997 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #14998 > >
00:16:21 verbose #14999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:21 verbose #15000 > > inl (++) a b =
00:16:21 verbose #15001 > >     b |> append a
00:16:21 verbose #15002 > >
00:16:21 verbose #15003 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:21 verbose #15004 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:21 verbose #15005 > > │ ## application                                                               │
00:16:21 verbose #15006 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #15007 > >
00:16:21 verbose #15008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:21 verbose #15009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:21 verbose #15010 > > │ ### (||>)                                                                    │
00:16:21 verbose #15011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:21 verbose #15012 > >
00:16:21 verbose #15013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:21 verbose #15014 > > inl (||>) (arg1, arg2) fn =
00:16:21 verbose #15015 > >     arg2 |> fn arg1
00:16:22 verbose #15016 > >
00:16:22 verbose #15017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:22 verbose #15018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:22 verbose #15019 > > │ ### fix_condition                                                            │
00:16:22 verbose #15020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:22 verbose #15021 > >
00:16:22 verbose #15022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:22 verbose #15023 > > inl fix_condition x a b =
00:16:22 verbose #15024 > >     if x ()
00:16:22 verbose #15025 > >     then a () |> fun x => $'(*' : ()
00:16:22 verbose #15026 > >     else
00:16:22 verbose #15027 > >         $'*) else' : ()
00:16:22 verbose #15028 > >         b () |> fun x => $'(*' : ()
00:16:22 verbose #15029 > >     |> fun x => $'*)' : ()
00:16:22 verbose #15030 > >
00:16:22 verbose #15031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:22 verbose #15032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:22 verbose #15033 > > │ ## type                                                                      │
00:16:22 verbose #15034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:22 verbose #15035 > >
00:16:22 verbose #15036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:22 verbose #15037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:22 verbose #15038 > > │ ### infer                                                                    │
00:16:22 verbose #15039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:22 verbose #15040 > >
00:16:22 verbose #15041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:22 verbose #15042 > > nominal infer = $'_'
00:16:23 verbose #15043 > >
00:16:23 verbose #15044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:23 verbose #15045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:23 verbose #15046 > > │ ### infer'                                                                   │
00:16:23 verbose #15047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:23 verbose #15048 > >
00:16:23 verbose #15049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:23 verbose #15050 > > nominal infer' t = $'_'
00:16:23 verbose #15051 > >
00:16:23 verbose #15052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:23 verbose #15053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:23 verbose #15054 > > │ ### any                                                                      │
00:16:23 verbose #15055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:23 verbose #15056 > >
00:16:23 verbose #15057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:23 verbose #15058 > > nominal any = $'obj'
00:16:23 verbose #15059 > >
00:16:23 verbose #15060 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:23 verbose #15061 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:23 verbose #15062 > > │ ### unit                                                                     │
00:16:23 verbose #15063 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:23 verbose #15064 > >
00:16:23 verbose #15065 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:23 verbose #15066 > > nominal unit = $'unit'
00:16:24 verbose #15067 > >
00:16:24 verbose #15068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:24 verbose #15069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:24 verbose #15070 > > │ ### null                                                                     │
00:16:24 verbose #15071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:24 verbose #15072 > >
00:16:24 verbose #15073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:24 verbose #15074 > > inl null forall t. () : t =
00:16:24 verbose #15075 > >     backend_switch {
00:16:24 verbose #15076 > >         Fsharp = fun () => $'null |> unbox<`t>' : t
00:16:24 verbose #15077 > >         Python = fun () => $'None' : t
00:16:24 verbose #15078 > >     }
00:16:24 verbose #15079 > >
00:16:24 verbose #15080 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:24 verbose #15081 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:24 verbose #15082 > > │ ### defaultof                                                                │
00:16:24 verbose #15083 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:24 verbose #15084 > >
00:16:24 verbose #15085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:24 verbose #15086 > > inl defaultof forall t. () : t =
00:16:24 verbose #15087 > >     $'Unchecked.defaultof<`t>'
00:16:25 verbose #15088 > >
00:16:25 verbose #15089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #15090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #15091 > > │ ### choice2'                                                                 │
00:16:25 verbose #15092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #15093 > >
00:16:25 verbose #15094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #15095 > > nominal choice2' a b = $'Choice<`a, `b>'
00:16:25 verbose #15096 > >
00:16:25 verbose #15097 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #15098 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #15099 > > │ ### choice2_unbox                                                            │
00:16:25 verbose #15100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #15101 > >
00:16:25 verbose #15102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #15103 > > inl choice2_unbox forall t1 t2. (choice : choice2' t1 t2) : choice2 t1 t2 =
00:16:25 verbose #15104 > >     run_target function
00:16:25 verbose #15105 > >         | Fsharp (Native) => fun () =>
00:16:25 verbose #15106 > >             inl c1of2 (x : t1) : _ _ t2 = C1of2 x
00:16:25 verbose #15107 > >             inl c2of2 (x : t2) : _ t1 _ = C2of2 x
00:16:25 verbose #15108 > >             $'match !choice with Choice1Of2 x -> !c1of2 x | Choice2Of2 x ->
00:16:25 verbose #15109 > > !c2of2 x'
00:16:25 verbose #15110 > >         | _ => fun () => null ()
00:16:25 verbose #15111 > >
00:16:25 verbose #15112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #15113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #15114 > > │ ## pair                                                                      │
00:16:25 verbose #15115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #15116 > >
00:16:25 verbose #15117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:25 verbose #15118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:25 verbose #15119 > > │ ### pair                                                                     │
00:16:25 verbose #15120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:25 verbose #15121 > >
00:16:25 verbose #15122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:25 verbose #15123 > > nominal pair a b = $'(`a * `b)'
00:16:25 verbose #15124 > >
00:16:25 verbose #15125 > > inl pair x y =
00:16:25 verbose #15126 > >     x, y
00:16:26 verbose #15127 > >
00:16:26 verbose #15128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:26 verbose #15129 > > //// test
00:16:26 verbose #15130 > > ///! fsharp
00:16:26 verbose #15131 > > ///! cuda
00:16:26 verbose #15132 > > ///! rust
00:16:26 verbose #15133 > > ///! typescript
00:16:26 verbose #15134 > > ///! python
00:16:26 verbose #15135 > >
00:16:26 verbose #15136 > > pair 1i32 2i32
00:16:26 verbose #15137 > > |> _assert_eq (1, 2)
00:16:31 verbose #15138 > >
00:16:31 verbose #15139 > > ╭─[ 5.09s - return value ]─────────────────────────────────────────────────────╮
00:16:31 verbose #15140 > > │ .py output (Cuda):                                                           │
00:16:31 verbose #15141 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:16:31 verbose #15142 > > │                                                                              │
00:16:31 verbose #15143 > > │ .rs output:                                                                  │
00:16:31 verbose #15144 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:16:31 verbose #15145 > > │                                                                              │
00:16:31 verbose #15146 > > │ .ts output:                                                                  │
00:16:31 verbose #15147 > > │ __assert_eq / actual: 1,2 / expected: 1,2                                    │
00:16:31 verbose #15148 > > │                                                                              │
00:16:31 verbose #15149 > > │ .py output:                                                                  │
00:16:31 verbose #15150 > > │ __assert_eq / actual: (1, 2) / expected: (1, 2)                              │
00:16:31 verbose #15151 > > │                                                                              │
00:16:31 verbose #15152 > > │                                                                              │
00:16:31 verbose #15153 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #15154 > >
00:16:31 verbose #15155 > > ╭─[ 5.09s - stdout ]───────────────────────────────────────────────────────────╮
00:16:31 verbose #15156 > > │ .fsx output:                                                                 │
00:16:31 verbose #15157 > > │ __assert_eq / actual: struct (1, 2) / expected: struct (1, 2)                │
00:16:31 verbose #15158 > > │                                                                              │
00:16:31 verbose #15159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #15160 > >
00:16:31 verbose #15161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 verbose #15162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 verbose #15163 > > │ ### new_pair                                                                 │
00:16:31 verbose #15164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #15165 > >
00:16:31 verbose #15166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 verbose #15167 > > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:16:31 verbose #15168 > >     $'!a, !b '
00:16:31 verbose #15169 > >
00:16:31 verbose #15170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:31 verbose #15171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:31 verbose #15172 > > │ ### from_pair                                                                │
00:16:31 verbose #15173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #15174 > >
00:16:31 verbose #15175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 verbose #15176 > > inl from_pair forall a b. (pair : pair a b) : a * b =
00:16:31 verbose #15177 > >     backend_switch {
00:16:31 verbose #15178 > >         Fsharp = fun () =>
00:16:31 verbose #15179 > >             $'let (a, b) = !pair '
00:16:31 verbose #15180 > >             ($'a' : a), ($'b' : b)
00:16:31 verbose #15181 > >         Python = fun () =>
00:16:31 verbose #15182 > >             $'a, b = !pair '
00:16:31 verbose #15183 > >             ($'a' : a), ($'b' : b)
00:16:31 verbose #15184 > >     }
00:16:32 verbose #15185 > >
00:16:32 verbose #15186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:32 verbose #15187 > > //// test
00:16:32 verbose #15188 > > ///! fsharp
00:16:32 verbose #15189 > > ///! cuda
00:16:32 verbose #15190 > > ///! rust
00:16:32 verbose #15191 > > ///! typescript
00:16:32 verbose #15192 > > ///! python
00:16:32 verbose #15193 > >
00:16:32 verbose #15194 > > new_pair "a" (new_pair 1i32 "b")
00:16:32 verbose #15195 > > |> from_pair
00:16:32 verbose #15196 > > |> _assert_eq' ("a", (new_pair 1i32 "b"))
00:16:37 verbose #15197 > >
00:16:37 verbose #15198 > > ╭─[ 4.99s - return value ]─────────────────────────────────────────────────────╮
00:16:37 verbose #15199 > > │ .py output (Cuda):                                                           │
00:16:37 verbose #15200 > > │ __assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))           │
00:16:37 verbose #15201 > > │                                                                              │
00:16:37 verbose #15202 > > │ .rs output:                                                                  │
00:16:37 verbose #15203 > > │ __assert_eq' / actual: ("a", (1, "b")) / expected: ("a", (1, "b"))           │
00:16:37 verbose #15204 > > │                                                                              │
00:16:37 verbose #15205 > > │ .ts output:                                                                  │
00:16:37 verbose #15206 > > │ __assert_eq' / actual: a,1,b / expected: a,1,b                               │
00:16:37 verbose #15207 > > │                                                                              │
00:16:37 verbose #15208 > > │ .py output:                                                                  │
00:16:37 verbose #15209 > > │ __assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))           │
00:16:37 verbose #15210 > > │                                                                              │
00:16:37 verbose #15211 > > │                                                                              │
00:16:37 verbose #15212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15213 > >
00:16:37 verbose #15214 > > ╭─[ 4.99s - stdout ]───────────────────────────────────────────────────────────╮
00:16:37 verbose #15215 > > │ .fsx output:                                                                 │
00:16:37 verbose #15216 > > │ __assert_eq' / actual: struct ("a", (1, "b")) / expected: struct ("a", (1,   │
00:16:37 verbose #15217 > > │ "b"))                                                                        │
00:16:37 verbose #15218 > > │                                                                              │
00:16:37 verbose #15219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15220 > >
00:16:37 verbose #15221 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #15222 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #15223 > > │ ## ref                                                                       │
00:16:37 verbose #15224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15225 > >
00:16:37 verbose #15226 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #15227 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #15228 > > │ ### ref                                                                      │
00:16:37 verbose #15229 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15230 > >
00:16:37 verbose #15231 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #15232 > > nominal ref t = $'`t ref'
00:16:37 verbose #15233 > >
00:16:37 verbose #15234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #15235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #15236 > > │ ### new_ref                                                                  │
00:16:37 verbose #15237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15238 > >
00:16:37 verbose #15239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #15240 > > inl new_ref forall t. (x : t) : ref t =
00:16:37 verbose #15241 > >     $'ref !x '
00:16:37 verbose #15242 > >
00:16:37 verbose #15243 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #15244 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #15245 > > │ ### ref_value                                                                │
00:16:37 verbose #15246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #15247 > >
00:16:37 verbose #15248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #15249 > > inl ref_value forall t. (x : ref t) : t =
00:16:37 verbose #15250 > >     $'!x.Value'
00:16:38 verbose #15251 > >
00:16:38 verbose #15252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:38 verbose #15253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:38 verbose #15254 > > │ ### ref_set_value                                                            │
00:16:38 verbose #15255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:38 verbose #15256 > >
00:16:38 verbose #15257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:38 verbose #15258 > > inl ref_set_value forall t. (value : t) (ref : ref t) : ref t =
00:16:38 verbose #15259 > >     $'!ref.Value <- !value '
00:16:38 verbose #15260 > >     ref
00:16:38 verbose #15261 > >
00:16:38 verbose #15262 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:38 verbose #15263 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:38 verbose #15264 > > │ ## convert                                                                   │
00:16:38 verbose #15265 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:38 verbose #15266 > >
00:16:38 verbose #15267 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:38 verbose #15268 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:38 verbose #15269 > > │ ### convert                                                                  │
00:16:38 verbose #15270 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:38 verbose #15271 > >
00:16:38 verbose #15272 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:38 verbose #15273 > > inl convert forall t u. (x : t) : u =
00:16:38 verbose #15274 > >     backend_switch {
00:16:38 verbose #15275 > >         Fsharp = fun () => $'!x |> `u ' : u
00:16:38 verbose #15276 > >         Python = fun () => $'!x ' : u
00:16:38 verbose #15277 > >     }
00:16:39 verbose #15278 > >
00:16:39 verbose #15279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:39 verbose #15280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:39 verbose #15281 > > │ ### unbox                                                                    │
00:16:39 verbose #15282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:39 verbose #15283 > >
00:16:39 verbose #15284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:39 verbose #15285 > > inl unbox forall t u. (x : t) : u =
00:16:39 verbose #15286 > >     backend_switch {
00:16:39 verbose #15287 > >         Fsharp = fun () => $'!x |> unbox<`u>' : u
00:16:39 verbose #15288 > >         Python = fun () => $'!x ' : u
00:16:39 verbose #15289 > >     }
00:16:39 verbose #15290 > >
00:16:39 verbose #15291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:39 verbose #15292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:39 verbose #15293 > > │ ### u8                                                                       │
00:16:39 verbose #15294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:39 verbose #15295 > >
00:16:39 verbose #15296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:39 verbose #15297 > > inl u8 forall t. (x : t) : u8 =
00:16:39 verbose #15298 > >     x |> $'uint8'
00:16:40 verbose #15299 > >
00:16:40 verbose #15300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #15301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #15302 > > │ ### u16                                                                      │
00:16:40 verbose #15303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #15304 > >
00:16:40 verbose #15305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #15306 > > inl u16 forall t. (x : t) : u16 =
00:16:40 verbose #15307 > >     x |> $'uint16'
00:16:40 verbose #15308 > >
00:16:40 verbose #15309 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #15310 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #15311 > > │ ### u64                                                                      │
00:16:40 verbose #15312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #15313 > >
00:16:40 verbose #15314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #15315 > > inl u64 forall t. (x : t) : u64 =
00:16:40 verbose #15316 > >     x |> $'uint64'
00:16:40 verbose #15317 > >
00:16:40 verbose #15318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:40 verbose #15319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:40 verbose #15320 > > │ ### i32                                                                      │
00:16:40 verbose #15321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:40 verbose #15322 > >
00:16:40 verbose #15323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:40 verbose #15324 > > inl i32 forall t. (x : t) : i32 =
00:16:40 verbose #15325 > >     x |> $'int32'
00:16:41 verbose #15326 > >
00:16:41 verbose #15327 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:41 verbose #15328 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:41 verbose #15329 > > │ ### i64                                                                      │
00:16:41 verbose #15330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:41 verbose #15331 > >
00:16:41 verbose #15332 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:41 verbose #15333 > > inl i64 forall t. (x : t) : i64 =
00:16:41 verbose #15334 > >     x |> $'int64'
00:16:41 verbose #15335 > >
00:16:41 verbose #15336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:41 verbose #15337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:41 verbose #15338 > > │ ### f32                                                                      │
00:16:41 verbose #15339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:41 verbose #15340 > >
00:16:41 verbose #15341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:41 verbose #15342 > > inl f32 forall t. (x : t) : f32 =
00:16:41 verbose #15343 > >     x |> $'float32'
00:16:42 verbose #15344 > >
00:16:42 verbose #15345 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #15346 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #15347 > > │ ### f64                                                                      │
00:16:42 verbose #15348 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #15349 > >
00:16:42 verbose #15350 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 verbose #15351 > > inl f64 forall t. (x : t) : f64 =
00:16:42 verbose #15352 > >     x |> $'float'
00:16:42 verbose #15353 > >
00:16:42 verbose #15354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #15355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #15356 > > │ ### unativeint                                                               │
00:16:42 verbose #15357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #15358 > >
00:16:42 verbose #15359 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:42 verbose #15360 > > nominal unativeint = $'unativeint'
00:16:42 verbose #15361 > >
00:16:42 verbose #15362 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:42 verbose #15363 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:42 verbose #15364 > > │ ### convert_i32                                                              │
00:16:42 verbose #15365 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:42 verbose #15366 > >
00:16:43 verbose #15367 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #15368 > > inl convert_i32 forall t. (x : t) : i32 =
00:16:43 verbose #15369 > >     x |> $'System.Convert.ToInt32'
00:16:43 verbose #15370 > >
00:16:43 verbose #15371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #15372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #15373 > > │ ### convert_i32_base                                                         │
00:16:43 verbose #15374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #15375 > >
00:16:43 verbose #15376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #15377 > > inl convert_i32_base forall t. (base : i32) (x : t) : i32 =
00:16:43 verbose #15378 > >     $'System.Convert.ToInt32 (!x, !base)'
00:16:43 verbose #15379 > >
00:16:43 verbose #15380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #15381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #15382 > > │ ## error                                                                     │
00:16:43 verbose #15383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #15384 > >
00:16:43 verbose #15385 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:43 verbose #15386 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:43 verbose #15387 > > │ ### exn                                                                      │
00:16:43 verbose #15388 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:43 verbose #15389 > >
00:16:43 verbose #15390 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:43 verbose #15391 > > nominal exn = $"backend_switch `({ Fsharp : $'exn'; Python : $'BaseException'
00:16:43 verbose #15392 > > })"
00:16:43 verbose #15393 > >
00:16:43 verbose #15394 > > inl exn x =
00:16:43 verbose #15395 > >     x |> $'`exn '
00:16:44 verbose #15396 > >
00:16:44 verbose #15397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:44 verbose #15398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:44 verbose #15399 > > │ ### try                                                                      │
00:16:44 verbose #15400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:44 verbose #15401 > >
00:16:44 verbose #15402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:44 verbose #15403 > > inl try forall t. (fn : () -> t) (ex_fn : exn -> option t) : option t =
00:16:44 verbose #15404 > >     backend_switch {
00:16:44 verbose #15405 > >         Fsharp = fun () =>
00:16:44 verbose #15406 > >             inl some x : option t = Some x
00:16:44 verbose #15407 > >             inl some = dyn some
00:16:44 verbose #15408 > >             inl fn = dyn fn
00:16:44 verbose #15409 > >             inl ex_fn = dyn ex_fn
00:16:44 verbose #15410 > >             $'let result = ref !(None : option t)'
00:16:44 verbose #15411 > >             $'try'
00:16:44 verbose #15412 > >             $'    result.Value <- !fn () |> !some '
00:16:44 verbose #15413 > >             $'with ex ->'
00:16:44 verbose #15414 > >             $'    result.Value <- !ex_fn ex '
00:16:44 verbose #15415 > >             $'result.Value' : option t
00:16:44 verbose #15416 > >         Python = fun () =>
00:16:44 verbose #15417 > >             $'result = !(None : option t)'
00:16:44 verbose #15418 > >             inl fn = dyn fn
00:16:44 verbose #15419 > >             inl ex_fn = dyn ex_fn
00:16:44 verbose #15420 > >             $'try:'
00:16:44 verbose #15421 > >             $'    result = !fn()\n        \'\'\''
00:16:44 verbose #15422 > >             $'\'\'\''
00:16:44 verbose #15423 > >             $'except Exception as e:'
00:16:44 verbose #15424 > >             $'    result = !ex_fn(e)'
00:16:44 verbose #15425 > >             $'result' : option t
00:16:44 verbose #15426 > >     }
00:16:44 verbose #15427 > >
00:16:44 verbose #15428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:44 verbose #15429 > > //// test
00:16:44 verbose #15430 > > ///! fsharp
00:16:44 verbose #15431 > > ////! cuda // cudaErrorInsufficientDriver: CUDA driver version is insufficient
00:16:44 verbose #15432 > > for CUDA runtime version
00:16:44 verbose #15433 > > ///! rust
00:16:44 verbose #15434 > > ///! typescript
00:16:44 verbose #15435 > > ///! python
00:16:44 verbose #15436 > >
00:16:44 verbose #15437 > > try
00:16:44 verbose #15438 > >     fun () => a ;[[ 0i32 ]] |> am'.index 1i32 |> sm'.format
00:16:44 verbose #15439 > >     (fun ex => $'!ex ' |> sm'.format_exception |> Some)
00:16:44 verbose #15440 > > |> optionm.value
00:16:44 verbose #15441 > > |> _assert_eq (run_target function
00:16:44 verbose #15442 > >     | Fsharp => fun () => "System.IndexOutOfRangeException: Index was outside
00:16:44 verbose #15443 > > the bounds of the array."
00:16:44 verbose #15444 > >     | Cuda => fun () => "array index out of range"
00:16:44 verbose #15445 > >     | Rust => fun () => "Exception { message: \"index out of bounds: the len is
00:16:44 verbose #15446 > > 1 but the index is 1\" }"
00:16:44 verbose #15447 > >     | TypeScript => fun () => "Error: Index was outside the bounds of the
00:16:44 verbose #15448 > > array.\\nParameter name: index"
00:16:44 verbose #15449 > >     | Python => fun () => "array index out of range"
00:16:44 verbose #15450 > > )
00:16:48 verbose #15451 > >
00:16:48 verbose #15452 > > ╭─[ 4.29s - return value ]─────────────────────────────────────────────────────╮
00:16:48 verbose #15453 > > │ .rs output:                                                                  │
00:16:48 verbose #15454 > > │ __assert_eq / actual: "Exception { message: "index out of bounds: the len is │
00:16:48 verbose #15455 > > │ 1 but the index is 1" }" / expected: "Exception { message: "index out of     │
00:16:48 verbose #15456 > > │ bounds: the len is 1 but the index is 1" }"                                  │
00:16:48 verbose #15457 > > │                                                                              │
00:16:48 verbose #15458 > > │ .ts output:                                                                  │
00:16:48 verbose #15459 > > │ __assert_eq / actual: Error: Index was outside the bounds of the             │
00:16:48 verbose #15460 > > │ array.\nParameter name: index / expected: Error: Index was outside the       │
00:16:48 verbose #15461 > > │ bounds of the array.\nParameter name: index                                  │
00:16:48 verbose #15462 > > │                                                                              │
00:16:48 verbose #15463 > > │ .py output:                                                                  │
00:16:48 verbose #15464 > > │ __assert_eq / actual: array index out of range / expected: array index out   │
00:16:48 verbose #15465 > > │ of range                                                                     │
00:16:48 verbose #15466 > > │                                                                              │
00:16:48 verbose #15467 > > │                                                                              │
00:16:48 verbose #15468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #15469 > >
00:16:48 verbose #15470 > > ╭─[ 4.30s - stdout ]───────────────────────────────────────────────────────────╮
00:16:48 verbose #15471 > > │ .fsx output:                                                                 │
00:16:48 verbose #15472 > > │ __assert_eq / actual: "System.IndexOutOfRangeException: Index was outside    │
00:16:48 verbose #15473 > > │ the bounds of the array." / expected: "System.IndexOutOfRangeException:      │
00:16:48 verbose #15474 > > │ Index was outside the bounds of the array."                                  │
00:16:48 verbose #15475 > > │                                                                              │
00:16:48 verbose #15476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #15477 > >
00:16:48 verbose #15478 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:48 verbose #15479 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:48 verbose #15480 > > │ ### try_unit                                                                 │
00:16:48 verbose #15481 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:48 verbose #15482 > >
00:16:48 verbose #15483 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:48 verbose #15484 > > inl try_unit forall t. (fn : () -> ()) (ex_fn : exn -> ()) : t =
00:16:48 verbose #15485 > >     $'try'
00:16:48 verbose #15486 > >     fn ()
00:16:48 verbose #15487 > >     |> ignore
00:16:48 verbose #15488 > >     $'with ex ->'
00:16:48 verbose #15489 > >     ex_fn $'ex'
00:16:48 verbose #15490 > >     |> ignore
00:16:48 verbose #15491 > >     $'(*'
00:16:48 verbose #15492 > >     $'*)'
00:16:49 verbose #15493 > >
00:16:49 verbose #15494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:49 verbose #15495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:49 verbose #15496 > > │ ### try_finally                                                              │
00:16:49 verbose #15497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:49 verbose #15498 > >
00:16:49 verbose #15499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:49 verbose #15500 > > inl try_finally forall t. (fn : () -> ()) (finally : () -> ()) : t =
00:16:49 verbose #15501 > >     $'try'
00:16:49 verbose #15502 > >     fn ()
00:16:49 verbose #15503 > >     |> ignore
00:16:49 verbose #15504 > >     $'finally'
00:16:49 verbose #15505 > >     finally ()
00:16:49 verbose #15506 > >     |> ignore
00:16:49 verbose #15507 > >     $'(*'
00:16:49 verbose #15508 > >     $'*)'
00:16:50 verbose #15509 > 00:01:34 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 57837 }
00:16:50 verbose #15510 > 00:01:34   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:16:50 verbose #15511 >     "nbconvert",
00:16:50 verbose #15512 >     "c:/home/git/polyglot/lib/spiral/base.dib.ipynb",
00:16:50 verbose #15513 >     "--to",
00:16:50 verbose #15514 >     "html",
00:16:50 verbose #15515 >     "--HTMLExporter.theme=dark",
00:16:50 verbose #15516 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/base.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:53 verbose #15517 > 00:01:37 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/base.dib.ipynb to html
00:16:53 verbose #15518 > 00:01:37 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:53 verbose #15519 > 00:01:37 verbose #7 !   validate(nb)
00:16:56 verbose #15520 > 00:01:41 verbose #8 ! [NbConvertApp] Writing 408943 bytes to c:\home\git\polyglot\lib\spiral\base.dib.html
00:16:56 verbose #15521 > 00:01:41 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:16:56 verbose #15522 > 00:01:41   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:16:56 verbose #15523 > 00:01:41   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:16:56 verbose #15524 >     "-c",
00:16:56 verbose #15525 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:16:56 verbose #15526 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:56 verbose #15527 > 00:01:41 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:56 verbose #15528 > 00:01:41   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:56 verbose #15529 > 00:01:41   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 58535 }
00:16:56   debug #15530 runtime.execute_with_options_async / { exit_code = 0; output_length = 63489 }
00:16:56   debug #17 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3
00:16:56   debug #15531 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:57 verbose #15532 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "date_time.dib", "--retries", "3"])) }
00:16:57 verbose #15533 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:16:57 verbose #15534 >     "repl",
00:16:57 verbose #15535 >     "--exit-after-run",
00:16:57 verbose #15536 >     "--run",
00:16:57 verbose #15537 >     "c:/home/git/polyglot/lib/spiral/date_time.dib",
00:16:57 verbose #15538 >     "--output-path",
00:16:57 verbose #15539 >     "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb",
00:16:57 verbose #15540 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/date_time.dib" --output-path "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:59 verbose #15541 > >
00:16:59 verbose #15542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:00 verbose #15543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:00 verbose #15544 > > │ # date_time                                                                  │
00:17:00 verbose #15545 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:05 verbose #15546 > >
00:17:05 verbose #15547 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:05 verbose #15548 > > open rust.rust_operators
00:17:05 verbose #15549 > > open sm'_operators
00:17:06 verbose #15550 > >
00:17:06 verbose #15551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #15552 > > //// test
00:17:06 verbose #15553 > >
00:17:06 verbose #15554 > > open testing
00:17:07 verbose #15555 > >
00:17:07 verbose #15556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #15557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #15558 > > │ ## date_time                                                                 │
00:17:07 verbose #15559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #15560 > >
00:17:07 verbose #15561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #15562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #15563 > > │ ### timestamp                                                                │
00:17:07 verbose #15564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #15565 > >
00:17:07 verbose #15566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #15567 > > nominal timestamp = i64
00:17:07 verbose #15568 > >
00:17:07 verbose #15569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #15570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #15571 > > │ ### timestamp_guid                                                           │
00:17:07 verbose #15572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #15573 > >
00:17:07 verbose #15574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #15575 > > type timestamp_guid = guid.guid
00:17:07 verbose #15576 > >
00:17:07 verbose #15577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #15578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #15579 > > │ ### date_time_guid                                                           │
00:17:07 verbose #15580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #15581 > >
00:17:07 verbose #15582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #15583 > > type date_time_guid = guid.guid
00:17:08 verbose #15584 > >
00:17:08 verbose #15585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #15586 > > //// test
00:17:08 verbose #15587 > >
00:17:08 verbose #15588 > > inl test_guid () =
00:17:08 verbose #15589 > >     guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
00:17:08 verbose #15590 > >
00:17:08 verbose #15591 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #15592 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #15593 > > │ ## fsharp                                                                    │
00:17:08 verbose #15594 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #15595 > >
00:17:08 verbose #15596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #15597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #15598 > > │ ### date_time                                                                │
00:17:08 verbose #15599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #15600 > >
00:17:08 verbose #15601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #15602 > > nominal date_time_python =
00:17:08 verbose #15603 > >     `(
00:17:08 verbose #15604 > >         backend_switch {
00:17:08 verbose #15605 > >             Python = fun () =>
00:17:08 verbose #15606 > >                 global "import datetime"
00:17:08 verbose #15607 > >         }
00:17:08 verbose #15608 > >         $'' : $'datetime.datetime'
00:17:08 verbose #15609 > >     )
00:17:08 verbose #15610 > > type date_time_switch =
00:17:08 verbose #15611 > >     {
00:17:08 verbose #15612 > >         Fsharp : $'System.DateTime'
00:17:08 verbose #15613 > >         Python : date_time_python
00:17:08 verbose #15614 > >     }
00:17:08 verbose #15615 > > nominal date_time = $'backend_switch `(date_time_switch)'
00:17:09 verbose #15616 > >
00:17:09 verbose #15617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #15618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #15619 > > │ ### date_time_milliseconds                                                   │
00:17:09 verbose #15620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #15621 > >
00:17:09 verbose #15622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #15623 > > inl date_time_milliseconds
00:17:09 verbose #15624 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:17:09 verbose #15625 > > int) (millisecond : int)
00:17:09 verbose #15626 > >     : date_time
00:17:09 verbose #15627 > >     =
00:17:09 verbose #15628 > >     backend_switch {
00:17:09 verbose #15629 > >         Fsharp = fun () =>
00:17:09 verbose #15630 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:17:09 verbose #15631 > > !millisecond)' : date_time
00:17:09 verbose #15632 > >         Python = fun () =>
00:17:09 verbose #15633 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:17:09 verbose #15634 > > !millisecond)' : date_time
00:17:09 verbose #15635 > >     }
00:17:09 verbose #15636 > >
00:17:09 verbose #15637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #15638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #15639 > > │ ### date_time_utc                                                            │
00:17:09 verbose #15640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #15641 > >
00:17:09 verbose #15642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #15643 > > inl date_time_utc
00:17:09 verbose #15644 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:17:09 verbose #15645 > > int)
00:17:09 verbose #15646 > >     : date_time
00:17:09 verbose #15647 > >     =
00:17:09 verbose #15648 > >     backend_switch {
00:17:09 verbose #15649 > >         Fsharp = fun () =>
00:17:09 verbose #15650 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:17:09 verbose #15651 > > System.DateTimeKind.Utc)' : date_time
00:17:09 verbose #15652 > >         Python = fun () =>
00:17:09 verbose #15653 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:17:09 verbose #15654 > > tzinfo=datetime.timezone.utc)' : date_time
00:17:09 verbose #15655 > >     }
00:17:09 verbose #15656 > >
00:17:09 verbose #15657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #15658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #15659 > > │ ### ticks                                                                    │
00:17:09 verbose #15660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #15661 > >
00:17:09 verbose #15662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #15663 > > inl ticks (date_time : date_time) : timestamp =
00:17:09 verbose #15664 > >     backend_switch {
00:17:09 verbose #15665 > >         Fsharp = fun () => date_time |> $'_.Ticks' : timestamp
00:17:09 verbose #15666 > >         Python = fun () => $'!date_time.timestamp()' : timestamp
00:17:09 verbose #15667 > >     }
00:17:10 verbose #15668 > >
00:17:10 verbose #15669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #15670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #15671 > > │ ### format                                                                   │
00:17:10 verbose #15672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #15673 > >
00:17:10 verbose #15674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #15675 > > inl format (format : string) (date_time : date_time) : string =
00:17:10 verbose #15676 > >     backend_switch {
00:17:10 verbose #15677 > >         Fsharp = fun () => $'!date_time.ToString' format : string
00:17:10 verbose #15678 > >         Python = fun () => $'!date_time.strftime(!format)' : string
00:17:10 verbose #15679 > >     }
00:17:10 verbose #15680 > >
00:17:10 verbose #15681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #15682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #15683 > > │ ### format_iso8601                                                           │
00:17:10 verbose #15684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #15685 > >
00:17:10 verbose #15686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #15687 > > inl format_iso8601 (date_time : date_time) : string =
00:17:10 verbose #15688 > >     backend_switch {
00:17:10 verbose #15689 > >         Fsharp = fun () => date_time |> format "yyyy-MM-ddTHH-mm-ss.fff" :
00:17:10 verbose #15690 > > string
00:17:10 verbose #15691 > >         Python = fun () => date_time |> format "%Y-%m-%dT%H-%M-%S.%f" : string
00:17:10 verbose #15692 > >     }
00:17:11 verbose #15693 > >
00:17:11 verbose #15694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 verbose #15695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 verbose #15696 > > │ ### min_value                                                                │
00:17:11 verbose #15697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 verbose #15698 > >
00:17:11 verbose #15699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 verbose #15700 > > inl min_value () : date_time =
00:17:11 verbose #15701 > >     backend_switch {
00:17:11 verbose #15702 > >         Fsharp = fun () => $'System.DateTime.MinValue' : date_time
00:17:11 verbose #15703 > >         Python = fun () => $'datetime.datetime.min' : date_time
00:17:11 verbose #15704 > >     }
00:17:11 verbose #15705 > >
00:17:11 verbose #15706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 verbose #15707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 verbose #15708 > > │ ### max_value                                                                │
00:17:11 verbose #15709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 verbose #15710 > >
00:17:11 verbose #15711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 verbose #15712 > > inl max_value () : date_time =
00:17:11 verbose #15713 > >     backend_switch {
00:17:11 verbose #15714 > >         Fsharp = fun () => $'System.DateTime.MaxValue' : date_time
00:17:11 verbose #15715 > >         Python = fun () => $'datetime.datetime.max' : date_time
00:17:11 verbose #15716 > >     }
00:17:11 verbose #15717 > >
00:17:11 verbose #15718 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:11 verbose #15719 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:11 verbose #15720 > > │ ### unix_epoch                                                               │
00:17:11 verbose #15721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:11 verbose #15722 > >
00:17:11 verbose #15723 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:11 verbose #15724 > > inl unix_epoch () : date_time =
00:17:11 verbose #15725 > >     backend_switch {
00:17:11 verbose #15726 > >         Fsharp = fun () => $'System.DateTime.UnixEpoch' : date_time
00:17:11 verbose #15727 > >         Python = fun () => $'datetime.datetime(1970, 1, 1)' : date_time
00:17:11 verbose #15728 > >     }
00:17:12 verbose #15729 > >
00:17:12 verbose #15730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 verbose #15731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 verbose #15732 > > │ ### to_universal_time                                                        │
00:17:12 verbose #15733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 verbose #15734 > >
00:17:12 verbose #15735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 verbose #15736 > > inl to_universal_time (date_time : date_time) : date_time =
00:17:12 verbose #15737 > >     backend_switch {
00:17:12 verbose #15738 > >         Fsharp = fun () => date_time |> $'_.ToUniversalTime()' : date_time
00:17:12 verbose #15739 > >         Python = fun () => $'!date_time.astimezone(datetime.timezone.utc)' :
00:17:12 verbose #15740 > > date_time
00:17:12 verbose #15741 > >     }
00:17:12 verbose #15742 > >
00:17:12 verbose #15743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:12 verbose #15744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:12 verbose #15745 > > │ ### date_time_kind                                                           │
00:17:12 verbose #15746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:12 verbose #15747 > >
00:17:12 verbose #15748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:12 verbose #15749 > > union date_time_kind =
00:17:12 verbose #15750 > >     | Unspecified
00:17:12 verbose #15751 > >     | Utc
00:17:12 verbose #15752 > >     | Local
00:17:13 verbose #15753 > >
00:17:13 verbose #15754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:13 verbose #15755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:13 verbose #15756 > > │ ### specify_date_kind                                                        │
00:17:13 verbose #15757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:13 verbose #15758 > >
00:17:13 verbose #15759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:13 verbose #15760 > > inl specify_date_kind (kind : date_time_kind) (date_time : date_time) :
00:17:13 verbose #15761 > > date_time =
00:17:13 verbose #15762 > >     inl kind : $'System.DateTimeKind' =
00:17:13 verbose #15763 > >         match kind with
00:17:13 verbose #15764 > >         | Unspecified => $'System.DateTimeKind.Unspecified'
00:17:13 verbose #15765 > >         | Utc => $'System.DateTimeKind.Utc'
00:17:13 verbose #15766 > >         | Local => $'System.DateTimeKind.Local'
00:17:13 verbose #15767 > >     $'System.DateTime.SpecifyKind (!date_time, !kind)'
00:17:13 verbose #15768 > >
00:17:13 verbose #15769 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:13 verbose #15770 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:13 verbose #15771 > > │ ### time_span                                                                │
00:17:13 verbose #15772 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:13 verbose #15773 > >
00:17:13 verbose #15774 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:13 verbose #15775 > > nominal time_span = $"backend_switch `({ Fsharp : $"System.TimeSpan"; Python :
00:17:13 verbose #15776 > > $"datetime.timedelta" })"
00:17:13 verbose #15777 > >
00:17:13 verbose #15778 > > inl time_span x : time_span =
00:17:13 verbose #15779 > >     backend_switch {
00:17:13 verbose #15780 > >         Fsharp = fun () => x |> $'`time_span ' : time_span
00:17:13 verbose #15781 > >         Python = fun () => $'datetime.timedelta(!x)' : time_span
00:17:13 verbose #15782 > >     }
00:17:14 verbose #15783 > >
00:17:14 verbose #15784 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #15785 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #15786 > > │ ### new_time_span                                                            │
00:17:14 verbose #15787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #15788 > >
00:17:14 verbose #15789 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #15790 > > inl new_time_span (a : date_time) (b : date_time) : time_span =
00:17:14 verbose #15791 > >     $'!b - !a '
00:17:14 verbose #15792 > >
00:17:14 verbose #15793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #15794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #15795 > > │ ### time_span_format                                                         │
00:17:14 verbose #15796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #15797 > >
00:17:14 verbose #15798 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #15799 > > inl time_span_format (format : string) (time_span : time_span) : string =
00:17:14 verbose #15800 > >     run_target function
00:17:14 verbose #15801 > >         | (TypeScript _ | Python _) => fun () =>
00:17:14 verbose #15802 > >             $'!time_span.ToString ("c",
00:17:14 verbose #15803 > > System.Globalization.CultureInfo.InvariantCulture)'
00:17:14 verbose #15804 > >         | _ => fun () =>
00:17:14 verbose #15805 > >             $'!time_span.ToString !format '
00:17:14 verbose #15806 > >
00:17:14 verbose #15807 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:14 verbose #15808 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:14 verbose #15809 > > │ ### hours                                                                    │
00:17:14 verbose #15810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:14 verbose #15811 > >
00:17:14 verbose #15812 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:14 verbose #15813 > > inl hours (time_span : time_span) : i32 =
00:17:14 verbose #15814 > >     backend_switch {
00:17:14 verbose #15815 > >         Fsharp = fun () => time_span |> $'_.Hours' : i32
00:17:14 verbose #15816 > >         Python = fun () => $'!time_span.days * 24 + !time_span.seconds // 3600'
00:17:14 verbose #15817 > > : i32
00:17:14 verbose #15818 > >     }
00:17:15 verbose #15819 > >
00:17:15 verbose #15820 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:15 verbose #15821 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:15 verbose #15822 > > │ ### milliseconds                                                             │
00:17:15 verbose #15823 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:15 verbose #15824 > >
00:17:15 verbose #15825 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:15 verbose #15826 > > inl milliseconds (time_span : time_span) : i32 =
00:17:15 verbose #15827 > >     backend_switch {
00:17:15 verbose #15828 > >         Fsharp = fun () => time_span |> $'_.Milliseconds' : i32
00:17:15 verbose #15829 > >         Python = fun () => $'!time_span.microseconds // 1000' : i32
00:17:15 verbose #15830 > >     }
00:17:15 verbose #15831 > >
00:17:15 verbose #15832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:15 verbose #15833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:15 verbose #15834 > > │ ### minutes                                                                  │
00:17:15 verbose #15835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:15 verbose #15836 > >
00:17:15 verbose #15837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:15 verbose #15838 > > inl minutes (time_span : time_span) : i32 =
00:17:15 verbose #15839 > >     backend_switch {
00:17:15 verbose #15840 > >         Fsharp = fun () => time_span |> $'_.Minutes' : i32
00:17:15 verbose #15841 > >         Python = fun () => $'!time_span.seconds // 60' : i32
00:17:15 verbose #15842 > >     }
00:17:16 verbose #15843 > >
00:17:16 verbose #15844 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:16 verbose #15845 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:16 verbose #15846 > > │ ### seconds                                                                  │
00:17:16 verbose #15847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:16 verbose #15848 > >
00:17:16 verbose #15849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:16 verbose #15850 > > inl seconds (time_span : time_span) : i32 =
00:17:16 verbose #15851 > >     backend_switch {
00:17:16 verbose #15852 > >         Fsharp = fun () => time_span |> $'_.Seconds' : i32
00:17:16 verbose #15853 > >         Python = fun () => $'!time_span.seconds % 60' : i32
00:17:16 verbose #15854 > >     }
00:17:16 verbose #15855 > >
00:17:16 verbose #15856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:16 verbose #15857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:16 verbose #15858 > > │ ### total_seconds                                                            │
00:17:16 verbose #15859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:16 verbose #15860 > >
00:17:16 verbose #15861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:16 verbose #15862 > > inl total_seconds (time_span : time_span) : f64 =
00:17:16 verbose #15863 > >     backend_switch {
00:17:16 verbose #15864 > >         Fsharp = fun () => time_span |> $'_.TotalSeconds' : f64
00:17:16 verbose #15865 > >         Python = fun () => $'!time_span.total_seconds()' : f64
00:17:16 verbose #15866 > >     }
00:17:17 verbose #15867 > >
00:17:17 verbose #15868 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:17 verbose #15869 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:17 verbose #15870 > > │ ### time_zone_info                                                           │
00:17:17 verbose #15871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:17 verbose #15872 > >
00:17:17 verbose #15873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:17 verbose #15874 > > nominal time_zone_info = $'System.TimeZoneInfo'
00:17:17 verbose #15875 > >
00:17:17 verbose #15876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:17 verbose #15877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:17 verbose #15878 > > │ ### add_days                                                                 │
00:17:17 verbose #15879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:17 verbose #15880 > >
00:17:17 verbose #15881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:17 verbose #15882 > > inl add_days (days : i32) (date_time : date_time) : date_time =
00:17:17 verbose #15883 > >     $'!date_time.AddDays' days
00:17:17 verbose #15884 > >
00:17:17 verbose #15885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:17 verbose #15886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:17 verbose #15887 > > │ ### now                                                                      │
00:17:17 verbose #15888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:17 verbose #15889 > >
00:17:17 verbose #15890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:17 verbose #15891 > > inl now () : date_time =
00:17:17 verbose #15892 > >     backend_switch {
00:17:17 verbose #15893 > >         Fsharp = fun () => $'System.DateTime.Now' : date_time
00:17:17 verbose #15894 > >         Python = fun () =>
00:17:17 verbose #15895 > >             backend_switch {
00:17:17 verbose #15896 > >                 Python = fun () =>
00:17:17 verbose #15897 > >                     global "import datetime"
00:17:17 verbose #15898 > >             }
00:17:17 verbose #15899 > >             $'datetime.datetime.now()' : date_time
00:17:17 verbose #15900 > >     }
00:17:18 verbose #15901 > >
00:17:18 verbose #15902 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #15903 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #15904 > > │ ### utc_now                                                                  │
00:17:18 verbose #15905 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:18 verbose #15906 > >
00:17:18 verbose #15907 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:18 verbose #15908 > > inl utc_now () : date_time =
00:17:18 verbose #15909 > >     backend_switch {
00:17:18 verbose #15910 > >         Fsharp = fun () => $'System.DateTime.UtcNow' : date_time
00:17:18 verbose #15911 > >         Python = fun () =>
00:17:18 verbose #15912 > >             backend_switch {
00:17:18 verbose #15913 > >                 Python = fun () =>
00:17:18 verbose #15914 > >                     global "import datetime"
00:17:18 verbose #15915 > >             }
00:17:18 verbose #15916 > >             $'datetime.datetime.utcnow()' : date_time
00:17:18 verbose #15917 > >     }
00:17:18 verbose #15918 > >
00:17:18 verbose #15919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #15920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #15921 > > │ ### stopwatch                                                                │
00:17:18 verbose #15922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:18 verbose #15923 > >
00:17:18 verbose #15924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:18 verbose #15925 > > nominal stopwatch_python =
00:17:18 verbose #15926 > >     `(
00:17:18 verbose #15927 > >         global "import timeit"
00:17:18 verbose #15928 > >         $'' : $'timeit.default_timer'
00:17:18 verbose #15929 > >     )
00:17:18 verbose #15930 > > type stopwatch_switch =
00:17:18 verbose #15931 > >     {
00:17:18 verbose #15932 > >         Fsharp : $'System.Diagnostics.Stopwatch'
00:17:18 verbose #15933 > >         Python : stopwatch_python
00:17:18 verbose #15934 > >     }
00:17:18 verbose #15935 > > nominal stopwatch = $'backend_switch `(stopwatch_switch)'
00:17:18 verbose #15936 > >
00:17:18 verbose #15937 > > inl stopwatch () : stopwatch =
00:17:18 verbose #15938 > >     backend_switch {
00:17:18 verbose #15939 > >         Fsharp = fun () => $'`stopwatch ' () : stopwatch
00:17:18 verbose #15940 > >         Python = fun () => $'`stopwatch ' : stopwatch
00:17:18 verbose #15941 > >     }
00:17:19 verbose #15942 > >
00:17:19 verbose #15943 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:19 verbose #15944 > > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:17:19 verbose #15945 > >     $'!stopwatch.ElapsedMilliseconds'
00:17:19 verbose #15946 > >
00:17:19 verbose #15947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:19 verbose #15948 > > inl stopwatch_start (stopwatch : stopwatch) : () =
00:17:19 verbose #15949 > >     $'!stopwatch.Start' ()
00:17:20 verbose #15950 > >
00:17:20 verbose #15951 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #15952 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #15953 > > │ ## rust                                                                      │
00:17:20 verbose #15954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #15955 > >
00:17:20 verbose #15956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #15957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #15958 > > │ ### duration                                                                 │
00:17:20 verbose #15959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #15960 > >
00:17:20 verbose #15961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #15962 > > nominal duration =
00:17:20 verbose #15963 > >     `(
00:17:20 verbose #15964 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:20 verbose #15965 > > Fable.Core.Emit(\"std::time::Duration\")>]]\n#endif\ntype std_time_Duration =
00:17:20 verbose #15966 > > class end"
00:17:20 verbose #15967 > >         $'' : $'std_time_Duration'
00:17:20 verbose #15968 > >     )
00:17:20 verbose #15969 > >
00:17:20 verbose #15970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #15971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #15972 > > │ ### date_time'                                                               │
00:17:20 verbose #15973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #15974 > >
00:17:20 verbose #15975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #15976 > > nominal date_time' t =
00:17:20 verbose #15977 > >     `(
00:17:20 verbose #15978 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:20 verbose #15979 > > Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]\n#endif\ntype chrono_DateTime<'T> =
00:17:20 verbose #15980 > > class end"
00:17:20 verbose #15981 > >         $'' : $'chrono_DateTime<`t>'
00:17:20 verbose #15982 > >     )
00:17:20 verbose #15983 > >
00:17:20 verbose #15984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:20 verbose #15985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:20 verbose #15986 > > │ ### local                                                                    │
00:17:20 verbose #15987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:20 verbose #15988 > >
00:17:20 verbose #15989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:20 verbose #15990 > > nominal local =
00:17:20 verbose #15991 > >     `(
00:17:20 verbose #15992 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:20 verbose #15993 > > Fable.Core.Emit(\"chrono::Local\")>]]\n#endif\ntype chrono_Local = class end"
00:17:20 verbose #15994 > >         $'' : $'chrono_Local'
00:17:20 verbose #15995 > >     )
00:17:21 verbose #15996 > >
00:17:21 verbose #15997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:21 verbose #15998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:21 verbose #15999 > > │ ### naive_date_time                                                          │
00:17:21 verbose #16000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:21 verbose #16001 > >
00:17:21 verbose #16002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:21 verbose #16003 > > nominal naive_date_time =
00:17:21 verbose #16004 > >     `(
00:17:21 verbose #16005 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:21 verbose #16006 > > Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]\n#endif\ntype chrono_NaiveDateTime
00:17:21 verbose #16007 > > = class end"
00:17:21 verbose #16008 > >         $'' : $'chrono_NaiveDateTime'
00:17:21 verbose #16009 > >     )
00:17:21 verbose #16010 > >
00:17:21 verbose #16011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:21 verbose #16012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:21 verbose #16013 > > │ ## utc                                                                       │
00:17:21 verbose #16014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:21 verbose #16015 > >
00:17:21 verbose #16016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:21 verbose #16017 > > nominal utc =
00:17:21 verbose #16018 > >     `(
00:17:21 verbose #16019 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:17:21 verbose #16020 > > Fable.Core.Emit(\"chrono::Utc\")>]]\n#endif\ntype chrono_Utc = class end"
00:17:21 verbose #16021 > >         $'' : $'chrono_Utc'
00:17:21 verbose #16022 > >     )
00:17:22 verbose #16023 > >
00:17:22 verbose #16024 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #16025 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #16026 > > │ ### naive_utc                                                                │
00:17:22 verbose #16027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #16028 > >
00:17:22 verbose #16029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #16030 > > inl naive_utc (date_time : date_time' utc) : naive_date_time =
00:17:22 verbose #16031 > >     !\\(date_time, $'"$0.naive_utc()"')
00:17:22 verbose #16032 > >
00:17:22 verbose #16033 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #16034 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #16035 > > │ ### to_local                                                                 │
00:17:22 verbose #16036 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #16037 > >
00:17:22 verbose #16038 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #16039 > > inl to_local (date_time : date_time' utc) : date_time' local =
00:17:22 verbose #16040 > >     inl naive_date_time = date_time |> naive_utc
00:17:22 verbose #16041 > >     !\\(naive_date_time,
00:17:22 verbose #16042 > > $'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local, &$0)"')
00:17:22 verbose #16043 > >
00:17:22 verbose #16044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:22 verbose #16045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:22 verbose #16046 > > │ ### from_timestamp_micros                                                    │
00:17:22 verbose #16047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:22 verbose #16048 > >
00:17:22 verbose #16049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:22 verbose #16050 > > inl from_timestamp_micros forall t {number; int}. (timestamp : t) : option
00:17:22 verbose #16051 > > (date_time' utc) =
00:17:22 verbose #16052 > >     inl result : optionm'.option' (date_time' utc) =
00:17:22 verbose #16053 > >         !\\(timestamp, $'"chrono::DateTime::from_timestamp_micros($0)"')
00:17:22 verbose #16054 > >     result |> optionm'.unbox
00:17:23 verbose #16055 > >
00:17:23 verbose #16056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:23 verbose #16057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:23 verbose #16058 > > │ ### format'                                                                  │
00:17:23 verbose #16059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #16060 > >
00:17:23 verbose #16061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #16062 > > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =
00:17:23 verbose #16063 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:17:23 verbose #16064 > >
00:17:23 verbose #16065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:23 verbose #16066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:23 verbose #16067 > > │ ### format''                                                                 │
00:17:23 verbose #16068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #16069 > >
00:17:23 verbose #16070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #16071 > > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =
00:17:23 verbose #16072 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:17:24 verbose #16073 > >
00:17:24 verbose #16074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:24 verbose #16075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:24 verbose #16076 > > │ ### format_timestamp                                                         │
00:17:24 verbose #16077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:24 verbose #16078 > >
00:17:24 verbose #16079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:24 verbose #16080 > > inl format_timestamp forall t {number; int}. (timestamp : t) =
00:17:24 verbose #16081 > >     inl timestamp = join timestamp
00:17:24 verbose #16082 > >     (timestamp / 1000)
00:17:24 verbose #16083 > >     |> from_timestamp_micros
00:17:24 verbose #16084 > >     |> optionm.map fun x =>
00:17:24 verbose #16085 > >         x
00:17:24 verbose #16086 > >         |> to_local
00:17:24 verbose #16087 > >         |> format'' "%Y-%m-%d %H:%M:%S"
00:17:24 verbose #16088 > >         |> sm'.from_std_string
00:17:24 verbose #16089 > >     |> resultm.from_option
00:17:24 verbose #16090 > >
00:17:24 verbose #16091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:24 verbose #16092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:24 verbose #16093 > > │ ### duration_from_millis                                                     │
00:17:24 verbose #16094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:24 verbose #16095 > >
00:17:24 verbose #16096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:24 verbose #16097 > > inl duration_from_millis (ms : u64) : duration =
00:17:24 verbose #16098 > >     inl ms = join ms
00:17:24 verbose #16099 > >     !\($'"std::time::Duration::from_millis(!ms)"')
00:17:25 verbose #16100 > >
00:17:25 verbose #16101 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #16102 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #16103 > > │ ## date_time                                                                 │
00:17:25 verbose #16104 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #16105 > >
00:17:25 verbose #16106 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #16107 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #16108 > > │ ### time_zone_local                                                          │
00:17:25 verbose #16109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #16110 > >
00:17:25 verbose #16111 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #16112 > > inl time_zone_local () : time_zone_info =
00:17:25 verbose #16113 > >     run_target function
00:17:25 verbose #16114 > >         | Rust (Native) => fun () =>
00:17:25 verbose #16115 > >             open rust.rust_operators
00:17:25 verbose #16116 > >             !\($'"0i64.into()"')
00:17:25 verbose #16117 > >         | Fsharp _ => fun () =>
00:17:25 verbose #16118 > >             $'System.TimeZoneInfo.Local'
00:17:25 verbose #16119 > >         | _ => fun () => null ()
00:17:25 verbose #16120 > >
00:17:25 verbose #16121 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #16122 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #16123 > > │ ### get_utc_offset                                                           │
00:17:25 verbose #16124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #16125 > >
00:17:25 verbose #16126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #16127 > > inl get_utc_offset (time_zone_info : time_zone_info) (date_time : date_time) :
00:17:25 verbose #16128 > > time_span =
00:17:25 verbose #16129 > >     run_target function
00:17:25 verbose #16130 > >         | Rust _ => fun () => time_span ()
00:17:25 verbose #16131 > >         | Fsharp _ => fun () => date_time |> $'_.GetUtcOffset' (time_zone_local
00:17:25 verbose #16132 > > ())
00:17:25 verbose #16133 > >         | target => fun () => failwith $'$"date_time.get_utc_offset / target:
00:17:25 verbose #16134 > > {!target}"'
00:17:25 verbose #16135 > >
00:17:25 verbose #16136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #16137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #16138 > > │ ### date_time_guid_from_date_time                                            │
00:17:25 verbose #16139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #16140 > >
00:17:25 verbose #16141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #16142 > > let date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =
00:17:25 verbose #16143 > >     inl create prefix time_zone : date_time_guid =
00:17:25 verbose #16144 > >         inl guid = guid |> sm'.obj_to_string
00:17:25 verbose #16145 > >         $'`date_time_guid $"{!prefix}{!time_zone}{!guid.[[!prefix.Length +
00:17:25 verbose #16146 > > !time_zone.Length..]]}"'
00:17:25 verbose #16147 > >     run_target function
00:17:25 verbose #16148 > >         | Rust (Contract) => fun () => null ()
00:17:25 verbose #16149 > >         | Rust (Native | Wasm) => fun () =>
00:17:25 verbose #16150 > >             inl epoch =
00:17:25 verbose #16151 > >                 date_time_utc 1970 1 1 0 0 0
00:17:25 verbose #16152 > >                 |> to_universal_time
00:17:25 verbose #16153 > >             inl date_time =
00:17:25 verbose #16154 > >                 date_time
00:17:25 verbose #16155 > >                 |> specify_date_kind Local
00:17:25 verbose #16156 > >                 |> to_universal_time
00:17:25 verbose #16157 > >             inl unixticks =
00:17:25 verbose #16158 > >                 match date_time |> ticks, epoch |> ticks with
00:17:25 verbose #16159 > >                 | timestamp date_time, timestamp epoch => date_time - epoch
00:17:25 verbose #16160 > >             inl prefix =
00:17:25 verbose #16161 > >                 unixticks / 10
00:17:25 verbose #16162 > >                 |> from_timestamp_micros
00:17:25 verbose #16163 > >                 |> optionm.map (
00:17:25 verbose #16164 > >                     to_local
00:17:25 verbose #16165 > >                     >> format'' "%Y%m%d-%H%M-%S%f"
00:17:25 verbose #16166 > >                     >> sm'.from_std_string
00:17:25 verbose #16167 > >                     >> fun s => $'$"{!s.[[0..17]]}-{!s.[[18..21]]}-{!s.[[22]]}"'
00:17:25 verbose #16168 > >                 )
00:17:25 verbose #16169 > >                 |> optionm'.default_value ""
00:17:25 verbose #16170 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:17:25 verbose #16171 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:17:25 verbose #16172 > >             inl time_zone_value = time_zone |> time_span_format (join "hh:mm")
00:17:25 verbose #16173 > >             inl time_zone =
00:17:25 verbose #16174 > > $'$"{!time_zone_signal}{!time_zone_value.[[0..1]]}{!time_zone_value.[[3..4]]}"'
00:17:25 verbose #16175 > > : string
00:17:25 verbose #16176 > >             create prefix time_zone
00:17:25 verbose #16177 > >         | target => fun () =>
00:17:25 verbose #16178 > >             inl prefix = date_time |> format (join "yyyyMMdd-HHmm-ssff-ffff-f")
00:17:25 verbose #16179 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:17:25 verbose #16180 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:17:25 verbose #16181 > >             inl time_zone_value = time_zone |> time_span_format (join "hhmm")
00:17:25 verbose #16182 > >             inl time_zone = $'$"{!time_zone_signal}{!time_zone_value}"' : string
00:17:25 verbose #16183 > >             create prefix time_zone
00:17:26 verbose #16184 > >
00:17:26 verbose #16185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:26 verbose #16186 > > //// test
00:17:26 verbose #16187 > >
00:17:26 verbose #16188 > > now () |> to_universal_time |> date_time_guid_from_date_time (test_guid ()) |>
00:17:26 verbose #16189 > > sm'.obj_to_string
00:17:26 verbose #16190 > > |> console.write_line
00:17:29 verbose #16191 > >
00:17:29 verbose #16192 > > ╭─[ 2.94s - stdout ]───────────────────────────────────────────────────────────╮
00:17:29 verbose #16193 > > │ 20240919-1952-2925-2526-200400543210                                         │
00:17:29 verbose #16194 > > │                                                                              │
00:17:29 verbose #16195 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:29 verbose #16196 > >
00:17:29 verbose #16197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:29 verbose #16198 > > //// test
00:17:29 verbose #16199 > > ///! rust -d chrono
00:17:29 verbose #16200 > >
00:17:29 verbose #16201 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:29 verbose #16202 > > - 6i32) (am'.End id)
00:17:29 verbose #16203 > > now ()
00:17:29 verbose #16204 > > |> to_universal_time
00:17:29 verbose #16205 > > |> date_time_guid_from_date_time (test_guid ())
00:17:29 verbose #16206 > > |> sm'.obj_to_string
00:17:29 verbose #16207 > > |> fun s => s |> _assert_eq' $'$"{!s.[[0..29]]}{!suffix}"'
00:17:33 verbose #16208 > >
00:17:33 verbose #16209 > > ╭─[ 4.51s - return value ]─────────────────────────────────────────────────────╮
00:17:33 verbose #16210 > > │ __assert_eq' / actual: "20240919-1952-3360-4904-000000543210" / expected:    │
00:17:33 verbose #16211 > > │ "20240919-1952-3360-4904-000000543210"                                       │
00:17:33 verbose #16212 > > │                                                                              │
00:17:33 verbose #16213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:33 verbose #16214 > >
00:17:33 verbose #16215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:33 verbose #16216 > > //// test
00:17:33 verbose #16217 > > ///! fsharp
00:17:33 verbose #16218 > > ///! rust -d chrono
00:17:33 verbose #16219 > >
00:17:33 verbose #16220 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:33 verbose #16221 > > - 6i32) (am'.End id)
00:17:33 verbose #16222 > > min_value ()
00:17:33 verbose #16223 > > |> specify_date_kind Local
00:17:33 verbose #16224 > > |> date_time_guid_from_date_time (test_guid ())
00:17:33 verbose #16225 > > |> sm'.obj_to_string
00:17:33 verbose #16226 > > |> fun s => s |> _assert_eq'
00:17:33 verbose #16227 > > $'$"00010101-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:17:37 verbose #16228 > >
00:17:37 verbose #16229 > > ╭─[ 3.95s - return value ]─────────────────────────────────────────────────────╮
00:17:37 verbose #16230 > > │ .rs output (rust -d chrono):                                                 │
00:17:37 verbose #16231 > > │ __assert_eq' / actual: "00010101-0000-0000-0000-000000543210" / expected:    │
00:17:37 verbose #16232 > > │ "00010101-0000-0000-0000-000000543210"                                       │
00:17:37 verbose #16233 > > │                                                                              │
00:17:37 verbose #16234 > > │                                                                              │
00:17:37 verbose #16235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #16236 > >
00:17:37 verbose #16237 > > ╭─[ 3.95s - stdout ]───────────────────────────────────────────────────────────╮
00:17:37 verbose #16238 > > │ .fsx output:                                                                 │
00:17:37 verbose #16239 > > │ __assert_eq' / actual: "00010101-0000-0000-0000-000400543210" / expected:    │
00:17:37 verbose #16240 > > │ "00010101-0000-0000-0000-000400543210"                                       │
00:17:37 verbose #16241 > > │                                                                              │
00:17:37 verbose #16242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #16243 > >
00:17:37 verbose #16244 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:37 verbose #16245 > > //// test
00:17:37 verbose #16246 > > ///! fsharp
00:17:37 verbose #16247 > >
00:17:37 verbose #16248 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:37 verbose #16249 > > - 6i32) (am'.End id)
00:17:37 verbose #16250 > > max_value ()
00:17:37 verbose #16251 > > |> specify_date_kind Utc
00:17:37 verbose #16252 > > |> add_days -1
00:17:37 verbose #16253 > > |> date_time_guid_from_date_time (test_guid ())
00:17:37 verbose #16254 > > |> sm'.obj_to_string
00:17:37 verbose #16255 > > |> fun s => s |> _assert_eq
00:17:37 verbose #16256 > > $'$"99991230-2359-5999-9999-9{!s.[[25..29]]}{!suffix}"'
00:17:38 verbose #16257 > >
00:17:38 verbose #16258 > > ╭─[ 789.65ms - stdout ]────────────────────────────────────────────────────────╮
00:17:38 verbose #16259 > > │ __assert_eq / actual: "99991230-2359-5999-9999-900400543210" / expected:     │
00:17:38 verbose #16260 > > │ "99991230-2359-5999-9999-900400543210"                                       │
00:17:38 verbose #16261 > > │                                                                              │
00:17:38 verbose #16262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:38 verbose #16263 > >
00:17:38 verbose #16264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:38 verbose #16265 > > //// test
00:17:38 verbose #16266 > > ///! rust -d chrono
00:17:38 verbose #16267 > >
00:17:38 verbose #16268 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:38 verbose #16269 > > - 6i32) (am'.End id)
00:17:38 verbose #16270 > > max_value ()
00:17:38 verbose #16271 > > |> specify_date_kind Utc
00:17:38 verbose #16272 > > |> add_days -1
00:17:38 verbose #16273 > > |> date_time_guid_from_date_time (test_guid ())
00:17:38 verbose #16274 > > |> sm'.obj_to_string
00:17:38 verbose #16275 > > |> fun s => s |> _assert_eq
00:17:38 verbose #16276 > > $'$"99991230-2359-5999-9999-0{!s.[[25..29]]}{!suffix}"'
00:17:42 verbose #16277 > >
00:17:42 verbose #16278 > > ╭─[ 3.57s - return value ]─────────────────────────────────────────────────────╮
00:17:42 verbose #16279 > > │ __assert_eq / actual: "99991230-2359-5999-9999-000000543210" / expected:     │
00:17:42 verbose #16280 > > │ "99991230-2359-5999-9999-000000543210"                                       │
00:17:42 verbose #16281 > > │                                                                              │
00:17:42 verbose #16282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:42 verbose #16283 > >
00:17:42 verbose #16284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:42 verbose #16285 > > //// test
00:17:42 verbose #16286 > >
00:17:42 verbose #16287 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:42 verbose #16288 > > - 6i32) (am'.End id)
00:17:42 verbose #16289 > > unix_epoch ()
00:17:42 verbose #16290 > > |> specify_date_kind Utc
00:17:42 verbose #16291 > > |> add_days 1
00:17:42 verbose #16292 > > |> date_time_guid_from_date_time (test_guid ())
00:17:42 verbose #16293 > > |> sm'.obj_to_string
00:17:42 verbose #16294 > > |> fun s => s |> _assert_eq
00:17:42 verbose #16295 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:17:42 verbose #16296 > >
00:17:42 verbose #16297 > > ╭─[ 768.05ms - stdout ]────────────────────────────────────────────────────────╮
00:17:42 verbose #16298 > > │ __assert_eq / actual: "19700102-0000-0000-0000-000400543210" / expected:     │
00:17:42 verbose #16299 > > │ "19700102-0000-0000-0000-000400543210"                                       │
00:17:42 verbose #16300 > > │                                                                              │
00:17:42 verbose #16301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:42 verbose #16302 > >
00:17:42 verbose #16303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:42 verbose #16304 > > //// test
00:17:42 verbose #16305 > > ///! rust -d chrono
00:17:42 verbose #16306 > >
00:17:42 verbose #16307 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:17:42 verbose #16308 > > - 6i32) (am'.End id)
00:17:42 verbose #16309 > > unix_epoch ()
00:17:42 verbose #16310 > > |> specify_date_kind Utc
00:17:42 verbose #16311 > > |> add_days 1
00:17:42 verbose #16312 > > |> date_time_guid_from_date_time (test_guid ())
00:17:42 verbose #16313 > > |> sm'.obj_to_string
00:17:42 verbose #16314 > > |> fun s => s |> _assert_eq
00:17:42 verbose #16315 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:17:46 verbose #16316 > >
00:17:46 verbose #16317 > > ╭─[ 3.69s - return value ]─────────────────────────────────────────────────────╮
00:17:46 verbose #16318 > > │ __assert_eq / actual: "19700102-0000-0000-0000-000000543210" / expected:     │
00:17:46 verbose #16319 > > │ "19700102-0000-0000-0000-000000543210"                                       │
00:17:46 verbose #16320 > > │                                                                              │
00:17:46 verbose #16321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:46 verbose #16322 > >
00:17:46 verbose #16323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:46 verbose #16324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:46 verbose #16325 > > │ ### date_time_from_guid                                                      │
00:17:46 verbose #16326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:46 verbose #16327 > >
00:17:46 verbose #16328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:46 verbose #16329 > > inl date_time_from_guid (date_time_guid : date_time_guid) =
00:17:46 verbose #16330 > >     inl date_time_guid = date_time_guid |> sm'.obj_to_string
00:17:46 verbose #16331 > >     inl sm_replace = sm'.replace "-" ""
00:17:46 verbose #16332 > >     run_target_args (fun () => sm_replace) function
00:17:46 verbose #16333 > >         | (Rust _ | TypeScript _) => fun sm_replace =>
00:17:46 verbose #16334 > >             $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm_replace)' :
00:17:46 verbose #16335 > > date_time
00:17:46 verbose #16336 > >         | _ => fun sm_replace => $'System.DateTime.ParseExact
00:17:46 verbose #16337 > > (!date_time_guid.[[..24]] |> !sm_replace, "yyyyMMddHHmmssfffffff", null)' :
00:17:46 verbose #16338 > > date_time
00:17:47 verbose #16339 > >
00:17:47 verbose #16340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:47 verbose #16341 > > //// test
00:17:47 verbose #16342 > >
00:17:47 verbose #16343 > > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")
00:17:47 verbose #16344 > > |> _assert_eq' (min_value ())
00:17:47 verbose #16345 > >
00:17:47 verbose #16346 > > ╭─[ 598.43ms - stdout ]────────────────────────────────────────────────────────╮
00:17:47 verbose #16347 > > │ __assert_eq' / actual: 0001-01-01 12:00:00 AM / expected: 0001-01-01         │
00:17:47 verbose #16348 > > │ 12:00:00 AM                                                                  │
00:17:47 verbose #16349 > > │                                                                              │
00:17:47 verbose #16350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:47 verbose #16351 > >
00:17:47 verbose #16352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:47 verbose #16353 > > //// test
00:17:47 verbose #16354 > >
00:17:47 verbose #16355 > > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()
00:17:47 verbose #16356 > > |> string).[[^10..]]}"')
00:17:47 verbose #16357 > > |> _assert_eq' (max_value ())
00:17:48 verbose #16358 > >
00:17:48 verbose #16359 > > ╭─[ 630.57ms - stdout ]────────────────────────────────────────────────────────╮
00:17:48 verbose #16360 > > │ __assert_eq' / actual: 9999-12-31 11:59:59 PM / expected: 9999-12-31         │
00:17:48 verbose #16361 > > │ 11:59:59 PM                                                                  │
00:17:48 verbose #16362 > > │                                                                              │
00:17:48 verbose #16363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #16364 > >
00:17:48 verbose #16365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:48 verbose #16366 > > //// test
00:17:48 verbose #16367 > >
00:17:48 verbose #16368 > > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()
00:17:48 verbose #16369 > > |> string).[[^10..]]}"')
00:17:48 verbose #16370 > > |> _assert_eq' $'System.DateTime.UnixEpoch'
00:17:48 verbose #16371 > >
00:17:48 verbose #16372 > > ╭─[ 512.21ms - stdout ]────────────────────────────────────────────────────────╮
00:17:48 verbose #16373 > > │ __assert_eq' / actual: 1970-01-01 12:00:00 AM / expected: 1970-01-01         │
00:17:48 verbose #16374 > > │ 12:00:00 AM                                                                  │
00:17:48 verbose #16375 > > │                                                                              │
00:17:48 verbose #16376 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #16377 > >
00:17:48 verbose #16378 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:48 verbose #16379 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:48 verbose #16380 > > │ ### timestamp_guid_from_timestamp                                            │
00:17:48 verbose #16381 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #16382 > >
00:17:48 verbose #16383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:48 verbose #16384 > > inl timestamp_guid_from_timestamp (guid : guid.guid) (timestamp : timestamp) :
00:17:48 verbose #16385 > > timestamp_guid =
00:17:48 verbose #16386 > >     inl guid = guid |> sm'.obj_to_string
00:17:48 verbose #16387 > >     inl timestamp = timestamp |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'
00:17:48 verbose #16388 > >     $'`timestamp_guid
00:17:48 verbose #16389 > > $"{!timestamp.[[0..7]]}-{!timestamp.[[8..11]]}-{!timestamp.[[12..15]]}-{!timesta
00:17:48 verbose #16390 > > mp.[[16..17]]}{!guid.[[21..]]}"'
00:17:49 verbose #16391 > >
00:17:49 verbose #16392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:49 verbose #16393 > > //// test
00:17:49 verbose #16394 > >
00:17:49 verbose #16395 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 0i64)
00:17:49 verbose #16396 > > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:17:49 verbose #16397 > >
00:17:49 verbose #16398 > > ╭─[ 456.56ms - stdout ]────────────────────────────────────────────────────────╮
00:17:49 verbose #16399 > > │ __assert_eq' / actual: 00000000-0000-0000-00dc-ba9876543210 / expected:      │
00:17:49 verbose #16400 > > │ 00000000-0000-0000-00dc-ba9876543210                                         │
00:17:49 verbose #16401 > > │                                                                              │
00:17:49 verbose #16402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:49 verbose #16403 > >
00:17:49 verbose #16404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:49 verbose #16405 > > //// test
00:17:49 verbose #16406 > >
00:17:49 verbose #16407 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 999999999999999999i64)
00:17:49 verbose #16408 > > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>
00:17:49 verbose #16409 > > string).[[^10..]]}"')
00:17:50 verbose #16410 > >
00:17:50 verbose #16411 > > ╭─[ 562.65ms - stdout ]────────────────────────────────────────────────────────╮
00:17:50 verbose #16412 > > │ __assert_eq' / actual: 99999999-9999-9999-99dc-ba9876543210 / expected:      │
00:17:50 verbose #16413 > > │ 99999999-9999-9999-99dc-ba9876543210                                         │
00:17:50 verbose #16414 > > │                                                                              │
00:17:50 verbose #16415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:50 verbose #16416 > >
00:17:50 verbose #16417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:50 verbose #16418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:50 verbose #16419 > > │ ### timestamp_from_guid                                                      │
00:17:50 verbose #16420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:50 verbose #16421 > >
00:17:50 verbose #16422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:50 verbose #16423 > > inl timestamp_from_guid (guid : date_time_guid) : timestamp =
00:17:50 verbose #16424 > >     inl guid = guid |> sm'.obj_to_string
00:17:50 verbose #16425 > >     $'`i64
00:17:50 verbose #16426 > > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'
00:17:50 verbose #16427 > >
00:17:50 verbose #16428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:50 verbose #16429 > > //// test
00:17:50 verbose #16430 > >
00:17:50 verbose #16431 > > timestamp_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:17:50 verbose #16432 > > |> _assert_eq (timestamp 0)
00:17:51 verbose #16433 > >
00:17:51 verbose #16434 > > ╭─[ 488.01ms - stdout ]────────────────────────────────────────────────────────╮
00:17:51 verbose #16435 > > │ __assert_eq / actual: 0L / expected: 0L                                      │
00:17:51 verbose #16436 > > │                                                                              │
00:17:51 verbose #16437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:51 verbose #16438 > >
00:17:51 verbose #16439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:51 verbose #16440 > > //// test
00:17:51 verbose #16441 > >
00:17:51 verbose #16442 > > timestamp_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>
00:17:51 verbose #16443 > > string).[[^14..]]}"')
00:17:51 verbose #16444 > > |> _assert_eq (timestamp 999999999999999999)
00:17:51 verbose #16445 > >
00:17:51 verbose #16446 > > ╭─[ 515.32ms - stdout ]────────────────────────────────────────────────────────╮
00:17:51 verbose #16447 > > │ __assert_eq / actual: 999999999999999999L / expected: 999999999999999999L    │
00:17:51 verbose #16448 > > │                                                                              │
00:17:51 verbose #16449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:51 verbose #16450 > >
00:17:51 verbose #16451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:51 verbose #16452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:51 verbose #16453 > > │ ### new_guid_from_date_time                                                  │
00:17:51 verbose #16454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:51 verbose #16455 > >
00:17:51 verbose #16456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:51 verbose #16457 > > inl new_guid_from_date_time (date_time : date_time) =
00:17:51 verbose #16458 > >     inl guid = guid.new_raw_guid ()
00:17:51 verbose #16459 > >     date_time_guid_from_date_time guid date_time
00:17:52 verbose #16460 > >
00:17:52 verbose #16461 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:52 verbose #16462 > > //// test
00:17:52 verbose #16463 > >
00:17:52 verbose #16464 > > utc_now ()
00:17:52 verbose #16465 > > |> new_guid_from_date_time
00:17:52 verbose #16466 > > |> date_time_from_guid
00:17:52 verbose #16467 > > |> fun date_time => new_time_span date_time (utc_now ()) |> total_seconds |> i32
00:17:52 verbose #16468 > > |> _assert_eq 0
00:17:52 verbose #16469 > >
00:17:52 verbose #16470 > > ╭─[ 775.90ms - stdout ]────────────────────────────────────────────────────────╮
00:17:52 verbose #16471 > > │ __assert_eq / actual: 0 / expected: 0                                        │
00:17:52 verbose #16472 > > │                                                                              │
00:17:52 verbose #16473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:52 verbose #16474 > >
00:17:52 verbose #16475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:52 verbose #16476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:52 verbose #16477 > > │ ### new_guid_from_timestamp                                                  │
00:17:52 verbose #16478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:52 verbose #16479 > >
00:17:52 verbose #16480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:52 verbose #16481 > > inl new_guid_from_timestamp (timestamp : timestamp) =
00:17:52 verbose #16482 > >     inl guid = guid.new_raw_guid ()
00:17:52 verbose #16483 > >     timestamp_guid_from_timestamp guid timestamp
00:17:53 verbose #16484 > >
00:17:53 verbose #16485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:53 verbose #16486 > > //// test
00:17:53 verbose #16487 > >
00:17:53 verbose #16488 > > utc_now ()
00:17:53 verbose #16489 > > |> ticks
00:17:53 verbose #16490 > > |> new_guid_from_timestamp
00:17:53 verbose #16491 > > |> timestamp_from_guid
00:17:53 verbose #16492 > > |> fun (timestamp timestamp) => (timestamp - (utc_now () |> ticks |> fun
00:17:53 verbose #16493 > > (timestamp x) => x)) / 100000i64
00:17:53 verbose #16494 > > |> _assert_eq 0i64
00:17:53 verbose #16495 > >
00:17:53 verbose #16496 > > ╭─[ 490.16ms - stdout ]────────────────────────────────────────────────────────╮
00:17:53 verbose #16497 > > │ __assert_eq / actual: 0L / expected: 0L                                      │
00:17:53 verbose #16498 > > │                                                                              │
00:17:53 verbose #16499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:53 verbose #16500 > >
00:17:53 verbose #16501 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:53 verbose #16502 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:53 verbose #16503 > > │ ## main                                                                      │
00:17:53 verbose #16504 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:53 verbose #16505 > >
00:17:53 verbose #16506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:53 verbose #16507 > > inl main () =
00:17:53 verbose #16508 > >     $'let date_time_guid_from_date_time x = !date_time_guid_from_date_time x' :
00:17:53 verbose #16509 > > ()
00:17:53 verbose #16510 > >     $'let date_time_from_guid x = !date_time_from_guid x' : ()
00:17:53 verbose #16511 > >     $'let timestamp_guid_from_timestamp x = !timestamp_guid_from_timestamp x' :
00:17:53 verbose #16512 > > ()
00:17:53 verbose #16513 > >     $'let timestamp_from_guid x = !timestamp_from_guid x' : ()
00:17:53 verbose #16514 > >     $'let new_guid_from_date_time x = !new_guid_from_date_time x' : ()
00:17:53 verbose #16515 > >     $'let new_guid_from_timestamp x = !new_guid_from_timestamp x' : ()
00:17:53 verbose #16516 > >     $'let format x = !format x' : ()
00:17:53 verbose #16517 > >     $'let format_iso8601 x = !format_iso8601 x' : ()
00:17:55 verbose #16518 > 00:00:57 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46864 }
00:17:55 verbose #16519 > 00:00:57   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:17:55 verbose #16520 >     "nbconvert",
00:17:55 verbose #16521 >     "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb",
00:17:55 verbose #16522 >     "--to",
00:17:55 verbose #16523 >     "html",
00:17:55 verbose #16524 >     "--HTMLExporter.theme=dark",
00:17:55 verbose #16525 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:57 verbose #16526 > 00:01:00 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb to html
00:17:57 verbose #16527 > 00:01:00 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:17:57 verbose #16528 > 00:01:00 verbose #7 !   validate(nb)
00:18:00 verbose #16529 > 00:01:03 verbose #8 ! [NbConvertApp] Writing 411611 bytes to c:\home\git\polyglot\lib\spiral\date_time.dib.html
00:18:01 verbose #16530 > 00:01:04 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:18:01 verbose #16531 > 00:01:04   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:18:01 verbose #16532 > 00:01:04   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:18:01 verbose #16533 >     "-c",
00:18:01 verbose #16534 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:18:01 verbose #16535 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:01 verbose #16536 > 00:01:04 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:01 verbose #16537 > 00:01:04   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:01 verbose #16538 > 00:01:04   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 47572 }
00:18:01   debug #16539 runtime.execute_with_options_async / { exit_code = 0; output_length = 52231 }
00:18:01   debug #18 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3
00:18:01   debug #16540 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:01 verbose #16541 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "3"])) }
00:18:01 verbose #16542 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:18:01 verbose #16543 >     "repl",
00:18:01 verbose #16544 >     "--exit-after-run",
00:18:01 verbose #16545 >     "--run",
00:18:01 verbose #16546 >     "c:/home/git/polyglot/lib/spiral/math.dib",
00:18:01 verbose #16547 >     "--output-path",
00:18:01 verbose #16548 >     "c:/home/git/polyglot/lib/spiral/math.dib.ipynb",
00:18:01 verbose #16549 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/math.dib" --output-path "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:04 verbose #16550 > >
00:18:04 verbose #16551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:04 verbose #16552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:04 verbose #16553 > > │ # math                                                                       │
00:18:04 verbose #16554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:09 verbose #16555 > >
00:18:09 verbose #16556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:09 verbose #16557 > > //// test
00:18:09 verbose #16558 > >
00:18:09 verbose #16559 > > open testing
00:18:11 verbose #16560 > >
00:18:11 verbose #16561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:11 verbose #16562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:11 verbose #16563 > > │ ## math                                                                      │
00:18:11 verbose #16564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:11 verbose #16565 > >
00:18:11 verbose #16566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:11 verbose #16567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:11 verbose #16568 > > │ ### e                                                                        │
00:18:11 verbose #16569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:11 verbose #16570 > >
00:18:11 verbose #16571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:11 verbose #16572 > > inl e () =
00:18:11 verbose #16573 > >     exp 1f64
00:18:12 verbose #16574 > >
00:18:12 verbose #16575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:12 verbose #16576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:12 verbose #16577 > > │ ## square                                                                    │
00:18:12 verbose #16578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:12 verbose #16579 > >
00:18:12 verbose #16580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:12 verbose #16581 > > inl square x =
00:18:12 verbose #16582 > >     x ** 2
00:18:12 verbose #16583 > >
00:18:12 verbose #16584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:12 verbose #16585 > > //// test
00:18:12 verbose #16586 > >
00:18:12 verbose #16587 > > 5f64
00:18:12 verbose #16588 > > |> sqrt
00:18:12 verbose #16589 > > |> square
00:18:12 verbose #16590 > > |> _assert_approx_eq None 5
00:18:13 verbose #16591 > >
00:18:13 verbose #16592 > > ╭─[ 1.30s - stdout ]───────────────────────────────────────────────────────────╮
00:18:13 verbose #16593 > > │ __assert_approx_eq / actual: 5.0 / expected: 5.0                             │
00:18:13 verbose #16594 > > │                                                                              │
00:18:13 verbose #16595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:13 verbose #16596 > >
00:18:13 verbose #16597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:13 verbose #16598 > > //// test
00:18:13 verbose #16599 > >
00:18:13 verbose #16600 > > e () |> square
00:18:13 verbose #16601 > > |> _assert_approx_eq None 7.3890560989306495
00:18:14 verbose #16602 > >
00:18:14 verbose #16603 > > ╭─[ 581.18ms - stdout ]────────────────────────────────────────────────────────╮
00:18:14 verbose #16604 > > │ __assert_approx_eq / actual: 7.389056099 / expected: 7.389056099             │
00:18:14 verbose #16605 > > │                                                                              │
00:18:14 verbose #16606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:14 verbose #16607 > >
00:18:14 verbose #16608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:14 verbose #16609 > > //// test
00:18:14 verbose #16610 > >
00:18:14 verbose #16611 > > 2 * 2 / 0.4f64 |> sqrt
00:18:14 verbose #16612 > > |> _assert_approx_eq None 3.1622776601683795
00:18:14 verbose #16613 > >
00:18:14 verbose #16614 > > ╭─[ 459.72ms - stdout ]────────────────────────────────────────────────────────╮
00:18:14 verbose #16615 > > │ __assert_approx_eq / actual: 3.16227766 / expected: 3.16227766               │
00:18:14 verbose #16616 > > │                                                                              │
00:18:14 verbose #16617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:14 verbose #16618 > >
00:18:14 verbose #16619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:14 verbose #16620 > > //// test
00:18:14 verbose #16621 > >
00:18:14 verbose #16622 > > 2f64 / 3
00:18:14 verbose #16623 > > |> _assert_approx_eq None 0.6666666666666666
00:18:15 verbose #16624 > >
00:18:15 verbose #16625 > > ╭─[ 498.99ms - stdout ]────────────────────────────────────────────────────────╮
00:18:15 verbose #16626 > > │ __assert_approx_eq / actual: 0.6666666667 / expected: 0.6666666667           │
00:18:15 verbose #16627 > > │                                                                              │
00:18:15 verbose #16628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:15 verbose #16629 > >
00:18:15 verbose #16630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:15 verbose #16631 > > //// test
00:18:15 verbose #16632 > >
00:18:15 verbose #16633 > > 2f64 |> log
00:18:15 verbose #16634 > > |> _assert_approx_eq None 0.6931471805599453
00:18:15 verbose #16635 > >
00:18:15 verbose #16636 > > ╭─[ 461.91ms - stdout ]────────────────────────────────────────────────────────╮
00:18:15 verbose #16637 > > │ __assert_approx_eq / actual: 0.6931471806 / expected: 0.6931471806           │
00:18:15 verbose #16638 > > │                                                                              │
00:18:15 verbose #16639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:15 verbose #16640 > >
00:18:15 verbose #16641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:15 verbose #16642 > > //// test
00:18:15 verbose #16643 > >
00:18:15 verbose #16644 > > pi
00:18:15 verbose #16645 > > |> _assert_approx_eq None 3.141592653589793f64
00:18:16 verbose #16646 > >
00:18:16 verbose #16647 > > ╭─[ 515.06ms - stdout ]────────────────────────────────────────────────────────╮
00:18:16 verbose #16648 > > │ __assert_approx_eq / actual: 3.141592654 / expected: 3.141592654             │
00:18:16 verbose #16649 > > │                                                                              │
00:18:16 verbose #16650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:16 verbose #16651 > >
00:18:16 verbose #16652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:16 verbose #16653 > > //// test
00:18:16 verbose #16654 > >
00:18:16 verbose #16655 > > pi |> cos
00:18:16 verbose #16656 > > |> _assert_eq -1f64
00:18:16 verbose #16657 > >
00:18:16 verbose #16658 > > ╭─[ 514.17ms - stdout ]────────────────────────────────────────────────────────╮
00:18:16 verbose #16659 > > │ __assert_eq / actual: -1.0 / expected: -1.0                                  │
00:18:16 verbose #16660 > > │                                                                              │
00:18:16 verbose #16661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:16 verbose #16662 > >
00:18:16 verbose #16663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:16 verbose #16664 > > //// test
00:18:16 verbose #16665 > >
00:18:16 verbose #16666 > > pi
00:18:16 verbose #16667 > > |> cos
00:18:16 verbose #16668 > > |> fun n => n / 2f64
00:18:16 verbose #16669 > > |> _assert_approx_eq None -0.5
00:18:17 verbose #16670 > >
00:18:17 verbose #16671 > > ╭─[ 578.13ms - stdout ]────────────────────────────────────────────────────────╮
00:18:17 verbose #16672 > > │ __assert_approx_eq / actual: -0.5 / expected: -0.5                           │
00:18:17 verbose #16673 > > │                                                                              │
00:18:17 verbose #16674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:17 verbose #16675 > >
00:18:17 verbose #16676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:17 verbose #16677 > > //// test
00:18:17 verbose #16678 > >
00:18:17 verbose #16679 > > pi / 2 |> cos
00:18:17 verbose #16680 > > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:18:17 verbose #16681 > >
00:18:17 verbose #16682 > > ╭─[ 408.01ms - stdout ]────────────────────────────────────────────────────────╮
00:18:17 verbose #16683 > > │ __assert_approx_eq / actual: 6.123233996e-17 / expected: 6.123233996e-17     │
00:18:17 verbose #16684 > > │                                                                              │
00:18:17 verbose #16685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:17 verbose #16686 > >
00:18:17 verbose #16687 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:17 verbose #16688 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:17 verbose #16689 > > │ ## fsharp                                                                    │
00:18:17 verbose #16690 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:17 verbose #16691 > >
00:18:17 verbose #16692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:17 verbose #16693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:17 verbose #16694 > > │ ### atan2                                                                    │
00:18:17 verbose #16695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:17 verbose #16696 > >
00:18:17 verbose #16697 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:17 verbose #16698 > > inl atan2 (y : f64) (x : f64) : f64 =
00:18:17 verbose #16699 > >     $'System.Math.Atan2 (!y, !x)'
00:18:18 verbose #16700 > >
00:18:18 verbose #16701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:18 verbose #16702 > > //// test
00:18:18 verbose #16703 > >
00:18:18 verbose #16704 > > 0 |> atan2 1
00:18:18 verbose #16705 > > |> _assert_eq 1.5707963267948966
00:18:18 verbose #16706 > >
00:18:18 verbose #16707 > > ╭─[ 644.49ms - stdout ]────────────────────────────────────────────────────────╮
00:18:18 verbose #16708 > > │ __assert_eq / actual: 1.570796327 / expected: 1.570796327                    │
00:18:18 verbose #16709 > > │                                                                              │
00:18:18 verbose #16710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:18 verbose #16711 > >
00:18:18 verbose #16712 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:18 verbose #16713 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:18 verbose #16714 > > │ ## floor                                                                     │
00:18:18 verbose #16715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:18 verbose #16716 > >
00:18:18 verbose #16717 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:18 verbose #16718 > > inl floor forall t {float}. (n : t) : t =
00:18:18 verbose #16719 > >     n |> $'floor'
00:18:19 verbose #16720 > >
00:18:19 verbose #16721 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:19 verbose #16722 > > //// test
00:18:19 verbose #16723 > >
00:18:19 verbose #16724 > > 0.6 |> floor
00:18:19 verbose #16725 > > |> _assert_eq 0f64
00:18:19 verbose #16726 > >
00:18:19 verbose #16727 > > ╭─[ 538.53ms - stdout ]────────────────────────────────────────────────────────╮
00:18:19 verbose #16728 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:18:19 verbose #16729 > > │                                                                              │
00:18:19 verbose #16730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:19 verbose #16731 > >
00:18:19 verbose #16732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:19 verbose #16733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:19 verbose #16734 > > │ ## ceil                                                                      │
00:18:19 verbose #16735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:19 verbose #16736 > >
00:18:19 verbose #16737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:19 verbose #16738 > > inl ceil forall t {float}. (n : t) : t =
00:18:19 verbose #16739 > >     n |> $'ceil'
00:18:20 verbose #16740 > >
00:18:20 verbose #16741 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:20 verbose #16742 > > //// test
00:18:20 verbose #16743 > >
00:18:20 verbose #16744 > > 0.6 |> ceil
00:18:20 verbose #16745 > > |> _assert_eq 1f64
00:18:20 verbose #16746 > >
00:18:20 verbose #16747 > > ╭─[ 437.84ms - stdout ]────────────────────────────────────────────────────────╮
00:18:20 verbose #16748 > > │ __assert_eq / actual: 1.0 / expected: 1.0                                    │
00:18:20 verbose #16749 > > │                                                                              │
00:18:20 verbose #16750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:20 verbose #16751 > >
00:18:20 verbose #16752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:20 verbose #16753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:20 verbose #16754 > > │ ## round                                                                     │
00:18:20 verbose #16755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:20 verbose #16756 > >
00:18:20 verbose #16757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:20 verbose #16758 > > inl round forall t {float}. (n : t) : t =
00:18:20 verbose #16759 > >     n |> $'round'
00:18:21 verbose #16760 > >
00:18:21 verbose #16761 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:21 verbose #16762 > > //// test
00:18:21 verbose #16763 > >
00:18:21 verbose #16764 > > 0.5 |> round
00:18:21 verbose #16765 > > |> _assert_eq 0f64
00:18:21 verbose #16766 > >
00:18:21 verbose #16767 > > 1.5 |> round
00:18:21 verbose #16768 > > |> _assert_eq 2f64
00:18:21 verbose #16769 > >
00:18:21 verbose #16770 > > 2.5 |> round
00:18:21 verbose #16771 > > |> _assert_eq 2f64
00:18:21 verbose #16772 > >
00:18:21 verbose #16773 > > 3.5 |> round
00:18:21 verbose #16774 > > |> _assert_eq 4f64
00:18:21 verbose #16775 > >
00:18:21 verbose #16776 > > ╭─[ 493.63ms - stdout ]────────────────────────────────────────────────────────╮
00:18:21 verbose #16777 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:18:21 verbose #16778 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:18:21 verbose #16779 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:18:21 verbose #16780 > > │ __assert_eq / actual: 4.0 / expected: 4.0                                    │
00:18:21 verbose #16781 > > │                                                                              │
00:18:21 verbose #16782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:21 verbose #16783 > >
00:18:21 verbose #16784 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:21 verbose #16785 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:21 verbose #16786 > > │ ## log_base                                                                  │
00:18:21 verbose #16787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:21 verbose #16788 > >
00:18:21 verbose #16789 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:21 verbose #16790 > > inl log_base (new_base : f64) (a : f64) : f64 =
00:18:21 verbose #16791 > >     $'System.Math.Log (!a, !new_base)'
00:18:22 verbose #16792 > >
00:18:22 verbose #16793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #16794 > > //// test
00:18:22 verbose #16795 > >
00:18:22 verbose #16796 > > 100 |> log_base 10
00:18:22 verbose #16797 > > |> _assert_eq 2
00:18:22 verbose #16798 > >
00:18:22 verbose #16799 > > ╭─[ 507.48ms - stdout ]────────────────────────────────────────────────────────╮
00:18:22 verbose #16800 > > │ __assert_eq / actual: 2.0 / expected: 2.0                                    │
00:18:22 verbose #16801 > > │                                                                              │
00:18:22 verbose #16802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:22 verbose #16803 > >
00:18:22 verbose #16804 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:22 verbose #16805 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:22 verbose #16806 > > │ ## round                                                                     │
00:18:22 verbose #16807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:22 verbose #16808 > >
00:18:22 verbose #16809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #16810 > > inl round forall t {float}. (x : t) : t =
00:18:22 verbose #16811 > >     x |> $'round'
00:18:22 verbose #16812 > >
00:18:22 verbose #16813 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #16814 > > //// test
00:18:22 verbose #16815 > >
00:18:22 verbose #16816 > > 0.5 |> round
00:18:22 verbose #16817 > > |> _assert_eq 0f64
00:18:23 verbose #16818 > >
00:18:23 verbose #16819 > > ╭─[ 636.88ms - stdout ]────────────────────────────────────────────────────────╮
00:18:23 verbose #16820 > > │ __assert_eq / actual: 0.0 / expected: 0.0                                    │
00:18:23 verbose #16821 > > │                                                                              │
00:18:23 verbose #16822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:23 verbose #16823 > >
00:18:23 verbose #16824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:23 verbose #16825 > > //// test
00:18:23 verbose #16826 > >
00:18:23 verbose #16827 > > 0.6 |> round
00:18:23 verbose #16828 > > |> _assert_eq 1f64
00:18:24 verbose #16829 > >
00:18:24 verbose #16830 > > ╭─[ 469.44ms - stdout ]────────────────────────────────────────────────────────╮
00:18:24 verbose #16831 > > │ __assert_eq / actual: 1.0 / expected: 1.0                                    │
00:18:24 verbose #16832 > > │                                                                              │
00:18:24 verbose #16833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:24 verbose #16834 > 00:00:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 12563 }
00:18:24 verbose #16835 > 00:00:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:18:24 verbose #16836 >     "nbconvert",
00:18:24 verbose #16837 >     "c:/home/git/polyglot/lib/spiral/math.dib.ipynb",
00:18:24 verbose #16838 >     "--to",
00:18:24 verbose #16839 >     "html",
00:18:24 verbose #16840 >     "--HTMLExporter.theme=dark",
00:18:24 verbose #16841 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:27 verbose #16842 > 00:00:25 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/math.dib.ipynb to html
00:18:27 verbose #16843 > 00:00:25 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:27 verbose #16844 > 00:00:25 verbose #7 !   validate(nb)
00:18:29 verbose #16845 > 00:00:27 verbose #8 ! [NbConvertApp] Writing 304842 bytes to c:\home\git\polyglot\lib\spiral\math.dib.html
00:18:29 verbose #16846 > 00:00:27 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:18:29 verbose #16847 > 00:00:27   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:18:29 verbose #16848 > 00:00:27   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:18:29 verbose #16849 >     "-c",
00:18:29 verbose #16850 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:18:29 verbose #16851 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:30 verbose #16852 > 00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:30 verbose #16853 > 00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:30 verbose #16854 > 00:00:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 13261 }
00:18:30   debug #16855 runtime.execute_with_options_async / { exit_code = 0; output_length = 16489 }
00:18:30   debug #19 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3
00:18:30   debug #16856 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:30 verbose #16857 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "mapm.dib", "--retries", "3"])) }
00:18:30 verbose #16858 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:18:30 verbose #16859 >     "repl",
00:18:30 verbose #16860 >     "--exit-after-run",
00:18:30 verbose #16861 >     "--run",
00:18:30 verbose #16862 >     "c:/home/git/polyglot/lib/spiral/mapm.dib",
00:18:30 verbose #16863 >     "--output-path",
00:18:30 verbose #16864 >     "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb",
00:18:30 verbose #16865 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/mapm.dib" --output-path "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:33 verbose #16866 > >
00:18:33 verbose #16867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:33 verbose #16868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:33 verbose #16869 > > │ # mapm                                                                       │
00:18:33 verbose #16870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:38 verbose #16871 > >
00:18:38 verbose #16872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:38 verbose #16873 > > open rust.rust_operators
00:18:40 verbose #16874 > >
00:18:40 verbose #16875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #16876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #16877 > > │ ## rust                                                                      │
00:18:40 verbose #16878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #16879 > >
00:18:40 verbose #16880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #16881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #16882 > > │ ### hash_map                                                                 │
00:18:40 verbose #16883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #16884 > >
00:18:40 verbose #16885 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #16886 > > nominal hash_map k v =
00:18:40 verbose #16887 > >     `(
00:18:40 verbose #16888 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:40 verbose #16889 > > Fable.Core.Emit(\"std::collections::HashMap<$0, $1>\")>]]\n#endif\ntype
00:18:40 verbose #16890 > > std_collections_HashMap<'K, 'V> = class end"
00:18:40 verbose #16891 > >         $'' : $'std_collections_HashMap<`k, `v>'
00:18:40 verbose #16892 > >     )
00:18:40 verbose #16893 > >
00:18:40 verbose #16894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #16895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #16896 > > │ ### b_tree_map                                                               │
00:18:40 verbose #16897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #16898 > >
00:18:40 verbose #16899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #16900 > > nominal b_tree_map k v =
00:18:40 verbose #16901 > >     `(
00:18:40 verbose #16902 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:40 verbose #16903 > > Fable.Core.Emit(\"std::collections::BTreeMap<$0, $1>\")>]]\n#endif\ntype
00:18:40 verbose #16904 > > std_collections_BTreeMap<'K, 'V> = class end"
00:18:40 verbose #16905 > >         $'' : $'std_collections_BTreeMap<`k, `v>'
00:18:40 verbose #16906 > >     )
00:18:40 verbose #16907 > >
00:18:40 verbose #16908 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:40 verbose #16909 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:40 verbose #16910 > > │ ### new_hash_map                                                             │
00:18:40 verbose #16911 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:40 verbose #16912 > >
00:18:40 verbose #16913 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:40 verbose #16914 > > inl new_hash_map () : hash_map _ _ =
00:18:40 verbose #16915 > >     !\($'"std::collections::HashMap::new()"')
00:18:41 verbose #16916 > >
00:18:41 verbose #16917 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:41 verbose #16918 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:41 verbose #16919 > > │ ### new_b_tree_map                                                           │
00:18:41 verbose #16920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:41 verbose #16921 > >
00:18:41 verbose #16922 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:41 verbose #16923 > > inl new_b_tree_map () : b_tree_map _ _ =
00:18:41 verbose #16924 > >     !\($'"std::collections::BTreeMap::new()"')
00:18:41 verbose #16925 > >
00:18:41 verbose #16926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:41 verbose #16927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:41 verbose #16928 > > │ ### get                                                                      │
00:18:41 verbose #16929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:41 verbose #16930 > >
00:18:41 verbose #16931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:41 verbose #16932 > > inl get forall k v. (key : k) (map : hash_map k v) : optionm'.option' v =
00:18:41 verbose #16933 > >     inl key = join key
00:18:41 verbose #16934 > >     !\\(map, $'"std::collections::HashMap::get(&$0, &!key).map(|x|
00:18:41 verbose #16935 > > x).cloned()"')
00:18:41 verbose #16936 > >
00:18:41 verbose #16937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:41 verbose #16938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:41 verbose #16939 > > │ ### insert                                                                   │
00:18:41 verbose #16940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:41 verbose #16941 > >
00:18:41 verbose #16942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:41 verbose #16943 > > inl insert forall k v. (key : k) (value : v) (map : hash_map k v) :
00:18:41 verbose #16944 > > optionm'.option' v =
00:18:41 verbose #16945 > >     inl key = join key
00:18:41 verbose #16946 > >     !\($'"let mut !map = !map"')
00:18:41 verbose #16947 > >     !\($'"std::collections::HashMap::insert(&mut !map, !key, !value)"')
00:18:42 verbose #16948 > >
00:18:42 verbose #16949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:42 verbose #16950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:42 verbose #16951 > > │ ### map'                                                                     │
00:18:42 verbose #16952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:42 verbose #16953 > >
00:18:42 verbose #16954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:42 verbose #16955 > > inl map' forall k v w. (fn : v -> w) (map : hash_map k v) : hash_map k w =
00:18:42 verbose #16956 > >     !\\((map, fn), $'"$0.into_iter().map(|(k, v)| (k, $1(v))).collect()"')
00:18:42 verbose #16957 > >
00:18:42 verbose #16958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:42 verbose #16959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:42 verbose #16960 > > │ ### hash_map_count                                                           │
00:18:42 verbose #16961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:42 verbose #16962 > >
00:18:42 verbose #16963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:42 verbose #16964 > > inl hash_map_count forall k v. (map : hash_map k v) : i32 =
00:18:42 verbose #16965 > >     !\\(map, $'"$0.count()"')
00:18:43 verbose #16966 > >
00:18:43 verbose #16967 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #16968 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #16969 > > │ ### from_vec                                                                 │
00:18:43 verbose #16970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #16971 > >
00:18:43 verbose #16972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:43 verbose #16973 > > inl from_vec forall k v. (vec : am'.vec (k * v)) : hash_map k v =
00:18:43 verbose #16974 > >     !\($'"std::collections::HashMap::from_iter(!vec)"')
00:18:43 verbose #16975 > >
00:18:43 verbose #16976 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #16977 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #16978 > > │ ### from_vec_pairs                                                           │
00:18:43 verbose #16979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:43 verbose #16980 > >
00:18:43 verbose #16981 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:43 verbose #16982 > > inl from_vec_pairs forall k v. (vec : am'.vec (pair k v)) : hash_map k v =
00:18:43 verbose #16983 > >     !\($'"std::collections::HashMap::from_iter(!vec.iter().map(|x|
00:18:43 verbose #16984 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:18:44 verbose #16985 > >
00:18:44 verbose #16986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:44 verbose #16987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:44 verbose #16988 > > │ ### b_tree_map_from_vec_pairs                                                │
00:18:44 verbose #16989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:44 verbose #16990 > >
00:18:44 verbose #16991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:44 verbose #16992 > > inl b_tree_map_from_vec_pairs forall k v. (vec : am'.vec (pair k v)) :
00:18:44 verbose #16993 > > b_tree_map k v =
00:18:44 verbose #16994 > >     !\($'"std::collections::BTreeMap::from_iter(!vec.iter().map(|x|
00:18:44 verbose #16995 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:18:44 verbose #16996 > >
00:18:44 verbose #16997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:44 verbose #16998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:44 verbose #16999 > > │ ### from_array                                                               │
00:18:44 verbose #17000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:44 verbose #17001 > >
00:18:44 verbose #17002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:44 verbose #17003 > > inl from_array forall k v. (array : array_base (k * v)) : hash_map k v =
00:18:44 verbose #17004 > >     array |> am'.to_vec |> from_vec
00:18:44 verbose #17005 > >
00:18:44 verbose #17006 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:44 verbose #17007 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:44 verbose #17008 > > │ ### from_list                                                                │
00:18:44 verbose #17009 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:44 verbose #17010 > >
00:18:44 verbose #17011 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:44 verbose #17012 > > inl from_list forall k v. (list : list (k * v)) : hash_map k v =
00:18:44 verbose #17013 > >     inl (a list) : _ i32 _ = list |> listm.toArray
00:18:44 verbose #17014 > >     list |> am'.to_vec |> from_vec
00:18:45 verbose #17015 > >
00:18:45 verbose #17016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:45 verbose #17017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:45 verbose #17018 > > │ ### to_vec                                                                   │
00:18:45 verbose #17019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:45 verbose #17020 > >
00:18:45 verbose #17021 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:45 verbose #17022 > > inl to_vec forall k v. (map : hash_map k v) : am'.vec (k * v) =
00:18:45 verbose #17023 > >     !\\(map, $'"$0.into_iter().map(|(k, v)| (k, v)).collect::<Vec<_>>()"')
00:18:45 verbose #17024 > >
00:18:45 verbose #17025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:45 verbose #17026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:45 verbose #17027 > > │ ## fsharp                                                                    │
00:18:45 verbose #17028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:45 verbose #17029 > >
00:18:45 verbose #17030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:45 verbose #17031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:45 verbose #17032 > > │ ### map                                                                      │
00:18:45 verbose #17033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:45 verbose #17034 > >
00:18:45 verbose #17035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:45 verbose #17036 > > nominal map k v = $'Map<`k, `v>'
00:18:46 verbose #17037 > >
00:18:46 verbose #17038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:46 verbose #17039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:46 verbose #17040 > > │ ### item                                                                     │
00:18:46 verbose #17041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:46 verbose #17042 > >
00:18:46 verbose #17043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:46 verbose #17044 > > inl item forall k v. (k : k) (map : map k v) : v =
00:18:46 verbose #17045 > >     $'!map.[[!k]]'
00:18:46 verbose #17046 > >
00:18:46 verbose #17047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:46 verbose #17048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:46 verbose #17049 > > │ ### of_array                                                                 │
00:18:46 verbose #17050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:46 verbose #17051 > >
00:18:46 verbose #17052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:46 verbose #17053 > > inl of_array forall k v. (array : a _ (k * v)) : map k v =
00:18:46 verbose #17054 > >     $'!array |> Array.map (fun (struct (a, b)) -> a, b) |> Map.ofArray'
00:18:47 verbose #17055 > 00:00:16 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10516 }
00:18:47 verbose #17056 > 00:00:16   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:18:47 verbose #17057 >     "nbconvert",
00:18:47 verbose #17058 >     "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb",
00:18:47 verbose #17059 >     "--to",
00:18:47 verbose #17060 >     "html",
00:18:47 verbose #17061 >     "--HTMLExporter.theme=dark",
00:18:47 verbose #17062 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:49 verbose #17063 > 00:00:19 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb to html
00:18:49 verbose #17064 > 00:00:19 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:49 verbose #17065 > 00:00:19 verbose #7 !   validate(nb)
00:18:51 verbose #17066 > 00:00:21 verbose #8 ! [NbConvertApp] Writing 301082 bytes to c:\home\git\polyglot\lib\spiral\mapm.dib.html
00:18:52 verbose #17067 > 00:00:21 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:18:52 verbose #17068 > 00:00:21   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:18:52 verbose #17069 > 00:00:21   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:18:52 verbose #17070 >     "-c",
00:18:52 verbose #17071 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:18:52 verbose #17072 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:52 verbose #17073 > 00:00:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:52 verbose #17074 > 00:00:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:52 verbose #17075 > 00:00:22   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11214 }
00:18:52   debug #17076 runtime.execute_with_options_async / { exit_code = 0; output_length = 14252 }
00:18:52   debug #20 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3
00:18:52   debug #17077 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:52 verbose #17078 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "optionm'.dib", "--retries", "3"])) }
00:18:52 verbose #17079 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:18:52 verbose #17080 >     "repl",
00:18:52 verbose #17081 >     "--exit-after-run",
00:18:52 verbose #17082 >     "--run",
00:18:52 verbose #17083 >     "c:/home/git/polyglot/lib/spiral/optionm'.dib",
00:18:52 verbose #17084 >     "--output-path",
00:18:52 verbose #17085 >     "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb",
00:18:52 verbose #17086 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/optionm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:55 verbose #17087 > >
00:18:55 verbose #17088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:55 verbose #17089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:55 verbose #17090 > > │ # optionm'                                                                   │
00:18:55 verbose #17091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:00 verbose #17092 > >
00:19:00 verbose #17093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:00 verbose #17094 > > open rust
00:19:00 verbose #17095 > > open rust_operators
00:19:02 verbose #17096 > >
00:19:02 verbose #17097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:02 verbose #17098 > > //// test
00:19:02 verbose #17099 > >
00:19:02 verbose #17100 > > open testing
00:19:03 verbose #17101 > >
00:19:03 verbose #17102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:03 verbose #17103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:03 verbose #17104 > > │ ## optionm'                                                                  │
00:19:03 verbose #17105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:03 verbose #17106 > >
00:19:03 verbose #17107 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:03 verbose #17108 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:03 verbose #17109 > > │ ### default_value                                                            │
00:19:03 verbose #17110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:03 verbose #17111 > >
00:19:03 verbose #17112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:03 verbose #17113 > > inl default_value d =
00:19:03 verbose #17114 > >     optionm.defaultWith d
00:19:03 verbose #17115 > >
00:19:03 verbose #17116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:03 verbose #17117 > > //// test
00:19:03 verbose #17118 > >
00:19:03 verbose #17119 > > None
00:19:03 verbose #17120 > > |> default_value 3i32
00:19:03 verbose #17121 > > |> _assert_eq 3i32
00:19:04 verbose #17122 > >
00:19:04 verbose #17123 > > ╭─[ 1.41s - stdout ]───────────────────────────────────────────────────────────╮
00:19:04 verbose #17124 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:19:04 verbose #17125 > > │                                                                              │
00:19:04 verbose #17126 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:04 verbose #17127 > >
00:19:04 verbose #17128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:04 verbose #17129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:04 verbose #17130 > > │ ### (/??)                                                                    │
00:19:04 verbose #17131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:04 verbose #17132 > >
00:19:04 verbose #17133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:04 verbose #17134 > > inl (/??) a b =
00:19:04 verbose #17135 > >     a |> default_value b
00:19:05 verbose #17136 > >
00:19:05 verbose #17137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:05 verbose #17138 > > //// test
00:19:05 verbose #17139 > >
00:19:05 verbose #17140 > > None /?? 3i32
00:19:05 verbose #17141 > > |> _assert_eq 3i32
00:19:05 verbose #17142 > >
00:19:05 verbose #17143 > > ╭─[ 379.79ms - stdout ]────────────────────────────────────────────────────────╮
00:19:05 verbose #17144 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:19:05 verbose #17145 > > │                                                                              │
00:19:05 verbose #17146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:05 verbose #17147 > >
00:19:05 verbose #17148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:05 verbose #17149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:05 verbose #17150 > > │ ### default_with                                                             │
00:19:05 verbose #17151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:05 verbose #17152 > >
00:19:05 verbose #17153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:05 verbose #17154 > > inl default_with fn = function
00:19:05 verbose #17155 > >     | Some x => x
00:19:05 verbose #17156 > >     | None => fn ()
00:19:06 verbose #17157 > >
00:19:06 verbose #17158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:06 verbose #17159 > > //// test
00:19:06 verbose #17160 > >
00:19:06 verbose #17161 > > None
00:19:06 verbose #17162 > > |> default_with fun () => 3i32
00:19:06 verbose #17163 > > |> _assert_eq 3i32
00:19:06 verbose #17164 > >
00:19:06 verbose #17165 > > ╭─[ 499.60ms - stdout ]────────────────────────────────────────────────────────╮
00:19:06 verbose #17166 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:19:06 verbose #17167 > > │                                                                              │
00:19:06 verbose #17168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:06 verbose #17169 > >
00:19:06 verbose #17170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:06 verbose #17171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:06 verbose #17172 > > │ ### choose                                                                   │
00:19:06 verbose #17173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:06 verbose #17174 > >
00:19:06 verbose #17175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:06 verbose #17176 > > inl choose fn a b =
00:19:06 verbose #17177 > >     match a, b with
00:19:06 verbose #17178 > >     | Some x, Some y => fn x y |> Some
00:19:06 verbose #17179 > >     | _ => None
00:19:07 verbose #17180 > >
00:19:07 verbose #17181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:07 verbose #17182 > > //// test
00:19:07 verbose #17183 > >
00:19:07 verbose #17184 > > (Some 2i32, Some 3)
00:19:07 verbose #17185 > > ||> choose (+)
00:19:07 verbose #17186 > > |> _assert_eq (Some 5)
00:19:08 verbose #17187 > >
00:19:08 verbose #17188 > > ╭─[ 1.05s - stdout ]───────────────────────────────────────────────────────────╮
00:19:08 verbose #17189 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:19:08 verbose #17190 > > │                                                                              │
00:19:08 verbose #17191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:08 verbose #17192 > >
00:19:08 verbose #17193 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:08 verbose #17194 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:08 verbose #17195 > > │ ### iter                                                                     │
00:19:08 verbose #17196 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:08 verbose #17197 > >
00:19:08 verbose #17198 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:08 verbose #17199 > > inl iter fn = function
00:19:08 verbose #17200 > >     | Some x => fn x
00:19:08 verbose #17201 > >     | None => ()
00:19:08 verbose #17202 > >
00:19:08 verbose #17203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:08 verbose #17204 > > //// test
00:19:08 verbose #17205 > >
00:19:08 verbose #17206 > > inl n = mut 1i32
00:19:08 verbose #17207 > > inl fn =
00:19:08 verbose #17208 > >     fun n' =>
00:19:08 verbose #17209 > >         n <- *n + n'
00:19:08 verbose #17210 > > Some 1i32 |> iter fn
00:19:08 verbose #17211 > > None |> iter fn
00:19:08 verbose #17212 > > *n
00:19:08 verbose #17213 > > |> _assert_eq 2i32
00:19:09 verbose #17214 > >
00:19:09 verbose #17215 > > ╭─[ 714.60ms - stdout ]────────────────────────────────────────────────────────╮
00:19:09 verbose #17216 > > │ __assert_eq / actual: 2 / expected: 2                                        │
00:19:09 verbose #17217 > > │                                                                              │
00:19:09 verbose #17218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:09 verbose #17219 > >
00:19:09 verbose #17220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:09 verbose #17221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:09 verbose #17222 > > │ ### flatten                                                                  │
00:19:09 verbose #17223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:09 verbose #17224 > >
00:19:09 verbose #17225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:09 verbose #17226 > > inl flatten x =
00:19:09 verbose #17227 > >     match x with
00:19:09 verbose #17228 > >     | Some (Some x) => Some x
00:19:09 verbose #17229 > >     | _ => None
00:19:09 verbose #17230 > >
00:19:09 verbose #17231 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:09 verbose #17232 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:09 verbose #17233 > > │ ## fsharp                                                                    │
00:19:09 verbose #17234 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:09 verbose #17235 > >
00:19:09 verbose #17236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:09 verbose #17237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:09 verbose #17238 > > │ ### option'                                                                  │
00:19:09 verbose #17239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:09 verbose #17240 > >
00:19:09 verbose #17241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:09 verbose #17242 > > nominal option' t = $"backend_switch `({ Fsharp : $"`t option"; Python : t })"
00:19:10 verbose #17243 > >
00:19:10 verbose #17244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:10 verbose #17245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:10 verbose #17246 > > │ ### none'                                                                    │
00:19:10 verbose #17247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:10 verbose #17248 > >
00:19:10 verbose #17249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:10 verbose #17250 > > inl none' forall t. () : option' t =
00:19:10 verbose #17251 > >     $'None'
00:19:10 verbose #17252 > >
00:19:10 verbose #17253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:10 verbose #17254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:10 verbose #17255 > > │ ### some'                                                                    │
00:19:10 verbose #17256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:10 verbose #17257 > >
00:19:10 verbose #17258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:10 verbose #17259 > > inl some' forall t. (x : t) : option' t =
00:19:10 verbose #17260 > >     backend_switch {
00:19:10 verbose #17261 > >         Fsharp = fun () => $'Some !x ' : option' t
00:19:10 verbose #17262 > >         Python = fun () => $'!x # some\' ' : option' t
00:19:10 verbose #17263 > >     }
00:19:11 verbose #17264 > >
00:19:11 verbose #17265 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:11 verbose #17266 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:11 verbose #17267 > > │ ### default_value'                                                           │
00:19:11 verbose #17268 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:11 verbose #17269 > >
00:19:11 verbose #17270 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:11 verbose #17271 > > inl default_value' forall t. (value : t) (x : option' t) : t =
00:19:11 verbose #17272 > >     backend_switch {
00:19:11 verbose #17273 > >         Fsharp = fun () => $'!x |> Option.defaultValue !value ' : t
00:19:11 verbose #17274 > >         Python = fun () => $'!x or !value ' : t
00:19:11 verbose #17275 > >     }
00:19:11 verbose #17276 > >
00:19:11 verbose #17277 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:11 verbose #17278 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:11 verbose #17279 > > │ ### value'                                                                   │
00:19:11 verbose #17280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:11 verbose #17281 > >
00:19:11 verbose #17282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:11 verbose #17283 > > inl value' forall t. (x : option' t) : t =
00:19:11 verbose #17284 > >     backend_switch {
00:19:11 verbose #17285 > >         Fsharp = fun () => $'!x |> Option.value' : t
00:19:11 verbose #17286 > >         Python = fun () => $'!x ' : t
00:19:11 verbose #17287 > >     }
00:19:12 verbose #17288 > >
00:19:12 verbose #17289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:12 verbose #17290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:12 verbose #17291 > > │ ### box                                                                      │
00:19:12 verbose #17292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:12 verbose #17293 > >
00:19:12 verbose #17294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:12 verbose #17295 > > inl box forall t. (x : option t) : option' t =
00:19:12 verbose #17296 > >     // x
00:19:12 verbose #17297 > >     // |> optionm.map some'
00:19:12 verbose #17298 > >     // |> default_with none'
00:19:12 verbose #17299 > >     match x with
00:19:12 verbose #17300 > >     | Some x => some' x
00:19:12 verbose #17301 > >     | None => none' ()
00:19:12 verbose #17302 > >
00:19:12 verbose #17303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:12 verbose #17304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:12 verbose #17305 > > │ ### map                                                                      │
00:19:12 verbose #17306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:12 verbose #17307 > >
00:19:12 verbose #17308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:12 verbose #17309 > > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:19:12 verbose #17310 > >     backend_switch {
00:19:12 verbose #17311 > >         Fsharp = fun () =>
00:19:12 verbose #17312 > >             inl result : option' u = none' ()
00:19:12 verbose #17313 > >             $'let _!result = ref !result '
00:19:12 verbose #17314 > >             inl set_result (result : ref (option' u)) (x : option' u) : ref
00:19:12 verbose #17315 > > (option' u) =
00:19:12 verbose #17316 > >                 result |> ref_set_value x
00:19:12 verbose #17317 > >             inl set_result = set_result $'_!result ' |> dyn
00:19:12 verbose #17318 > >             fun () =>
00:19:12 verbose #17319 > >                 $'match !x with'
00:19:12 verbose #17320 > >                 $'| Some x -> ('
00:19:12 verbose #17321 > >                 $'(fun () ->'
00:19:12 verbose #17322 > >                 $'(fun () ->'
00:19:12 verbose #17323 > >                 inl x = dyn $'x'
00:19:12 verbose #17324 > >                 x |> fn |> emit_unit
00:19:12 verbose #17325 > >                 $')'
00:19:12 verbose #17326 > >                 $'|> fun x -> x () |> Some'
00:19:12 verbose #17327 > >                 $') () ) | None -> None'
00:19:12 verbose #17328 > >                 $'|> !set_result |> ignore'
00:19:12 verbose #17329 > >             |> exec_unit
00:19:12 verbose #17330 > >             $'_!result.Value ' : option' u
00:19:12 verbose #17331 > >         Python = fun () =>
00:19:12 verbose #17332 > >             if x =. none' ()
00:19:12 verbose #17333 > >             then none' ()
00:19:12 verbose #17334 > >             else fn $'!x ' |> fun x => $'!x ' : option' u
00:19:12 verbose #17335 > >     }
00:19:13 verbose #17336 > >
00:19:13 verbose #17337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:13 verbose #17338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:13 verbose #17339 > > │ ### map''                                                                    │
00:19:13 verbose #17340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:13 verbose #17341 > >
00:19:13 verbose #17342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:13 verbose #17343 > > inl map'' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:19:13 verbose #17344 > >     backend_switch {
00:19:13 verbose #17345 > >         Fsharp = fun () => $'!x |> Option.map !fn ' : option' u
00:19:13 verbose #17346 > >         Python = fun () => x |> map fn
00:19:13 verbose #17347 > >     }
00:19:13 verbose #17348 > >
00:19:13 verbose #17349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:13 verbose #17350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:13 verbose #17351 > > │ ### unbox                                                                    │
00:19:13 verbose #17352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:13 verbose #17353 > >
00:19:13 verbose #17354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:13 verbose #17355 > > inl unbox forall t. (x : option' t) : option t =
00:19:13 verbose #17356 > >     x |> map Some |> default_value' None
00:19:13 verbose #17357 > >     // inl some x : option t = Some x
00:19:13 verbose #17358 > >     // inl some = join some
00:19:13 verbose #17359 > >     // inl none : option t = None
00:19:13 verbose #17360 > >     // $'!x |> Option.map !some |> Option.defaultValue !none '
00:19:13 verbose #17361 > >
00:19:13 verbose #17362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:13 verbose #17363 > > //// test
00:19:13 verbose #17364 > > ///! fsharp
00:19:13 verbose #17365 > > ///! cuda
00:19:13 verbose #17366 > > ///! rust
00:19:13 verbose #17367 > > ///! typescript
00:19:13 verbose #17368 > > ///! python
00:19:13 verbose #17369 > >
00:19:13 verbose #17370 > > inl x = Some 3i32
00:19:13 verbose #17371 > > inl y : option i32 = None
00:19:13 verbose #17372 > > inl x' = x |> box |> unbox
00:19:13 verbose #17373 > > inl y' = y |> box |> map id |> unbox
00:19:13 verbose #17374 > > (x', y') |> _assert_eq' (x, y)
00:19:20 verbose #17375 > >
00:19:20 verbose #17376 > > ╭─[ 7.03s - return value ]─────────────────────────────────────────────────────╮
00:19:20 verbose #17377 > > │ .py output (Cuda):                                                           │
00:19:20 verbose #17378 > > │ __assert_eq' / actual: (US0_0(v0=3), US0_1()) / expected: (US0_0(v0=3),      │
00:19:20 verbose #17379 > > │ US0_1())                                                                     │
00:19:20 verbose #17380 > > │                                                                              │
00:19:20 verbose #17381 > > │ .rs output:                                                                  │
00:19:20 verbose #17382 > > │ __assert_eq' / actual: (US0_0(3), US0_1) / expected: (US0_0(3), US0_1)       │
00:19:20 verbose #17383 > > │                                                                              │
00:19:20 verbose #17384 > > │ .ts output:                                                                  │
00:19:20 verbose #17385 > > │ __assert_eq' / actual: US0_0 3,US0_1 / expected: US0_0 3,US0_1               │
00:19:20 verbose #17386 > > │                                                                              │
00:19:20 verbose #17387 > > │ .py output:                                                                  │
00:19:20 verbose #17388 > > │ __assert_eq' / actual: (US0_0 3, US0_1) / expected: (US0_0 3, US0_1)         │
00:19:20 verbose #17389 > > │                                                                              │
00:19:20 verbose #17390 > > │                                                                              │
00:19:20 verbose #17391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 verbose #17392 > >
00:19:20 verbose #17393 > > ╭─[ 7.03s - stdout ]───────────────────────────────────────────────────────────╮
00:19:20 verbose #17394 > > │ .fsx output:                                                                 │
00:19:20 verbose #17395 > > │ __assert_eq' / actual: struct (US0_0 3, US0_1) / expected: struct (US0_0 3,  │
00:19:20 verbose #17396 > > │ US0_1)                                                                       │
00:19:20 verbose #17397 > > │                                                                              │
00:19:20 verbose #17398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 verbose #17399 > >
00:19:20 verbose #17400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:20 verbose #17401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:20 verbose #17402 > > │ ### of_obj                                                                   │
00:19:20 verbose #17403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:20 verbose #17404 > >
00:19:20 verbose #17405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:20 verbose #17406 > > inl of_obj forall t. (x : t) : option' t =
00:19:20 verbose #17407 > >     backend_switch {
00:19:20 verbose #17408 > >         Fsharp = fun () =>
00:19:20 verbose #17409 > >             $'let mutable _!x = None'
00:19:20 verbose #17410 > >             $'#if \!FABLE_COMPILER && \!WASM && \!CONTRACT'
00:19:20 verbose #17411 > >             ((x |> $'Option.ofObj') : option' t) |> emit_unit
00:19:20 verbose #17412 > >             $'#else'
00:19:20 verbose #17413 > >             $'Some !x '
00:19:20 verbose #17414 > >             $'#endif'
00:19:20 verbose #17415 > >             $'|> fun x -> _!x <- Some x'
00:19:20 verbose #17416 > >             $'match _!x with Some x -> x | None -> failwith "optionm\'.of_obj
00:19:20 verbose #17417 > > _!x=None"' : option' t
00:19:20 verbose #17418 > >         Python = fun () =>
00:19:20 verbose #17419 > >             $'!x ' : option' t
00:19:20 verbose #17420 > >     }
00:19:21 verbose #17421 > >
00:19:21 verbose #17422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:21 verbose #17423 > > //// test
00:19:21 verbose #17424 > > ///! fsharp
00:19:21 verbose #17425 > > ///! cuda
00:19:21 verbose #17426 > > ////! rust // attempted to zero-initialize type `alloc::sync::Arc<dyn
00:19:21 verbose #17427 > > core::any::Any>`, which is invalid
00:19:21 verbose #17428 > > ///! typescript
00:19:21 verbose #17429 > > ///! python
00:19:21 verbose #17430 > >
00:19:21 verbose #17431 > > null ()
00:19:21 verbose #17432 > > |> of_obj
00:19:21 verbose #17433 > > |> unbox
00:19:21 verbose #17434 > > |> _assert_eq (None : option string)
00:19:25 verbose #17435 > >
00:19:25 verbose #17436 > > ╭─[ 4.17s - return value ]─────────────────────────────────────────────────────╮
00:19:25 verbose #17437 > > │ .py output (Cuda):                                                           │
00:19:25 verbose #17438 > > │ __assert_eq / actual: US0_1() / expected: US0_1()                            │
00:19:25 verbose #17439 > > │                                                                              │
00:19:25 verbose #17440 > > │ .ts output:                                                                  │
00:19:25 verbose #17441 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:19:25 verbose #17442 > > │                                                                              │
00:19:25 verbose #17443 > > │ .py output:                                                                  │
00:19:25 verbose #17444 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:19:25 verbose #17445 > > │                                                                              │
00:19:25 verbose #17446 > > │                                                                              │
00:19:25 verbose #17447 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:25 verbose #17448 > >
00:19:25 verbose #17449 > > ╭─[ 4.17s - stdout ]───────────────────────────────────────────────────────────╮
00:19:25 verbose #17450 > > │ .fsx output:                                                                 │
00:19:25 verbose #17451 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:19:25 verbose #17452 > > │                                                                              │
00:19:25 verbose #17453 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:25 verbose #17454 > >
00:19:25 verbose #17455 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:25 verbose #17456 > > //// test
00:19:25 verbose #17457 > > ///! fsharp
00:19:25 verbose #17458 > > ///! cuda
00:19:25 verbose #17459 > > ///! rust
00:19:25 verbose #17460 > > ///! typescript
00:19:25 verbose #17461 > > ///! python
00:19:25 verbose #17462 > >
00:19:25 verbose #17463 > > ""
00:19:25 verbose #17464 > > |> of_obj
00:19:25 verbose #17465 > > |> unbox
00:19:25 verbose #17466 > > |> _assert_eq' (Some "")
00:19:30 verbose #17467 > >
00:19:30 verbose #17468 > > ╭─[ 5.34s - return value ]─────────────────────────────────────────────────────╮
00:19:30 verbose #17469 > > │ .py output (Cuda):                                                           │
00:19:30 verbose #17470 > > │ __assert_eq' / actual: US0_0(v0='') / expected: US0_0(v0='')                 │
00:19:30 verbose #17471 > > │                                                                              │
00:19:30 verbose #17472 > > │ .rs output:                                                                  │
00:19:30 verbose #17473 > > │ __assert_eq' / actual: US0_0("") / expected: US0_0("")                       │
00:19:30 verbose #17474 > > │                                                                              │
00:19:30 verbose #17475 > > │ .ts output:                                                                  │
00:19:30 verbose #17476 > > │ __assert_eq' / actual: US0_0  / expected: US0_0                              │
00:19:30 verbose #17477 > > │                                                                              │
00:19:30 verbose #17478 > > │ .py output:                                                                  │
00:19:30 verbose #17479 > > │ __assert_eq' / actual: US0_0 "" / expected: US0_0 ""                         │
00:19:30 verbose #17480 > > │                                                                              │
00:19:30 verbose #17481 > > │                                                                              │
00:19:30 verbose #17482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #17483 > >
00:19:30 verbose #17484 > > ╭─[ 5.34s - stdout ]───────────────────────────────────────────────────────────╮
00:19:30 verbose #17485 > > │ .fsx output:                                                                 │
00:19:30 verbose #17486 > > │ __assert_eq' / actual: US0_0 "" / expected: US0_0 ""                         │
00:19:30 verbose #17487 > > │                                                                              │
00:19:30 verbose #17488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #17489 > >
00:19:30 verbose #17490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:30 verbose #17491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:30 verbose #17492 > > │ ### flatten'                                                                 │
00:19:30 verbose #17493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #17494 > >
00:19:30 verbose #17495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #17496 > > inl flatten' x =
00:19:30 verbose #17497 > >     x
00:19:30 verbose #17498 > >     |> unbox
00:19:30 verbose #17499 > >     |> optionm.map unbox
00:19:30 verbose #17500 > >     |> flatten
00:19:31 verbose #17501 > >
00:19:31 verbose #17502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:31 verbose #17503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:31 verbose #17504 > > │ ## rust                                                                      │
00:19:31 verbose #17505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #17506 > >
00:19:31 verbose #17507 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:31 verbose #17508 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:31 verbose #17509 > > │ ### try'                                                                     │
00:19:31 verbose #17510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #17511 > >
00:19:31 verbose #17512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #17513 > > inl try' forall t. (x : option' t) : t =
00:19:31 verbose #17514 > >     !\\(x, $'"$0?"')
00:19:31 verbose #17515 > >
00:19:31 verbose #17516 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:31 verbose #17517 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:31 verbose #17518 > > │ ### map'                                                                     │
00:19:31 verbose #17519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #17520 > >
00:19:31 verbose #17521 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #17522 > > inl map' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:19:31 verbose #17523 > >     (!\\(x, $'"true; let _optionm_map_ = $0.map(|x| { //"') : bool) |> ignore
00:19:31 verbose #17524 > >     inl result = fn !\($'"x"')
00:19:31 verbose #17525 > >     (!\\(result, $'"true; $0 })"') : bool) |> ignore
00:19:31 verbose #17526 > >     !\($'"_optionm_map_"')
00:19:32 verbose #17527 > >
00:19:32 verbose #17528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:32 verbose #17529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:32 verbose #17530 > > │ ### unwrap                                                                   │
00:19:32 verbose #17531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #17532 > >
00:19:32 verbose #17533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #17534 > > inl unwrap forall t. (x : option' t) : t =
00:19:32 verbose #17535 > >     !\\(x, $'"$0.unwrap()"')
00:19:32 verbose #17536 > >
00:19:32 verbose #17537 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:32 verbose #17538 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:32 verbose #17539 > > │ ### take                                                                     │
00:19:32 verbose #17540 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #17541 > >
00:19:32 verbose #17542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #17543 > > inl take forall t. (x : option' t) : option' t =
00:19:32 verbose #17544 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:19:32 verbose #17545 > >     !\\(x, $'"Option::take(&mut $0)"')
00:19:32 verbose #17546 > >
00:19:32 verbose #17547 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:32 verbose #17548 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:32 verbose #17549 > > │ ### take_ref                                                                 │
00:19:32 verbose #17550 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #17551 > >
00:19:32 verbose #17552 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #17553 > > inl take_ref forall t. (x : rust.ref (option' t)) : option' t =
00:19:32 verbose #17554 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:19:32 verbose #17555 > >     !\\(x, $'"Option::take(&mut $0)"')
00:19:33 verbose #17556 > >
00:19:33 verbose #17557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:33 verbose #17558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:33 verbose #17559 > > │ ### take_ref_mut                                                             │
00:19:33 verbose #17560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:33 verbose #17561 > >
00:19:33 verbose #17562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #17563 > > inl take_ref_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' t =
00:19:33 verbose #17564 > >     !\\(x, $'"Option::take($0)"')
00:19:33 verbose #17565 > >
00:19:33 verbose #17566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:33 verbose #17567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:33 verbose #17568 > > │ ### cloned                                                                   │
00:19:33 verbose #17569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:33 verbose #17570 > >
00:19:33 verbose #17571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #17572 > > inl cloned forall t. (x : option' (rust.ref t)) : option' t =
00:19:33 verbose #17573 > >     !\\(x, $'"$0.cloned()"')
00:19:34 verbose #17574 > >
00:19:34 verbose #17575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #17576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #17577 > > │ ### as_ref                                                                   │
00:19:34 verbose #17578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #17579 > >
00:19:34 verbose #17580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #17581 > > inl as_ref forall t. (x : rust.ref (option' t)) : option' (rust.ref t) =
00:19:34 verbose #17582 > >     !\\(x, $'"$0.as_ref()"')
00:19:34 verbose #17583 > >
00:19:34 verbose #17584 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #17585 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #17586 > > │ ### as_mut                                                                   │
00:19:34 verbose #17587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #17588 > >
00:19:34 verbose #17589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #17590 > > inl as_mut forall t. (x : rust.ref (rust.mut' (option' t))) : option' (rust.ref
00:19:34 verbose #17591 > > (rust.mut' t)) =
00:19:34 verbose #17592 > >     !\\(x, $'"$0.as_mut()"')
00:19:34 verbose #17593 > >
00:19:34 verbose #17594 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #17595 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #17596 > > │ ### unwrap_or                                                                │
00:19:34 verbose #17597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #17598 > >
00:19:34 verbose #17599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #17600 > > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:19:34 verbose #17601 > >     !\($'"!x.unwrap_or(!def)"')
00:19:35 verbose #17602 > >
00:19:35 verbose #17603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:35 verbose #17604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:35 verbose #17605 > > │ ### and_then                                                                 │
00:19:35 verbose #17606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #17607 > >
00:19:35 verbose #17608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #17609 > > inl and_then forall t u. (fn : t -> option' u) (x : option' t) : option' u =
00:19:35 verbose #17610 > >     !\\((x, fn), $'"$0.and_then(|x| $1(x))"')
00:19:35 verbose #17611 > >
00:19:35 verbose #17612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:35 verbose #17613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:35 verbose #17614 > > │ ### rc_upgrade                                                               │
00:19:35 verbose #17615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #17616 > >
00:19:35 verbose #17617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #17618 > > inl rc_upgrade forall t. (x : rust.weak_rc t) : option' (rust.rc t) =
00:19:35 verbose #17619 > >     !\\(x, $'"std::rc::Weak::upgrade(&$0)"')
00:19:36 verbose #17620 > >
00:19:36 verbose #17621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:36 verbose #17622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:36 verbose #17623 > > │ ### rc_into_inner                                                            │
00:19:36 verbose #17624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:36 verbose #17625 > >
00:19:36 verbose #17626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #17627 > > inl rc_into_inner forall t. (x : rust.rc t) : option' t =
00:19:36 verbose #17628 > >     !\\(x, $'"std::rc::Rc::into_inner($0)"')
00:19:36 verbose #17629 > >
00:19:36 verbose #17630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #17631 > > //// test
00:19:36 verbose #17632 > > ///! rust
00:19:36 verbose #17633 > >
00:19:36 verbose #17634 > > rust.new_rc 0i32
00:19:36 verbose #17635 > > |> rc_into_inner
00:19:36 verbose #17636 > > |> unbox
00:19:36 verbose #17637 > > |> _assert_eq' (Some 0i32)
00:19:39 verbose #17638 > >
00:19:39 verbose #17639 > > ╭─[ 3.29s - return value ]─────────────────────────────────────────────────────╮
00:19:39 verbose #17640 > > │ __assert_eq' / actual: US0_0(0) / expected: US0_0(0)                         │
00:19:39 verbose #17641 > > │                                                                              │
00:19:39 verbose #17642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:40 verbose #17643 > 00:00:47 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 27043 }
00:19:40 verbose #17644 > 00:00:47   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:19:40 verbose #17645 >     "nbconvert",
00:19:40 verbose #17646 >     "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb",
00:19:40 verbose #17647 >     "--to",
00:19:40 verbose #17648 >     "html",
00:19:40 verbose #17649 >     "--HTMLExporter.theme=dark",
00:19:40 verbose #17650 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:42 verbose #17651 > 00:00:50 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb to html
00:19:42 verbose #17652 > 00:00:50 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:19:42 verbose #17653 > 00:00:50 verbose #7 !   validate(nb)
00:19:45 verbose #17654 > 00:00:52 verbose #8 ! [NbConvertApp] Writing 345572 bytes to c:\home\git\polyglot\lib\spiral\optionm'.dib.html
00:19:45 verbose #17655 > 00:00:52 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:19:45 verbose #17656 > 00:00:52   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:19:45 verbose #17657 > 00:00:52   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:19:45 verbose #17658 >     "-c",
00:19:45 verbose #17659 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:19:45 verbose #17660 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:45 verbose #17661 > 00:00:53 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:19:45 verbose #17662 > 00:00:53   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:19:45 verbose #17663 > 00:00:53   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 27749 }
00:19:45   debug #17664 runtime.execute_with_options_async / { exit_code = 0; output_length = 31559 }
00:19:45   debug #21 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3
00:19:45   debug #17665 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:45 verbose #17666 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "listm'.dib", "--retries", "3"])) }
00:19:45 verbose #17667 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:19:45 verbose #17668 >     "repl",
00:19:45 verbose #17669 >     "--exit-after-run",
00:19:45 verbose #17670 >     "--run",
00:19:45 verbose #17671 >     "c:/home/git/polyglot/lib/spiral/listm'.dib",
00:19:45 verbose #17672 >     "--output-path",
00:19:45 verbose #17673 >     "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb",
00:19:45 verbose #17674 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/listm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:19:48 verbose #17675 > >
00:19:48 verbose #17676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:48 verbose #17677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:48 verbose #17678 > > │ # listm'                                                                     │
00:19:48 verbose #17679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:53 verbose #17680 > >
00:19:53 verbose #17681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:53 verbose #17682 > > //// test
00:19:53 verbose #17683 > >
00:19:53 verbose #17684 > > open testing
00:19:55 verbose #17685 > >
00:19:55 verbose #17686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:55 verbose #17687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:55 verbose #17688 > > │ ## listm'                                                                    │
00:19:55 verbose #17689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:55 verbose #17690 > >
00:19:55 verbose #17691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:55 verbose #17692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:55 verbose #17693 > > │ ### append                                                                   │
00:19:55 verbose #17694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:55 verbose #17695 > >
00:19:55 verbose #17696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:55 verbose #17697 > > instance append list t =
00:19:55 verbose #17698 > >     listm.append
00:19:56 verbose #17699 > >
00:19:56 verbose #17700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:56 verbose #17701 > > //// test
00:19:56 verbose #17702 > >
00:19:56 verbose #17703 > > [[ "a"; "b" ]] ++ [[ "c"; "d" ]]
00:19:56 verbose #17704 > > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:19:57 verbose #17705 > >
00:19:57 verbose #17706 > > ╭─[ 1.82s - stdout ]───────────────────────────────────────────────────────────╮
00:19:57 verbose #17707 > > │ __assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:19:57 verbose #17708 > > │ UH0_0)))) / expected: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:19:57 verbose #17709 > > │ UH0_0))))                                                                    │
00:19:57 verbose #17710 > > │                                                                              │
00:19:57 verbose #17711 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:57 verbose #17712 > >
00:19:57 verbose #17713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:57 verbose #17714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:57 verbose #17715 > > │ ### collect                                                                  │
00:19:57 verbose #17716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:57 verbose #17717 > >
00:19:57 verbose #17718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:57 verbose #17719 > > inl collect forall t r. (fn : t -> list r) (items : list t) : list r =
00:19:57 verbose #17720 > >     items
00:19:57 verbose #17721 > >     |> listm.map fn
00:19:57 verbose #17722 > >     |> listm.fold (++) [[]]
00:19:58 verbose #17723 > >
00:19:58 verbose #17724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:58 verbose #17725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:58 verbose #17726 > > │ ### init_series                                                              │
00:19:58 verbose #17727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:58 verbose #17728 > >
00:19:58 verbose #17729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:58 verbose #17730 > > inl init_series start end inc =
00:19:58 verbose #17731 > >     inl total : f64 = conv ((end - start) / inc) + 1
00:19:58 verbose #17732 > >     listm.init total (conv >> (*) inc >> (+) start)
00:19:58 verbose #17733 > >
00:19:58 verbose #17734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:58 verbose #17735 > > //// test
00:19:58 verbose #17736 > >
00:19:58 verbose #17737 > > init_series 0 1 0.5
00:19:58 verbose #17738 > > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:19:59 verbose #17739 > >
00:19:59 verbose #17740 > > ╭─[ 522.06ms - stdout ]────────────────────────────────────────────────────────╮
00:19:59 verbose #17741 > > │ __assert_eq / actual: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0))) /         │
00:19:59 verbose #17742 > > │ expected: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0)))                       │
00:19:59 verbose #17743 > > │                                                                              │
00:19:59 verbose #17744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #17745 > >
00:19:59 verbose #17746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:59 verbose #17747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:59 verbose #17748 > > │ ### try_item                                                                 │
00:19:59 verbose #17749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #17750 > >
00:19:59 verbose #17751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:59 verbose #17752 > > inl rec try_item i = function
00:19:59 verbose #17753 > >     | Cons (x, _) when i = 0 => Some x
00:19:59 verbose #17754 > >     | Cons (_, xs) => try_item (i - 1) xs
00:19:59 verbose #17755 > >     | Nil => None
00:19:59 verbose #17756 > >
00:19:59 verbose #17757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:59 verbose #17758 > > //// test
00:19:59 verbose #17759 > >
00:19:59 verbose #17760 > > listm.init 10i32 id
00:19:59 verbose #17761 > > |> try_item 9i32
00:19:59 verbose #17762 > > |> _assert_eq (Some 9)
00:20:00 verbose #17763 > >
00:20:00 verbose #17764 > > ╭─[ 480.62ms - stdout ]────────────────────────────────────────────────────────╮
00:20:00 verbose #17765 > > │ __assert_eq / actual: US0_0 9 / expected: US0_0 9                            │
00:20:00 verbose #17766 > > │                                                                              │
00:20:00 verbose #17767 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #17768 > >
00:20:00 verbose #17769 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #17770 > > //// test
00:20:00 verbose #17771 > >
00:20:00 verbose #17772 > > listm.init 10i32 id
00:20:00 verbose #17773 > > |> try_item 10i32
00:20:00 verbose #17774 > > |> _assert_eq None
00:20:00 verbose #17775 > >
00:20:00 verbose #17776 > > ╭─[ 469.42ms - stdout ]────────────────────────────────────────────────────────╮
00:20:00 verbose #17777 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:20:00 verbose #17778 > > │                                                                              │
00:20:00 verbose #17779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #17780 > >
00:20:00 verbose #17781 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:00 verbose #17782 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:00 verbose #17783 > > │ ### item                                                                     │
00:20:00 verbose #17784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:00 verbose #17785 > >
00:20:00 verbose #17786 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #17787 > > inl item i =
00:20:00 verbose #17788 > >     try_item i >> optionm.value
00:20:00 verbose #17789 > >
00:20:00 verbose #17790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:00 verbose #17791 > > //// test
00:20:00 verbose #17792 > >
00:20:00 verbose #17793 > > listm.init 10i32 id
00:20:00 verbose #17794 > > |> item 9i32
00:20:00 verbose #17795 > > |> _assert_eq 9
00:20:01 verbose #17796 > >
00:20:01 verbose #17797 > > ╭─[ 572.89ms - stdout ]────────────────────────────────────────────────────────╮
00:20:01 verbose #17798 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:20:01 verbose #17799 > > │                                                                              │
00:20:01 verbose #17800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:01 verbose #17801 > >
00:20:01 verbose #17802 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:01 verbose #17803 > > //// test
00:20:01 verbose #17804 > >
00:20:01 verbose #17805 > > fun () =>
00:20:01 verbose #17806 > >     listm.init 10i32 id
00:20:01 verbose #17807 > >     |> item 10i32
00:20:01 verbose #17808 > >     |> ignore
00:20:01 verbose #17809 > > |> _throws
00:20:01 verbose #17810 > > |> optionm.map sm'.format_exception
00:20:01 verbose #17811 > > |> _assert_eq (Some "System.Exception: Option does not have a value.")
00:20:02 verbose #17812 > >
00:20:02 verbose #17813 > > ╭─[ 746.82ms - stdout ]────────────────────────────────────────────────────────╮
00:20:02 verbose #17814 > > │ __assert_eq / actual: US1_0 "System.Exception: Option does not have a        │
00:20:02 verbose #17815 > > │ value." / expected: US1_0 "System.Exception: Option does not have a value."  │
00:20:02 verbose #17816 > > │                                                                              │
00:20:02 verbose #17817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #17818 > >
00:20:02 verbose #17819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:02 verbose #17820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:02 verbose #17821 > > │ ### try_item_                                                                │
00:20:02 verbose #17822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #17823 > >
00:20:02 verbose #17824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:02 verbose #17825 > > let rec try_item_ i = function
00:20:02 verbose #17826 > >     | Cons (x, _) when i = 0 => Some x
00:20:02 verbose #17827 > >     | Cons (_, xs) => try_item_ (i - 1) xs
00:20:02 verbose #17828 > >     | Nil => None
00:20:02 verbose #17829 > >
00:20:02 verbose #17830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:02 verbose #17831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:02 verbose #17832 > > │ ### item_                                                                    │
00:20:02 verbose #17833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:02 verbose #17834 > >
00:20:02 verbose #17835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:02 verbose #17836 > > inl item_ i =
00:20:02 verbose #17837 > >     try_item_ i >> optionm.value
00:20:03 verbose #17838 > >
00:20:03 verbose #17839 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:03 verbose #17840 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:03 verbose #17841 > > │ ### sum                                                                      │
00:20:03 verbose #17842 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:03 verbose #17843 > >
00:20:03 verbose #17844 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:03 verbose #17845 > > inl sum list =
00:20:03 verbose #17846 > >     list |> listm.fold (+) 0
00:20:03 verbose #17847 > >
00:20:03 verbose #17848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:03 verbose #17849 > > //// test
00:20:03 verbose #17850 > >
00:20:03 verbose #17851 > > listm.init 10i32 id
00:20:03 verbose #17852 > > |> sum
00:20:03 verbose #17853 > > |> _assert_eq 45
00:20:04 verbose #17854 > >
00:20:04 verbose #17855 > > ╭─[ 464.39ms - stdout ]────────────────────────────────────────────────────────╮
00:20:04 verbose #17856 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:20:04 verbose #17857 > > │                                                                              │
00:20:04 verbose #17858 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:04 verbose #17859 > >
00:20:04 verbose #17860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:04 verbose #17861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:04 verbose #17862 > > │ ### unzip                                                                    │
00:20:04 verbose #17863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:04 verbose #17864 > >
00:20:04 verbose #17865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:04 verbose #17866 > > inl unzip list =
00:20:04 verbose #17867 > >     (([[]], [[]]), list)
00:20:04 verbose #17868 > >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:20:04 verbose #17869 > >         x :: acc_x, y :: acc_y
00:20:04 verbose #17870 > >     |> fun x, y =>
00:20:04 verbose #17871 > >         x |> listm.rev, y |> listm.rev
00:20:04 verbose #17872 > >
00:20:04 verbose #17873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:04 verbose #17874 > > //// test
00:20:04 verbose #17875 > >
00:20:04 verbose #17876 > > listm.init 10i32 id
00:20:04 verbose #17877 > > |> listm.map (fun x => x, x)
00:20:04 verbose #17878 > > |> unzip
00:20:04 verbose #17879 > > |> fun x, y =>
00:20:04 verbose #17880 > >     x |> sum
00:20:04 verbose #17881 > >     |> _assert_eq 45
00:20:04 verbose #17882 > >
00:20:04 verbose #17883 > >     y |> sum
00:20:04 verbose #17884 > >     |> _assert_eq 45
00:20:05 verbose #17885 > >
00:20:05 verbose #17886 > > ╭─[ 475.19ms - stdout ]────────────────────────────────────────────────────────╮
00:20:05 verbose #17887 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:20:05 verbose #17888 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:20:05 verbose #17889 > > │                                                                              │
00:20:05 verbose #17890 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:05 verbose #17891 > >
00:20:05 verbose #17892 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:05 verbose #17893 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:05 verbose #17894 > > │ ### try_index_of                                                             │
00:20:05 verbose #17895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:05 verbose #17896 > >
00:20:05 verbose #17897 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:05 verbose #17898 > > inl try_index_of item list =
00:20:05 verbose #17899 > >     inl rec loop i = function
00:20:05 verbose #17900 > >         | [[]] => None
00:20:05 verbose #17901 > >         | x :: xs =>
00:20:05 verbose #17902 > >             if x = item
00:20:05 verbose #17903 > >             then Some i
00:20:05 verbose #17904 > >             else loop (i + 1) xs
00:20:05 verbose #17905 > >     loop 0 list
00:20:05 verbose #17906 > >
00:20:05 verbose #17907 > > inl index_of item =
00:20:05 verbose #17908 > >     try_index_of item >> optionm.value
00:20:05 verbose #17909 > >
00:20:05 verbose #17910 > > inl try_index_of_ item list =
00:20:05 verbose #17911 > >     let rec loop i = function
00:20:05 verbose #17912 > >         | [[]] => None
00:20:05 verbose #17913 > >         | x :: xs =>
00:20:05 verbose #17914 > >             if x = item
00:20:05 verbose #17915 > >             then Some i
00:20:05 verbose #17916 > >             else loop (i + 1) xs
00:20:05 verbose #17917 > >     loop 0 list
00:20:05 verbose #17918 > >
00:20:05 verbose #17919 > > inl index_of_ item =
00:20:05 verbose #17920 > >     try_index_of_ item >> optionm.value
00:20:05 verbose #17921 > >
00:20:05 verbose #17922 > > inl try_index_of__ item list =
00:20:05 verbose #17923 > >     inl i = mut 0
00:20:05 verbose #17924 > >     inl list = mut list
00:20:05 verbose #17925 > >     inl result = mut None
00:20:05 verbose #17926 > >     let rec loop () =
00:20:05 verbose #17927 > >         match *list with
00:20:05 verbose #17928 > >         | [[]] => result <- None
00:20:05 verbose #17929 > >         | x :: xs =>
00:20:05 verbose #17930 > >             if x = item
00:20:05 verbose #17931 > >             then result <- Some *i
00:20:05 verbose #17932 > >             else
00:20:05 verbose #17933 > >                 i <- *i + 1
00:20:05 verbose #17934 > >                 list <- xs
00:20:05 verbose #17935 > >                 loop ()
00:20:05 verbose #17936 > >     loop ()
00:20:05 verbose #17937 > >     *result
00:20:05 verbose #17938 > >
00:20:05 verbose #17939 > > inl index_of__ item =
00:20:05 verbose #17940 > >     try_index_of__ item >> optionm.value
00:20:05 verbose #17941 > >
00:20:05 verbose #17942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:05 verbose #17943 > > //// test
00:20:05 verbose #17944 > >
00:20:05 verbose #17945 > > listm.init 10i32 id
00:20:05 verbose #17946 > > |> index_of 5i32
00:20:05 verbose #17947 > > |> _assert_eq 5i32
00:20:05 verbose #17948 > >
00:20:05 verbose #17949 > > ╭─[ 441.80ms - stdout ]────────────────────────────────────────────────────────╮
00:20:05 verbose #17950 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:20:05 verbose #17951 > > │                                                                              │
00:20:05 verbose #17952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:05 verbose #17953 > >
00:20:05 verbose #17954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:05 verbose #17955 > > //// test
00:20:05 verbose #17956 > >
00:20:05 verbose #17957 > > listm.init 10i32 id
00:20:05 verbose #17958 > > |> try_index_of 10i32
00:20:05 verbose #17959 > > |> _assert_eq (None : option i32)
00:20:06 verbose #17960 > >
00:20:06 verbose #17961 > > ╭─[ 482.02ms - stdout ]────────────────────────────────────────────────────────╮
00:20:06 verbose #17962 > > │ __assert_eq / actual: US0_1 / expected: US0_1                                │
00:20:06 verbose #17963 > > │                                                                              │
00:20:06 verbose #17964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:06 verbose #17965 > >
00:20:06 verbose #17966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:06 verbose #17967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:06 verbose #17968 > > │ ### try_find                                                                 │
00:20:06 verbose #17969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:06 verbose #17970 > >
00:20:06 verbose #17971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:06 verbose #17972 > > inl try_find fn list =
00:20:06 verbose #17973 > >     inl rec loop = function
00:20:06 verbose #17974 > >         | [[]] => None
00:20:06 verbose #17975 > >         | x :: xs =>
00:20:06 verbose #17976 > >             if fn x
00:20:06 verbose #17977 > >             then Some x
00:20:06 verbose #17978 > >             else loop xs
00:20:06 verbose #17979 > >     loop list
00:20:06 verbose #17980 > >
00:20:06 verbose #17981 > > inl try_find_ fn list =
00:20:06 verbose #17982 > >     let rec loop = function
00:20:06 verbose #17983 > >         | [[]] => None
00:20:06 verbose #17984 > >         | x :: xs =>
00:20:06 verbose #17985 > >             if fn x
00:20:06 verbose #17986 > >             then Some x
00:20:06 verbose #17987 > >             else loop xs
00:20:06 verbose #17988 > >     loop list
00:20:06 verbose #17989 > >
00:20:06 verbose #17990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:06 verbose #17991 > > //// test
00:20:06 verbose #17992 > >
00:20:06 verbose #17993 > > listm.init 10i32 id
00:20:06 verbose #17994 > > |> try_find ((=) 5i32)
00:20:06 verbose #17995 > > |> _assert_eq (Some 5i32)
00:20:07 verbose #17996 > >
00:20:07 verbose #17997 > > ╭─[ 455.10ms - stdout ]────────────────────────────────────────────────────────╮
00:20:07 verbose #17998 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:20:07 verbose #17999 > > │                                                                              │
00:20:07 verbose #18000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:07 verbose #18001 > >
00:20:07 verbose #18002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #18003 > > inl find x =
00:20:07 verbose #18004 > >     try_find x >> optionm.value
00:20:07 verbose #18005 > >
00:20:07 verbose #18006 > > inl find_ x =
00:20:07 verbose #18007 > >     try_find_ x >> optionm.value
00:20:07 verbose #18008 > >
00:20:07 verbose #18009 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #18010 > > //// test
00:20:07 verbose #18011 > >
00:20:07 verbose #18012 > > listm.init 10i32 id
00:20:07 verbose #18013 > > |> find ((=) 5i32)
00:20:07 verbose #18014 > > |> _assert_eq 5i32
00:20:08 verbose #18015 > >
00:20:08 verbose #18016 > > ╭─[ 418.39ms - stdout ]────────────────────────────────────────────────────────╮
00:20:08 verbose #18017 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:20:08 verbose #18018 > > │                                                                              │
00:20:08 verbose #18019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #18020 > >
00:20:08 verbose #18021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:08 verbose #18022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:08 verbose #18023 > > │ ### choose                                                                   │
00:20:08 verbose #18024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #18025 > >
00:20:08 verbose #18026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:08 verbose #18027 > > inl choose f l =
00:20:08 verbose #18028 > >     (l, [[]])
00:20:08 verbose #18029 > >     ||> listm.foldBack fun x acc =>
00:20:08 verbose #18030 > >         match f x with
00:20:08 verbose #18031 > >         | Some y => y :: acc
00:20:08 verbose #18032 > >         | None => acc
00:20:08 verbose #18033 > >
00:20:08 verbose #18034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:08 verbose #18035 > > //// test
00:20:08 verbose #18036 > >
00:20:08 verbose #18037 > > listm.init 10i32 id
00:20:08 verbose #18038 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:20:08 verbose #18039 > > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:20:09 verbose #18040 > >
00:20:09 verbose #18041 > > ╭─[ 537.70ms - stdout ]────────────────────────────────────────────────────────╮
00:20:09 verbose #18042 > > │ __assert_eq / actual: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,      │
00:20:09 verbose #18043 > > │ UH0_0))))) / expected: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,     │
00:20:09 verbose #18044 > > │ UH0_0)))))                                                                   │
00:20:09 verbose #18045 > > │                                                                              │
00:20:09 verbose #18046 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #18047 > >
00:20:09 verbose #18048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 verbose #18049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 verbose #18050 > > │ ### filter                                                                   │
00:20:09 verbose #18051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #18052 > >
00:20:09 verbose #18053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 verbose #18054 > > inl filter forall t. (fn : t -> bool) (list : list t) : list t =
00:20:09 verbose #18055 > >     (list, Nil)
00:20:09 verbose #18056 > >     ||> listm.foldBack fun x acc =>
00:20:09 verbose #18057 > >         if fn x then x :: acc else acc
00:20:09 verbose #18058 > >
00:20:09 verbose #18059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:09 verbose #18060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:09 verbose #18061 > > │ ### zip_with                                                                 │
00:20:09 verbose #18062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:09 verbose #18063 > >
00:20:09 verbose #18064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:09 verbose #18065 > > inl zip_with fn xs ys =
00:20:09 verbose #18066 > >     inl rec loop acc xs ys =
00:20:09 verbose #18067 > >         match xs, ys with
00:20:09 verbose #18068 > >         | Cons (x, xs), Cons (y, ys) =>
00:20:09 verbose #18069 > >             loop (fn x y :: acc) xs ys
00:20:09 verbose #18070 > >         | _ => listm.rev acc
00:20:09 verbose #18071 > >     loop [[]] xs ys
00:20:09 verbose #18072 > >
00:20:09 verbose #18073 > > inl zip_with_ fn xs ys =
00:20:09 verbose #18074 > >     let rec loop acc xs ys =
00:20:09 verbose #18075 > >         match xs, ys with
00:20:09 verbose #18076 > >         | Cons (x, xs), Cons (y, ys) =>
00:20:09 verbose #18077 > >             loop (fn x y :: acc) xs ys
00:20:09 verbose #18078 > >         | _ => listm.rev acc
00:20:09 verbose #18079 > >     loop [[]] xs ys
00:20:10 verbose #18080 > >
00:20:10 verbose #18081 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 verbose #18082 > > //// test
00:20:10 verbose #18083 > >
00:20:10 verbose #18084 > > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:20:10 verbose #18085 > > ||> zip_with (+)
00:20:10 verbose #18086 > > |> _assert_eq [[ 5; 7; 9 ]]
00:20:10 verbose #18087 > >
00:20:10 verbose #18088 > > ╭─[ 509.16ms - stdout ]────────────────────────────────────────────────────────╮
00:20:10 verbose #18089 > > │ __assert_eq / actual: UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))) / expected:     │
00:20:10 verbose #18090 > > │ UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0)))                                       │
00:20:10 verbose #18091 > > │                                                                              │
00:20:10 verbose #18092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:10 verbose #18093 > >
00:20:10 verbose #18094 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:10 verbose #18095 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:10 verbose #18096 > > │ ### zip                                                                      │
00:20:10 verbose #18097 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:10 verbose #18098 > >
00:20:10 verbose #18099 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:10 verbose #18100 > > inl zip xs ys =
00:20:10 verbose #18101 > >     zip_with pair xs ys
00:20:10 verbose #18102 > >
00:20:10 verbose #18103 > > inl zip_ xs ys =
00:20:10 verbose #18104 > >     zip_with_ pair xs ys
00:20:11 verbose #18105 > >
00:20:11 verbose #18106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:11 verbose #18107 > > //// test
00:20:11 verbose #18108 > >
00:20:11 verbose #18109 > > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:20:11 verbose #18110 > > ||> zip
00:20:11 verbose #18111 > > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:20:11 verbose #18112 > >
00:20:11 verbose #18113 > > ╭─[ 510.52ms - stdout ]────────────────────────────────────────────────────────╮
00:20:11 verbose #18114 > > │ __assert_eq / actual: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0))) /      │
00:20:11 verbose #18115 > > │ expected: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0)))                    │
00:20:11 verbose #18116 > > │                                                                              │
00:20:11 verbose #18117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:11 verbose #18118 > >
00:20:11 verbose #18119 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:11 verbose #18120 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:11 verbose #18121 > > │ ### indexed                                                                  │
00:20:11 verbose #18122 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:11 verbose #18123 > >
00:20:11 verbose #18124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:11 verbose #18125 > > inl indexed list =
00:20:11 verbose #18126 > >     (([[]], 0), list)
00:20:11 verbose #18127 > >     ||> listm.fold fun (acc, i) x =>
00:20:11 verbose #18128 > >         (i, x) :: acc, i + 1
00:20:11 verbose #18129 > >     |> fst
00:20:11 verbose #18130 > >     |> listm.rev
00:20:12 verbose #18131 > >
00:20:12 verbose #18132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:12 verbose #18133 > > //// test
00:20:12 verbose #18134 > >
00:20:12 verbose #18135 > > listm.init 5i32 ((*) 2)
00:20:12 verbose #18136 > > |> indexed
00:20:12 verbose #18137 > > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:20:12 verbose #18138 > >
00:20:12 verbose #18139 > > ╭─[ 690.07ms - stdout ]────────────────────────────────────────────────────────╮
00:20:12 verbose #18140 > > │ __assert_eq / actual: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4, UH0_1 (3, 6,    │
00:20:12 verbose #18141 > > │ UH0_1 (4, 8, UH0_0))))) / expected: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4,   │
00:20:12 verbose #18142 > > │ UH0_1 (3, 6, UH0_1 (4, 8, UH0_0)))))                                         │
00:20:12 verbose #18143 > > │                                                                              │
00:20:12 verbose #18144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:12 verbose #18145 > >
00:20:12 verbose #18146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:12 verbose #18147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:12 verbose #18148 > > │ ### group_by                                                                 │
00:20:12 verbose #18149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:12 verbose #18150 > >
00:20:12 verbose #18151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:12 verbose #18152 > > inl group_by fn list =
00:20:12 verbose #18153 > >     (list, [[]])
00:20:12 verbose #18154 > >     ||> listm.foldBack fun x acc =>
00:20:12 verbose #18155 > >         inl xk = fn x
00:20:12 verbose #18156 > >         inl found, new_acc =
00:20:12 verbose #18157 > >             ((false, [[]]), acc)
00:20:12 verbose #18158 > >             ||> listm.fold fun (found, acc') (k, xs) =>
00:20:12 verbose #18159 > >                 if k = xk
00:20:12 verbose #18160 > >                 then true, (k, x :: xs) :: acc'
00:20:12 verbose #18161 > >                 else found, (k, xs) :: acc'
00:20:12 verbose #18162 > >         if found
00:20:12 verbose #18163 > >         then new_acc
00:20:12 verbose #18164 > >         else (xk, [[ x ]]) :: new_acc
00:20:13 verbose #18165 > >
00:20:13 verbose #18166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:13 verbose #18167 > > //// test
00:20:13 verbose #18168 > >
00:20:13 verbose #18169 > > listm.init 10i32 id
00:20:13 verbose #18170 > > |> group_by (fun x => x % 2 = 0)
00:20:13 verbose #18171 > > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:20:13 verbose #18172 > >
00:20:13 verbose #18173 > > ╭─[ 640.14ms - stdout ]────────────────────────────────────────────────────────╮
00:20:13 verbose #18174 > > │ __assert_eq / actual: UH1_1                                                  │
00:20:13 verbose #18175 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:20:13 verbose #18176 > > │    UH1_1                                                                     │
00:20:13 verbose #18177 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:20:13 verbose #18178 > > │ UH1_0)) / expected: UH1_1                                                    │
00:20:13 verbose #18179 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:20:13 verbose #18180 > > │    UH1_1                                                                     │
00:20:13 verbose #18181 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:20:13 verbose #18182 > > │ UH1_0))                                                                      │
00:20:13 verbose #18183 > > │                                                                              │
00:20:13 verbose #18184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:13 verbose #18185 > >
00:20:13 verbose #18186 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:13 verbose #18187 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:13 verbose #18188 > > │ ### forall'                                                                  │
00:20:13 verbose #18189 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:13 verbose #18190 > >
00:20:13 verbose #18191 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:13 verbose #18192 > > inl forall' fn (head :: tail) =
00:20:13 verbose #18193 > >     (true, tail)
00:20:13 verbose #18194 > >     ||> listm.fold fun acc x =>
00:20:13 verbose #18195 > >         acc && x = head
00:20:14 verbose #18196 > >
00:20:14 verbose #18197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:14 verbose #18198 > > //// test
00:20:14 verbose #18199 > >
00:20:14 verbose #18200 > > [[ 1i32; 1; 1; 1; 1 ]]
00:20:14 verbose #18201 > > |> forall' ((=) 1i32)
00:20:14 verbose #18202 > > |> _assert_eq true
00:20:14 verbose #18203 > >
00:20:14 verbose #18204 > > ╭─[ 474.48ms - stdout ]────────────────────────────────────────────────────────╮
00:20:14 verbose #18205 > > │ __assert_eq / actual: true / expected: true                                  │
00:20:14 verbose #18206 > > │                                                                              │
00:20:14 verbose #18207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:14 verbose #18208 > >
00:20:14 verbose #18209 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:14 verbose #18210 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:14 verbose #18211 > > │ ### last                                                                     │
00:20:14 verbose #18212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:14 verbose #18213 > >
00:20:14 verbose #18214 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:14 verbose #18215 > > inl last list =
00:20:14 verbose #18216 > >     list
00:20:14 verbose #18217 > >     |> listm.rev
00:20:14 verbose #18218 > >     |> item 0i32
00:20:15 verbose #18219 > >
00:20:15 verbose #18220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:15 verbose #18221 > > //// test
00:20:15 verbose #18222 > >
00:20:15 verbose #18223 > > listm.init 10i32 id
00:20:15 verbose #18224 > > |> last
00:20:15 verbose #18225 > > |> _assert_eq 9
00:20:15 verbose #18226 > >
00:20:15 verbose #18227 > > ╭─[ 466.26ms - stdout ]────────────────────────────────────────────────────────╮
00:20:15 verbose #18228 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:20:15 verbose #18229 > > │                                                                              │
00:20:15 verbose #18230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:15 verbose #18231 > >
00:20:15 verbose #18232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:15 verbose #18233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:15 verbose #18234 > > │ ### try_pick                                                                 │
00:20:15 verbose #18235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:15 verbose #18236 > >
00:20:15 verbose #18237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:15 verbose #18238 > > inl try_pick fn list =
00:20:15 verbose #18239 > >     inl rec body fn = function
00:20:15 verbose #18240 > >         | [[]] => None
00:20:15 verbose #18241 > >         | x :: xs =>
00:20:15 verbose #18242 > >             match fn x with
00:20:15 verbose #18243 > >             | Some y => Some y
00:20:15 verbose #18244 > >             | None => loop xs
00:20:15 verbose #18245 > >     and inl loop list =
00:20:15 verbose #18246 > >         if var_is list |> not
00:20:15 verbose #18247 > >         then body fn list
00:20:15 verbose #18248 > >         else
00:20:15 verbose #18249 > >             inl fn = join fn
00:20:15 verbose #18250 > >             inl list = dyn list
00:20:15 verbose #18251 > >             join body fn list
00:20:15 verbose #18252 > >     loop list
00:20:16 verbose #18253 > >
00:20:16 verbose #18254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:16 verbose #18255 > > //// test
00:20:16 verbose #18256 > >
00:20:16 verbose #18257 > > listm.init 10i32 id
00:20:16 verbose #18258 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:20:16 verbose #18259 > > |> _assert_eq (Some 5i32)
00:20:16 verbose #18260 > >
00:20:16 verbose #18261 > > ╭─[ 486.19ms - stdout ]────────────────────────────────────────────────────────╮
00:20:16 verbose #18262 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:20:16 verbose #18263 > > │                                                                              │
00:20:16 verbose #18264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:16 verbose #18265 > >
00:20:16 verbose #18266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:16 verbose #18267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:16 verbose #18268 > > │ ### exists'                                                                  │
00:20:16 verbose #18269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:16 verbose #18270 > >
00:20:16 verbose #18271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:16 verbose #18272 > > inl exists' f x =
00:20:16 verbose #18273 > >     inl length_x : i64 = x |> listm.length
00:20:16 verbose #18274 > >     let rec loop i =
00:20:16 verbose #18275 > >         if i >= length_x
00:20:16 verbose #18276 > >         then false
00:20:16 verbose #18277 > >         elif x |> item i |> f
00:20:16 verbose #18278 > >         then true
00:20:16 verbose #18279 > >         else loop (i + 1)
00:20:16 verbose #18280 > >     loop 0
00:20:17 verbose #18281 > >
00:20:17 verbose #18282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:17 verbose #18283 > > //// test
00:20:17 verbose #18284 > >
00:20:17 verbose #18285 > > [[ 'a'; 'b'; 'c' ]]
00:20:17 verbose #18286 > > |> exists' fun x => x = 'b'
00:20:17 verbose #18287 > > |> _assert_eq true
00:20:17 verbose #18288 > >
00:20:17 verbose #18289 > > [[ 'a'; 'b' ]]
00:20:17 verbose #18290 > > |> exists' fun x => x = 'c'
00:20:17 verbose #18291 > > |> _assert_eq false
00:20:17 verbose #18292 > >
00:20:17 verbose #18293 > > [[]]
00:20:17 verbose #18294 > > |> exists' fun x => x = 'a'
00:20:17 verbose #18295 > > |> _assert_eq false
00:20:17 verbose #18296 > >
00:20:17 verbose #18297 > > ╭─[ 668.67ms - stdout ]────────────────────────────────────────────────────────╮
00:20:17 verbose #18298 > > │ __assert_eq / actual: true / expected: true                                  │
00:20:17 verbose #18299 > > │ __assert_eq / actual: false / expected: false                                │
00:20:17 verbose #18300 > > │ __assert_eq / actual: false / expected: false                                │
00:20:17 verbose #18301 > > │                                                                              │
00:20:17 verbose #18302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:17 verbose #18303 > >
00:20:17 verbose #18304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:17 verbose #18305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:17 verbose #18306 > > │ ## fsharp                                                                    │
00:20:17 verbose #18307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:17 verbose #18308 > >
00:20:17 verbose #18309 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:17 verbose #18310 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:17 verbose #18311 > > │ ### list'                                                                    │
00:20:17 verbose #18312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:17 verbose #18313 > >
00:20:17 verbose #18314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:17 verbose #18315 > > nominal list' t = $"backend_switch `({ Fsharp : $'`t list'; Python :
00:20:17 verbose #18316 > > $'List[[`t]]' })"
00:20:18 verbose #18317 > >
00:20:18 verbose #18318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:18 verbose #18319 > > inl empty' forall t. () : list' t =
00:20:18 verbose #18320 > >     $'[[]]'
00:20:18 verbose #18321 > >
00:20:18 verbose #18322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:18 verbose #18323 > > inl cons' forall t. (head : t) (tail : list' t) : list' t =
00:20:18 verbose #18324 > >     backend_switch {
00:20:18 verbose #18325 > >         Fsharp = fun () => $'!head :: !tail ' : list' t
00:20:18 verbose #18326 > >         Python = fun () =>
00:20:18 verbose #18327 > >             $'!tail.insert(0, !head)'
00:20:18 verbose #18328 > >             $'!tail ' : list' t
00:20:18 verbose #18329 > >     }
00:20:19 verbose #18330 > >
00:20:19 verbose #18331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:19 verbose #18332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:19 verbose #18333 > > │ ### box                                                                      │
00:20:19 verbose #18334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:19 verbose #18335 > >
00:20:19 verbose #18336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:19 verbose #18337 > > inl box forall t. (list : list t) : list' t =
00:20:19 verbose #18338 > >     (list, empty' ())
00:20:19 verbose #18339 > >     ||> listm.foldBack fun x acc =>
00:20:19 verbose #18340 > >         acc |> cons' x
00:20:19 verbose #18341 > >
00:20:19 verbose #18342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:19 verbose #18343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:19 verbose #18344 > > │ ### fold'                                                                    │
00:20:19 verbose #18345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:19 verbose #18346 > >
00:20:19 verbose #18347 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:19 verbose #18348 > > inl fold' forall t u. (fn : t -> u) (init : list u) (list : list' t) : list u =
00:20:19 verbose #18349 > >     backend_switch {
00:20:19 verbose #18350 > >         Fsharp = fun () =>
00:20:19 verbose #18351 > >             (init, list)
00:20:19 verbose #18352 > >             ||> $'List.fold' join fun acc x => Cons (fn x, acc)
00:20:19 verbose #18353 > >             : list u
00:20:19 verbose #18354 > >         Python = fun () =>
00:20:19 verbose #18355 > >             $'x = !init '
00:20:19 verbose #18356 > >             $'for x in !list: x = !fn(x)'
00:20:19 verbose #18357 > >             $'x' : list u
00:20:19 verbose #18358 > >     }
00:20:19 verbose #18359 > >
00:20:19 verbose #18360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:19 verbose #18361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:19 verbose #18362 > > │ ### fold_back'                                                               │
00:20:19 verbose #18363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:19 verbose #18364 > >
00:20:19 verbose #18365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:19 verbose #18366 > > inl fold_back' forall t u. (fn : t -> u) (list : list' t) (init : list u) : list
00:20:19 verbose #18367 > > u =
00:20:19 verbose #18368 > >     backend_switch {
00:20:19 verbose #18369 > >         Fsharp = fun () =>
00:20:19 verbose #18370 > >             (list, init)
00:20:19 verbose #18371 > >             ||> $'List.foldBack' join fun x acc => Cons (fn x, acc)
00:20:19 verbose #18372 > >             : list u
00:20:19 verbose #18373 > >         Python = fun () =>
00:20:19 verbose #18374 > >             $'x = !init '
00:20:19 verbose #18375 > >             $'for x in reversed(!list): x = !fn(x)'
00:20:19 verbose #18376 > >             $'x' : list u
00:20:19 verbose #18377 > >     }
00:20:20 verbose #18378 > >
00:20:20 verbose #18379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:20 verbose #18380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:20 verbose #18381 > > │ ### filter'                                                                  │
00:20:20 verbose #18382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:20 verbose #18383 > >
00:20:20 verbose #18384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:20 verbose #18385 > > inl filter' forall t. (fn : t -> bool) (list : list' t) : list' t =
00:20:20 verbose #18386 > >     backend_switch {
00:20:20 verbose #18387 > >         Fsharp = fun () => list |> $'"List.filter !fn"' : list' t
00:20:20 verbose #18388 > >         Python = fun () => $'list(filter(!fn, !list))' : list' t
00:20:20 verbose #18389 > >     }
00:20:20 verbose #18390 > >
00:20:20 verbose #18391 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:20 verbose #18392 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:20 verbose #18393 > > │ ### map                                                                      │
00:20:20 verbose #18394 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:20 verbose #18395 > >
00:20:20 verbose #18396 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:20 verbose #18397 > > inl map forall t u. (fn : t -> u) (list : list' t) : list' u =
00:20:20 verbose #18398 > >     backend_switch {
00:20:20 verbose #18399 > >         Fsharp = fun () => list |> $'List.map' fn : list' u
00:20:20 verbose #18400 > >         Python = fun () => $'list(map(!fn, !list))' : list' u
00:20:20 verbose #18401 > >     }
00:20:21 verbose #18402 > >
00:20:21 verbose #18403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:21 verbose #18404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:21 verbose #18405 > > │ ### unbox                                                                    │
00:20:21 verbose #18406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:21 verbose #18407 > >
00:20:21 verbose #18408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:21 verbose #18409 > > inl unbox forall t. (list : list' t) : list t =
00:20:21 verbose #18410 > >     (list, Nil)
00:20:21 verbose #18411 > >     ||> fold_back' id
00:20:21 verbose #18412 > >
00:20:21 verbose #18413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:21 verbose #18414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:21 verbose #18415 > > │ ### distinct'                                                                │
00:20:21 verbose #18416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:21 verbose #18417 > >
00:20:21 verbose #18418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:21 verbose #18419 > > inl distinct' forall t. (list : list' t) : list' t =
00:20:21 verbose #18420 > >     backend_switch {
00:20:21 verbose #18421 > >         Fsharp = fun () => list |> $'List.distinct' : list' t
00:20:21 verbose #18422 > >         Python = fun () => $'list(set(!list))' : list' t
00:20:21 verbose #18423 > >     }
00:20:22 verbose #18424 > >
00:20:22 verbose #18425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:22 verbose #18426 > > //// test
00:20:22 verbose #18427 > >
00:20:22 verbose #18428 > > [[ "1"; "2"; "2"; "3" ]]
00:20:22 verbose #18429 > > |> box
00:20:22 verbose #18430 > > |> distinct'
00:20:22 verbose #18431 > > |> unbox
00:20:22 verbose #18432 > > |> _assert_eq [[ "1"; "2"; "3" ]]
00:20:22 verbose #18433 > >
00:20:22 verbose #18434 > > ╭─[ 575.39ms - stdout ]────────────────────────────────────────────────────────╮
00:20:22 verbose #18435 > > │ __assert_eq / actual: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0))) /         │
00:20:22 verbose #18436 > > │ expected: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0)))                       │
00:20:22 verbose #18437 > > │                                                                              │
00:20:22 verbose #18438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:22 verbose #18439 > >
00:20:22 verbose #18440 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:22 verbose #18441 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:22 verbose #18442 > > │ ### to_array'                                                                │
00:20:22 verbose #18443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:22 verbose #18444 > >
00:20:22 verbose #18445 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:22 verbose #18446 > > inl to_array' forall t. (items : list' t) : array_base t =
00:20:22 verbose #18447 > >     backend_switch {
00:20:22 verbose #18448 > >         Fsharp = fun () => items |> $'List.toArray' : array_base t
00:20:22 verbose #18449 > >         Python = fun () => $'cp.array(!items)' : array_base t
00:20:22 verbose #18450 > >     }
00:20:23 verbose #18451 > 00:00:37 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32996 }
00:20:23 verbose #18452 > 00:00:37   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:20:23 verbose #18453 >     "nbconvert",
00:20:23 verbose #18454 >     "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb",
00:20:23 verbose #18455 >     "--to",
00:20:23 verbose #18456 >     "html",
00:20:23 verbose #18457 >     "--HTMLExporter.theme=dark",
00:20:23 verbose #18458 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:26 verbose #18459 > 00:00:40 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb to html
00:20:26 verbose #18460 > 00:00:40 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:20:26 verbose #18461 > 00:00:40 verbose #7 !   validate(nb)
00:20:29 verbose #18462 > 00:00:43 verbose #8 ! [NbConvertApp] Writing 380373 bytes to c:\home\git\polyglot\lib\spiral\listm'.dib.html
00:20:29 verbose #18463 > 00:00:43 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:20:29 verbose #18464 > 00:00:43   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:20:29 verbose #18465 > 00:00:43   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:20:29 verbose #18466 >     "-c",
00:20:29 verbose #18467 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:20:29 verbose #18468 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:30 verbose #18469 > 00:00:44 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:20:30 verbose #18470 > 00:00:44   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:20:30 verbose #18471 > 00:00:44   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 33698 }
00:20:30   debug #18472 runtime.execute_with_options_async / { exit_code = 0; output_length = 37930 }
00:20:30   debug #22 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3
00:20:30   debug #18473 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:30 verbose #18474 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "reflection.dib", "--retries", "3"])) }
00:20:30 verbose #18475 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:20:30 verbose #18476 >     "repl",
00:20:30 verbose #18477 >     "--exit-after-run",
00:20:30 verbose #18478 >     "--run",
00:20:30 verbose #18479 >     "c:/home/git/polyglot/lib/spiral/reflection.dib",
00:20:30 verbose #18480 >     "--output-path",
00:20:30 verbose #18481 >     "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb",
00:20:30 verbose #18482 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/reflection.dib" --output-path "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:20:32 verbose #18483 > >
00:20:32 verbose #18484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:32 verbose #18485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:32 verbose #18486 > > │ # reflection                                                                 │
00:20:32 verbose #18487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:37 verbose #18488 > >
00:20:37 verbose #18489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:37 verbose #18490 > > //// test
00:20:37 verbose #18491 > >
00:20:37 verbose #18492 > > open testing
00:20:39 verbose #18493 > >
00:20:39 verbose #18494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:39 verbose #18495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:39 verbose #18496 > > │ ## reflection                                                                │
00:20:39 verbose #18497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:39 verbose #18498 > >
00:20:39 verbose #18499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:39 verbose #18500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:39 verbose #18501 > > │ ### get_union_fields                                                         │
00:20:39 verbose #18502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:39 verbose #18503 > >
00:20:39 verbose #18504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:39 verbose #18505 > > inl get_union_fields forall union_type. () : list (string * union_type) =
00:20:39 verbose #18506 > >     real
00:20:39 verbose #18507 > >         real_core.union_to_record
00:20:39 verbose #18508 > >             `union_type
00:20:39 verbose #18509 > >             forall union_record_type. =>
00:20:39 verbose #18510 > >                 real_core.record_type_fold
00:20:39 verbose #18511 > >                     fun acc key =>
00:20:39 verbose #18512 > >                         forall value. =>
00:20:39 verbose #18513 > >                             inl value =
00:20:39 verbose #18514 > >                                 typecase value with
00:20:39 verbose #18515 > >                                 | () => $'' : value
00:20:39 verbose #18516 > >                                 | _ =>
00:20:39 verbose #18517 > >                                     backend_switch `value `({}) {
00:20:39 verbose #18518 > >                                         Fsharp =
00:20:39 verbose #18519 > >                                             (fun () =>
00:20:39 verbose #18520 > >                                                 $'Unchecked.defaultof<_>' :
00:20:39 verbose #18521 > > value
00:20:39 verbose #18522 > >                                             ) : () -> value
00:20:39 verbose #18523 > >                                         Python =
00:20:39 verbose #18524 > >                                             (fun () =>
00:20:39 verbose #18525 > >                                                 $'None' : value
00:20:39 verbose #18526 > >                                             ) : () -> value
00:20:39 verbose #18527 > >                                     }
00:20:39 verbose #18528 > >                             inl item = real_core.nominal_create `union_type
00:20:39 verbose #18529 > > (key, value)
00:20:39 verbose #18530 > >                             inl key' = sm'_real.symbol_to_string `(`key)
00:20:39 verbose #18531 > >                             (::) `(string * union_type) (key', item) acc
00:20:39 verbose #18532 > >                     (Nil `(string * union_type))
00:20:39 verbose #18533 > >                     `union_record_type
00:20:40 verbose #18534 > >
00:20:40 verbose #18535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:40 verbose #18536 > > //// test
00:20:40 verbose #18537 > > ///! fsharp
00:20:40 verbose #18538 > > ///! rust
00:20:40 verbose #18539 > > ///! typescript
00:20:40 verbose #18540 > > ///! python
00:20:40 verbose #18541 > >
00:20:40 verbose #18542 > > get_union_fields ()
00:20:40 verbose #18543 > > |> listm'.box
00:20:40 verbose #18544 > > |> listm'.to_array'
00:20:40 verbose #18545 > > |> a
00:20:40 verbose #18546 > > |> am'.sort_by snd
00:20:40 verbose #18547 > > |> fun (a x : _ int _) => x
00:20:40 verbose #18548 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:20:47 verbose #18549 > >
00:20:47 verbose #18550 > > ╭─[ 7.10s - return value ]─────────────────────────────────────────────────────╮
00:20:47 verbose #18551 > > │ .rs output:                                                                  │
00:20:47 verbose #18552 > > │ __assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),    │
00:20:47 verbose #18553 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:20:47 verbose #18554 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:20:47 verbose #18555 > > │                                                                              │
00:20:47 verbose #18556 > > │ .ts output:                                                                  │
00:20:47 verbose #18557 > > │ __assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:    │
00:20:47 verbose #18558 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:20:47 verbose #18559 > > │                                                                              │
00:20:47 verbose #18560 > > │ .py output:                                                                  │
00:20:47 verbose #18561 > > │ __assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',     │
00:20:47 verbose #18562 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:20:47 verbose #18563 > > │ US0_2)]                                                                      │
00:20:47 verbose #18564 > > │                                                                              │
00:20:47 verbose #18565 > > │                                                                              │
00:20:47 verbose #18566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #18567 > >
00:20:47 verbose #18568 > > ╭─[ 7.11s - stdout ]───────────────────────────────────────────────────────────╮
00:20:47 verbose #18569 > > │ .fsx output:                                                                 │
00:20:47 verbose #18570 > > │ __assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);   │
00:20:47 verbose #18571 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:20:47 verbose #18572 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:20:47 verbose #18573 > > │                                                                              │
00:20:47 verbose #18574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #18575 > >
00:20:47 verbose #18576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:47 verbose #18577 > > //// test
00:20:47 verbose #18578 > > ///! fsharp
00:20:47 verbose #18579 > > ///! rust
00:20:47 verbose #18580 > > ///! typescript
00:20:47 verbose #18581 > > ///! python
00:20:47 verbose #18582 > >
00:20:47 verbose #18583 > > get_union_fields ()
00:20:47 verbose #18584 > > |> listm'.box
00:20:47 verbose #18585 > > |> listm'.to_array'
00:20:47 verbose #18586 > > |> a
00:20:47 verbose #18587 > > |> am'.sort_by snd
00:20:47 verbose #18588 > > |> fun (a x : _ int _) => x
00:20:47 verbose #18589 > > |> _assert_eq' ;[[ "Some", Some 0i32; "None", None ]]
00:20:51 verbose #18590 > >
00:20:51 verbose #18591 > > ╭─[ 4.56s - return value ]─────────────────────────────────────────────────────╮
00:20:51 verbose #18592 > > │ .rs output:                                                                  │
00:20:51 verbose #18593 > > │ __assert_eq' / actual: Array(MutCell([("Some", US0_0(0)), ("None", US0_1)])) │
00:20:51 verbose #18594 > > │ / expected: Array(MutCell([("Some", US0_0(0)), ("None", US0_1)]))            │
00:20:51 verbose #18595 > > │                                                                              │
00:20:51 verbose #18596 > > │ .ts output:                                                                  │
00:20:51 verbose #18597 > > │ __assert_eq' / actual: Some,US0_0 0,None,US0_1 / expected: Some,US0_0        │
00:20:51 verbose #18598 > > │ 0,None,US0_1                                                                 │
00:20:51 verbose #18599 > > │                                                                              │
00:20:51 verbose #18600 > > │ .py output:                                                                  │
00:20:51 verbose #18601 > > │ __assert_eq' / actual: [('Some', US0_0 0), ('None', US0_1)] / expected: [    │
00:20:51 verbose #18602 > > │ ('Some', US0_0 0), ('None', US0_1)]                                          │
00:20:51 verbose #18603 > > │                                                                              │
00:20:51 verbose #18604 > > │                                                                              │
00:20:51 verbose #18605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 verbose #18606 > >
00:20:51 verbose #18607 > > ╭─[ 4.56s - stdout ]───────────────────────────────────────────────────────────╮
00:20:51 verbose #18608 > > │ .fsx output:                                                                 │
00:20:51 verbose #18609 > > │ __assert_eq' / actual: [|struct ("Some", US0_0 0); struct ("None", US0_1)|]  │
00:20:51 verbose #18610 > > │ / expected: [|struct ("Some", US0_0 0); struct ("None", US0_1)|]             │
00:20:51 verbose #18611 > > │                                                                              │
00:20:51 verbose #18612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 verbose #18613 > >
00:20:51 verbose #18614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:51 verbose #18615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:51 verbose #18616 > > │ ### get_union_fields_untag                                                   │
00:20:51 verbose #18617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:51 verbose #18618 > >
00:20:51 verbose #18619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:51 verbose #18620 > > inl get_union_fields_untag forall union_type. () : list (string * union_type) =
00:20:51 verbose #18621 > >     real
00:20:51 verbose #18622 > >         real_core.union_to_record
00:20:51 verbose #18623 > >             `union_type
00:20:51 verbose #18624 > >             forall union_record_type. =>
00:20:51 verbose #18625 > >                 inl result =
00:20:51 verbose #18626 > >                     real_core.record_type_fold_back
00:20:51 verbose #18627 > >                         fun _key =>
00:20:51 verbose #18628 > >                             forall value. (acc, (i : i32)) =>
00:20:51 verbose #18629 > >                                 inl key, item : (string * union_type) =
00:20:51 verbose #18630 > >                                     real_core.union_untag `union_type i
00:20:51 verbose #18631 > >                                         (fun key => forall value. =>
00:20:51 verbose #18632 > >                                             inl key' = sm'_real.symbol_to_string
00:20:51 verbose #18633 > > `(`key)
00:20:51 verbose #18634 > >                                             inl value =
00:20:51 verbose #18635 > >                                                 typecase value with
00:20:51 verbose #18636 > >                                                 | () => $'' : value
00:20:51 verbose #18637 > >                                                 | _ =>
00:20:51 verbose #18638 > >                                                     backend_switch `value `({})
00:20:51 verbose #18639 > > {
00:20:51 verbose #18640 > >                                                         Fsharp =
00:20:51 verbose #18641 > >                                                             (fun () =>
00:20:51 verbose #18642 > >
00:20:51 verbose #18643 > > $'Unchecked.defaultof<_>' : value
00:20:51 verbose #18644 > >                                                             ) : () -> value
00:20:51 verbose #18645 > >                                                         Python =
00:20:51 verbose #18646 > >                                                             (fun () =>
00:20:51 verbose #18647 > >                                                                 $'None' : value
00:20:51 verbose #18648 > >                                                             ) : () -> value
00:20:51 verbose #18649 > >                                                     }
00:20:51 verbose #18650 > >                                             inl item = real_core.nominal_create
00:20:51 verbose #18651 > > `union_type (key, value)
00:20:51 verbose #18652 > >                                             key', item
00:20:51 verbose #18653 > >                                         )
00:20:51 verbose #18654 > >                                         (fun _ =>
00:20:51 verbose #18655 > >                                             failwith
00:20:51 verbose #18656 > >                                                 `(string * union_type)
00:20:51 verbose #18657 > >
00:20:51 verbose #18658 > > "reflection.get_union_fields_untag / invalid tag"
00:20:51 verbose #18659 > >                                         )
00:20:51 verbose #18660 > >                                 (::) `(string * union_type) (key, item) acc, (+)
00:20:51 verbose #18661 > > `i32 i 1
00:20:51 verbose #18662 > >                         `union_record_type
00:20:51 verbose #18663 > >                         (Nil `(string * union_type), 0i32)
00:20:51 verbose #18664 > >                 inl result = fst `(list (string * union_type)) `i32 result
00:20:51 verbose #18665 > >                 listm.rev `(string * union_type) result
00:20:52 verbose #18666 > >
00:20:52 verbose #18667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:52 verbose #18668 > > //// test
00:20:52 verbose #18669 > > ///! fsharp
00:20:52 verbose #18670 > > ///! cuda
00:20:52 verbose #18671 > > ///! rust
00:20:52 verbose #18672 > > ///! typescript
00:20:52 verbose #18673 > > ///! python
00:20:52 verbose #18674 > >
00:20:52 verbose #18675 > > get_union_fields_untag ()
00:20:52 verbose #18676 > > |> _assert_eq' [[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:20:57 verbose #18677 > >
00:20:57 verbose #18678 > > ╭─[ 5.90s - return value ]─────────────────────────────────────────────────────╮
00:20:57 verbose #18679 > > │ .py output (Cuda):                                                           │
00:20:57 verbose #18680 > > │ __assert_eq' / actual: UH0_1(v0='Native', v1=US0_0(), v2=UH0_1(v0='Wasm',    │
00:20:57 verbose #18681 > > │ v1=US0_1(), v2=UH0_1(v0='Contract', v1=US0_2(), v2=UH0_0()))) / expected:    │
00:20:57 verbose #18682 > > │ UH0_1(v0='Native', v1=US0_0(), v2=UH0_1(v0='Wasm', v1=US0_1(),               │
00:20:57 verbose #18683 > > │ v2=UH0_1(v0='Contract', v1=US0_2(), v2=UH0_0())))                            │
00:20:57 verbose #18684 > > │                                                                              │
00:20:57 verbose #18685 > > │ .rs output:                                                                  │
00:20:57 verbose #18686 > > │ __assert_eq' / actual: UH0_1("Native", US0_0, UH0_1("Wasm", US0_1,           │
00:20:57 verbose #18687 > > │ UH0_1("Contract", US0_2, UH0_0))) / expected: UH0_1("Native", US0_0,         │
00:20:57 verbose #18688 > > │ UH0_1("Wasm", US0_1, UH0_1("Contract", US0_2, UH0_0)))                       │
00:20:57 verbose #18689 > > │                                                                              │
00:20:57 verbose #18690 > > │ .ts output:                                                                  │
00:20:57 verbose #18691 > > │ __assert_eq' / actual: UH0_1 (Native, US0_0, UH0_1 (Wasm, US0_1, UH0_1       │
00:20:57 verbose #18692 > > │ (Contract, US0_2, UH0_0))) / expected: UH0_1 (Native, US0_0, UH0_1 (Wasm,    │
00:20:57 verbose #18693 > > │ US0_1, UH0_1 (Contract, US0_2, UH0_0)))                                      │
00:20:57 verbose #18694 > > │                                                                              │
00:20:57 verbose #18695 > > │ .py output:                                                                  │
00:20:57 verbose #18696 > > │ __assert_eq' / actual: UH0_1 ("Native", US0_0, UH0_1 ("Wasm", US0_1, UH0_1   │
00:20:57 verbose #18697 > > │ ("Contract", US0_2, UH0_0))) / expected: UH0_1 ("Native", US0_0, UH0_1       │
00:20:57 verbose #18698 > > │ ("Wasm", US0_1, UH0_1 ("Contract", US0_2, UH0_0)))                           │
00:20:57 verbose #18699 > > │                                                                              │
00:20:57 verbose #18700 > > │                                                                              │
00:20:57 verbose #18701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:57 verbose #18702 > >
00:20:57 verbose #18703 > > ╭─[ 5.90s - stdout ]───────────────────────────────────────────────────────────╮
00:20:57 verbose #18704 > > │ .fsx output:                                                                 │
00:20:57 verbose #18705 > > │ __assert_eq' / actual: UH0_1 ("Native", US0_0, UH0_1 ("Wasm", US0_1, UH0_1   │
00:20:57 verbose #18706 > > │ ("Contract", US0_2, UH0_0))) / expected: UH0_1 ("Native", US0_0, UH0_1       │
00:20:57 verbose #18707 > > │ ("Wasm", US0_1, UH0_1 ("Contract", US0_2, UH0_0)))                           │
00:20:57 verbose #18708 > > │                                                                              │
00:20:57 verbose #18709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:57 verbose #18710 > >
00:20:57 verbose #18711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:57 verbose #18712 > > //// test
00:20:57 verbose #18713 > > ///! fsharp
00:20:57 verbose #18714 > > ///! cuda
00:20:57 verbose #18715 > > ///! rust
00:20:57 verbose #18716 > > ///! typescript
00:20:57 verbose #18717 > > ///! python
00:20:57 verbose #18718 > >
00:20:57 verbose #18719 > > get_union_fields_untag ()
00:20:57 verbose #18720 > > |> _assert_eq' [[ "Some", Some (); "None", None ]]
00:21:03 verbose #18721 > >
00:21:03 verbose #18722 > > ╭─[ 5.77s - return value ]─────────────────────────────────────────────────────╮
00:21:03 verbose #18723 > > │ .py output (Cuda):                                                           │
00:21:03 verbose #18724 > > │ __assert_eq' / actual: UH0_1(v0='Some', v1=US0_0(), v2=UH0_1(v0='None',      │
00:21:03 verbose #18725 > > │ v1=US0_1(), v2=UH0_0())) / expected: UH0_1(v0='Some', v1=US0_0(),            │
00:21:03 verbose #18726 > > │ v2=UH0_1(v0='None', v1=US0_1(), v2=UH0_0()))                                 │
00:21:03 verbose #18727 > > │                                                                              │
00:21:03 verbose #18728 > > │ .rs output:                                                                  │
00:21:03 verbose #18729 > > │ __assert_eq' / actual: UH0_1("Some", US0_0, UH0_1("None", US0_1, UH0_0)) /   │
00:21:03 verbose #18730 > > │ expected: UH0_1("Some", US0_0, UH0_1("None", US0_1, UH0_0))                  │
00:21:03 verbose #18731 > > │                                                                              │
00:21:03 verbose #18732 > > │ .ts output:                                                                  │
00:21:03 verbose #18733 > > │ __assert_eq' / actual: UH0_1 (Some, US0_0, UH0_1 (None, US0_1, UH0_0)) /     │
00:21:03 verbose #18734 > > │ expected: UH0_1 (Some, US0_0, UH0_1 (None, US0_1, UH0_0))                    │
00:21:03 verbose #18735 > > │                                                                              │
00:21:03 verbose #18736 > > │ .py output:                                                                  │
00:21:03 verbose #18737 > > │ __assert_eq' / actual: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0)) / │
00:21:03 verbose #18738 > > │ expected: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0))                │
00:21:03 verbose #18739 > > │                                                                              │
00:21:03 verbose #18740 > > │                                                                              │
00:21:03 verbose #18741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #18742 > >
00:21:03 verbose #18743 > > ╭─[ 5.77s - stdout ]───────────────────────────────────────────────────────────╮
00:21:03 verbose #18744 > > │ .fsx output:                                                                 │
00:21:03 verbose #18745 > > │ __assert_eq' / actual: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0)) / │
00:21:03 verbose #18746 > > │ expected: UH0_1 ("Some", US0_0, UH0_1 ("None", US0_1, UH0_0))                │
00:21:03 verbose #18747 > > │                                                                              │
00:21:03 verbose #18748 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #18749 > >
00:21:03 verbose #18750 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:03 verbose #18751 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:03 verbose #18752 > > │ ### union_try_pick                                                           │
00:21:03 verbose #18753 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #18754 > >
00:21:03 verbose #18755 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:03 verbose #18756 > > inl union_try_pick forall t. (key : string) : option t =
00:21:03 verbose #18757 > >     real get_union_fields_untag `t ()
00:21:03 verbose #18758 > >     |> listm'.try_pick fun key', x =>
00:21:03 verbose #18759 > >         if key' = key
00:21:03 verbose #18760 > >         then Some x
00:21:03 verbose #18761 > >         else None
00:21:04 verbose #18762 > >
00:21:04 verbose #18763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:04 verbose #18764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:04 verbose #18765 > > │ ### union_to_string                                                          │
00:21:04 verbose #18766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:04 verbose #18767 > >
00:21:04 verbose #18768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:04 verbose #18769 > > inl union_to_string forall t. (x : t) : string =
00:21:04 verbose #18770 > >     real get_union_fields_untag `t ()
00:21:04 verbose #18771 > >     |> listm'.try_pick fun key, x' =>
00:21:04 verbose #18772 > >         if x' = x
00:21:04 verbose #18773 > >         then Some key
00:21:04 verbose #18774 > >         else
00:21:04 verbose #18775 > >             inl has_case =
00:21:04 verbose #18776 > >                 real
00:21:04 verbose #18777 > >                     real_core.union_to_record
00:21:04 verbose #18778 > >                         `t
00:21:04 verbose #18779 > >                         forall union_record_type. =>
00:21:04 verbose #18780 > >                             real_core.record_type_fold_back
00:21:04 verbose #18781 > >                                 fun _key =>
00:21:04 verbose #18782 > >                                     forall value. acc =>
00:21:04 verbose #18783 > >                                         if acc
00:21:04 verbose #18784 > >                                         then acc
00:21:04 verbose #18785 > >                                         else
00:21:04 verbose #18786 > >                                             typecase value with
00:21:04 verbose #18787 > >                                             | () => false
00:21:04 verbose #18788 > >                                             | _ => true
00:21:04 verbose #18789 > >                                 `union_record_type
00:21:04 verbose #18790 > >                                 false
00:21:04 verbose #18791 > >             if has_case |> not
00:21:04 verbose #18792 > >             then None
00:21:04 verbose #18793 > >             else
00:21:04 verbose #18794 > >                 inl separator =
00:21:04 verbose #18795 > >                     backend_switch {
00:21:04 verbose #18796 > >                         Fsharp = fun () =>
00:21:04 verbose #18797 > >                             run_target function
00:21:04 verbose #18798 > >                                 | Rust _ => fun () => join "("
00:21:04 verbose #18799 > >                                 | _ => fun () => join " "
00:21:04 verbose #18800 > >                         Python = fun () => "("
00:21:04 verbose #18801 > >                     }
00:21:04 verbose #18802 > >                 inl x' = x' |> sm'.format |> sm'.split separator |>
00:21:04 verbose #18803 > > am'.index_base 0
00:21:04 verbose #18804 > >                 if x |> sm'.format |> sm'.starts_with x'
00:21:04 verbose #18805 > >                 then Some key
00:21:04 verbose #18806 > >                 else None
00:21:04 verbose #18807 > >     |> optionm.value
00:21:04 verbose #18808 > >
00:21:04 verbose #18809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:04 verbose #18810 > > //// test
00:21:04 verbose #18811 > > ///! fsharp
00:21:04 verbose #18812 > > ///! cuda
00:21:04 verbose #18813 > > ///! rust
00:21:04 verbose #18814 > > ///! typescript
00:21:04 verbose #18815 > > ///! python
00:21:04 verbose #18816 > >
00:21:04 verbose #18817 > > Some true
00:21:04 verbose #18818 > > |> union_to_string
00:21:04 verbose #18819 > > |> _assert_eq' "Some"
00:21:10 verbose #18820 > >
00:21:10 verbose #18821 > > ╭─[ 5.84s - return value ]─────────────────────────────────────────────────────╮
00:21:10 verbose #18822 > > │ .py output (Cuda):                                                           │
00:21:10 verbose #18823 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:21:10 verbose #18824 > > │                                                                              │
00:21:10 verbose #18825 > > │ .rs output:                                                                  │
00:21:10 verbose #18826 > > │ __assert_eq' / actual: "Some" / expected: "Some"                             │
00:21:10 verbose #18827 > > │                                                                              │
00:21:10 verbose #18828 > > │ .ts output:                                                                  │
00:21:10 verbose #18829 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:21:10 verbose #18830 > > │                                                                              │
00:21:10 verbose #18831 > > │ .py output:                                                                  │
00:21:10 verbose #18832 > > │ __assert_eq' / actual: Some / expected: Some                                 │
00:21:10 verbose #18833 > > │                                                                              │
00:21:10 verbose #18834 > > │                                                                              │
00:21:10 verbose #18835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 verbose #18836 > >
00:21:10 verbose #18837 > > ╭─[ 5.84s - stdout ]───────────────────────────────────────────────────────────╮
00:21:10 verbose #18838 > > │ .fsx output:                                                                 │
00:21:10 verbose #18839 > > │ __assert_eq' / actual: "Some" / expected: "Some"                             │
00:21:10 verbose #18840 > > │                                                                              │
00:21:10 verbose #18841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 verbose #18842 > >
00:21:10 verbose #18843 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:10 verbose #18844 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:10 verbose #18845 > > │ ### nameof                                                                   │
00:21:10 verbose #18846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:10 verbose #18847 > >
00:21:10 verbose #18848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:10 verbose #18849 > > inl nameof forall t. (x : t) : string =
00:21:10 verbose #18850 > >     real
00:21:10 verbose #18851 > >         real_core.record_type_fold_back
00:21:10 verbose #18852 > >             fun key =>
00:21:10 verbose #18853 > >                 forall value. _ =>
00:21:10 verbose #18854 > >                     sm'_real.symbol_to_string `(`key)
00:21:10 verbose #18855 > >             `t
00:21:10 verbose #18856 > >             ""
00:21:10 verbose #18857 > >
00:21:10 verbose #18858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:10 verbose #18859 > > //// test
00:21:10 verbose #18860 > >
00:21:10 verbose #18861 > > { test1 = ""; test2 = "" }
00:21:10 verbose #18862 > > |> nameof
00:21:10 verbose #18863 > > |> _assert_eq' "test1"
00:21:11 verbose #18864 > >
00:21:11 verbose #18865 > > ╭─[ 416.58ms - stdout ]────────────────────────────────────────────────────────╮
00:21:11 verbose #18866 > > │ __assert_eq' / actual: "test1" / expected: "test1"                           │
00:21:11 verbose #18867 > > │                                                                              │
00:21:11 verbose #18868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 verbose #18869 > >
00:21:11 verbose #18870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:11 verbose #18871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:11 verbose #18872 > > │ ### get_record_fields                                                        │
00:21:11 verbose #18873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:11 verbose #18874 > >
00:21:11 verbose #18875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:11 verbose #18876 > > inl get_record_fields forall t u. (x : t) : list (string * u) =
00:21:11 verbose #18877 > >     real
00:21:11 verbose #18878 > >         real_core.record_type_fold_back
00:21:11 verbose #18879 > >             fun key =>
00:21:11 verbose #18880 > >                 forall u'. acc =>
00:21:11 verbose #18881 > >                     inl k = sm'_real.symbol_to_string `(`key)
00:21:11 verbose #18882 > >                     inl v = x key
00:21:11 verbose #18883 > >                     (::) `(string * u') (k, v) acc
00:21:11 verbose #18884 > >             `t
00:21:11 verbose #18885 > >             (Nil `(string * u))
00:21:11 verbose #18886 > >
00:21:11 verbose #18887 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:11 verbose #18888 > > //// test
00:21:11 verbose #18889 > >
00:21:11 verbose #18890 > > { a = "1"; b = "2" }
00:21:11 verbose #18891 > > |> get_record_fields
00:21:11 verbose #18892 > > |> _assert_eq' [[ "a", "1"; "b", "2" ]]
00:21:12 verbose #18893 > >
00:21:12 verbose #18894 > > ╭─[ 588.81ms - stdout ]────────────────────────────────────────────────────────╮
00:21:12 verbose #18895 > > │ __assert_eq' / actual: UH0_1 ("a", "1", UH0_1 ("b", "2", UH0_0)) / expected: │
00:21:12 verbose #18896 > > │ UH0_1 ("a", "1", UH0_1 ("b", "2", UH0_0))                                    │
00:21:12 verbose #18897 > > │                                                                              │
00:21:12 verbose #18898 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:12 verbose #18899 > >
00:21:12 verbose #18900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:12 verbose #18901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:12 verbose #18902 > > │ ### get_functions_types                                                      │
00:21:12 verbose #18903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:12 verbose #18904 > >
00:21:12 verbose #18905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:12 verbose #18906 > > inl get_functions_types forall t {record}. (fns : t) =
00:21:12 verbose #18907 > >     real
00:21:12 verbose #18908 > >         inl get_function_type forall t. =
00:21:12 verbose #18909 > >             inl args forall t {record}. : list (string * string) =
00:21:12 verbose #18910 > >                 real_core.record_type_fold_back
00:21:12 verbose #18911 > >                     fun key =>
00:21:12 verbose #18912 > >                         forall v. acc =>
00:21:12 verbose #18913 > >                             inl k = sm'_real.symbol_to_string `(`key)
00:21:12 verbose #18914 > >                             inl v = $'"`v"' : string
00:21:12 verbose #18915 > >                             (::) `(string * string) (k, v) acc
00:21:12 verbose #18916 > >                     `t
00:21:12 verbose #18917 > >                     (Nil `(string * string))
00:21:12 verbose #18918 > >
00:21:12 verbose #18919 > >             typecase t with
00:21:12 verbose #18920 > >             | ~t -> ~u => args `t, ($'"`u"' : string)
00:21:12 verbose #18921 > >
00:21:12 verbose #18922 > >         real_core.record_type_fold_back
00:21:12 verbose #18923 > >             fun key =>
00:21:12 verbose #18924 > >                 forall v. acc =>
00:21:12 verbose #18925 > >                     inl k = sm'_real.symbol_to_string `(`key)
00:21:12 verbose #18926 > >                     inl args, result = get_function_type `v
00:21:12 verbose #18927 > >                     (::) `(string * (list (string * string) * string)) (k,
00:21:12 verbose #18928 > > (args, result)) acc
00:21:12 verbose #18929 > >             `(`fns)
00:21:12 verbose #18930 > >             (Nil `(string * (list (string * string) * string)))
00:21:12 verbose #18931 > >     |> fun x => x : list (string * (list (string * string) * string))
00:21:12 verbose #18932 > >
00:21:12 verbose #18933 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:12 verbose #18934 > > //// test
00:21:12 verbose #18935 > >
00:21:12 verbose #18936 > > inl one ({ a } : { a : i32 }) : i32 = a + 1
00:21:12 verbose #18937 > > inl two ({ a b } : { a : i32; b : i32 }) : i32 = a + b + 2
00:21:12 verbose #18938 > > inl fns = { one two }
00:21:12 verbose #18939 > >
00:21:12 verbose #18940 > > fns
00:21:12 verbose #18941 > > |> get_functions_types
00:21:12 verbose #18942 > > |> listm.map fun (name, args, result) => name, (args |> listm'.box |>
00:21:12 verbose #18943 > > listm'.to_array', result)
00:21:12 verbose #18944 > > |> listm'.box
00:21:12 verbose #18945 > > |> listm'.to_array'
00:21:12 verbose #18946 > > |> sm'.format
00:21:12 verbose #18947 > > |> _assert_eq' (
00:21:12 verbose #18948 > >     [[
00:21:12 verbose #18949 > >         "one", [["a", "int32"]], "int32"
00:21:12 verbose #18950 > >         "two", [["a", "int32"; "b", "int32"]], "int32"
00:21:12 verbose #18951 > >     ]]
00:21:12 verbose #18952 > >     |> listm.map fun (name, args, result) => name, (args |> listm'.box |>
00:21:12 verbose #18953 > > listm'.to_array', result)
00:21:12 verbose #18954 > >     |> listm'.box
00:21:12 verbose #18955 > >     |> listm'.to_array'
00:21:12 verbose #18956 > >     |> sm'.format
00:21:12 verbose #18957 > > )
00:21:13 verbose #18958 > >
00:21:13 verbose #18959 > > ╭─[ 508.49ms - stdout ]────────────────────────────────────────────────────────╮
00:21:13 verbose #18960 > > │ __assert_eq' / actual: "[|struct ("one", [|struct ("a", "int32")|],          │
00:21:13 verbose #18961 > > │ "int32");                                                                    │
00:21:13 verbose #18962 > > │   struct ("two", [|struct ("a", "int32"); struct ("b", "int32")|],           │
00:21:13 verbose #18963 > > │ "int32")|]" / expected: "[|struct ("one", [|struct ("a", "int32")|],         │
00:21:13 verbose #18964 > > │ "int32");                                                                    │
00:21:13 verbose #18965 > > │   struct ("two", [|struct ("a", "int32"); struct ("b", "int32")|],           │
00:21:13 verbose #18966 > > │ "int32")|]"                                                                  │
00:21:13 verbose #18967 > > │                                                                              │
00:21:13 verbose #18968 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:13 verbose #18969 > 00:00:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24693 }
00:21:13 verbose #18970 > 00:00:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:21:13 verbose #18971 >     "nbconvert",
00:21:13 verbose #18972 >     "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb",
00:21:13 verbose #18973 >     "--to",
00:21:13 verbose #18974 >     "html",
00:21:13 verbose #18975 >     "--HTMLExporter.theme=dark",
00:21:13 verbose #18976 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:16 verbose #18977 > 00:00:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb to html
00:21:16 verbose #18978 > 00:00:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:16 verbose #18979 > 00:00:46 verbose #7 !   validate(nb)
00:21:18 verbose #18980 > 00:00:48 verbose #8 ! [NbConvertApp] Writing 326407 bytes to c:\home\git\polyglot\lib\spiral\reflection.dib.html
00:21:18 verbose #18981 > 00:00:48 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:21:18 verbose #18982 > 00:00:48   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:21:18 verbose #18983 > 00:00:48   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:21:18 verbose #18984 >     "-c",
00:21:18 verbose #18985 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:21:18 verbose #18986 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:19 verbose #18987 > 00:00:49 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:21:19 verbose #18988 > 00:00:49   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:21:19 verbose #18989 > 00:00:49   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 25403 }
00:21:19   debug #18990 runtime.execute_with_options_async / { exit_code = 0; output_length = 29089 }
00:21:19   debug #23 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3
00:21:19   debug #18991 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:19 verbose #18992 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "iter.dib", "--retries", "3"])) }
00:21:19 verbose #18993 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:21:19 verbose #18994 >     "repl",
00:21:19 verbose #18995 >     "--exit-after-run",
00:21:19 verbose #18996 >     "--run",
00:21:19 verbose #18997 >     "c:/home/git/polyglot/lib/spiral/iter.dib",
00:21:19 verbose #18998 >     "--output-path",
00:21:19 verbose #18999 >     "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb",
00:21:19 verbose #19000 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/iter.dib" --output-path "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:21:22 verbose #19001 > >
00:21:22 verbose #19002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:22 verbose #19003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:22 verbose #19004 > > │ # iter                                                                       │
00:21:22 verbose #19005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:27 verbose #19006 > >
00:21:27 verbose #19007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:27 verbose #19008 > > open rust
00:21:27 verbose #19009 > > open rust_operators
00:21:29 verbose #19010 > >
00:21:29 verbose #19011 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:29 verbose #19012 > > //// test
00:21:29 verbose #19013 > >
00:21:29 verbose #19014 > > open testing
00:21:29 verbose #19015 > >
00:21:29 verbose #19016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:29 verbose #19017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:29 verbose #19018 > > │ ## rust                                                                      │
00:21:29 verbose #19019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:29 verbose #19020 > >
00:21:29 verbose #19021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:29 verbose #19022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:29 verbose #19023 > > │ ### enumerate                                                                │
00:21:29 verbose #19024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:29 verbose #19025 > >
00:21:29 verbose #19026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:29 verbose #19027 > > inl enumerate forall t. (iter : into_iterator t) : into_iterator (pair
00:21:29 verbose #19028 > > unativeint t) =
00:21:29 verbose #19029 > >     !\($'"!iter.enumerate().map(std::sync::Arc::new)"')
00:21:30 verbose #19030 > >
00:21:30 verbose #19031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:30 verbose #19032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:30 verbose #19033 > > │ ### into_iter                                                                │
00:21:30 verbose #19034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:30 verbose #19035 > >
00:21:30 verbose #19036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #19037 > > inl into_iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:21:30 verbose #19038 > >     !\($'"!x.into_iter()"')
00:21:30 verbose #19039 > >
00:21:30 verbose #19040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:30 verbose #19041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:30 verbose #19042 > > │ ### iter                                                                     │
00:21:30 verbose #19043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:30 verbose #19044 > >
00:21:30 verbose #19045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #19046 > > inl iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:21:30 verbose #19047 > >     !\($'"!x.iter()"')
00:21:31 verbose #19048 > >
00:21:31 verbose #19049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #19050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #19051 > > │ ### map                                                                      │
00:21:31 verbose #19052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #19053 > >
00:21:31 verbose #19054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #19055 > > inl map forall t u. (fn : t -> u) (iter : into_iterator t) : into_iterator u =
00:21:31 verbose #19056 > >     !\\(fn, $'"!iter.map(|x| $0(x))"')
00:21:31 verbose #19057 > >
00:21:31 verbose #19058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #19059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #19060 > > │ ### cloned                                                                   │
00:21:31 verbose #19061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #19062 > >
00:21:31 verbose #19063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #19064 > > inl cloned forall t. (iter : into_iterator (rust.ref t)) : into_iterator t =
00:21:31 verbose #19065 > >     !\($'"!iter.cloned()"')
00:21:31 verbose #19066 > >
00:21:31 verbose #19067 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #19068 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #19069 > > │ ### for_each                                                                 │
00:21:31 verbose #19070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #19071 > >
00:21:31 verbose #19072 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #19073 > > inl for_each forall t. (fn : t -> ()) (iter : into_iterator t) : () =
00:21:31 verbose #19074 > >     (!\\(fn, $'"true; !iter.for_each(|x| $0(x))"') : bool) |> ignore
00:21:32 verbose #19075 > >
00:21:32 verbose #19076 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:32 verbose #19077 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:32 verbose #19078 > > │ ### try_for_each                                                             │
00:21:32 verbose #19079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #19080 > >
00:21:32 verbose #19081 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #19082 > > inl try_for_each forall t. (fn : t -> rust.try ()) x : resultm.result' () string
00:21:32 verbose #19083 > > =
00:21:32 verbose #19084 > >     (!\($'"true; let mut !x = !x; let _iter_try_for_each = !x.try_for_each(|x| {
00:21:32 verbose #19085 > > //"') : bool) |> ignore
00:21:32 verbose #19086 > >     (!\\(fn !\($'"x"'), $'"true; $0 }); //"') : bool) |> ignore
00:21:32 verbose #19087 > >     !\($'"_iter_try_for_each.map_err(|x| x.into())"')
00:21:32 verbose #19088 > >
00:21:32 verbose #19089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:32 verbose #19090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:32 verbose #19091 > > │ ### all                                                                      │
00:21:32 verbose #19092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #19093 > >
00:21:32 verbose #19094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #19095 > > inl all forall t. (fn : t -> bool) (x : rust.mut' (into_iterator t)) : bool =
00:21:32 verbose #19096 > >     x |> rust.to_mut
00:21:32 verbose #19097 > >     !\\(fn, $'$"!x.all(|x| $0(x))"')
00:21:33 verbose #19098 > >
00:21:33 verbose #19099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:33 verbose #19100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:33 verbose #19101 > > │ ### enumerate                                                                │
00:21:33 verbose #19102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:33 verbose #19103 > >
00:21:33 verbose #19104 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:33 verbose #19105 > > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:21:33 verbose #19106 > > t) =
00:21:33 verbose #19107 > >     inl (a ar) = ar
00:21:33 verbose #19108 > >     ar
00:21:33 verbose #19109 > >     |> am'.to_vec
00:21:33 verbose #19110 > >     |> into_iter
00:21:33 verbose #19111 > >     |> enumerate
00:21:33 verbose #19112 > >     |> iter_collect
00:21:33 verbose #19113 > >     |> am'.vec_map' from_pair
00:21:33 verbose #19114 > >     |> am'.from_vec
00:21:33 verbose #19115 > >
00:21:33 verbose #19116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:33 verbose #19117 > > //// test
00:21:33 verbose #19118 > > ///! rust
00:21:33 verbose #19119 > >
00:21:33 verbose #19120 > > am'.init_series 0i32 2 1
00:21:33 verbose #19121 > > |> fun x => a x : _ int _
00:21:33 verbose #19122 > > |> enumerate
00:21:33 verbose #19123 > > |> fun (a x : _ int _) => x
00:21:33 verbose #19124 > > |> _assert_eq' ;[[ convert 0i32, 0; convert 1i32, 1; convert 2i32, 2 ]]
00:21:38 verbose #19125 > >
00:21:38 verbose #19126 > > ╭─[ 4.44s - return value ]─────────────────────────────────────────────────────╮
00:21:38 verbose #19127 > > │ __assert_eq' / actual: Array(MutCell([(0, 0), (1, 1), (2, 2)])) / expected:  │
00:21:38 verbose #19128 > > │ Array(MutCell([(0, 0), (1, 1), (2, 2)]))                                     │
00:21:38 verbose #19129 > > │                                                                              │
00:21:38 verbose #19130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:38 verbose #19131 > 00:00:18 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6565 }
00:21:38 verbose #19132 > 00:00:18   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:21:38 verbose #19133 >     "nbconvert",
00:21:38 verbose #19134 >     "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb",
00:21:38 verbose #19135 >     "--to",
00:21:38 verbose #19136 >     "html",
00:21:38 verbose #19137 >     "--HTMLExporter.theme=dark",
00:21:38 verbose #19138 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:41 verbose #19139 > 00:00:21 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/iter.dib.ipynb to html
00:21:41 verbose #19140 > 00:00:21 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:41 verbose #19141 > 00:00:21 verbose #7 !   validate(nb)
00:21:42 verbose #19142 > 00:00:23 verbose #8 ! [NbConvertApp] Writing 291830 bytes to c:\home\git\polyglot\lib\spiral\iter.dib.html
00:21:43 verbose #19143 > 00:00:23 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:21:43 verbose #19144 > 00:00:23   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:21:43 verbose #19145 > 00:00:23   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:21:43 verbose #19146 >     "-c",
00:21:43 verbose #19147 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:21:43 verbose #19148 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:43 verbose #19149 > 00:00:24 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:21:43 verbose #19150 > 00:00:24   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:21:43 verbose #19151 > 00:00:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 7263 }
00:21:43   debug #19152 runtime.execute_with_options_async / { exit_code = 0; output_length = 10181 }
00:21:43   debug #24 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3
00:21:43   debug #19153 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:43 verbose #19154 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "wasm.dib", "--retries", "3"])) }
00:21:43 verbose #19155 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:21:43 verbose #19156 >     "repl",
00:21:43 verbose #19157 >     "--exit-after-run",
00:21:43 verbose #19158 >     "--run",
00:21:43 verbose #19159 >     "c:/home/git/polyglot/lib/spiral/wasm.dib",
00:21:43 verbose #19160 >     "--output-path",
00:21:43 verbose #19161 >     "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb",
00:21:43 verbose #19162 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/wasm.dib" --output-path "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:21:46 verbose #19163 > >
00:21:46 verbose #19164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:46 verbose #19165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:46 verbose #19166 > > │ # wasm                                                                       │
00:21:46 verbose #19167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:52 verbose #19168 > >
00:21:52 verbose #19169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:52 verbose #19170 > > open rust
00:21:52 verbose #19171 > > open rust_operators
00:21:54 verbose #19172 > >
00:21:54 verbose #19173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #19174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #19175 > > │ ### rexie                                                                    │
00:21:54 verbose #19176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #19177 > >
00:21:54 verbose #19178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #19179 > > nominal rexie =
00:21:54 verbose #19180 > >     `(
00:21:54 verbose #19181 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:54 verbose #19182 > > Fable.Core.Emit(\"rexie::Rexie\")>]]\n#endif\ntype rexie_Rexie = class end"
00:21:54 verbose #19183 > >         $'' : $'rexie_Rexie'
00:21:54 verbose #19184 > >     )
00:21:54 verbose #19185 > >
00:21:54 verbose #19186 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #19187 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #19188 > > │ ### rexie_store                                                              │
00:21:54 verbose #19189 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #19190 > >
00:21:54 verbose #19191 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #19192 > > nominal rexie_store =
00:21:54 verbose #19193 > >     `(
00:21:54 verbose #19194 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:54 verbose #19195 > > Fable.Core.Emit(\"rexie::Store\")>]]\n#endif\ntype rexie_Store = class end"
00:21:54 verbose #19196 > >         $'' : $'rexie_Store'
00:21:54 verbose #19197 > >     )
00:21:55 verbose #19198 > >
00:21:55 verbose #19199 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #19200 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #19201 > > │ ### rexie_transaction                                                        │
00:21:55 verbose #19202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #19203 > >
00:21:55 verbose #19204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:55 verbose #19205 > > nominal rexie_transaction =
00:21:55 verbose #19206 > >     `(
00:21:55 verbose #19207 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:55 verbose #19208 > > Fable.Core.Emit(\"rexie::Transaction\")>]]\n#endif\ntype rexie_Transaction =
00:21:55 verbose #19209 > > class end"
00:21:55 verbose #19210 > >         $'' : $'rexie_Transaction'
00:21:55 verbose #19211 > >     )
00:21:55 verbose #19212 > >
00:21:55 verbose #19213 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #19214 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #19215 > > │ ### rexie_error                                                              │
00:21:55 verbose #19216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #19217 > >
00:21:55 verbose #19218 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:55 verbose #19219 > > nominal rexie_error =
00:21:55 verbose #19220 > >     `(
00:21:55 verbose #19221 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:55 verbose #19222 > > Fable.Core.Emit(\"rexie::Error\")>]]\n#endif\ntype rexie_Error = class end"
00:21:55 verbose #19223 > >         $'' : $'rexie_Error'
00:21:55 verbose #19224 > >     )
00:21:55 verbose #19225 > >
00:21:55 verbose #19226 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #19227 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #19228 > > │ ### js_value                                                                 │
00:21:55 verbose #19229 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #19230 > >
00:21:55 verbose #19231 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:55 verbose #19232 > > nominal js_value =
00:21:55 verbose #19233 > >     `(
00:21:55 verbose #19234 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:55 verbose #19235 > > Fable.Core.Emit(\"wasm_bindgen::JsValue\")>]]\n#endif\ntype wasm_bindgen_JsValue
00:21:55 verbose #19236 > > = class end"
00:21:55 verbose #19237 > >         $'' : $'wasm_bindgen_JsValue'
00:21:55 verbose #19238 > >     )
00:21:56 verbose #19239 > >
00:21:56 verbose #19240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:56 verbose #19241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:56 verbose #19242 > > │ ### closure                                                                  │
00:21:56 verbose #19243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:56 verbose #19244 > >
00:21:56 verbose #19245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:56 verbose #19246 > > nominal closure t =
00:21:56 verbose #19247 > >     `(
00:21:56 verbose #19248 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:56 verbose #19249 > > Fable.Core.Emit(\"wasm_bindgen::closure::Closure<$0>\")>]]\n#endif\ntype
00:21:56 verbose #19250 > > wasm_bindgen_closure_Closure<'T> = class end"
00:21:56 verbose #19251 > >         $'' : $'wasm_bindgen_closure_Closure<`t>'
00:21:56 verbose #19252 > >     )
00:21:56 verbose #19253 > >
00:21:56 verbose #19254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:56 verbose #19255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:56 verbose #19256 > > │ ### js_function                                                              │
00:21:56 verbose #19257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:56 verbose #19258 > >
00:21:56 verbose #19259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:56 verbose #19260 > > nominal js_function =
00:21:56 verbose #19261 > >     `(
00:21:56 verbose #19262 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:56 verbose #19263 > > Fable.Core.Emit(\"js_sys::Function\")>]]\n#endif\ntype js_sys_Function = class
00:21:56 verbose #19264 > > end"
00:21:56 verbose #19265 > >         $'' : $'js_sys_Function'
00:21:56 verbose #19266 > >     )
00:21:57 verbose #19267 > >
00:21:57 verbose #19268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 verbose #19269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 verbose #19270 > > │ ### window                                                                   │
00:21:57 verbose #19271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 verbose #19272 > >
00:21:57 verbose #19273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 verbose #19274 > > nominal window =
00:21:57 verbose #19275 > >     `(
00:21:57 verbose #19276 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:57 verbose #19277 > > Fable.Core.Emit(\"web_sys::Window\")>]]\n#endif\ntype web_sys_Window = class
00:21:57 verbose #19278 > > end"
00:21:57 verbose #19279 > >         $'' : $'web_sys_Window'
00:21:57 verbose #19280 > >     )
00:21:57 verbose #19281 > >
00:21:57 verbose #19282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 verbose #19283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 verbose #19284 > > │ ### document                                                                 │
00:21:57 verbose #19285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 verbose #19286 > >
00:21:57 verbose #19287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 verbose #19288 > > nominal document =
00:21:57 verbose #19289 > >     `(
00:21:57 verbose #19290 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:57 verbose #19291 > > Fable.Core.Emit(\"web_sys::Document\")>]]\n#endif\ntype web_sys_Document = class
00:21:57 verbose #19292 > > end"
00:21:57 verbose #19293 > >         $'' : $'web_sys_Document'
00:21:57 verbose #19294 > >     )
00:21:58 verbose #19295 > >
00:21:58 verbose #19296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:58 verbose #19297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:58 verbose #19298 > > │ ### html_element                                                             │
00:21:58 verbose #19299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:58 verbose #19300 > >
00:21:58 verbose #19301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 verbose #19302 > > nominal html_element =
00:21:58 verbose #19303 > >     `(
00:21:58 verbose #19304 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:58 verbose #19305 > > Fable.Core.Emit(\"web_sys::HtmlElement\")>]]\n#endif\ntype web_sys_HtmlElement =
00:21:58 verbose #19306 > > class end"
00:21:58 verbose #19307 > >         $'' : $'web_sys_HtmlElement'
00:21:58 verbose #19308 > >     )
00:21:58 verbose #19309 > >
00:21:58 verbose #19310 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:58 verbose #19311 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:58 verbose #19312 > > │ ### storage                                                                  │
00:21:58 verbose #19313 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:58 verbose #19314 > >
00:21:58 verbose #19315 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 verbose #19316 > > nominal storage =
00:21:58 verbose #19317 > >     `(
00:21:58 verbose #19318 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:58 verbose #19319 > > Fable.Core.Emit(\"web_sys::Storage\")>]]\n#endif\ntype web_sys_Storage = class
00:21:58 verbose #19320 > > end"
00:21:58 verbose #19321 > >         $'' : $'web_sys_Storage'
00:21:58 verbose #19322 > >     )
00:21:58 verbose #19323 > >
00:21:58 verbose #19324 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:58 verbose #19325 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:58 verbose #19326 > > │ ### closure_wrap                                                             │
00:21:58 verbose #19327 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:58 verbose #19328 > >
00:21:58 verbose #19329 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 verbose #19330 > > inl closure_wrap forall t. (x : rust.box t) : closure t =
00:21:58 verbose #19331 > >     inl x = join x
00:21:58 verbose #19332 > >     !\($'"wasm_bindgen::closure::Closure::wrap(!x)"')
00:21:59 verbose #19333 > >
00:21:59 verbose #19334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #19335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #19336 > > │ ### closure_forget                                                           │
00:21:59 verbose #19337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #19338 > >
00:21:59 verbose #19339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #19340 > > inl closure_forget forall t. (closure : closure t) =
00:21:59 verbose #19341 > >     !\($'"!closure.forget()"') : ()
00:21:59 verbose #19342 > >
00:21:59 verbose #19343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #19344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #19345 > > │ ### closure_as_ref                                                           │
00:21:59 verbose #19346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #19347 > >
00:21:59 verbose #19348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #19349 > > inl closure_as_ref forall t. (closure : closure t) : rust.ref js_value =
00:21:59 verbose #19350 > >     !\($'"wasm_bindgen::closure::Closure::as_ref(&!closure)"')
00:21:59 verbose #19351 > >
00:21:59 verbose #19352 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #19353 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #19354 > > │ ### unchecked_ref                                                            │
00:21:59 verbose #19355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #19356 > >
00:21:59 verbose #19357 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #19358 > > inl unchecked_ref (ref : rust.ref js_value) : rust.ref js_function =
00:21:59 verbose #19359 > >     !\($'"wasm_bindgen::JsCast::unchecked_ref(!ref)"')
00:22:00 verbose #19360 > >
00:22:00 verbose #19361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:00 verbose #19362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:00 verbose #19363 > > │ ### set_inner_html                                                           │
00:22:00 verbose #19364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:00 verbose #19365 > >
00:22:00 verbose #19366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:00 verbose #19367 > > inl set_inner_html (html : string) (el : html_element) =
00:22:00 verbose #19368 > >     inl html = join html
00:22:00 verbose #19369 > >     inl html = html |> sm'.as_str
00:22:00 verbose #19370 > >     inl el = join el
00:22:00 verbose #19371 > >     !\($'"!el.set_inner_html(!html)"')
00:22:00 verbose #19372 > >
00:22:00 verbose #19373 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:00 verbose #19374 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:00 verbose #19375 > > │ ### from_js_value                                                            │
00:22:00 verbose #19376 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:00 verbose #19377 > >
00:22:00 verbose #19378 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:00 verbose #19379 > > inl from_js_value (value : js_value) : resultm.result' (optionm'.option'
00:22:00 verbose #19380 > > sm'.json_value) sm'.std_string =
00:22:00 verbose #19381 > >     inl value = join value
00:22:00 verbose #19382 > >     !\($'"serde_wasm_bindgen::from_value(!value)"')
00:22:00 verbose #19383 > >     |> resultm.map_error' fun (x : sm'.serde_wasm_bindgen_error) => x |>
00:22:00 verbose #19384 > > sm'.format'
00:22:01 verbose #19385 > 00:00:17 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10631 }
00:22:01 verbose #19386 > 00:00:17   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:22:01 verbose #19387 >     "nbconvert",
00:22:01 verbose #19388 >     "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb",
00:22:01 verbose #19389 >     "--to",
00:22:01 verbose #19390 >     "html",
00:22:01 verbose #19391 >     "--HTMLExporter.theme=dark",
00:22:01 verbose #19392 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:04 verbose #19393 > 00:00:20 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/wasm.dib.ipynb to html
00:22:04 verbose #19394 > 00:00:20 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:22:04 verbose #19395 > 00:00:20 verbose #7 !   validate(nb)
00:22:06 verbose #19396 > 00:00:22 verbose #8 ! [NbConvertApp] Writing 302193 bytes to c:\home\git\polyglot\lib\spiral\wasm.dib.html
00:22:06 verbose #19397 > 00:00:22 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:22:06 verbose #19398 > 00:00:22   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:22:06 verbose #19399 > 00:00:22   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:22:06 verbose #19400 >     "-c",
00:22:06 verbose #19401 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:22:06 verbose #19402 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/wasm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:07 verbose #19403 > 00:00:23 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:22:07 verbose #19404 > 00:00:23   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:22:07 verbose #19405 > 00:00:23   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11329 }
00:22:07   debug #19406 runtime.execute_with_options_async / { exit_code = 0; output_length = 14433 }
00:22:06   debug #25 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path wasm.dib --retries 3
00:22:07   debug #19407 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:22:07 verbose #19408 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "leptos/leptos.dib", "--retries", "3"])) }
00:22:07 verbose #19409 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:22:07 verbose #19410 >     "repl",
00:22:07 verbose #19411 >     "--exit-after-run",
00:22:07 verbose #19412 >     "--run",
00:22:07 verbose #19413 >     "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib",
00:22:07 verbose #19414 >     "--output-path",
00:22:07 verbose #19415 >     "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb",
00:22:07 verbose #19416 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib" --output-path "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:22:10 verbose #19417 > >
00:22:10 verbose #19418 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:10 verbose #19419 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:10 verbose #19420 > > │ # leptos                                                                     │
00:22:10 verbose #19421 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:15 verbose #19422 > >
00:22:15 verbose #19423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:15 verbose #19424 > > open rust.rust_operators
00:22:15 verbose #19425 > > open rust
00:22:15 verbose #19426 > > open sm'_operators
00:22:16 verbose #19427 > >
00:22:16 verbose #19428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:16 verbose #19429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:16 verbose #19430 > > │ ### a'                                                                       │
00:22:16 verbose #19431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:16 verbose #19432 > >
00:22:16 verbose #19433 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:16 verbose #19434 > > nominal a' =
00:22:16 verbose #19435 > >     `(
00:22:16 verbose #19436 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:16 verbose #19437 > > Fable.Core.Emit(\"leptos::html::A\")>]]\n#endif\ntype leptos_html_A = class end"
00:22:16 verbose #19438 > >         $'' : $'leptos_html_A'
00:22:16 verbose #19439 > >     )
00:22:17 verbose #19440 > >
00:22:17 verbose #19441 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:17 verbose #19442 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:17 verbose #19443 > > │ ### event                                                                    │
00:22:17 verbose #19444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:17 verbose #19445 > >
00:22:17 verbose #19446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:17 verbose #19447 > > nominal event =
00:22:17 verbose #19448 > >     `(
00:22:17 verbose #19449 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:17 verbose #19450 > > Fable.Core.Emit(\"leptos::ev::Event\")>]]\n#endif\ntype leptos_ev_Event = class
00:22:17 verbose #19451 > > end"
00:22:17 verbose #19452 > >         $'' : $'leptos_ev_Event'
00:22:17 verbose #19453 > >     )
00:22:17 verbose #19454 > >
00:22:17 verbose #19455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:17 verbose #19456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:17 verbose #19457 > > │ ### mouse_event                                                              │
00:22:17 verbose #19458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:17 verbose #19459 > >
00:22:17 verbose #19460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:17 verbose #19461 > > nominal mouse_event =
00:22:17 verbose #19462 > >     `(
00:22:17 verbose #19463 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:17 verbose #19464 > > Fable.Core.Emit(\"leptos::ev::MouseEvent\")>]]\n#endif\ntype
00:22:17 verbose #19465 > > leptos_ev_MouseEvent = class end"
00:22:17 verbose #19466 > >         $'' : $'leptos_ev_MouseEvent'
00:22:17 verbose #19467 > >     )
00:22:17 verbose #19468 > >
00:22:17 verbose #19469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:17 verbose #19470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:17 verbose #19471 > > │ ### button                                                                   │
00:22:17 verbose #19472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:17 verbose #19473 > >
00:22:17 verbose #19474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:17 verbose #19475 > > nominal button =
00:22:17 verbose #19476 > >     `(
00:22:17 verbose #19477 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:17 verbose #19478 > > Fable.Core.Emit(\"leptos::html::Button\")>]]\n#endif\ntype leptos_html_Button =
00:22:17 verbose #19479 > > class end"
00:22:17 verbose #19480 > >         $'' : $'leptos_html_Button'
00:22:17 verbose #19481 > >     )
00:22:18 verbose #19482 > >
00:22:18 verbose #19483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:18 verbose #19484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:18 verbose #19485 > > │ ### details                                                                  │
00:22:18 verbose #19486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:18 verbose #19487 > >
00:22:18 verbose #19488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:18 verbose #19489 > > nominal details =
00:22:18 verbose #19490 > >     `(
00:22:18 verbose #19491 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:18 verbose #19492 > > Fable.Core.Emit(\"leptos::html::Details\")>]]\n#endif\ntype leptos_html_Details
00:22:18 verbose #19493 > > = class end"
00:22:18 verbose #19494 > >         $'' : $'leptos_html_Details'
00:22:18 verbose #19495 > >     )
00:22:18 verbose #19496 > >
00:22:18 verbose #19497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:18 verbose #19498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:18 verbose #19499 > > │ ### dd                                                                       │
00:22:18 verbose #19500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:18 verbose #19501 > >
00:22:18 verbose #19502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:18 verbose #19503 > > nominal dd =
00:22:18 verbose #19504 > >     `(
00:22:18 verbose #19505 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:18 verbose #19506 > > Fable.Core.Emit(\"leptos::html::Dd\")>]]\n#endif\ntype leptos_html_Dd = class
00:22:18 verbose #19507 > > end"
00:22:18 verbose #19508 > >         $'' : $'leptos_html_Dd'
00:22:18 verbose #19509 > >     )
00:22:19 verbose #19510 > >
00:22:19 verbose #19511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:19 verbose #19512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:19 verbose #19513 > > │ ### div                                                                      │
00:22:19 verbose #19514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #19515 > >
00:22:19 verbose #19516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #19517 > > nominal div =
00:22:19 verbose #19518 > >     `(
00:22:19 verbose #19519 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:19 verbose #19520 > > Fable.Core.Emit(\"leptos::html::Div\")>]]\n#endif\ntype leptos_html_Div = class
00:22:19 verbose #19521 > > end"
00:22:19 verbose #19522 > >         $'' : $'leptos_html_Div'
00:22:19 verbose #19523 > >     )
00:22:19 verbose #19524 > >
00:22:19 verbose #19525 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:19 verbose #19526 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:19 verbose #19527 > > │ ### dl                                                                       │
00:22:19 verbose #19528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #19529 > >
00:22:19 verbose #19530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #19531 > > nominal dl =
00:22:19 verbose #19532 > >     `(
00:22:19 verbose #19533 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:19 verbose #19534 > > Fable.Core.Emit(\"leptos::html::Dl\")>]]\n#endif\ntype leptos_html_Dl = class
00:22:19 verbose #19535 > > end"
00:22:19 verbose #19536 > >         $'' : $'leptos_html_Dl'
00:22:19 verbose #19537 > >     )
00:22:19 verbose #19538 > >
00:22:19 verbose #19539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:19 verbose #19540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:19 verbose #19541 > > │ ### dt                                                                       │
00:22:19 verbose #19542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:19 verbose #19543 > >
00:22:19 verbose #19544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:19 verbose #19545 > > nominal dt =
00:22:19 verbose #19546 > >     `(
00:22:19 verbose #19547 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:19 verbose #19548 > > Fable.Core.Emit(\"leptos::html::Dt\")>]]\n#endif\ntype leptos_html_Dt = class
00:22:19 verbose #19549 > > end"
00:22:19 verbose #19550 > >         $'' : $'leptos_html_Dt'
00:22:19 verbose #19551 > >     )
00:22:20 verbose #19552 > >
00:22:20 verbose #19553 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:20 verbose #19554 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:20 verbose #19555 > > │ ### footer                                                                   │
00:22:20 verbose #19556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #19557 > >
00:22:20 verbose #19558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #19559 > > nominal footer =
00:22:20 verbose #19560 > >     `(
00:22:20 verbose #19561 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:20 verbose #19562 > > Fable.Core.Emit(\"leptos::html::Footer\")>]]\n#endif\ntype leptos_html_Footer =
00:22:20 verbose #19563 > > class end"
00:22:20 verbose #19564 > >         $'' : $'leptos_html_Footer'
00:22:20 verbose #19565 > >     )
00:22:20 verbose #19566 > >
00:22:20 verbose #19567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:20 verbose #19568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:20 verbose #19569 > > │ ### header                                                                   │
00:22:20 verbose #19570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #19571 > >
00:22:20 verbose #19572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #19573 > > nominal header =
00:22:20 verbose #19574 > >     `(
00:22:20 verbose #19575 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:20 verbose #19576 > > Fable.Core.Emit(\"leptos::html::Header\")>]]\n#endif\ntype leptos_html_Header =
00:22:20 verbose #19577 > > class end"
00:22:20 verbose #19578 > >         $'' : $'leptos_html_Header'
00:22:20 verbose #19579 > >     )
00:22:21 verbose #19580 > >
00:22:21 verbose #19581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:21 verbose #19582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:21 verbose #19583 > > │ ### input                                                                    │
00:22:21 verbose #19584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 verbose #19585 > >
00:22:21 verbose #19586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #19587 > > nominal input =
00:22:21 verbose #19588 > >     `(
00:22:21 verbose #19589 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:21 verbose #19590 > > Fable.Core.Emit(\"leptos::html::Input\")>]]\n#endif\ntype leptos_html_Input =
00:22:21 verbose #19591 > > class end"
00:22:21 verbose #19592 > >         $'' : $'leptos_html_Input'
00:22:21 verbose #19593 > >     )
00:22:21 verbose #19594 > >
00:22:21 verbose #19595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:21 verbose #19596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:21 verbose #19597 > > │ ### label                                                                    │
00:22:21 verbose #19598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 verbose #19599 > >
00:22:21 verbose #19600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #19601 > > nominal label =
00:22:21 verbose #19602 > >     `(
00:22:21 verbose #19603 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:21 verbose #19604 > > Fable.Core.Emit(\"leptos::html::Label\")>]]\n#endif\ntype leptos_html_Label =
00:22:21 verbose #19605 > > class end"
00:22:21 verbose #19606 > >         $'' : $'leptos_html_Label'
00:22:21 verbose #19607 > >     )
00:22:21 verbose #19608 > >
00:22:21 verbose #19609 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:21 verbose #19610 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:21 verbose #19611 > > │ ### main                                                                     │
00:22:21 verbose #19612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:21 verbose #19613 > >
00:22:21 verbose #19614 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:21 verbose #19615 > > nominal main =
00:22:21 verbose #19616 > >     `(
00:22:21 verbose #19617 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:21 verbose #19618 > > Fable.Core.Emit(\"leptos::html::Main\")>]]\n#endif\ntype leptos_html_Main =
00:22:21 verbose #19619 > > class end"
00:22:21 verbose #19620 > >         $'' : $'leptos_html_Main'
00:22:21 verbose #19621 > >     )
00:22:22 verbose #19622 > >
00:22:22 verbose #19623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:22 verbose #19624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:22 verbose #19625 > > │ ### nav                                                                      │
00:22:22 verbose #19626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:22 verbose #19627 > >
00:22:22 verbose #19628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:22 verbose #19629 > > nominal nav =
00:22:22 verbose #19630 > >     `(
00:22:22 verbose #19631 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:22 verbose #19632 > > Fable.Core.Emit(\"leptos::html::Nav\")>]]\n#endif\ntype leptos_html_Nav = class
00:22:22 verbose #19633 > > end"
00:22:22 verbose #19634 > >         $'' : $'leptos_html_Nav'
00:22:22 verbose #19635 > >     )
00:22:22 verbose #19636 > >
00:22:22 verbose #19637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:22 verbose #19638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:22 verbose #19639 > > │ ### option'                                                                  │
00:22:22 verbose #19640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:22 verbose #19641 > >
00:22:22 verbose #19642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:22 verbose #19643 > > nominal option' =
00:22:22 verbose #19644 > >     `(
00:22:22 verbose #19645 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:22 verbose #19646 > > Fable.Core.Emit(\"leptos::html::Option_\")>]]\n#endif\ntype leptos_html_Option =
00:22:22 verbose #19647 > > class end"
00:22:22 verbose #19648 > >         $'' : $'leptos_html_Option'
00:22:22 verbose #19649 > >     )
00:22:23 verbose #19650 > >
00:22:23 verbose #19651 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:23 verbose #19652 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:23 verbose #19653 > > │ ### pre                                                                      │
00:22:23 verbose #19654 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:23 verbose #19655 > >
00:22:23 verbose #19656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:23 verbose #19657 > > nominal pre =
00:22:23 verbose #19658 > >     `(
00:22:23 verbose #19659 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:23 verbose #19660 > > Fable.Core.Emit(\"leptos::html::Pre\")>]]\n#endif\ntype leptos_html_Pre = class
00:22:23 verbose #19661 > > end"
00:22:23 verbose #19662 > >         $'' : $'leptos_html_Pre'
00:22:23 verbose #19663 > >     )
00:22:23 verbose #19664 > >
00:22:23 verbose #19665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:23 verbose #19666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:23 verbose #19667 > > │ ### select                                                                   │
00:22:23 verbose #19668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:23 verbose #19669 > >
00:22:23 verbose #19670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:23 verbose #19671 > > nominal select =
00:22:23 verbose #19672 > >     `(
00:22:23 verbose #19673 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:23 verbose #19674 > > Fable.Core.Emit(\"leptos::html::Select\")>]]\n#endif\ntype leptos_html_Select =
00:22:23 verbose #19675 > > class end"
00:22:23 verbose #19676 > >         $'' : $'leptos_html_Select'
00:22:23 verbose #19677 > >     )
00:22:23 verbose #19678 > >
00:22:23 verbose #19679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:23 verbose #19680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:23 verbose #19681 > > │ ### span                                                                     │
00:22:23 verbose #19682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:23 verbose #19683 > >
00:22:23 verbose #19684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:23 verbose #19685 > > nominal span =
00:22:23 verbose #19686 > >     `(
00:22:23 verbose #19687 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:23 verbose #19688 > > Fable.Core.Emit(\"leptos::html::Span\")>]]\n#endif\ntype leptos_html_Span =
00:22:23 verbose #19689 > > class end"
00:22:23 verbose #19690 > >         $'' : $'leptos_html_Span'
00:22:23 verbose #19691 > >     )
00:22:24 verbose #19692 > >
00:22:24 verbose #19693 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:24 verbose #19694 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:24 verbose #19695 > > │ ### summary                                                                  │
00:22:24 verbose #19696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #19697 > >
00:22:24 verbose #19698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #19699 > > nominal summary =
00:22:24 verbose #19700 > >     `(
00:22:24 verbose #19701 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:24 verbose #19702 > > Fable.Core.Emit(\"leptos::html::Summary\")>]]\n#endif\ntype leptos_html_Summary
00:22:24 verbose #19703 > > = class end"
00:22:24 verbose #19704 > >         $'' : $'leptos_html_Summary'
00:22:24 verbose #19705 > >     )
00:22:24 verbose #19706 > >
00:22:24 verbose #19707 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:24 verbose #19708 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:24 verbose #19709 > > │ ### table                                                                    │
00:22:24 verbose #19710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #19711 > >
00:22:24 verbose #19712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #19713 > > nominal table =
00:22:24 verbose #19714 > >     `(
00:22:24 verbose #19715 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:24 verbose #19716 > > Fable.Core.Emit(\"leptos::html::Table\")>]]\n#endif\ntype leptos_html_Table =
00:22:24 verbose #19717 > > class end"
00:22:24 verbose #19718 > >         $'' : $'leptos_html_Table'
00:22:24 verbose #19719 > >     )
00:22:25 verbose #19720 > >
00:22:25 verbose #19721 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #19722 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #19723 > > │ ### thead                                                                    │
00:22:25 verbose #19724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #19725 > >
00:22:25 verbose #19726 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #19727 > > nominal thead =
00:22:25 verbose #19728 > >     `(
00:22:25 verbose #19729 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:25 verbose #19730 > > Fable.Core.Emit(\"leptos::html::Thead\")>]]\n#endif\ntype leptos_html_Thead =
00:22:25 verbose #19731 > > class end"
00:22:25 verbose #19732 > >         $'' : $'leptos_html_Thead'
00:22:25 verbose #19733 > >     )
00:22:25 verbose #19734 > >
00:22:25 verbose #19735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #19736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #19737 > > │ ### tbody                                                                    │
00:22:25 verbose #19738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #19739 > >
00:22:25 verbose #19740 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #19741 > > nominal tbody =
00:22:25 verbose #19742 > >     `(
00:22:25 verbose #19743 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:25 verbose #19744 > > Fable.Core.Emit(\"leptos::html::Tbody\")>]]\n#endif\ntype leptos_html_Tbody =
00:22:25 verbose #19745 > > class end"
00:22:25 verbose #19746 > >         $'' : $'leptos_html_Tbody'
00:22:25 verbose #19747 > >     )
00:22:26 verbose #19748 > >
00:22:26 verbose #19749 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #19750 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #19751 > > │ ### tr                                                                       │
00:22:26 verbose #19752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #19753 > >
00:22:26 verbose #19754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #19755 > > nominal tr =
00:22:26 verbose #19756 > >     `(
00:22:26 verbose #19757 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:26 verbose #19758 > > Fable.Core.Emit(\"leptos::html::Tr\")>]]\n#endif\ntype leptos_html_Tr = class
00:22:26 verbose #19759 > > end"
00:22:26 verbose #19760 > >         $'' : $'leptos_html_Tr'
00:22:26 verbose #19761 > >     )
00:22:26 verbose #19762 > >
00:22:26 verbose #19763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #19764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #19765 > > │ ### th                                                                       │
00:22:26 verbose #19766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #19767 > >
00:22:26 verbose #19768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #19769 > > nominal th =
00:22:26 verbose #19770 > >     `(
00:22:26 verbose #19771 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:26 verbose #19772 > > Fable.Core.Emit(\"leptos::html::Th\")>]]\n#endif\ntype leptos_html_Th = class
00:22:26 verbose #19773 > > end"
00:22:26 verbose #19774 > >         $'' : $'leptos_html_Th'
00:22:26 verbose #19775 > >     )
00:22:26 verbose #19776 > >
00:22:26 verbose #19777 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #19778 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #19779 > > │ ### td                                                                       │
00:22:26 verbose #19780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #19781 > >
00:22:26 verbose #19782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #19783 > > nominal td =
00:22:26 verbose #19784 > >     `(
00:22:26 verbose #19785 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:26 verbose #19786 > > Fable.Core.Emit(\"leptos::html::Td\")>]]\n#endif\ntype leptos_html_Td = class
00:22:26 verbose #19787 > > end"
00:22:26 verbose #19788 > >         $'' : $'leptos_html_Td'
00:22:26 verbose #19789 > >     )
00:22:27 verbose #19790 > >
00:22:27 verbose #19791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 verbose #19792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 verbose #19793 > > │ ### svg                                                                      │
00:22:27 verbose #19794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #19795 > >
00:22:27 verbose #19796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #19797 > > nominal svg =
00:22:27 verbose #19798 > >     `(
00:22:27 verbose #19799 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:27 verbose #19800 > > Fable.Core.Emit(\"leptos::svg::Svg\")>]]\n#endif\ntype leptos_svg_Svg = class
00:22:27 verbose #19801 > > end"
00:22:27 verbose #19802 > >         $'' : $'leptos_svg_Svg'
00:22:27 verbose #19803 > >     )
00:22:27 verbose #19804 > >
00:22:27 verbose #19805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 verbose #19806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 verbose #19807 > > │ ### path                                                                     │
00:22:27 verbose #19808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #19809 > >
00:22:27 verbose #19810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #19811 > > nominal path =
00:22:27 verbose #19812 > >     `(
00:22:27 verbose #19813 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:27 verbose #19814 > > Fable.Core.Emit(\"leptos::svg::Path\")>]]\n#endif\ntype leptos_svg_Path = class
00:22:27 verbose #19815 > > end"
00:22:27 verbose #19816 > >         $'' : $'leptos_svg_Path'
00:22:27 verbose #19817 > >     )
00:22:28 verbose #19818 > >
00:22:28 verbose #19819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:28 verbose #19820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:28 verbose #19821 > > │ ### circle                                                                   │
00:22:28 verbose #19822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #19823 > >
00:22:28 verbose #19824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #19825 > > nominal circle =
00:22:28 verbose #19826 > >     `(
00:22:28 verbose #19827 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:28 verbose #19828 > > Fable.Core.Emit(\"leptos::svg::Circle\")>]]\n#endif\ntype leptos_svg_Circle =
00:22:28 verbose #19829 > > class end"
00:22:28 verbose #19830 > >         $'' : $'leptos_svg_Circle'
00:22:28 verbose #19831 > >     )
00:22:28 verbose #19832 > >
00:22:28 verbose #19833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:28 verbose #19834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:28 verbose #19835 > > │ ### rect                                                                     │
00:22:28 verbose #19836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #19837 > >
00:22:28 verbose #19838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #19839 > > nominal rect =
00:22:28 verbose #19840 > >     `(
00:22:28 verbose #19841 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:28 verbose #19842 > > Fable.Core.Emit(\"leptos::svg::Rect\")>]]\n#endif\ntype leptos_svg_Rect = class
00:22:28 verbose #19843 > > end"
00:22:28 verbose #19844 > >         $'' : $'leptos_svg_Rect'
00:22:28 verbose #19845 > >     )
00:22:28 verbose #19846 > >
00:22:28 verbose #19847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:28 verbose #19848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:28 verbose #19849 > > │ ### animate                                                                  │
00:22:28 verbose #19850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #19851 > >
00:22:28 verbose #19852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #19853 > > nominal animate =
00:22:28 verbose #19854 > >     `(
00:22:28 verbose #19855 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:28 verbose #19856 > > Fable.Core.Emit(\"leptos::svg::Animate\")>]]\n#endif\ntype leptos_svg_Animate =
00:22:28 verbose #19857 > > class end"
00:22:28 verbose #19858 > >         $'' : $'leptos_svg_Animate'
00:22:28 verbose #19859 > >     )
00:22:29 verbose #19860 > >
00:22:29 verbose #19861 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:29 verbose #19862 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:29 verbose #19863 > > │ ### action                                                                   │
00:22:29 verbose #19864 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:29 verbose #19865 > >
00:22:29 verbose #19866 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:29 verbose #19867 > > nominal action t u =
00:22:29 verbose #19868 > >     `(
00:22:29 verbose #19869 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:29 verbose #19870 > > Fable.Core.Emit(\"leptos::Action<$0, $1>\")>]]\n#endif\ntype leptos_Action<'T,
00:22:29 verbose #19871 > > 'U> = class end"
00:22:29 verbose #19872 > >         $'' : $'leptos_Action<`t, `u>'
00:22:29 verbose #19873 > >     )
00:22:29 verbose #19874 > >
00:22:29 verbose #19875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:29 verbose #19876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:29 verbose #19877 > > │ ### for                                                                      │
00:22:29 verbose #19878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:29 verbose #19879 > >
00:22:29 verbose #19880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:29 verbose #19881 > > nominal for =
00:22:29 verbose #19882 > >     `(
00:22:29 verbose #19883 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:29 verbose #19884 > > Fable.Core.Emit(\"leptos::For\")>]]\n#endif\ntype leptos_For = class end"
00:22:29 verbose #19885 > >         $'' : $'leptos_For'
00:22:29 verbose #19886 > >     )
00:22:30 verbose #19887 > >
00:22:30 verbose #19888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:30 verbose #19889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:30 verbose #19890 > > │ ### show                                                                     │
00:22:30 verbose #19891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:30 verbose #19892 > >
00:22:30 verbose #19893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:30 verbose #19894 > > nominal show =
00:22:30 verbose #19895 > >     `(
00:22:30 verbose #19896 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:30 verbose #19897 > > Fable.Core.Emit(\"leptos::Show\")>]]\n#endif\ntype leptos_Show = class end"
00:22:30 verbose #19898 > >         $'' : $'leptos_Show'
00:22:30 verbose #19899 > >     )
00:22:30 verbose #19900 > >
00:22:30 verbose #19901 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:30 verbose #19902 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:30 verbose #19903 > > │ ### fragment                                                                 │
00:22:30 verbose #19904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:30 verbose #19905 > >
00:22:30 verbose #19906 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:30 verbose #19907 > > nominal fragment =
00:22:30 verbose #19908 > >     `(
00:22:30 verbose #19909 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:30 verbose #19910 > > Fable.Core.Emit(\"leptos::Fragment\")>]]\n#endif\ntype leptos_Fragment = class
00:22:30 verbose #19911 > > end"
00:22:30 verbose #19912 > >         $'' : $'leptos_Fragment'
00:22:30 verbose #19913 > >     )
00:22:31 verbose #19914 > >
00:22:31 verbose #19915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:31 verbose #19916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:31 verbose #19917 > > │ ### interval_handle                                                          │
00:22:31 verbose #19918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:31 verbose #19919 > >
00:22:31 verbose #19920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 verbose #19921 > > nominal interval_handle =
00:22:31 verbose #19922 > >     `(
00:22:31 verbose #19923 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:31 verbose #19924 > > Fable.Core.Emit(\"leptos::leptos_dom::helpers::IntervalHandle\")>]]\n#endif\ntyp
00:22:31 verbose #19925 > > e leptos_dom_IntervalHandle = class end"
00:22:31 verbose #19926 > >         $'' : $'leptos_dom_IntervalHandle'
00:22:31 verbose #19927 > >     )
00:22:31 verbose #19928 > >
00:22:31 verbose #19929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:31 verbose #19930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:31 verbose #19931 > > │ ### text                                                                     │
00:22:31 verbose #19932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:31 verbose #19933 > >
00:22:31 verbose #19934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 verbose #19935 > > nominal text =
00:22:31 verbose #19936 > >     `(
00:22:31 verbose #19937 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:31 verbose #19938 > > Fable.Core.Emit(\"leptos::leptos_dom::Text\")>]]\n#endif\ntype leptos_dom_Text =
00:22:31 verbose #19939 > > class end"
00:22:31 verbose #19940 > >         $'' : $'leptos_dom_Text'
00:22:31 verbose #19941 > >     )
00:22:31 verbose #19942 > >
00:22:31 verbose #19943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:31 verbose #19944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:31 verbose #19945 > > │ ### transparent                                                              │
00:22:31 verbose #19946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:31 verbose #19947 > >
00:22:31 verbose #19948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:31 verbose #19949 > > nominal transparent =
00:22:31 verbose #19950 > >     `(
00:22:31 verbose #19951 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:31 verbose #19952 > > Fable.Core.Emit(\"leptos::leptos_dom::Transparent\")>]]\n#endif\ntype
00:22:31 verbose #19953 > > leptos_dom_Transparent = class end"
00:22:31 verbose #19954 > >         $'' : $'leptos_dom_Transparent'
00:22:31 verbose #19955 > >     )
00:22:32 verbose #19956 > >
00:22:32 verbose #19957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 verbose #19958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 verbose #19959 > > │ ### route                                                                    │
00:22:32 verbose #19960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #19961 > >
00:22:32 verbose #19962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #19963 > > nominal route =
00:22:32 verbose #19964 > >     `(
00:22:32 verbose #19965 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:32 verbose #19966 > > Fable.Core.Emit(\"leptos_router::Route\")>]]\n#endif\ntype leptos_router_Route =
00:22:32 verbose #19967 > > class end"
00:22:32 verbose #19968 > >         $'' : $'leptos_router_Route'
00:22:32 verbose #19969 > >     )
00:22:32 verbose #19970 > >
00:22:32 verbose #19971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 verbose #19972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 verbose #19973 > > │ ### route_definition                                                         │
00:22:32 verbose #19974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #19975 > >
00:22:32 verbose #19976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #19977 > > nominal route_definition =
00:22:32 verbose #19978 > >     `(
00:22:32 verbose #19979 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:32 verbose #19980 > > Fable.Core.Emit(\"leptos_router::RouteDefinition\")>]]\n#endif\ntype
00:22:32 verbose #19981 > > leptos_router_RouteDefinition = class end"
00:22:32 verbose #19982 > >         $'' : $'leptos_router_RouteDefinition'
00:22:32 verbose #19983 > >     )
00:22:33 verbose #19984 > >
00:22:33 verbose #19985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #19986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #19987 > > │ ### router                                                                   │
00:22:33 verbose #19988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #19989 > >
00:22:33 verbose #19990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #19991 > > nominal router =
00:22:33 verbose #19992 > >     `(
00:22:33 verbose #19993 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:33 verbose #19994 > > Fable.Core.Emit(\"leptos_router::Router\")>]]\n#endif\ntype leptos_router_Router
00:22:33 verbose #19995 > > = class end"
00:22:33 verbose #19996 > >         $'' : $'leptos_router_Router'
00:22:33 verbose #19997 > >     )
00:22:33 verbose #19998 > >
00:22:33 verbose #19999 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #20000 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #20001 > > │ ### routes                                                                   │
00:22:33 verbose #20002 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #20003 > >
00:22:33 verbose #20004 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #20005 > > nominal routes =
00:22:33 verbose #20006 > >     `(
00:22:33 verbose #20007 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:33 verbose #20008 > > Fable.Core.Emit(\"leptos_router::Routes\")>]]\n#endif\ntype leptos_router_Routes
00:22:33 verbose #20009 > > = class end"
00:22:33 verbose #20010 > >         $'' : $'leptos_router_Routes'
00:22:33 verbose #20011 > >     )
00:22:33 verbose #20012 > >
00:22:33 verbose #20013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #20014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #20015 > > │ ### html_element                                                             │
00:22:33 verbose #20016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #20017 > >
00:22:33 verbose #20018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #20019 > > nominal html_element t =
00:22:33 verbose #20020 > >     `(
00:22:33 verbose #20021 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:33 verbose #20022 > > Fable.Core.Emit(\"leptos::HtmlElement<$0>\")>]]\n#endif\ntype
00:22:33 verbose #20023 > > leptos_HtmlElement<'T> = class end"
00:22:33 verbose #20024 > >         $'' : $'leptos_HtmlElement<`t>'
00:22:33 verbose #20025 > >     )
00:22:34 verbose #20026 > >
00:22:34 verbose #20027 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 verbose #20028 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 verbose #20029 > > │ ### into_view                                                                │
00:22:34 verbose #20030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 verbose #20031 > >
00:22:34 verbose #20032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #20033 > > nominal into_view =
00:22:34 verbose #20034 > >     `(
00:22:34 verbose #20035 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:34 verbose #20036 > > Fable.Core.Emit(\"leptos::IntoView\")>]]\n#endif\ntype leptos_IntoView = class
00:22:34 verbose #20037 > > end"
00:22:34 verbose #20038 > >         $'' : $'leptos_IntoView'
00:22:34 verbose #20039 > >     )
00:22:34 verbose #20040 > >
00:22:34 verbose #20041 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 verbose #20042 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 verbose #20043 > > │ ### location                                                                 │
00:22:34 verbose #20044 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 verbose #20045 > >
00:22:34 verbose #20046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #20047 > > nominal location =
00:22:34 verbose #20048 > >     `(
00:22:34 verbose #20049 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:34 verbose #20050 > > Fable.Core.Emit(\"leptos_router::Location\")>]]\n#endif\ntype
00:22:34 verbose #20051 > > leptos_router_Location = class end"
00:22:34 verbose #20052 > >         $'' : $'leptos_router_Location'
00:22:34 verbose #20053 > >     )
00:22:35 verbose #20054 > >
00:22:35 verbose #20055 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 verbose #20056 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 verbose #20057 > > │ ### navigate_options                                                         │
00:22:35 verbose #20058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #20059 > >
00:22:35 verbose #20060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #20061 > > nominal navigate_options =
00:22:35 verbose #20062 > >     `(
00:22:35 verbose #20063 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:35 verbose #20064 > > Fable.Core.Emit(\"leptos_router::NavigateOptions\")>]]\n#endif\ntype
00:22:35 verbose #20065 > > leptos_router_NavigateOptions = class end"
00:22:35 verbose #20066 > >         $'' : $'leptos_router_NavigateOptions'
00:22:35 verbose #20067 > >     )
00:22:35 verbose #20068 > >
00:22:35 verbose #20069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 verbose #20070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 verbose #20071 > > │ ### url                                                                      │
00:22:35 verbose #20072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #20073 > >
00:22:35 verbose #20074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #20075 > > nominal url =
00:22:35 verbose #20076 > >     `(
00:22:35 verbose #20077 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:35 verbose #20078 > > Fable.Core.Emit(\"leptos_router::Url\")>]]\n#endif\ntype leptos_router_Url =
00:22:35 verbose #20079 > > class end"
00:22:35 verbose #20080 > >         $'' : $'leptos_router_Url'
00:22:35 verbose #20081 > >     )
00:22:35 verbose #20082 > >
00:22:35 verbose #20083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:35 verbose #20084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:35 verbose #20085 > > │ ### memo                                                                     │
00:22:35 verbose #20086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #20087 > >
00:22:35 verbose #20088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #20089 > > nominal memo t =
00:22:35 verbose #20090 > >     `(
00:22:35 verbose #20091 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:35 verbose #20092 > > Fable.Core.Emit(\"leptos::Memo<$0>\")>]]\n#endif\ntype leptos_Memo<'T> = class
00:22:35 verbose #20093 > > end"
00:22:35 verbose #20094 > >         $'' : $'leptos_Memo<`t>'
00:22:35 verbose #20095 > >     )
00:22:36 verbose #20096 > >
00:22:36 verbose #20097 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 verbose #20098 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 verbose #20099 > > │ ### rw_signal                                                                │
00:22:36 verbose #20100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 verbose #20101 > >
00:22:36 verbose #20102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 verbose #20103 > > nominal rw_signal t =
00:22:36 verbose #20104 > >     `(
00:22:36 verbose #20105 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:36 verbose #20106 > > Fable.Core.Emit(\"leptos::RwSignal<$0>\")>]]\n#endif\ntype leptos_RwSignal<'T> =
00:22:36 verbose #20107 > > class end"
00:22:36 verbose #20108 > >         $'' : $'leptos_RwSignal<`t>'
00:22:36 verbose #20109 > >     )
00:22:36 verbose #20110 > >
00:22:36 verbose #20111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:36 verbose #20112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:36 verbose #20113 > > │ ### signal                                                                   │
00:22:36 verbose #20114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:36 verbose #20115 > >
00:22:36 verbose #20116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:36 verbose #20117 > > nominal signal t =
00:22:36 verbose #20118 > >     `(
00:22:36 verbose #20119 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:36 verbose #20120 > > Fable.Core.Emit(\"leptos::Signal<$0>\")>]]\n#endif\ntype leptos_Signal<'T> =
00:22:36 verbose #20121 > > class end"
00:22:36 verbose #20122 > >         $'' : $'leptos_Signal<`t>'
00:22:36 verbose #20123 > >     )
00:22:37 verbose #20124 > >
00:22:37 verbose #20125 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 verbose #20126 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 verbose #20127 > > │ ### read_signal                                                              │
00:22:37 verbose #20128 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 verbose #20129 > >
00:22:37 verbose #20130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 verbose #20131 > > nominal read_signal t =
00:22:37 verbose #20132 > >     `(
00:22:37 verbose #20133 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:37 verbose #20134 > > Fable.Core.Emit(\"leptos::ReadSignal<$0>\")>]]\n#endif\ntype
00:22:37 verbose #20135 > > leptos_ReadSignal<'T> = class end"
00:22:37 verbose #20136 > >         $'' : $'leptos_ReadSignal<`t>'
00:22:37 verbose #20137 > >     )
00:22:37 verbose #20138 > >
00:22:37 verbose #20139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:37 verbose #20140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:37 verbose #20141 > > │ ### write_signal                                                             │
00:22:37 verbose #20142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:37 verbose #20143 > >
00:22:37 verbose #20144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:37 verbose #20145 > > nominal write_signal t =
00:22:37 verbose #20146 > >     `(
00:22:37 verbose #20147 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:37 verbose #20148 > > Fable.Core.Emit(\"leptos::WriteSignal<$0>\")>]]\n#endif\ntype
00:22:37 verbose #20149 > > leptos_WriteSignal<'T> = class end"
00:22:37 verbose #20150 > >         $'' : $'leptos_WriteSignal<`t>'
00:22:37 verbose #20151 > >     )
00:22:38 verbose #20152 > >
00:22:38 verbose #20153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 verbose #20154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 verbose #20155 > > │ ### resource                                                                 │
00:22:38 verbose #20156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 verbose #20157 > >
00:22:38 verbose #20158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 verbose #20159 > > nominal resource t u =
00:22:38 verbose #20160 > >     `(
00:22:38 verbose #20161 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:38 verbose #20162 > > Fable.Core.Emit(\"leptos::Resource<$0, $1>\")>]]\n#endif\ntype
00:22:38 verbose #20163 > > leptos_Resource<'T, 'U> = class end"
00:22:38 verbose #20164 > >         $'' : $'leptos_Resource<`t, `u>'
00:22:38 verbose #20165 > >     )
00:22:38 verbose #20166 > >
00:22:38 verbose #20167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 verbose #20168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 verbose #20169 > > │ ### view                                                                     │
00:22:38 verbose #20170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 verbose #20171 > >
00:22:38 verbose #20172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 verbose #20173 > > nominal view =
00:22:38 verbose #20174 > >     `(
00:22:38 verbose #20175 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:22:38 verbose #20176 > > Fable.Core.Emit(\"leptos::View\")>]]\n#endif\ntype leptos_View = class end"
00:22:38 verbose #20177 > >         $'' : $'leptos_View'
00:22:38 verbose #20178 > >     )
00:22:38 verbose #20179 > >
00:22:38 verbose #20180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:38 verbose #20181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:38 verbose #20182 > > │ ### signal_get                                                               │
00:22:38 verbose #20183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:38 verbose #20184 > >
00:22:38 verbose #20185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:38 verbose #20186 > > prototype signal_get signal t : signal t -> t
00:22:39 verbose #20187 > >
00:22:39 verbose #20188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 verbose #20189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 verbose #20190 > > │ ### signal_get_untracked                                                     │
00:22:39 verbose #20191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #20192 > >
00:22:39 verbose #20193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 verbose #20194 > > prototype signal_get_untracked signal t : signal t -> t
00:22:39 verbose #20195 > >
00:22:39 verbose #20196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 verbose #20197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 verbose #20198 > > │ ### signal_update                                                            │
00:22:39 verbose #20199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #20200 > >
00:22:39 verbose #20201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 verbose #20202 > > prototype signal_update signal t : (t -> t) -> signal t -> ()
00:22:40 verbose #20203 > >
00:22:40 verbose #20204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #20205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #20206 > > │ ### signal_set                                                               │
00:22:40 verbose #20207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #20208 > >
00:22:40 verbose #20209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #20210 > > prototype signal_set signal t : t -> signal t -> ()
00:22:40 verbose #20211 > >
00:22:40 verbose #20212 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #20213 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #20214 > > │ ### log_string                                                               │
00:22:40 verbose #20215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #20216 > >
00:22:40 verbose #20217 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #20218 > > inl log_string (text : string) =
00:22:40 verbose #20219 > >     (!\($'@@"true; leptos::logging::log\!(""" + !text + @@""");"') : bool) |>
00:22:40 verbose #20220 > > ignore
00:22:40 verbose #20221 > >
00:22:40 verbose #20222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #20223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #20224 > > │ ### log                                                                      │
00:22:40 verbose #20225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #20226 > >
00:22:40 verbose #20227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #20228 > > inl log (text : string) =
00:22:40 verbose #20229 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{}}"", $0)"') : bool) |>
00:22:40 verbose #20230 > > ignore
00:22:41 verbose #20231 > >
00:22:41 verbose #20232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:41 verbose #20233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:41 verbose #20234 > > │ ### log_debug                                                                │
00:22:41 verbose #20235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:41 verbose #20236 > >
00:22:41 verbose #20237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:41 verbose #20238 > > inl log_debug (text : string) =
00:22:41 verbose #20239 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:?}}"", $0)"') : bool) |>
00:22:41 verbose #20240 > > ignore
00:22:41 verbose #20241 > >
00:22:41 verbose #20242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:41 verbose #20243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:41 verbose #20244 > > │ ### log_pretty                                                               │
00:22:41 verbose #20245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:41 verbose #20246 > >
00:22:41 verbose #20247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:41 verbose #20248 > > inl log_pretty (text : string) =
00:22:41 verbose #20249 > >     (!\\(text, $'@@$"true; leptos::logging::log\!(""{{:#?}}"", $0)"') : bool) |>
00:22:41 verbose #20250 > > ignore
00:22:42 verbose #20251 > >
00:22:42 verbose #20252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 verbose #20253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 verbose #20254 > > │ ### log_format                                                               │
00:22:42 verbose #20255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 verbose #20256 > >
00:22:42 verbose #20257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 verbose #20258 > > inl log_format fn obj =
00:22:42 verbose #20259 > >     inl obj_log = obj |> sm'.format_debug
00:22:42 verbose #20260 > >     inl text = fn obj_log |> sm'.ellipsis_end 200
00:22:42 verbose #20261 > >     log text
00:22:42 verbose #20262 > >     obj
00:22:42 verbose #20263 > >
00:22:42 verbose #20264 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 verbose #20265 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 verbose #20266 > > │ ### mount_to_body                                                            │
00:22:42 verbose #20267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 verbose #20268 > >
00:22:42 verbose #20269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 verbose #20270 > > inl mount_to_body (view_fn : () -> rust.impl into_view) : () =
00:22:42 verbose #20271 > >     (!\\(view_fn, $'"true; leptos::mount_to_body(|| $0());"') : bool) |> ignore
00:22:42 verbose #20272 > >
00:22:42 verbose #20273 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 verbose #20274 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 verbose #20275 > > │ ### view_vec_to_fragment                                                     │
00:22:42 verbose #20276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 verbose #20277 > >
00:22:42 verbose #20278 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 verbose #20279 > > inl view_vec_to_fragment (view : am'.vec view) : fragment =
00:22:42 verbose #20280 > >     !\\(view, $'"leptos::Fragment::new($0)"')
00:22:43 verbose #20281 > >
00:22:43 verbose #20282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 verbose #20283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 verbose #20284 > > │ ### view_array_to_fragment                                                   │
00:22:43 verbose #20285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 verbose #20286 > >
00:22:43 verbose #20287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 verbose #20288 > > inl view_array_to_fragment (view : array_base view) : fragment =
00:22:43 verbose #20289 > >     view |> am'.to_vec |> view_vec_to_fragment
00:22:43 verbose #20290 > >
00:22:43 verbose #20291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 verbose #20292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 verbose #20293 > > │ ### element_to_view                                                          │
00:22:43 verbose #20294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 verbose #20295 > >
00:22:43 verbose #20296 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 verbose #20297 > > inl element_to_view (view : html_element _) : view =
00:22:43 verbose #20298 > >     !\\(view, $'"leptos::IntoView::into_view($0)"')
00:22:44 verbose #20299 > >
00:22:44 verbose #20300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:44 verbose #20301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:44 verbose #20302 > > │ ### view_to_fragment                                                         │
00:22:44 verbose #20303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:44 verbose #20304 > >
00:22:44 verbose #20305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:44 verbose #20306 > > inl view_to_fragment (view : view) : fragment =
00:22:44 verbose #20307 > >     ;[[view]] |> view_array_to_fragment
00:22:44 verbose #20308 > >
00:22:44 verbose #20309 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:44 verbose #20310 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:44 verbose #20311 > > │ ### fragment_to_view                                                         │
00:22:44 verbose #20312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:44 verbose #20313 > >
00:22:44 verbose #20314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:44 verbose #20315 > > inl fragment_to_view (fragment : fragment) : view =
00:22:44 verbose #20316 > >     !\\(fragment, $'"leptos::IntoView::into_view($0)"')
00:22:45 verbose #20317 > >
00:22:45 verbose #20318 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:45 verbose #20319 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:45 verbose #20320 > > │ ### element_to_fragment                                                      │
00:22:45 verbose #20321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 verbose #20322 > >
00:22:45 verbose #20323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 verbose #20324 > > inl element_to_fragment (view : html_element _) : fragment =
00:22:45 verbose #20325 > >     view
00:22:45 verbose #20326 > >     |> element_to_view
00:22:45 verbose #20327 > >     |> view_to_fragment
00:22:45 verbose #20328 > >
00:22:45 verbose #20329 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:45 verbose #20330 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:45 verbose #20331 > > │ ### (~:>) fragment                                                           │
00:22:45 verbose #20332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 verbose #20333 > >
00:22:45 verbose #20334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 verbose #20335 > > instance (~:>) fragment = fun x =>
00:22:45 verbose #20336 > >     real
00:22:45 verbose #20337 > >         typecase t with
00:22:45 verbose #20338 > >         | array_base (html_element ~el) =>
00:22:45 verbose #20339 > >             inl x = am'.to_vec `(html_element el) x
00:22:45 verbose #20340 > >             inl x = am'.vec_map' `(html_element el) `view (element_to_view `el)
00:22:45 verbose #20341 > > x
00:22:45 verbose #20342 > >             inl x : a i32 view = am'.from_vec `i32 `view x
00:22:45 verbose #20343 > >             inl (a x) = x
00:22:45 verbose #20344 > >             view_array_to_fragment x
00:22:45 verbose #20345 > >         | array_base view => view_array_to_fragment x
00:22:45 verbose #20346 > >         | _ => x
00:22:45 verbose #20347 > >
00:22:45 verbose #20348 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:45 verbose #20349 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:45 verbose #20350 > > │ ### (~:>) view                                                               │
00:22:45 verbose #20351 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 verbose #20352 > >
00:22:45 verbose #20353 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 verbose #20354 > > instance (~:>) view = fun x =>
00:22:45 verbose #20355 > >     real
00:22:45 verbose #20356 > >         typecase t with
00:22:45 verbose #20357 > >         | html_element _ => element_to_view x
00:22:45 verbose #20358 > >         | _ => x
00:22:46 verbose #20359 > >
00:22:46 verbose #20360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 verbose #20361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 verbose #20362 > > │ ### view_trait_to_element                                                    │
00:22:46 verbose #20363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:46 verbose #20364 > >
00:22:46 verbose #20365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:46 verbose #20366 > > inl view_trait_to_element (view : rust.impl into_view) : html_element _ =
00:22:46 verbose #20367 > >     $'!view |> unbox'
00:22:46 verbose #20368 > >
00:22:46 verbose #20369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:46 verbose #20370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:46 verbose #20371 > > │ ### view_trait_to_route_definition                                           │
00:22:46 verbose #20372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:46 verbose #20373 > >
00:22:46 verbose #20374 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:46 verbose #20375 > > inl view_trait_to_route_definition (view : rust.impl into_view) :
00:22:46 verbose #20376 > > route_definition =
00:22:46 verbose #20377 > >     $'!view |> unbox'
00:22:47 verbose #20378 > >
00:22:47 verbose #20379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:47 verbose #20380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:47 verbose #20381 > > │ ### to_element_view                                                          │
00:22:47 verbose #20382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:47 verbose #20383 > >
00:22:47 verbose #20384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:47 verbose #20385 > > inl to_element_view (view : html_element _) : rust.impl into_view =
00:22:47 verbose #20386 > >     $'!view |> unbox'
00:22:47 verbose #20387 > >
00:22:47 verbose #20388 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:47 verbose #20389 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:47 verbose #20390 > > │ ### to_view_trait                                                            │
00:22:47 verbose #20391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:47 verbose #20392 > >
00:22:47 verbose #20393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:47 verbose #20394 > > inl to_view_trait (view : view) : rust.impl into_view =
00:22:47 verbose #20395 > >     $'!view |> unbox'
00:22:48 verbose #20396 > >
00:22:48 verbose #20397 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:48 verbose #20398 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:48 verbose #20399 > > │ ### to_fragment_unbox                                                        │
00:22:48 verbose #20400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:48 verbose #20401 > >
00:22:48 verbose #20402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:48 verbose #20403 > > inl to_fragment_unbox view : fragment =
00:22:48 verbose #20404 > >     $'!view |> unbox'
00:22:48 verbose #20405 > >
00:22:48 verbose #20406 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:48 verbose #20407 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:48 verbose #20408 > > │ ### from_fragment_unbox                                                      │
00:22:48 verbose #20409 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:48 verbose #20410 > >
00:22:48 verbose #20411 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:48 verbose #20412 > > inl from_fragment_unbox (fragment : fragment) =
00:22:48 verbose #20413 > >     $'!fragment |> unbox'
00:22:48 verbose #20414 > >
00:22:48 verbose #20415 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:48 verbose #20416 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:48 verbose #20417 > > │ ### element_to_view_trait                                                    │
00:22:48 verbose #20418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:48 verbose #20419 > >
00:22:48 verbose #20420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:48 verbose #20421 > > inl element_to_view_trait (macro : html_element _) : rust.impl into_view =
00:22:48 verbose #20422 > >     !\($'"leptos::view\! { {!macro} }"')
00:22:49 verbose #20423 > >
00:22:49 verbose #20424 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:49 verbose #20425 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:49 verbose #20426 > > │ ### macro_to_view_trait                                                      │
00:22:49 verbose #20427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:49 verbose #20428 > >
00:22:49 verbose #20429 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:49 verbose #20430 > > inl macro_to_view_trait (macro : string) : rust.impl into_view =
00:22:49 verbose #20431 > >     !\($'"leptos::view\! { " + !macro + " }"')
00:22:49 verbose #20432 > >
00:22:49 verbose #20433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:49 verbose #20434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:49 verbose #20435 > > │ ### macro_to_fragment                                                        │
00:22:49 verbose #20436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:49 verbose #20437 > >
00:22:49 verbose #20438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:49 verbose #20439 > > inl macro_to_fragment (macro : string) : fragment =
00:22:49 verbose #20440 > >     !\($'"leptos::view\! { " + !macro + " }"')
00:22:50 verbose #20441 > >
00:22:50 verbose #20442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:50 verbose #20443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:50 verbose #20444 > > │ ### new_transparent                                                          │
00:22:50 verbose #20445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:50 verbose #20446 > >
00:22:50 verbose #20447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:50 verbose #20448 > > inl new_transparent x : transparent =
00:22:50 verbose #20449 > >     !\\(x, $'"leptos::leptos_dom::Transparent::new($0)"')
00:22:50 verbose #20450 > >
00:22:50 verbose #20451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:50 verbose #20452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:50 verbose #20453 > > │ ### closure_to_view                                                          │
00:22:50 verbose #20454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:50 verbose #20455 > >
00:22:50 verbose #20456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:50 verbose #20457 > > inl closure_to_view (closure : rust.func0 view) : view =
00:22:50 verbose #20458 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:22:50 verbose #20459 > >
00:22:50 verbose #20460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:50 verbose #20461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:50 verbose #20462 > > │ ### batch                                                                    │
00:22:50 verbose #20463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:50 verbose #20464 > >
00:22:50 verbose #20465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:50 verbose #20466 > > inl batch (fn : () -> ()) : () =
00:22:50 verbose #20467 > >     (!\\(fn, $'"true; leptos::batch(move || $0());"') : bool) |> ignore
00:22:51 verbose #20468 > >
00:22:51 verbose #20469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:51 verbose #20470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:51 verbose #20471 > > │ ### closure_to_fragment                                                      │
00:22:51 verbose #20472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:51 verbose #20473 > >
00:22:51 verbose #20474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:51 verbose #20475 > > inl closure_to_fragment (closure : rust.func0 fragment) : fragment =
00:22:51 verbose #20476 > >     !\\(closure, $'"leptos::IntoView::into_view(move || $0())"')
00:22:51 verbose #20477 > >     |> view_to_fragment
00:22:51 verbose #20478 > >
00:22:51 verbose #20479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:51 verbose #20480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:51 verbose #20481 > > │ ### array_to_view                                                            │
00:22:51 verbose #20482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:51 verbose #20483 > >
00:22:51 verbose #20484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:51 verbose #20485 > > inl array_to_view (view : a _ view) : view =
00:22:51 verbose #20486 > >     !\\(view, $'"leptos::CollectView::collect_view($0.to_vec())"')
00:22:52 verbose #20487 > >
00:22:52 verbose #20488 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:52 verbose #20489 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:52 verbose #20490 > > │ ### to_fragment                                                              │
00:22:52 verbose #20491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:52 verbose #20492 > >
00:22:52 verbose #20493 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:52 verbose #20494 > > inl to_fragment x : fragment =
00:22:52 verbose #20495 > >     $'!x |> unbox'
00:22:52 verbose #20496 > >
00:22:52 verbose #20497 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:52 verbose #20498 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:52 verbose #20499 > > │ ### text_to_view                                                             │
00:22:52 verbose #20500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:52 verbose #20501 > >
00:22:52 verbose #20502 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:52 verbose #20503 > > inl text_to_view (text : text) : view =
00:22:52 verbose #20504 > >     !\\(text, $'"leptos::IntoView::into_view($0)"')
00:22:53 verbose #20505 > >
00:22:53 verbose #20506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #20507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #20508 > > │ ### text_to_fragment                                                         │
00:22:53 verbose #20509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #20510 > >
00:22:53 verbose #20511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #20512 > > inl text_to_fragment (text : text) : fragment =
00:22:53 verbose #20513 > >     text
00:22:53 verbose #20514 > >     |> text_to_view
00:22:53 verbose #20515 > >     |> view_to_fragment
00:22:53 verbose #20516 > >
00:22:53 verbose #20517 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #20518 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #20519 > > │ ### macro_to_view                                                            │
00:22:53 verbose #20520 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #20521 > >
00:22:53 verbose #20522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #20523 > > inl macro_to_view (macro : string) : view =
00:22:53 verbose #20524 > >     !\($'"leptos::IntoView::into_view(leptos::view\! { " + !macro + " })"')
00:22:54 verbose #20525 > >
00:22:54 verbose #20526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #20527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #20528 > > │ ### transparent_to_view                                                      │
00:22:54 verbose #20529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #20530 > >
00:22:54 verbose #20531 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #20532 > > inl transparent_to_view (transparent : transparent) : view =
00:22:54 verbose #20533 > >     !\\(transparent, $'"leptos::IntoView::into_view($0)"')
00:22:54 verbose #20534 > >
00:22:54 verbose #20535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #20536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #20537 > > │ ### transparent_to_fragment                                                  │
00:22:54 verbose #20538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #20539 > >
00:22:54 verbose #20540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #20541 > > inl transparent_to_fragment (transparent : transparent) : fragment =
00:22:54 verbose #20542 > >     transparent
00:22:54 verbose #20543 > >     |> transparent_to_view
00:22:54 verbose #20544 > >     |> view_to_fragment
00:22:54 verbose #20545 > >
00:22:54 verbose #20546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #20547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #20548 > > │ ### macro_to_element                                                         │
00:22:54 verbose #20549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #20550 > >
00:22:54 verbose #20551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #20552 > > inl macro_to_element (view : string) : html_element _ =
00:22:54 verbose #20553 > >     view |> macro_to_view_trait |> view_trait_to_element
00:22:55 verbose #20554 > >
00:22:55 verbose #20555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:55 verbose #20556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:55 verbose #20557 > > │ ### transparents_fragment                                                    │
00:22:55 verbose #20558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:55 verbose #20559 > >
00:22:55 verbose #20560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:55 verbose #20561 > > inl transparents_fragment (items : array_base transparent) : fragment =
00:22:55 verbose #20562 > >     inl items = items |> am'.to_vec
00:22:55 verbose #20563 > >     !\\((items, transparent_to_view), $'"$0.iter().map(|x|
00:22:55 verbose #20564 > > $1(x.clone())).collect::<leptos::Fragment>()"')
00:22:55 verbose #20565 > >
00:22:55 verbose #20566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:55 verbose #20567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:55 verbose #20568 > > │ ### views_to_view                                                            │
00:22:55 verbose #20569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:55 verbose #20570 > >
00:22:55 verbose #20571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:55 verbose #20572 > > inl views_to_view (items : array_base view) : view =
00:22:55 verbose #20573 > >     inl items = join items
00:22:55 verbose #20574 > >     items
00:22:55 verbose #20575 > >     // |> fun x => a (join x) : a u64 _
00:22:55 verbose #20576 > >     |> fun x => a x : a u64 _
00:22:55 verbose #20577 > >     |> array_to_view
00:22:56 verbose #20578 > >
00:22:56 verbose #20579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:56 verbose #20580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:56 verbose #20581 > > │ ### new_text                                                                 │
00:22:56 verbose #20582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:56 verbose #20583 > >
00:22:56 verbose #20584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:56 verbose #20585 > > inl new_text (text : string) : text =
00:22:56 verbose #20586 > >     inl text = text |> sm'.to_std_string
00:22:56 verbose #20587 > >     !\\(text, $'"leptos::html::text($0)"')
00:22:56 verbose #20588 > >
00:22:56 verbose #20589 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:56 verbose #20590 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:56 verbose #20591 > > │ ### text_view                                                                │
00:22:56 verbose #20592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:56 verbose #20593 > >
00:22:56 verbose #20594 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:56 verbose #20595 > > inl text_view (text : string) : view =
00:22:56 verbose #20596 > >     text
00:22:56 verbose #20597 > >     |> new_text
00:22:56 verbose #20598 > >     |> text_to_view
00:22:56 verbose #20599 > >
00:22:56 verbose #20600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:56 verbose #20601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:56 verbose #20602 > > │ ### text_fragment                                                            │
00:22:56 verbose #20603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:56 verbose #20604 > >
00:22:56 verbose #20605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:56 verbose #20606 > > inl text_fragment (text : string) : fragment =
00:22:56 verbose #20607 > >     text
00:22:56 verbose #20608 > >     |> text_view
00:22:56 verbose #20609 > >     |> view_to_fragment
00:22:57 verbose #20610 > >
00:22:57 verbose #20611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:57 verbose #20612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:57 verbose #20613 > > │ ### provide_meta_context                                                     │
00:22:57 verbose #20614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:57 verbose #20615 > >
00:22:57 verbose #20616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:57 verbose #20617 > > inl provide_meta_context () =
00:22:57 verbose #20618 > >     (!\($'"true; leptos_meta::provide_meta_context()"') : bool) |> ignore
00:22:57 verbose #20619 > >
00:22:57 verbose #20620 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:57 verbose #20621 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:57 verbose #20622 > > │ ### provide_context                                                          │
00:22:57 verbose #20623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:57 verbose #20624 > >
00:22:57 verbose #20625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:57 verbose #20626 > > inl provide_context forall t. (x : t) =
00:22:57 verbose #20627 > >     (!\\(x, $'$"true; leptos::provide_context::<std::sync::Arc<`t>>($0)"') :
00:22:57 verbose #20628 > > bool) |> ignore
00:22:58 verbose #20629 > >
00:22:58 verbose #20630 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:58 verbose #20631 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:58 verbose #20632 > > │ ### create_signal                                                            │
00:22:58 verbose #20633 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:58 verbose #20634 > >
00:22:58 verbose #20635 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:58 verbose #20636 > > inl create_signal forall t. (value : t) : read_signal t * write_signal t =
00:22:58 verbose #20637 > >     !\\(value, $'$"leptos::create_signal($0)"')
00:22:58 verbose #20638 > >
00:22:58 verbose #20639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:58 verbose #20640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:58 verbose #20641 > > │ ### create_rw_signal                                                         │
00:22:58 verbose #20642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:58 verbose #20643 > >
00:22:58 verbose #20644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:58 verbose #20645 > > inl create_rw_signal forall t. (value : t) : rw_signal t =
00:22:58 verbose #20646 > >     !\\(value, $'$"leptos::create_rw_signal($0)"')
00:22:58 verbose #20647 > >
00:22:58 verbose #20648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:58 verbose #20649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:58 verbose #20650 > > │ ### read_only                                                                │
00:22:58 verbose #20651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:58 verbose #20652 > >
00:22:58 verbose #20653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:58 verbose #20654 > > inl read_only forall t. (value : rw_signal t) : read_signal t =
00:22:58 verbose #20655 > >     !\\(value, $'$"leptos::RwSignal::read_only(&$0)"')
00:22:59 verbose #20656 > >
00:22:59 verbose #20657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:59 verbose #20658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:59 verbose #20659 > > │ ### write_only                                                               │
00:22:59 verbose #20660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:59 verbose #20661 > >
00:22:59 verbose #20662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:59 verbose #20663 > > inl write_only forall t. (value : rw_signal t) : write_signal t =
00:22:59 verbose #20664 > >     !\\(value, $'$"leptos::RwSignal::write_only(&$0)"')
00:22:59 verbose #20665 > >
00:22:59 verbose #20666 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:59 verbose #20667 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:59 verbose #20668 > > │ ### typecheck_signal                                                         │
00:22:59 verbose #20669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:59 verbose #20670 > >
00:22:59 verbose #20671 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:59 verbose #20672 > > inl typecheck_signal forall (t : * -> *) u. (signal : t u) : () =
00:22:59 verbose #20673 > >     real
00:22:59 verbose #20674 > >         typecase t with
00:22:59 verbose #20675 > >         | signal => ()
00:22:59 verbose #20676 > >         | rw_signal => ()
00:22:59 verbose #20677 > >         | read_signal => ()
00:22:59 verbose #20678 > >         | write_signal => ()
00:22:59 verbose #20679 > >         | memo => ()
00:22:59 verbose #20680 > >         | _ => error_type `(()) ("invalid signal", ``(t u))
00:23:00 verbose #20681 > >
00:23:00 verbose #20682 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:00 verbose #20683 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:00 verbose #20684 > > │ ### memo_get'                                                                │
00:23:00 verbose #20685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #20686 > >
00:23:00 verbose #20687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:00 verbose #20688 > > inl memo_get' forall t. (memo : memo t) : t =
00:23:00 verbose #20689 > >     !\\(memo, $'$"$0()"')
00:23:00 verbose #20690 > >
00:23:00 verbose #20691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:00 verbose #20692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:00 verbose #20693 > > │ ### signal_get'                                                              │
00:23:00 verbose #20694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #20695 > >
00:23:00 verbose #20696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:00 verbose #20697 > > inl signal_get' forall (t : * -> *) u. (signal : t u) : u =
00:23:00 verbose #20698 > >     signal |> typecheck_signal
00:23:00 verbose #20699 > >     !\\(signal, $'$"leptos::SignalGet::get(&$0)"')
00:23:00 verbose #20700 > >
00:23:00 verbose #20701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:00 verbose #20702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:00 verbose #20703 > > │ ### signal_get signal                                                        │
00:23:00 verbose #20704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #20705 > >
00:23:00 verbose #20706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:00 verbose #20707 > > instance signal_get signal = signal_get'
00:23:01 verbose #20708 > >
00:23:01 verbose #20709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:01 verbose #20710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:01 verbose #20711 > > │ ### signal_get rw_signal                                                     │
00:23:01 verbose #20712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:01 verbose #20713 > >
00:23:01 verbose #20714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:01 verbose #20715 > > instance signal_get rw_signal = signal_get'
00:23:01 verbose #20716 > >
00:23:01 verbose #20717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:01 verbose #20718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:01 verbose #20719 > > │ ### signal_get read_signal                                                   │
00:23:01 verbose #20720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:01 verbose #20721 > >
00:23:01 verbose #20722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:01 verbose #20723 > > instance signal_get read_signal = signal_get'
00:23:02 verbose #20724 > >
00:23:02 verbose #20725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:02 verbose #20726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:02 verbose #20727 > > │ ### signal_get memo                                                          │
00:23:02 verbose #20728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:02 verbose #20729 > >
00:23:02 verbose #20730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:02 verbose #20731 > > instance signal_get memo = memo_get'
00:23:02 verbose #20732 > >
00:23:02 verbose #20733 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:02 verbose #20734 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:02 verbose #20735 > > │ ### signal_update'                                                           │
00:23:02 verbose #20736 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:02 verbose #20737 > >
00:23:02 verbose #20738 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:02 verbose #20739 > > inl signal_update' forall (t : * -> *) u. (fn : u -> u) (signal : t u) : () =
00:23:02 verbose #20740 > >     signal |> typecheck_signal
00:23:02 verbose #20741 > >     (!\\((signal, fn), $'"true; leptos::SignalUpdate::update(&$0, |x| { *x =
00:23:02 verbose #20742 > > $1(x.clone()) });"') : bool) |> ignore
00:23:03 verbose #20743 > >
00:23:03 verbose #20744 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:03 verbose #20745 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:03 verbose #20746 > > │ ### signal_update rw_signal                                                  │
00:23:03 verbose #20747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:03 verbose #20748 > >
00:23:03 verbose #20749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:03 verbose #20750 > > instance signal_update rw_signal = signal_update'
00:23:03 verbose #20751 > >
00:23:03 verbose #20752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:03 verbose #20753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:03 verbose #20754 > > │ ### signal_update write_signal                                               │
00:23:03 verbose #20755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:03 verbose #20756 > >
00:23:03 verbose #20757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:03 verbose #20758 > > instance signal_update write_signal = signal_update'
00:23:03 verbose #20759 > >
00:23:03 verbose #20760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:03 verbose #20761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:03 verbose #20762 > > │ ### signal_get_untracked'                                                    │
00:23:03 verbose #20763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:03 verbose #20764 > >
00:23:03 verbose #20765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:03 verbose #20766 > > inl signal_get_untracked' forall (t : * -> *) u. (signal : t u) : u =
00:23:03 verbose #20767 > >     signal |> typecheck_signal
00:23:03 verbose #20768 > >     !\\(signal, $'$"leptos::SignalGetUntracked::get_untracked(&$0)"')
00:23:04 verbose #20769 > >
00:23:04 verbose #20770 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:04 verbose #20771 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:04 verbose #20772 > > │ ### signal_get_untracked rw_signal                                           │
00:23:04 verbose #20773 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:04 verbose #20774 > >
00:23:04 verbose #20775 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:04 verbose #20776 > > instance signal_get_untracked rw_signal = signal_get_untracked'
00:23:04 verbose #20777 > >
00:23:04 verbose #20778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:04 verbose #20779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:04 verbose #20780 > > │ ### signal_get_untracked read_signal                                         │
00:23:04 verbose #20781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:04 verbose #20782 > >
00:23:04 verbose #20783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:04 verbose #20784 > > instance signal_get_untracked read_signal = signal_get_untracked'
00:23:05 verbose #20785 > >
00:23:05 verbose #20786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:05 verbose #20787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:05 verbose #20788 > > │ ### signal_get_untracked memo                                                │
00:23:05 verbose #20789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:05 verbose #20790 > >
00:23:05 verbose #20791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:05 verbose #20792 > > instance signal_get_untracked memo = signal_get_untracked'
00:23:05 verbose #20793 > >
00:23:05 verbose #20794 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:05 verbose #20795 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:05 verbose #20796 > > │ ### signal_set'                                                              │
00:23:05 verbose #20797 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:05 verbose #20798 > >
00:23:05 verbose #20799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:05 verbose #20800 > > inl signal_set' forall (t : * -> *) u. (value : u) (signal : t u) =
00:23:05 verbose #20801 > >     signal |> typecheck_signal
00:23:05 verbose #20802 > >     (!\\((signal, value), $'$"true; leptos::SignalSet::set(&$0, $1);"') : bool)
00:23:05 verbose #20803 > > |> ignore
00:23:05 verbose #20804 > >
00:23:05 verbose #20805 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:05 verbose #20806 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:05 verbose #20807 > > │ ### signal_set rw_signal                                                     │
00:23:05 verbose #20808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:05 verbose #20809 > >
00:23:05 verbose #20810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:05 verbose #20811 > > instance signal_set rw_signal = signal_set'
00:23:06 verbose #20812 > >
00:23:06 verbose #20813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:06 verbose #20814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:06 verbose #20815 > > │ ### signal_set write_signal                                                  │
00:23:06 verbose #20816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:06 verbose #20817 > >
00:23:06 verbose #20818 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:06 verbose #20819 > > instance signal_set write_signal = signal_set'
00:23:06 verbose #20820 > >
00:23:06 verbose #20821 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:06 verbose #20822 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:06 verbose #20823 > > │ ### create_local_resource                                                    │
00:23:06 verbose #20824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:06 verbose #20825 > >
00:23:06 verbose #20826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:06 verbose #20827 > > inl create_local_resource forall t u.
00:23:06 verbose #20828 > >     (source : () -> t)
00:23:06 verbose #20829 > >     (fetcher : t -> async.future_pin u)
00:23:06 verbose #20830 > >     : resource t u
00:23:06 verbose #20831 > >     =
00:23:06 verbose #20832 > >     // inl fetcher x = rust.move fun () =>
00:23:06 verbose #20833 > >     //    fetcher x
00:23:06 verbose #20834 > >     // inl fetcher = join fetcher
00:23:06 verbose #20835 > >     // !\($'"leptos::create_local_resource(move || !source(), move |x| async
00:23:06 verbose #20836 > > move { !fetcher(x)().await })"')
00:23:06 verbose #20837 > >
00:23:06 verbose #20838 > >     // ---
00:23:06 verbose #20839 > >
00:23:06 verbose #20840 > >     // inl fn x = async.new_future fun () =>
00:23:06 verbose #20841 > >     //     inl x' = fetcher x
00:23:06 verbose #20842 > >     //     x' |> async.await
00:23:06 verbose #20843 > >
00:23:06 verbose #20844 > >     // !\\((source, fn), $'"leptos::create_local_resource(move || $0(), |x|
00:23:06 verbose #20845 > > async move { $1(x).await })"')
00:23:06 verbose #20846 > >
00:23:06 verbose #20847 > >
00:23:06 verbose #20848 > >     join
00:23:06 verbose #20849 > >         !\\(source, $'"let __create_local_resource =
00:23:06 verbose #20850 > > leptos::create_local_resource(move || $0(), |x| async move { //"')
00:23:06 verbose #20851 > >
00:23:06 verbose #20852 > >         inl x = !\($'"x"')
00:23:06 verbose #20853 > >         inl x' = fetcher x
00:23:06 verbose #20854 > >         inl x' = join x'
00:23:06 verbose #20855 > >         inl x' = x' |> async.await
00:23:06 verbose #20856 > >
00:23:06 verbose #20857 > >         inl closure_fix = 2u8, 1u8
00:23:06 verbose #20858 > >         x' |> rust.fix_closure closure_fix
00:23:06 verbose #20859 > >
00:23:06 verbose #20860 > >         !\($'"__create_local_resource"')
00:23:07 verbose #20861 > >
00:23:07 verbose #20862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:07 verbose #20863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:07 verbose #20864 > > │ ### create_resource                                                          │
00:23:07 verbose #20865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:07 verbose #20866 > >
00:23:07 verbose #20867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:07 verbose #20868 > > // inl create_resource forall t u. (source : () -> t) (fetcher : t ->
00:23:07 verbose #20869 > > async.future_pin u) : resource t u =
00:23:07 verbose #20870 > > //     inl source = join source
00:23:07 verbose #20871 > > //     !\\(fetcher, $'"leptos::create_resource(move || !source(), |x| async move
00:23:07 verbose #20872 > > { $0(x).await })"')
00:23:07 verbose #20873 > >
00:23:07 verbose #20874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:07 verbose #20875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:07 verbose #20876 > > │ ### create_action                                                            │
00:23:07 verbose #20877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:07 verbose #20878 > >
00:23:07 verbose #20879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:07 verbose #20880 > > inl create_action forall t u. (action_fn : t -> async.future_pin u) : action t u
00:23:07 verbose #20881 > > =
00:23:07 verbose #20882 > >     !\\(action_fn, $'"leptos::create_action(move |value: &std::sync::Arc<`t>|
00:23:07 verbose #20883 > > $0(value.clone()))"')
00:23:07 verbose #20884 > >
00:23:07 verbose #20885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:07 verbose #20886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:07 verbose #20887 > > │ ### action_dispatch                                                          │
00:23:07 verbose #20888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:07 verbose #20889 > >
00:23:07 verbose #20890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:07 verbose #20891 > > inl action_dispatch forall t u. (value : heap t) (action : action (heap t) u) :
00:23:07 verbose #20892 > > () =
00:23:07 verbose #20893 > >     (!\\((action, value), $'"true; leptos::Action::dispatch(&$0, $1.clone())"')
00:23:07 verbose #20894 > > : bool) |> ignore
00:23:08 verbose #20895 > >
00:23:08 verbose #20896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:08 verbose #20897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:08 verbose #20898 > > │ ### action_input                                                             │
00:23:08 verbose #20899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:08 verbose #20900 > >
00:23:08 verbose #20901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:08 verbose #20902 > > inl action_input forall t u. (action : action (heap t) u) : rw_signal
00:23:08 verbose #20903 > > (optionm'.option' t) =
00:23:08 verbose #20904 > >     !\\(action, $'"leptos::Action::input(&$0)"')
00:23:08 verbose #20905 > >
00:23:08 verbose #20906 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:08 verbose #20907 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:08 verbose #20908 > > │ ### action_pending                                                           │
00:23:08 verbose #20909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:08 verbose #20910 > >
00:23:08 verbose #20911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:08 verbose #20912 > > inl action_pending forall t u. (action : action (heap t) u) : read_signal bool =
00:23:08 verbose #20913 > >     !\\(action, $'"leptos::Action::pending(&$0)"')
00:23:09 verbose #20914 > >
00:23:09 verbose #20915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:09 verbose #20916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:09 verbose #20917 > > │ ### action_value                                                             │
00:23:09 verbose #20918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:09 verbose #20919 > >
00:23:09 verbose #20920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:09 verbose #20921 > > inl action_value forall t u. (action : action (heap t) u) : rw_signal
00:23:09 verbose #20922 > > (optionm'.option' u) =
00:23:09 verbose #20923 > >     !\\(action, $'"leptos::Action::value(&$0)"')
00:23:09 verbose #20924 > >
00:23:09 verbose #20925 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:09 verbose #20926 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:09 verbose #20927 > > │ ### use_context                                                              │
00:23:09 verbose #20928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:09 verbose #20929 > >
00:23:09 verbose #20930 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:09 verbose #20931 > > inl use_context forall t. () : optionm'.option' t =
00:23:09 verbose #20932 > >     !\($'"leptos::use_context::<std::sync::Arc<`t>>()"')
00:23:10 verbose #20933 > >
00:23:10 verbose #20934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:10 verbose #20935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:10 verbose #20936 > > │ ### resource_loading                                                         │
00:23:10 verbose #20937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:10 verbose #20938 > >
00:23:10 verbose #20939 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:10 verbose #20940 > > inl resource_loading forall t u. (resource : resource t u) : signal bool =
00:23:10 verbose #20941 > >     !\\(resource, $'$"leptos::Resource::loading(&$0)"')
00:23:10 verbose #20942 > >
00:23:10 verbose #20943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:10 verbose #20944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:10 verbose #20945 > > │ ### resource_get                                                             │
00:23:10 verbose #20946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:10 verbose #20947 > >
00:23:10 verbose #20948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:10 verbose #20949 > > inl resource_get forall t u. (resource : resource t u) : optionm'.option' u =
00:23:10 verbose #20950 > >     !\\(resource, $'$"leptos::SignalGet::get(&$0)"')
00:23:11 verbose #20951 > >
00:23:11 verbose #20952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:11 verbose #20953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:11 verbose #20954 > > │ ### resource_with                                                            │
00:23:11 verbose #20955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:11 verbose #20956 > >
00:23:11 verbose #20957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:11 verbose #20958 > > inl resource_with forall t u v. (resource : resource t u) (fn : optionm'.option'
00:23:11 verbose #20959 > > u -> v) : v =
00:23:11 verbose #20960 > >     !\\((resource, fn), $'$"leptos::SignalWith::with(&$0, |x| $1(x.clone()))"')
00:23:11 verbose #20961 > >
00:23:11 verbose #20962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:11 verbose #20963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:11 verbose #20964 > > │ ### create_effect                                                            │
00:23:11 verbose #20965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:11 verbose #20966 > >
00:23:11 verbose #20967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:11 verbose #20968 > > inl create_effect (fn : () -> ()) : () =
00:23:11 verbose #20969 > >     inl fn = fn |> rust.emit
00:23:11 verbose #20970 > >     (!\($'"true; leptos::create_effect(move |_| { !fn(()) })"') : bool) |>
00:23:11 verbose #20971 > > ignore
00:23:12 verbose #20972 > >
00:23:12 verbose #20973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:12 verbose #20974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:12 verbose #20975 > > │ ### create_effect'                                                           │
00:23:12 verbose #20976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:12 verbose #20977 > >
00:23:12 verbose #20978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:12 verbose #20979 > > inl create_effect' forall t. (fn : optionm'.option' t -> t) : () =
00:23:12 verbose #20980 > >     (!\\(fn, $'"true; leptos::create_effect(move |x| { $0(x) })"') : bool) |>
00:23:12 verbose #20981 > > ignore
00:23:12 verbose #20982 > >
00:23:12 verbose #20983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:12 verbose #20984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:12 verbose #20985 > > │ ### interval_handle_clear                                                    │
00:23:12 verbose #20986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:12 verbose #20987 > >
00:23:12 verbose #20988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:12 verbose #20989 > > inl interval_handle_clear (interval_handle : interval_handle) =
00:23:12 verbose #20990 > >     (!\\(interval_handle, $'$"true;
00:23:12 verbose #20991 > > leptos::leptos_dom::helpers::IntervalHandle::clear(&$0)"') : bool) |> ignore
00:23:12 verbose #20992 > >
00:23:12 verbose #20993 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:12 verbose #20994 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:12 verbose #20995 > > │ ### set_interval_with_handle                                                 │
00:23:12 verbose #20996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:12 verbose #20997 > >
00:23:12 verbose #20998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:12 verbose #20999 > > inl set_interval_with_handle
00:23:12 verbose #21000 > >     (fn : () -> ())
00:23:12 verbose #21001 > >     (interval_millis : date_time.duration)
00:23:12 verbose #21002 > >     : resultm.result' interval_handle wasm.js_value
00:23:12 verbose #21003 > >     =
00:23:12 verbose #21004 > >     !\\((fn, interval_millis), $'$"leptos::set_interval_with_handle(move ||
00:23:12 verbose #21005 > > $0(), $1)"')
00:23:13 verbose #21006 > >
00:23:13 verbose #21007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:13 verbose #21008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:13 verbose #21009 > > │ ### create_memo                                                              │
00:23:13 verbose #21010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:13 verbose #21011 > >
00:23:13 verbose #21012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:13 verbose #21013 > > inl create_memo forall t. (fn : () -> t) : memo t =
00:23:13 verbose #21014 > >     inl fn = fn |> rust.emit
00:23:13 verbose #21015 > >     !\($'"leptos::create_memo(move |_| { !fn(()) })"')
00:23:13 verbose #21016 > >
00:23:13 verbose #21017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:13 verbose #21018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:13 verbose #21019 > > │ ### window                                                                   │
00:23:13 verbose #21020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:13 verbose #21021 > >
00:23:13 verbose #21022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:13 verbose #21023 > > let window () : wasm.window =
00:23:13 verbose #21024 > >     !\($'"leptos::leptos_dom::window()"')
00:23:14 verbose #21025 > >
00:23:14 verbose #21026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:14 verbose #21027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:14 verbose #21028 > > │ ### bool_prop                                                                │
00:23:14 verbose #21029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:14 verbose #21030 > >
00:23:14 verbose #21031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:14 verbose #21032 > > inl bool_prop (prop : string) (fn : () -> bool) : string =
00:23:14 verbose #21033 > >     inl fn = join fn
00:23:14 verbose #21034 > >     $'"" + !prop + "={move || !fn()}"'
00:23:14 verbose #21035 > >
00:23:14 verbose #21036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:14 verbose #21037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:14 verbose #21038 > > │ ### concat_props                                                             │
00:23:14 verbose #21039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:14 verbose #21040 > >
00:23:14 verbose #21041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:14 verbose #21042 > > inl concat_props props =
00:23:14 verbose #21043 > >     ("", props)
00:23:14 verbose #21044 > >     ||> listm.fold fun acc (x : string) =>
00:23:14 verbose #21045 > >         $'" " + !x + !acc + ""'
00:23:14 verbose #21046 > >
00:23:14 verbose #21047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:14 verbose #21048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:14 verbose #21049 > > │ ### move_to_fragment                                                         │
00:23:14 verbose #21050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:14 verbose #21051 > >
00:23:14 verbose #21052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:14 verbose #21053 > > inl move_to_fragment fn =
00:23:14 verbose #21054 > >     rust.move fn
00:23:14 verbose #21055 > >     |> closure_to_fragment
00:23:15 verbose #21056 > >
00:23:15 verbose #21057 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:15 verbose #21058 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:15 verbose #21059 > > │ ### tag_raw                                                                  │
00:23:15 verbose #21060 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:15 verbose #21061 > >
00:23:15 verbose #21062 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:15 verbose #21063 > > inl tag_raw tag props children =
00:23:15 verbose #21064 > >     inl tag : string = tag
00:23:15 verbose #21065 > >     inl props = props |> concat_props
00:23:15 verbose #21066 > >     inl children = join children
00:23:15 verbose #21067 > >     inl children = fun () => children |> move_to_fragment
00:23:15 verbose #21068 > >     inl children : () -> fragment = join children
00:23:15 verbose #21069 > >     $'"<" + !tag + " " + !props + ">{!children()}</" + !tag + ">"'
00:23:15 verbose #21070 > >
00:23:15 verbose #21071 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:15 verbose #21072 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:15 verbose #21073 > > │ ### tag_element                                                              │
00:23:15 verbose #21074 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:15 verbose #21075 > >
00:23:15 verbose #21076 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:15 verbose #21077 > > inl tag_element tag props children : html_element _ =
00:23:15 verbose #21078 > >     inl children = join children
00:23:15 verbose #21079 > >     tag_raw tag props children
00:23:15 verbose #21080 > >     |> macro_to_element
00:23:16 verbose #21081 > >
00:23:16 verbose #21082 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:16 verbose #21083 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:16 verbose #21084 > > │ ### tag_closed_raw                                                           │
00:23:16 verbose #21085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:16 verbose #21086 > >
00:23:16 verbose #21087 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:16 verbose #21088 > > inl tag_closed_raw tag props =
00:23:16 verbose #21089 > >     inl tag : string = tag
00:23:16 verbose #21090 > >     inl props = props |> concat_props
00:23:16 verbose #21091 > >     $'"<" + !tag + " " + !props + " />"'
00:23:16 verbose #21092 > >
00:23:16 verbose #21093 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:16 verbose #21094 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:16 verbose #21095 > > │ ### tag_closed                                                               │
00:23:16 verbose #21096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:16 verbose #21097 > >
00:23:16 verbose #21098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:16 verbose #21099 > > inl tag_closed tag props : html_element _ =
00:23:16 verbose #21100 > >     tag_closed_raw tag props
00:23:16 verbose #21101 > >     |> macro_to_element
00:23:17 verbose #21102 > >
00:23:17 verbose #21103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 verbose #21104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 verbose #21105 > > │ ### for                                                                      │
00:23:17 verbose #21106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:17 verbose #21107 > >
00:23:17 verbose #21108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:17 verbose #21109 > > inl for props : view =
00:23:17 verbose #21110 > >     tag_closed_raw "leptos::For" props
00:23:17 verbose #21111 > >     |> macro_to_view
00:23:17 verbose #21112 > >
00:23:17 verbose #21113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:17 verbose #21114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:17 verbose #21115 > > │ ### for                                                                      │
00:23:17 verbose #21116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:17 verbose #21117 > >
00:23:17 verbose #21118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:17 verbose #21119 > > inl for forall t u (signal : * -> *).
00:23:17 verbose #21120 > >     (signal : signal (am'.vec t))
00:23:17 verbose #21121 > >     (key_fn : t -> u)
00:23:17 verbose #21122 > >     (children' : t -> fragment)
00:23:17 verbose #21123 > >     : view
00:23:17 verbose #21124 > >     =
00:23:17 verbose #21125 > >     inl signal = join signal
00:23:17 verbose #21126 > >     signal |> typecheck_signal
00:23:17 verbose #21127 > >     inl key_fn = join key_fn
00:23:17 verbose #21128 > >     inl children' = join children'
00:23:17 verbose #21129 > >     for [[
00:23:17 verbose #21130 > >         $'"each=!signal"'
00:23:17 verbose #21131 > >         $'"key=move |x| !key_fn(x.to_owned())"'
00:23:17 verbose #21132 > >         $'"let:x"'
00:23:17 verbose #21133 > >         $'"children=move |x| !children'(x)"'
00:23:17 verbose #21134 > >     ]]
00:23:18 verbose #21135 > >
00:23:18 verbose #21136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 verbose #21137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 verbose #21138 > > │ ### show                                                                     │
00:23:18 verbose #21139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 verbose #21140 > >
00:23:18 verbose #21141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 verbose #21142 > > inl show props : view =
00:23:18 verbose #21143 > >     tag_closed_raw "leptos::Show" props
00:23:18 verbose #21144 > >     |> macro_to_view
00:23:18 verbose #21145 > >
00:23:18 verbose #21146 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 verbose #21147 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 verbose #21148 > > │ ### show                                                                     │
00:23:18 verbose #21149 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 verbose #21150 > >
00:23:18 verbose #21151 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 verbose #21152 > > inl show (when_fn : () -> bool) (fallback : () -> view) (children : () ->
00:23:18 verbose #21153 > > fragment) : view =
00:23:18 verbose #21154 > >     inl when_fn = join when_fn
00:23:18 verbose #21155 > >     inl when_fn = join when_fn
00:23:18 verbose #21156 > >     inl fallback = join fallback
00:23:18 verbose #21157 > >     inl children = join children
00:23:18 verbose #21158 > >     show [[
00:23:18 verbose #21159 > >         $'"when=move || !when_fn()"'
00:23:18 verbose #21160 > >         $'"fallback=move || !fallback()"'
00:23:18 verbose #21161 > >         $'"children=std::rc::Rc::new(move || !children())"'
00:23:18 verbose #21162 > >     ]]
00:23:18 verbose #21163 > >
00:23:18 verbose #21164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:18 verbose #21165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:18 verbose #21166 > > │ ### use_location                                                             │
00:23:18 verbose #21167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:18 verbose #21168 > >
00:23:18 verbose #21169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:18 verbose #21170 > > inl use_location () : location =
00:23:18 verbose #21171 > >     !\($'"leptos_router::use_location()"')
00:23:19 verbose #21172 > >
00:23:19 verbose #21173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:19 verbose #21174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:19 verbose #21175 > > │ ### use_navigate                                                             │
00:23:19 verbose #21176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:19 verbose #21177 > >
00:23:19 verbose #21178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:19 verbose #21179 > > inl use_navigate () : string -> () =
00:23:19 verbose #21180 > >     inl navigate : threading.arc (rust.dyn' (rust.action_fn2 (rust.ref sm'.str)
00:23:19 verbose #21181 > > navigate_options)) =
00:23:19 verbose #21182 > >         !\($'"std::sync::Arc::new(leptos_router::use_navigate())"')
00:23:19 verbose #21183 > >     fun url =>
00:23:19 verbose #21184 > >         inl url = url |> sm'.as_str
00:23:19 verbose #21185 > >         !\\(navigate, $'"$0(!url, Default::default())"')
00:23:19 verbose #21186 > >
00:23:19 verbose #21187 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:19 verbose #21188 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:19 verbose #21189 > > │ ### location_hash                                                            │
00:23:19 verbose #21190 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:19 verbose #21191 > >
00:23:19 verbose #21192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:19 verbose #21193 > > inl location_hash (location : location) : memo sm'.std_string =
00:23:19 verbose #21194 > >     !\\(location, $'"$0.hash"')
00:23:20 verbose #21195 > >
00:23:20 verbose #21196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:20 verbose #21197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:20 verbose #21198 > > │ ### location_pathname                                                        │
00:23:20 verbose #21199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:20 verbose #21200 > >
00:23:20 verbose #21201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:20 verbose #21202 > > inl location_pathname (location : location) : memo sm'.std_string =
00:23:20 verbose #21203 > >     !\\(location, $'"$0.pathname"')
00:23:20 verbose #21204 > >
00:23:20 verbose #21205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:20 verbose #21206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:20 verbose #21207 > > │ ### location_search                                                          │
00:23:20 verbose #21208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:20 verbose #21209 > >
00:23:20 verbose #21210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:20 verbose #21211 > > inl location_search (location : location) : memo sm'.std_string =
00:23:20 verbose #21212 > >     !\\(location, $'"$0.search"')
00:23:21 verbose #21213 > >
00:23:21 verbose #21214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:21 verbose #21215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:21 verbose #21216 > > │ ### url_try_from                                                             │
00:23:21 verbose #21217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:21 verbose #21218 > >
00:23:21 verbose #21219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:21 verbose #21220 > > inl url_try_from (s : rust.ref sm'.str) : resultm.result' url sm'.std_string =
00:23:21 verbose #21221 > >     !\\(s, $'"leptos_router::Url::try_from($0)"')
00:23:21 verbose #21222 > >
00:23:21 verbose #21223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:21 verbose #21224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:21 verbose #21225 > > │ ### url_pathname                                                             │
00:23:21 verbose #21226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:21 verbose #21227 > >
00:23:21 verbose #21228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:21 verbose #21229 > > inl url_pathname (url : url) : sm'.std_string =
00:23:21 verbose #21230 > >     !\\(url, $'"$0.pathname"')
00:23:22 verbose #21231 > >
00:23:22 verbose #21232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:22 verbose #21233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:22 verbose #21234 > > │ ### use_url                                                                  │
00:23:22 verbose #21235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:22 verbose #21236 > >
00:23:22 verbose #21237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:22 verbose #21238 > > inl use_url () =
00:23:22 verbose #21239 > >     inl location = use_location ()
00:23:22 verbose #21240 > >
00:23:22 verbose #21241 > >     create_memo fun () =>
00:23:22 verbose #21242 > >         inl url_pathname = location |> location_pathname |> signal_get |>
00:23:22 verbose #21243 > > sm'.from_std_string
00:23:22 verbose #21244 > >         inl url_search = location |> location_search |> signal_get |>
00:23:22 verbose #21245 > > sm'.from_std_string
00:23:22 verbose #21246 > >         inl url_search =
00:23:22 verbose #21247 > >             if url_search = ""
00:23:22 verbose #21248 > >             then ""
00:23:22 verbose #21249 > >             else $'$"?{!url_search}"'
00:23:22 verbose #21250 > >         url_pathname +. url_search
00:23:22 verbose #21251 > >
00:23:22 verbose #21252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:22 verbose #21253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:22 verbose #21254 > > │ ### route                                                                    │
00:23:22 verbose #21255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:22 verbose #21256 > >
00:23:22 verbose #21257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:22 verbose #21258 > > inl route path view children : view =
00:23:22 verbose #21259 > >     inl path = join path
00:23:22 verbose #21260 > >     inl path = path |> sm'.to_std_string
00:23:22 verbose #21261 > >     inl view : () -> fragment = join view
00:23:22 verbose #21262 > >     inl children : () -> fragment = join children
00:23:22 verbose #21263 > >     tag_closed_raw "leptos_router::Route" [[
00:23:22 verbose #21264 > >         $'"path=!path"'
00:23:22 verbose #21265 > >         $'"view=move || !view()"'
00:23:22 verbose #21266 > >         $'"children=Box::new(move || !children())"'
00:23:22 verbose #21267 > >     ]]
00:23:22 verbose #21268 > >     |> macro_to_view
00:23:22 verbose #21269 > >
00:23:22 verbose #21270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:22 verbose #21271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:22 verbose #21272 > > │ ### router                                                                   │
00:23:22 verbose #21273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:22 verbose #21274 > >
00:23:22 verbose #21275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:22 verbose #21276 > > inl router children : view =
00:23:22 verbose #21277 > >     inl children () =
00:23:22 verbose #21278 > >         children ()
00:23:22 verbose #21279 > >     inl children : () -> fragment = join children
00:23:22 verbose #21280 > >     tag_closed_raw "leptos_router::Router" [[
00:23:22 verbose #21281 > >         $'"children=Box::new(move || !children())"'
00:23:22 verbose #21282 > >     ]]
00:23:22 verbose #21283 > >     |> macro_to_view
00:23:23 verbose #21284 > >
00:23:23 verbose #21285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:23 verbose #21286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:23 verbose #21287 > > │ ### routes                                                                   │
00:23:23 verbose #21288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:23 verbose #21289 > >
00:23:23 verbose #21290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:23 verbose #21291 > > inl routes children : view =
00:23:23 verbose #21292 > >     inl children : () -> fragment = children |> rust.emit
00:23:23 verbose #21293 > >     tag_closed_raw "leptos_router::Routes" [[
00:23:23 verbose #21294 > >         $'"children=Box::new(move || !children(()))"'
00:23:23 verbose #21295 > >     ]]
00:23:23 verbose #21296 > >     |> macro_to_view
00:23:23 verbose #21297 > >
00:23:23 verbose #21298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:23 verbose #21299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:23 verbose #21300 > > │ ### a'                                                                       │
00:23:23 verbose #21301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:23 verbose #21302 > >
00:23:23 verbose #21303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:23 verbose #21304 > > inl a' props children : _ a' =
00:23:23 verbose #21305 > >     tag_element "a" props children
00:23:24 verbose #21306 > >
00:23:24 verbose #21307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:24 verbose #21308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:24 verbose #21309 > > │ ### button                                                                   │
00:23:24 verbose #21310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:24 verbose #21311 > >
00:23:24 verbose #21312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:24 verbose #21313 > > inl button props children : _ button =
00:23:24 verbose #21314 > >     tag_element "button" props children
00:23:24 verbose #21315 > >
00:23:24 verbose #21316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:24 verbose #21317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:24 verbose #21318 > > │ ### details                                                                  │
00:23:24 verbose #21319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:24 verbose #21320 > >
00:23:24 verbose #21321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:24 verbose #21322 > > inl details props children : _ details =
00:23:24 verbose #21323 > >     tag_element "details" props children
00:23:25 verbose #21324 > >
00:23:25 verbose #21325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:25 verbose #21326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:25 verbose #21327 > > │ ### div                                                                      │
00:23:25 verbose #21328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:25 verbose #21329 > >
00:23:25 verbose #21330 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:25 verbose #21331 > > inl div props children : _ div =
00:23:25 verbose #21332 > >     tag_element "div" props children
00:23:25 verbose #21333 > >
00:23:25 verbose #21334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:25 verbose #21335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:25 verbose #21336 > > │ ### footer                                                                   │
00:23:25 verbose #21337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:25 verbose #21338 > >
00:23:25 verbose #21339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:25 verbose #21340 > > inl footer props children : _ footer =
00:23:25 verbose #21341 > >     tag_element "footer" props children
00:23:25 verbose #21342 > >
00:23:25 verbose #21343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:25 verbose #21344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:25 verbose #21345 > > │ ### header                                                                   │
00:23:25 verbose #21346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:25 verbose #21347 > >
00:23:25 verbose #21348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:25 verbose #21349 > > inl header props children : _ header =
00:23:25 verbose #21350 > >     tag_element "header" props children
00:23:26 verbose #21351 > >
00:23:26 verbose #21352 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:26 verbose #21353 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:26 verbose #21354 > > │ ### label                                                                    │
00:23:26 verbose #21355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:26 verbose #21356 > >
00:23:26 verbose #21357 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:26 verbose #21358 > > inl label props children : _ label =
00:23:26 verbose #21359 > >     tag_element "label" props children
00:23:26 verbose #21360 > >
00:23:26 verbose #21361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:26 verbose #21362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:26 verbose #21363 > > │ ### main                                                                     │
00:23:26 verbose #21364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:26 verbose #21365 > >
00:23:26 verbose #21366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:26 verbose #21367 > > inl main props children : _ main =
00:23:26 verbose #21368 > >     tag_element "main" props children
00:23:26 verbose #21369 > >
00:23:26 verbose #21370 > > inl main' () = ()
00:23:27 verbose #21371 > >
00:23:27 verbose #21372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:27 verbose #21373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:27 verbose #21374 > > │ ### nav                                                                      │
00:23:27 verbose #21375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:27 verbose #21376 > >
00:23:27 verbose #21377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:27 verbose #21378 > > inl nav props children : _ nav =
00:23:27 verbose #21379 > >     tag_element "nav" props children
00:23:28 verbose #21380 > >
00:23:28 verbose #21381 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:28 verbose #21382 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:28 verbose #21383 > > │ ### option'                                                                  │
00:23:28 verbose #21384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:28 verbose #21385 > >
00:23:28 verbose #21386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:28 verbose #21387 > > inl option' props children : _ option' =
00:23:28 verbose #21388 > >     tag_element "option" props children
00:23:28 verbose #21389 > >
00:23:28 verbose #21390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:28 verbose #21391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:28 verbose #21392 > > │ ### option'                                                                  │
00:23:28 verbose #21393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:28 verbose #21394 > >
00:23:28 verbose #21395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:28 verbose #21396 > > inl option' select children : _ option' =
00:23:28 verbose #21397 > >     inl select : () -> bool = join select
00:23:28 verbose #21398 > >     option' [[
00:23:28 verbose #21399 > >         $'"select=!select()"'
00:23:28 verbose #21400 > >
00:23:28 verbose #21401 > >     ]] fun () =>
00:23:28 verbose #21402 > >         children |> new_text |> text_to_fragment
00:23:28 verbose #21403 > >
00:23:28 verbose #21404 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:28 verbose #21405 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:28 verbose #21406 > > │ ### pre                                                                      │
00:23:28 verbose #21407 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:28 verbose #21408 > >
00:23:28 verbose #21409 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:28 verbose #21410 > > inl pre props children : _ pre =
00:23:28 verbose #21411 > >     tag_element "pre" props children
00:23:29 verbose #21412 > >
00:23:29 verbose #21413 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:29 verbose #21414 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:29 verbose #21415 > > │ ### select                                                                   │
00:23:29 verbose #21416 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:29 verbose #21417 > >
00:23:29 verbose #21418 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:29 verbose #21419 > > inl select props children : _ select =
00:23:29 verbose #21420 > >     tag_element "select" props children
00:23:29 verbose #21421 > >
00:23:29 verbose #21422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:29 verbose #21423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:29 verbose #21424 > > │ ### span                                                                     │
00:23:29 verbose #21425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:29 verbose #21426 > >
00:23:29 verbose #21427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:29 verbose #21428 > > inl span props children : _ span =
00:23:29 verbose #21429 > >     tag_element "span" props children
00:23:30 verbose #21430 > >
00:23:30 verbose #21431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:30 verbose #21432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:30 verbose #21433 > > │ ### summary                                                                  │
00:23:30 verbose #21434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:30 verbose #21435 > >
00:23:30 verbose #21436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:30 verbose #21437 > > inl summary props children : _ summary =
00:23:30 verbose #21438 > >     tag_element "summary" props children
00:23:30 verbose #21439 > >
00:23:30 verbose #21440 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:30 verbose #21441 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:30 verbose #21442 > > │ ### table                                                                    │
00:23:30 verbose #21443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:30 verbose #21444 > >
00:23:30 verbose #21445 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:30 verbose #21446 > > inl table props children : _ table =
00:23:30 verbose #21447 > >     tag_element "table" props children
00:23:31 verbose #21448 > >
00:23:31 verbose #21449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:31 verbose #21450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:31 verbose #21451 > > │ ### thead                                                                    │
00:23:31 verbose #21452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:31 verbose #21453 > >
00:23:31 verbose #21454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:31 verbose #21455 > > inl thead props children : _ thead =
00:23:31 verbose #21456 > >     tag_element "thead" props children
00:23:31 verbose #21457 > >
00:23:31 verbose #21458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:31 verbose #21459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:31 verbose #21460 > > │ ### tbody                                                                    │
00:23:31 verbose #21461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:31 verbose #21462 > >
00:23:31 verbose #21463 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:31 verbose #21464 > > inl tbody props children : _ tbody =
00:23:31 verbose #21465 > >     tag_element "tbody" props children
00:23:32 verbose #21466 > >
00:23:32 verbose #21467 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:32 verbose #21468 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:32 verbose #21469 > > │ ### tr                                                                       │
00:23:32 verbose #21470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 verbose #21471 > >
00:23:32 verbose #21472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:32 verbose #21473 > > inl tr props children : _ tr =
00:23:32 verbose #21474 > >     tag_element "tr" props children
00:23:32 verbose #21475 > >
00:23:32 verbose #21476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:32 verbose #21477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:32 verbose #21478 > > │ ### th                                                                       │
00:23:32 verbose #21479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 verbose #21480 > >
00:23:32 verbose #21481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:32 verbose #21482 > > inl th props children : _ th =
00:23:32 verbose #21483 > >     tag_element "th" props children
00:23:33 verbose #21484 > >
00:23:33 verbose #21485 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 verbose #21486 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 verbose #21487 > > │ ### td                                                                       │
00:23:33 verbose #21488 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 verbose #21489 > >
00:23:33 verbose #21490 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 verbose #21491 > > inl td props children : _ td =
00:23:33 verbose #21492 > >     tag_element "td" props children
00:23:33 verbose #21493 > >
00:23:33 verbose #21494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 verbose #21495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 verbose #21496 > > │ ### svg                                                                      │
00:23:33 verbose #21497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 verbose #21498 > >
00:23:33 verbose #21499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 verbose #21500 > > inl svg props children : _ svg =
00:23:33 verbose #21501 > >     tag_element "svg" props children
00:23:34 verbose #21502 > >
00:23:34 verbose #21503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 verbose #21504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 verbose #21505 > > │ ### path                                                                     │
00:23:34 verbose #21506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 verbose #21507 > >
00:23:34 verbose #21508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 verbose #21509 > > inl path props : _ path =
00:23:34 verbose #21510 > >     tag_element "path" props (fun () => ;[[]] |> view_array_to_fragment)
00:23:34 verbose #21511 > >
00:23:34 verbose #21512 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 verbose #21513 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 verbose #21514 > > │ ### circle                                                                   │
00:23:34 verbose #21515 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 verbose #21516 > >
00:23:34 verbose #21517 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 verbose #21518 > > inl circle props : _ circle =
00:23:34 verbose #21519 > >     tag_element "circle" props (fun () => ;[[]] |> view_array_to_fragment)
00:23:34 verbose #21520 > >
00:23:34 verbose #21521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 verbose #21522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 verbose #21523 > > │ ### rect                                                                     │
00:23:34 verbose #21524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 verbose #21525 > >
00:23:34 verbose #21526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 verbose #21527 > > inl rect props children : _ rect =
00:23:34 verbose #21528 > >     tag_element "rect" props children
00:23:35 verbose #21529 > >
00:23:35 verbose #21530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 verbose #21531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 verbose #21532 > > │ ### animate                                                                  │
00:23:35 verbose #21533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 verbose #21534 > >
00:23:35 verbose #21535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 verbose #21536 > > inl animate props : _ animate =
00:23:35 verbose #21537 > >     tag_element "animate" props (fun () => ;[[]] |> view_array_to_fragment)
00:23:35 verbose #21538 > >
00:23:35 verbose #21539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 verbose #21540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 verbose #21541 > > │ ### input                                                                    │
00:23:35 verbose #21542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 verbose #21543 > >
00:23:35 verbose #21544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 verbose #21545 > > inl input props : _ input =
00:23:35 verbose #21546 > >     tag_closed "input" props
00:23:36 verbose #21547 > >
00:23:36 verbose #21548 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:36 verbose #21549 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:36 verbose #21550 > > │ ### dd                                                                       │
00:23:36 verbose #21551 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:36 verbose #21552 > >
00:23:36 verbose #21553 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:36 verbose #21554 > > inl dd props children : _ dd =
00:23:36 verbose #21555 > >     tag_element "dd" props children
00:23:36 verbose #21556 > >
00:23:36 verbose #21557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:36 verbose #21558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:36 verbose #21559 > > │ ### dl                                                                       │
00:23:36 verbose #21560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:36 verbose #21561 > >
00:23:36 verbose #21562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:36 verbose #21563 > > inl dl props children : _ dl =
00:23:36 verbose #21564 > >     tag_element "dl" props children
00:23:37 verbose #21565 > >
00:23:37 verbose #21566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:37 verbose #21567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:37 verbose #21568 > > │ ### dt                                                                       │
00:23:37 verbose #21569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:37 verbose #21570 > >
00:23:37 verbose #21571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:37 verbose #21572 > > inl dt props children : _ dt =
00:23:37 verbose #21573 > >     tag_element "dt" props children
00:23:38 verbose #21574 > 00:01:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 106727 }
00:23:38 verbose #21575 > 00:01:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:23:38 verbose #21576 >     "nbconvert",
00:23:38 verbose #21577 >     "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb",
00:23:38 verbose #21578 >     "--to",
00:23:38 verbose #21579 >     "html",
00:23:38 verbose #21580 >     "--HTMLExporter.theme=dark",
00:23:38 verbose #21581 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:41 verbose #21582 > 00:01:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.ipynb to html
00:23:41 verbose #21583 > 00:01:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:41 verbose #21584 > 00:01:34 verbose #7 !   validate(nb)
00:23:45 verbose #21585 > 00:01:38 verbose #8 ! [NbConvertApp] Writing 593065 bytes to c:\home\git\polyglot\lib\spiral\leptos\leptos.dib.html
00:23:45 verbose #21586 > 00:01:38 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 657 }
00:23:45 verbose #21587 > 00:01:38   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 657 }
00:23:45 verbose #21588 > 00:01:38   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:23:45 verbose #21589 >     "-c",
00:23:45 verbose #21590 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:23:45 verbose #21591 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/leptos/leptos.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:46 verbose #21592 > 00:01:39 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:46 verbose #21593 > 00:01:39   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:46 verbose #21594 > 00:01:39   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 107443 }
00:23:46   debug #21595 runtime.execute_with_options_async / { exit_code = 0; output_length = 114500 }
00:23:46   debug #26 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path leptos/leptos.dib --retries 3
00:23:46   debug #21596 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:46 verbose #21597 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "util.dib", "--retries", "3"])) }
00:23:46 verbose #21598 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:23:46 verbose #21599 >     "repl",
00:23:46 verbose #21600 >     "--exit-after-run",
00:23:46 verbose #21601 >     "--run",
00:23:46 verbose #21602 >     "c:/home/git/polyglot/lib/spiral/util.dib",
00:23:46 verbose #21603 >     "--output-path",
00:23:46 verbose #21604 >     "c:/home/git/polyglot/lib/spiral/util.dib.ipynb",
00:23:46 verbose #21605 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/util.dib" --output-path "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:49 verbose #21606 > >
00:23:49 verbose #21607 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:49 verbose #21608 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:49 verbose #21609 > > │ # util                                                                       │
00:23:49 verbose #21610 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:54 verbose #21611 > >
00:23:54 verbose #21612 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:54 verbose #21613 > > //// test
00:23:54 verbose #21614 > >
00:23:54 verbose #21615 > > open testing
00:23:56 verbose #21616 > >
00:23:56 verbose #21617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:56 verbose #21618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:56 verbose #21619 > > │ ### ski                                                                      │
00:23:56 verbose #21620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:56 verbose #21621 > >
00:23:56 verbose #21622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:56 verbose #21623 > > union rec ski =
00:23:56 verbose #21624 > >     | I
00:23:56 verbose #21625 > >     | K
00:23:56 verbose #21626 > >     | S
00:23:56 verbose #21627 > >     | App : ski * ski
00:23:56 verbose #21628 > >
00:23:56 verbose #21629 > > inl rec eval ski =
00:23:56 verbose #21630 > >     match ski with
00:23:56 verbose #21631 > >     | App (App (K, x), y) => x |> eval
00:23:56 verbose #21632 > >     | App (App (App (S, x), y), z) => App (App (x, z), App (y, z)) |> eval
00:23:56 verbose #21633 > >     | App (I, x) => x |> eval
00:23:56 verbose #21634 > >     | App (K, x) => App (K, eval x)
00:23:56 verbose #21635 > >     | App (f, x) => App (eval f, x) |> eval
00:23:56 verbose #21636 > >     | _ => ski
00:23:56 verbose #21637 > >
00:23:56 verbose #21638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:56 verbose #21639 > > //// test
00:23:56 verbose #21640 > >
00:23:56 verbose #21641 > > eval I
00:23:56 verbose #21642 > > |> _assert_eq I
00:23:56 verbose #21643 > >
00:23:56 verbose #21644 > > App (I, I)
00:23:56 verbose #21645 > > |> eval
00:23:56 verbose #21646 > > |> _assert_eq I
00:23:56 verbose #21647 > >
00:23:56 verbose #21648 > > App (I, App (I, I))
00:23:56 verbose #21649 > > |> eval
00:23:56 verbose #21650 > > |> _assert_eq I
00:23:56 verbose #21651 > >
00:23:56 verbose #21652 > > App (App (I, I), I)
00:23:56 verbose #21653 > > |> eval
00:23:56 verbose #21654 > > |> _assert_eq I
00:23:56 verbose #21655 > >
00:23:56 verbose #21656 > > App (App (App (I, I), I), I)
00:23:56 verbose #21657 > > |> eval
00:23:56 verbose #21658 > > |> _assert_eq I
00:23:56 verbose #21659 > >
00:23:56 verbose #21660 > > eval K
00:23:56 verbose #21661 > > |> _assert_eq K
00:23:56 verbose #21662 > >
00:23:56 verbose #21663 > > App (K, I)
00:23:56 verbose #21664 > > |> eval
00:23:56 verbose #21665 > > |> _assert_eq (App (K, I))
00:23:56 verbose #21666 > >
00:23:56 verbose #21667 > > App (K, K)
00:23:56 verbose #21668 > > |> eval
00:23:56 verbose #21669 > > |> _assert_eq (App (K, K))
00:23:56 verbose #21670 > >
00:23:56 verbose #21671 > > App (App (K, I), K)
00:23:56 verbose #21672 > > |> eval
00:23:56 verbose #21673 > > |> _assert_eq I
00:23:56 verbose #21674 > >
00:23:56 verbose #21675 > > App (App (K, K), I)
00:23:56 verbose #21676 > > |> eval
00:23:56 verbose #21677 > > |> _assert_eq K
00:23:56 verbose #21678 > >
00:23:56 verbose #21679 > > App (App (App (App (K, K), I), S), K)
00:23:56 verbose #21680 > > |> eval
00:23:56 verbose #21681 > > |> _assert_eq S
00:23:56 verbose #21682 > >
00:23:56 verbose #21683 > > eval S
00:23:56 verbose #21684 > > |> _assert_eq S
00:23:56 verbose #21685 > >
00:23:56 verbose #21686 > > App (App (App (S, I), I), I)
00:23:56 verbose #21687 > > |> eval
00:23:56 verbose #21688 > > |> _assert_eq I
00:23:56 verbose #21689 > >
00:23:56 verbose #21690 > > App (App (App (S, K), K), I)
00:23:56 verbose #21691 > > |> eval
00:23:56 verbose #21692 > > |> _assert_eq I
00:23:56 verbose #21693 > >
00:23:56 verbose #21694 > > App (App (App (S, K), I), (App (App (K, I), S)))
00:23:56 verbose #21695 > > |> eval
00:23:56 verbose #21696 > > |> _assert_eq I
00:23:56 verbose #21697 > >
00:23:56 verbose #21698 > > App (App (K, S), App (I, App (App (App (S, K), S), I)))
00:23:56 verbose #21699 > > |> eval
00:23:56 verbose #21700 > > |> _assert_eq S
00:23:56 verbose #21701 > >
00:23:56 verbose #21702 > > App (App (App (S, K), I), K)
00:23:56 verbose #21703 > > |> eval
00:23:56 verbose #21704 > > |> _assert_eq K
00:23:58 verbose #21705 > >
00:23:58 verbose #21706 > > ╭─[ 2.18s - stdout ]───────────────────────────────────────────────────────────╮
00:23:58 verbose #21707 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21708 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21709 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21710 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21711 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21712 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:23:58 verbose #21713 > > │ __assert_eq / actual: UH0_3 (UH0_1, UH0_0) / expected: UH0_3 (UH0_1, UH0_0)  │
00:23:58 verbose #21714 > > │ __assert_eq / actual: UH0_3 (UH0_1, UH0_1) / expected: UH0_3 (UH0_1, UH0_1)  │
00:23:58 verbose #21715 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21716 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:23:58 verbose #21717 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:23:58 verbose #21718 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:23:58 verbose #21719 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21720 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21721 > > │ __assert_eq / actual: UH0_0 / expected: UH0_0                                │
00:23:58 verbose #21722 > > │ __assert_eq / actual: UH0_2 / expected: UH0_2                                │
00:23:58 verbose #21723 > > │ __assert_eq / actual: UH0_1 / expected: UH0_1                                │
00:23:58 verbose #21724 > > │                                                                              │
00:23:58 verbose #21725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:59 verbose #21726 > 00:00:12 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 3706 }
00:23:59 verbose #21727 > 00:00:12   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:23:59 verbose #21728 >     "nbconvert",
00:23:59 verbose #21729 >     "c:/home/git/polyglot/lib/spiral/util.dib.ipynb",
00:23:59 verbose #21730 >     "--to",
00:23:59 verbose #21731 >     "html",
00:23:59 verbose #21732 >     "--HTMLExporter.theme=dark",
00:23:59 verbose #21733 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/util.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:02 verbose #21734 > 00:00:15 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/util.dib.ipynb to html
00:24:02 verbose #21735 > 00:00:15 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:24:02 verbose #21736 > 00:00:15 verbose #7 !   validate(nb)
00:24:04 verbose #21737 > 00:00:17 verbose #8 ! [NbConvertApp] Writing 284347 bytes to c:\home\git\polyglot\lib\spiral\util.dib.html
00:24:04 verbose #21738 > 00:00:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:24:04 verbose #21739 > 00:00:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:24:04 verbose #21740 > 00:00:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:24:04 verbose #21741 >     "-c",
00:24:04 verbose #21742 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:24:04 verbose #21743 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:04 verbose #21744 > 00:00:18 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:24:04 verbose #21745 > 00:00:18   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:24:04 verbose #21746 > 00:00:18   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 4404 }
00:24:04   debug #21747 runtime.execute_with_options_async / { exit_code = 0; output_length = 7302 }
00:24:04   debug #27 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3
00:24:04   debug #21748 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:04 verbose #21749 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "platform.dib", "--retries", "3"])) }
00:24:04 verbose #21750 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:24:04 verbose #21751 >     "repl",
00:24:04 verbose #21752 >     "--exit-after-run",
00:24:04 verbose #21753 >     "--run",
00:24:04 verbose #21754 >     "c:/home/git/polyglot/lib/spiral/platform.dib",
00:24:04 verbose #21755 >     "--output-path",
00:24:04 verbose #21756 >     "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb",
00:24:04 verbose #21757 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/platform.dib" --output-path "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:24:08 verbose #21758 > >
00:24:08 verbose #21759 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:08 verbose #21760 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:08 verbose #21761 > > │ # platform                                                                   │
00:24:08 verbose #21762 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:13 verbose #21763 > >
00:24:13 verbose #21764 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:13 verbose #21765 > > open rust.rust_operators
00:24:15 verbose #21766 > >
00:24:15 verbose #21767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #21768 > > //// test
00:24:15 verbose #21769 > >
00:24:15 verbose #21770 > > open testing
00:24:15 verbose #21771 > >
00:24:15 verbose #21772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #21773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #21774 > > │ ## fsharp                                                                    │
00:24:15 verbose #21775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #21776 > >
00:24:15 verbose #21777 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #21778 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #21779 > > │ ### os_platform                                                              │
00:24:15 verbose #21780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #21781 > >
00:24:15 verbose #21782 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #21783 > > nominal os_platform' = $'System.Runtime.InteropServices.OSPlatform'
00:24:15 verbose #21784 > >
00:24:15 verbose #21785 > > union os_platform =
00:24:15 verbose #21786 > >     | FreeBSD
00:24:15 verbose #21787 > >     | Linux
00:24:15 verbose #21788 > >     | OSX
00:24:15 verbose #21789 > >     | Windows
00:24:15 verbose #21790 > >
00:24:15 verbose #21791 > > inl os_platform = function
00:24:15 verbose #21792 > >     | FreeBSD => $'`os_platform'.FreeBSD' : os_platform'
00:24:15 verbose #21793 > >     | Linux => $'`os_platform'.Linux' : os_platform'
00:24:15 verbose #21794 > >     | OSX => $'`os_platform'.OSX' : os_platform'
00:24:15 verbose #21795 > >     | Windows => $'`os_platform'.Windows' : os_platform'
00:24:15 verbose #21796 > >
00:24:15 verbose #21797 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:15 verbose #21798 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:15 verbose #21799 > > │ ### run_platform                                                             │
00:24:15 verbose #21800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:15 verbose #21801 > >
00:24:15 verbose #21802 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:15 verbose #21803 > > inl run_platform forall t. (fn : os_platform -> (() -> t)) : t =
00:24:15 verbose #21804 > >     inl result = dyn true
00:24:15 verbose #21805 > >     $'let mutable _!result : `t option = None '
00:24:15 verbose #21806 > >     $'\n#if _FREEBSD'
00:24:15 verbose #21807 > >     fn FreeBSD () |> emit_unit
00:24:15 verbose #21808 > >     $'#endif\n#if _LINUX'
00:24:15 verbose #21809 > >     fn Linux () |> emit_unit
00:24:15 verbose #21810 > >     $'#endif\n#if _OSX'
00:24:15 verbose #21811 > >     fn OSX () |> emit_unit
00:24:15 verbose #21812 > >     $'#endif\n#if _WINDOWS'
00:24:15 verbose #21813 > >     fn Windows () |> emit_unit
00:24:15 verbose #21814 > >     $'#endif'
00:24:15 verbose #21815 > >     $'|> fun x -> _!result <- Some x'
00:24:15 verbose #21816 > >     $'match _!result with Some x -> x | None -> failwith "runtime.run_platform
00:24:15 verbose #21817 > > _!result=None"'
00:24:16 verbose #21818 > >
00:24:16 verbose #21819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #21820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #21821 > > │ ### is_os_platform                                                           │
00:24:16 verbose #21822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #21823 > >
00:24:16 verbose #21824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #21825 > > inl is_os_platform (x : os_platform') : bool =
00:24:16 verbose #21826 > >     x |> $'System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform'
00:24:16 verbose #21827 > >
00:24:16 verbose #21828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #21829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #21830 > > │ ### is_windows'                                                              │
00:24:16 verbose #21831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #21832 > >
00:24:16 verbose #21833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #21834 > > inl is_windows' () : bool =
00:24:16 verbose #21835 > >     run_platform function
00:24:16 verbose #21836 > >         | Windows => fun () => true
00:24:16 verbose #21837 > >         | _ => fun () => false
00:24:16 verbose #21838 > >
00:24:16 verbose #21839 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #21840 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #21841 > > │ ## platform                                                                  │
00:24:16 verbose #21842 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #21843 > >
00:24:16 verbose #21844 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #21845 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #21846 > > │ ### is_windows                                                               │
00:24:16 verbose #21847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #21848 > >
00:24:16 verbose #21849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #21850 > > inl is_windows () : bool =
00:24:16 verbose #21851 > >     run_target function
00:24:16 verbose #21852 > >         | Rust _ => fun () =>
00:24:16 verbose #21853 > >             !\($'"cfg\!(windows)"')
00:24:16 verbose #21854 > >         | Fsharp _ => fun () =>
00:24:16 verbose #21855 > >             Windows |> os_platform |> is_os_platform
00:24:16 verbose #21856 > >         | target => fun () => failwith $'$"platform.is_windows / target:
00:24:16 verbose #21857 > > {!target}"'
00:24:17 verbose #21858 > >
00:24:17 verbose #21859 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:17 verbose #21860 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:17 verbose #21861 > > │ ### get_executable_suffix                                                    │
00:24:17 verbose #21862 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:17 verbose #21863 > >
00:24:17 verbose #21864 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:17 verbose #21865 > > inl get_executable_suffix () =
00:24:17 verbose #21866 > >     if is_windows ()
00:24:17 verbose #21867 > >     then ".exe"
00:24:17 verbose #21868 > >     else ""
00:24:17 verbose #21869 > >
00:24:17 verbose #21870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:17 verbose #21871 > > //// test
00:24:17 verbose #21872 > >
00:24:17 verbose #21873 > > get_executable_suffix ()
00:24:19 verbose #21874 > >
00:24:19 verbose #21875 > > ╭─[ 1.93s - return value ]─────────────────────────────────────────────────────╮
00:24:19 verbose #21876 > > │ .exe                                                                         │
00:24:19 verbose #21877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:19 verbose #21878 > >
00:24:19 verbose #21879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:19 verbose #21880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:19 verbose #21881 > > │ ## main                                                                      │
00:24:19 verbose #21882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:19 verbose #21883 > >
00:24:19 verbose #21884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:19 verbose #21885 > > inl main () =
00:24:19 verbose #21886 > >     $'let is_windows () = !is_windows ()' : ()
00:24:19 verbose #21887 > >     $'let get_executable_suffix () = !get_executable_suffix ()' : ()
00:24:20 verbose #21888 > 00:00:15 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6028 }
00:24:20 verbose #21889 > 00:00:15   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:24:20 verbose #21890 >     "nbconvert",
00:24:20 verbose #21891 >     "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb",
00:24:20 verbose #21892 >     "--to",
00:24:20 verbose #21893 >     "html",
00:24:20 verbose #21894 >     "--HTMLExporter.theme=dark",
00:24:20 verbose #21895 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:23 verbose #21896 > 00:00:18 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/platform.dib.ipynb to html
00:24:23 verbose #21897 > 00:00:18 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:24:23 verbose #21898 > 00:00:18 verbose #7 !   validate(nb)
00:24:25 verbose #21899 > 00:00:20 verbose #8 ! [NbConvertApp] Writing 288002 bytes to c:\home\git\polyglot\lib\spiral\platform.dib.html
00:24:25 verbose #21900 > 00:00:20 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:24:25 verbose #21901 > 00:00:20   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:24:25 verbose #21902 > 00:00:20   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:24:25 verbose #21903 >     "-c",
00:24:25 verbose #21904 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:24:25 verbose #21905 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:26 verbose #21906 > 00:00:21 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:24:26 verbose #21907 > 00:00:21   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:24:26 verbose #21908 > 00:00:21   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 6734 }
00:24:26   debug #21909 runtime.execute_with_options_async / { exit_code = 0; output_length = 9688 }
00:24:26   debug #28 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3
00:24:26   debug #21910 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:26 verbose #21911 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "stream.dib", "--retries", "3"])) }
00:24:26 verbose #21912 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:24:26 verbose #21913 >     "repl",
00:24:26 verbose #21914 >     "--exit-after-run",
00:24:26 verbose #21915 >     "--run",
00:24:26 verbose #21916 >     "c:/home/git/polyglot/lib/spiral/stream.dib",
00:24:26 verbose #21917 >     "--output-path",
00:24:26 verbose #21918 >     "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb",
00:24:26 verbose #21919 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/stream.dib" --output-path "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:24:29 verbose #21920 > >
00:24:29 verbose #21921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:29 verbose #21922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:29 verbose #21923 > > │ # stream                                                                     │
00:24:29 verbose #21924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:34 verbose #21925 > >
00:24:34 verbose #21926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:34 verbose #21927 > > open rust.rust_operators
00:24:36 verbose #21928 > >
00:24:36 verbose #21929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:36 verbose #21930 > > //// test
00:24:36 verbose #21931 > >
00:24:36 verbose #21932 > > open testing
00:24:36 verbose #21933 > >
00:24:36 verbose #21934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:36 verbose #21935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:36 verbose #21936 > > │ ## stream                                                                    │
00:24:36 verbose #21937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:36 verbose #21938 > >
00:24:36 verbose #21939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:36 verbose #21940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:36 verbose #21941 > > │ ### stream                                                                   │
00:24:36 verbose #21942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:36 verbose #21943 > >
00:24:36 verbose #21944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:36 verbose #21945 > > union rec stream t =
00:24:36 verbose #21946 > >     | StreamCons : t * (() -> stream t)
00:24:36 verbose #21947 > >     | StreamNil
00:24:37 verbose #21948 > >
00:24:37 verbose #21949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:37 verbose #21950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:37 verbose #21951 > > │ ### fold                                                                     │
00:24:37 verbose #21952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:37 verbose #21953 > >
00:24:37 verbose #21954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:37 verbose #21955 > > inl fold fn init s =
00:24:37 verbose #21956 > >     inl rec body acc = function
00:24:37 verbose #21957 > >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:24:37 verbose #21958 > >         | StreamNil => acc
00:24:37 verbose #21959 > >     and inl loop acc = join_body body acc
00:24:37 verbose #21960 > >     loop init s
00:24:37 verbose #21961 > >
00:24:37 verbose #21962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:37 verbose #21963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:37 verbose #21964 > > │ ### fold_back                                                                │
00:24:37 verbose #21965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:37 verbose #21966 > >
00:24:37 verbose #21967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:37 verbose #21968 > > inl fold_back fn s init =
00:24:37 verbose #21969 > >     inl rec body acc = function
00:24:37 verbose #21970 > >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:24:37 verbose #21971 > >         | StreamNil => acc
00:24:37 verbose #21972 > >     and inl loop acc = join_body body acc
00:24:37 verbose #21973 > >     loop init s
00:24:38 verbose #21974 > >
00:24:38 verbose #21975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:38 verbose #21976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:38 verbose #21977 > > │ ### to_list                                                                  │
00:24:38 verbose #21978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:38 verbose #21979 > >
00:24:38 verbose #21980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:38 verbose #21981 > > inl to_list s =
00:24:38 verbose #21982 > >     (s, [[]])
00:24:38 verbose #21983 > >     ||> fold_back fun x acc =>
00:24:38 verbose #21984 > >         x :: acc
00:24:38 verbose #21985 > >
00:24:38 verbose #21986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:38 verbose #21987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:38 verbose #21988 > > │ ### rev                                                                      │
00:24:38 verbose #21989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:38 verbose #21990 > >
00:24:38 verbose #21991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:38 verbose #21992 > > inl rev s =
00:24:38 verbose #21993 > >     (StreamNil, s)
00:24:38 verbose #21994 > >     ||> fold fun s x =>
00:24:38 verbose #21995 > >         StreamCons (x, fun () => s)
00:24:38 verbose #21996 > >
00:24:38 verbose #21997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:38 verbose #21998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:38 verbose #21999 > > │ ### from_list                                                                │
00:24:38 verbose #22000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:38 verbose #22001 > >
00:24:38 verbose #22002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:38 verbose #22003 > > inl from_list list =
00:24:38 verbose #22004 > >     (list, StreamNil)
00:24:38 verbose #22005 > >     ||> listm.foldBack fun x acc =>
00:24:38 verbose #22006 > >         StreamCons (x, fun () => acc)
00:24:39 verbose #22007 > >
00:24:39 verbose #22008 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:39 verbose #22009 > > //// test
00:24:39 verbose #22010 > >
00:24:39 verbose #22011 > > listm.init 3i32 id
00:24:39 verbose #22012 > > |> from_list
00:24:39 verbose #22013 > > |> rev
00:24:39 verbose #22014 > > |> to_list
00:24:39 verbose #22015 > > |> _assert_eq [[ 2; 1; 0 ]]
00:24:41 verbose #22016 > >
00:24:41 verbose #22017 > > ╭─[ 2.14s - stdout ]───────────────────────────────────────────────────────────╮
00:24:41 verbose #22018 > > │ __assert_eq / actual: UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0))) / expected:     │
00:24:41 verbose #22019 > > │ UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0)))                                       │
00:24:41 verbose #22020 > > │                                                                              │
00:24:41 verbose #22021 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:41 verbose #22022 > >
00:24:41 verbose #22023 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:41 verbose #22024 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:41 verbose #22025 > > │ ### try_item                                                                 │
00:24:41 verbose #22026 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:41 verbose #22027 > >
00:24:41 verbose #22028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:41 verbose #22029 > > inl try_item i s =
00:24:41 verbose #22030 > >     inl rec body i = function
00:24:41 verbose #22031 > >         | StreamCons (x, _) when i <= 0 => Some x
00:24:41 verbose #22032 > >         | StreamCons (_, fn) => loop (i - 1) (fn ())
00:24:41 verbose #22033 > >         | StreamNil => None
00:24:41 verbose #22034 > >     and inl loop acc s' =
00:24:41 verbose #22035 > >         match var_is acc, var_is s' with
00:24:41 verbose #22036 > >         | false, false => body acc s'
00:24:41 verbose #22037 > >         | _ =>
00:24:41 verbose #22038 > >             inl acc = dyn acc
00:24:41 verbose #22039 > >             inl s' = dyn s'
00:24:41 verbose #22040 > >             join body acc s'
00:24:41 verbose #22041 > >     loop i s
00:24:41 verbose #22042 > >
00:24:41 verbose #22043 > > inl item i =
00:24:41 verbose #22044 > >     try_item i >> optionm.value
00:24:41 verbose #22045 > >
00:24:41 verbose #22046 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:41 verbose #22047 > > //// test
00:24:41 verbose #22048 > >
00:24:41 verbose #22049 > > listm.init 10i32 id
00:24:41 verbose #22050 > > |> from_list
00:24:41 verbose #22051 > > |> item 9i32
00:24:41 verbose #22052 > > |> _assert_eq 9
00:24:42 verbose #22053 > >
00:24:42 verbose #22054 > > ╭─[ 441.68ms - stdout ]────────────────────────────────────────────────────────╮
00:24:42 verbose #22055 > > │ __assert_eq / actual: 9 / expected: 9                                        │
00:24:42 verbose #22056 > > │                                                                              │
00:24:42 verbose #22057 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:42 verbose #22058 > >
00:24:42 verbose #22059 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:42 verbose #22060 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:42 verbose #22061 > > │ ### new_infinite_stream                                                      │
00:24:42 verbose #22062 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:42 verbose #22063 > >
00:24:42 verbose #22064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:42 verbose #22065 > > inl new_infinite_stream fn =
00:24:42 verbose #22066 > >     inl rec loop n =
00:24:42 verbose #22067 > >         StreamCons (fn n, fun () => loop (n + 1))
00:24:42 verbose #22068 > >     loop 0
00:24:42 verbose #22069 > >
00:24:42 verbose #22070 > > inl new_infinite_stream_ fn =
00:24:42 verbose #22071 > >     let rec loop n =
00:24:42 verbose #22072 > >         StreamCons (fn n, fun () => loop (n + 1))
00:24:42 verbose #22073 > >     loop 0
00:24:42 verbose #22074 > >
00:24:42 verbose #22075 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:42 verbose #22076 > > //// test
00:24:42 verbose #22077 > >
00:24:42 verbose #22078 > > new_infinite_stream print_and_return
00:24:42 verbose #22079 > > |> item 4i32
00:24:42 verbose #22080 > > |> _assert_eq 4i32
00:24:43 verbose #22081 > >
00:24:43 verbose #22082 > > ╭─[ 467.00ms - stdout ]────────────────────────────────────────────────────────╮
00:24:43 verbose #22083 > > │ print_and_return / x: 0                                                      │
00:24:43 verbose #22084 > > │ print_and_return / x: 1                                                      │
00:24:43 verbose #22085 > > │ print_and_return / x: 2                                                      │
00:24:43 verbose #22086 > > │ print_and_return / x: 3                                                      │
00:24:43 verbose #22087 > > │ print_and_return / x: 4                                                      │
00:24:43 verbose #22088 > > │ __assert_eq / actual: 4 / expected: 4                                        │
00:24:43 verbose #22089 > > │                                                                              │
00:24:43 verbose #22090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #22091 > >
00:24:43 verbose #22092 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:43 verbose #22093 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:43 verbose #22094 > > │ ### new_finite_stream                                                        │
00:24:43 verbose #22095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #22096 > >
00:24:43 verbose #22097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:43 verbose #22098 > > inl new_finite_stream fn max =
00:24:43 verbose #22099 > >     inl rec loop n =
00:24:43 verbose #22100 > >         if n >= max
00:24:43 verbose #22101 > >         then StreamNil
00:24:43 verbose #22102 > >         else StreamCons (fn n, fun () => loop (n + 1))
00:24:43 verbose #22103 > >     loop 0
00:24:43 verbose #22104 > >
00:24:43 verbose #22105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:43 verbose #22106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:43 verbose #22107 > > │ ### memoize                                                                  │
00:24:43 verbose #22108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:43 verbose #22109 > >
00:24:43 verbose #22110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:43 verbose #22111 > > union memoized_stream t =
00:24:43 verbose #22112 > >     | NotComputed : () -> stream t
00:24:43 verbose #22113 > >     | Computed : stream t
00:24:43 verbose #22114 > >
00:24:43 verbose #22115 > > inl memoize s =
00:24:43 verbose #22116 > >     inl rec body s =
00:24:43 verbose #22117 > >         inl state = mut (NotComputed s)
00:24:43 verbose #22118 > >         fun () =>
00:24:43 verbose #22119 > >             match *state with
00:24:43 verbose #22120 > >             | Computed x => x
00:24:43 verbose #22121 > >             | NotComputed fn =>
00:24:43 verbose #22122 > >                 inl new_state =
00:24:43 verbose #22123 > >                     match fn () with
00:24:43 verbose #22124 > >                     | StreamNil => StreamNil
00:24:43 verbose #22125 > >                     | StreamCons (x, fn) => StreamCons (x, loop fn)
00:24:43 verbose #22126 > >                 state <- Computed new_state
00:24:43 verbose #22127 > >                 new_state
00:24:43 verbose #22128 > >     and inl loop s' = join_body_unit body s s'
00:24:43 verbose #22129 > >     loop (fun () => s)
00:24:44 verbose #22130 > >
00:24:44 verbose #22131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:44 verbose #22132 > > //// test
00:24:44 verbose #22133 > >
00:24:44 verbose #22134 > > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:24:44 verbose #22135 > >
00:24:44 verbose #22136 > > memo_stream ()
00:24:44 verbose #22137 > > |> item 3i32
00:24:44 verbose #22138 > > |> _assert_eq 3i32
00:24:44 verbose #22139 > >
00:24:44 verbose #22140 > > memo_stream ()
00:24:44 verbose #22141 > > |> item 5i32
00:24:44 verbose #22142 > > |> _assert_eq 5i32
00:24:45 verbose #22143 > >
00:24:45 verbose #22144 > > ╭─[ 1.02s - stdout ]───────────────────────────────────────────────────────────╮
00:24:45 verbose #22145 > > │ print_and_return / x: 0                                                      │
00:24:45 verbose #22146 > > │ print_and_return / x: 1                                                      │
00:24:45 verbose #22147 > > │ print_and_return / x: 2                                                      │
00:24:45 verbose #22148 > > │ print_and_return / x: 3                                                      │
00:24:45 verbose #22149 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:24:45 verbose #22150 > > │ print_and_return / x: 4                                                      │
00:24:45 verbose #22151 > > │ print_and_return / x: 5                                                      │
00:24:45 verbose #22152 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:24:45 verbose #22153 > > │                                                                              │
00:24:45 verbose #22154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:45 verbose #22155 > >
00:24:45 verbose #22156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:45 verbose #22157 > > //// test
00:24:45 verbose #22158 > >
00:24:45 verbose #22159 > > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:24:45 verbose #22160 > >
00:24:45 verbose #22161 > > memo_stream ()
00:24:45 verbose #22162 > > |> item 3i32
00:24:45 verbose #22163 > > |> _assert_eq 3i32
00:24:45 verbose #22164 > >
00:24:45 verbose #22165 > > memo_stream ()
00:24:45 verbose #22166 > > |> item 5i32
00:24:45 verbose #22167 > > |> _assert_eq 5i32
00:24:45 verbose #22168 > >
00:24:45 verbose #22169 > > ╭─[ 651.20ms - stdout ]────────────────────────────────────────────────────────╮
00:24:45 verbose #22170 > > │ print_and_return / x: 0                                                      │
00:24:45 verbose #22171 > > │ print_and_return / x: 1                                                      │
00:24:45 verbose #22172 > > │ print_and_return / x: 2                                                      │
00:24:45 verbose #22173 > > │ print_and_return / x: 3                                                      │
00:24:45 verbose #22174 > > │ __assert_eq / actual: 3 / expected: 3                                        │
00:24:45 verbose #22175 > > │ print_and_return / x: 4                                                      │
00:24:45 verbose #22176 > > │ print_and_return / x: 5                                                      │
00:24:45 verbose #22177 > > │ __assert_eq / actual: 5 / expected: 5                                        │
00:24:45 verbose #22178 > > │                                                                              │
00:24:45 verbose #22179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:45 verbose #22180 > >
00:24:45 verbose #22181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:45 verbose #22182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:45 verbose #22183 > > │ ### unfold                                                                   │
00:24:45 verbose #22184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:45 verbose #22185 > >
00:24:45 verbose #22186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:45 verbose #22187 > > inl unfold f x0 =
00:24:45 verbose #22188 > >     inl rec body x =
00:24:45 verbose #22189 > >         match f x with
00:24:45 verbose #22190 > >         | Some (x', y) => StreamCons (x', fun () => loop y)
00:24:45 verbose #22191 > >         | None => StreamNil
00:24:45 verbose #22192 > >     and inl loop x = join_body_unit body x0 x
00:24:45 verbose #22193 > >     loop x0
00:24:46 verbose #22194 > >
00:24:46 verbose #22195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:46 verbose #22196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:46 verbose #22197 > > │ ### iterate                                                                  │
00:24:46 verbose #22198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:46 verbose #22199 > >
00:24:46 verbose #22200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:46 verbose #22201 > > inl iterate f =
00:24:46 verbose #22202 > >     fun x => Some (x, f x)
00:24:46 verbose #22203 > >     |> unfold
00:24:46 verbose #22204 > >
00:24:46 verbose #22205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:46 verbose #22206 > > //// test
00:24:46 verbose #22207 > >
00:24:46 verbose #22208 > > iterate ((*) 2) 1i32
00:24:46 verbose #22209 > > |> item 10i32
00:24:46 verbose #22210 > > |> _assert_eq 1024
00:24:47 verbose #22211 > >
00:24:47 verbose #22212 > > ╭─[ 487.19ms - stdout ]────────────────────────────────────────────────────────╮
00:24:47 verbose #22213 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:24:47 verbose #22214 > > │                                                                              │
00:24:47 verbose #22215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:47 verbose #22216 > >
00:24:47 verbose #22217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:47 verbose #22218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:47 verbose #22219 > > │ ### iterate'                                                                 │
00:24:47 verbose #22220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:47 verbose #22221 > >
00:24:47 verbose #22222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:47 verbose #22223 > > inl iterate_map f m =
00:24:47 verbose #22224 > >     fun x =>
00:24:47 verbose #22225 > >         m x
00:24:47 verbose #22226 > >         |> optionm.map fun x =>
00:24:47 verbose #22227 > >             x, f x
00:24:47 verbose #22228 > >     |> unfold
00:24:47 verbose #22229 > >
00:24:47 verbose #22230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:47 verbose #22231 > > //// test
00:24:47 verbose #22232 > >
00:24:47 verbose #22233 > > iterate_map ((*) 2) Some 1i32
00:24:47 verbose #22234 > > |> item 10i32
00:24:47 verbose #22235 > > |> _assert_eq 1024
00:24:48 verbose #22236 > >
00:24:48 verbose #22237 > > ╭─[ 556.35ms - stdout ]────────────────────────────────────────────────────────╮
00:24:48 verbose #22238 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:24:48 verbose #22239 > > │                                                                              │
00:24:48 verbose #22240 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:48 verbose #22241 > >
00:24:48 verbose #22242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:48 verbose #22243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:48 verbose #22244 > > │ ### take_while                                                               │
00:24:48 verbose #22245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:48 verbose #22246 > >
00:24:48 verbose #22247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:48 verbose #22248 > > inl take_while cond s =
00:24:48 verbose #22249 > >     inl rec body i = function
00:24:48 verbose #22250 > >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:24:48 verbose #22251 > > (i + 1) (fn ()))
00:24:48 verbose #22252 > >         | _ => StreamNil
00:24:48 verbose #22253 > >     and inl loop i = join_body body i
00:24:48 verbose #22254 > >     loop 0 s
00:24:48 verbose #22255 > >
00:24:48 verbose #22256 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:48 verbose #22257 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:48 verbose #22258 > > │ ### sum                                                                      │
00:24:48 verbose #22259 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:48 verbose #22260 > >
00:24:48 verbose #22261 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:48 verbose #22262 > > inl sum seq =
00:24:48 verbose #22263 > >     seq |> fold (+) 0
00:24:49 verbose #22264 > >
00:24:49 verbose #22265 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:49 verbose #22266 > > //// test
00:24:49 verbose #22267 > >
00:24:49 verbose #22268 > > listm.init 10i32 id
00:24:49 verbose #22269 > > |> from_list
00:24:49 verbose #22270 > > |> sum
00:24:49 verbose #22271 > > |> _assert_eq 45
00:24:49 verbose #22272 > >
00:24:49 verbose #22273 > > ╭─[ 423.05ms - stdout ]────────────────────────────────────────────────────────╮
00:24:49 verbose #22274 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:24:49 verbose #22275 > > │                                                                              │
00:24:49 verbose #22276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:49 verbose #22277 > >
00:24:49 verbose #22278 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:49 verbose #22279 > > //// test
00:24:49 verbose #22280 > >
00:24:49 verbose #22281 > > new_finite_stream print_and_return 10i32
00:24:49 verbose #22282 > > |> take_while (fun n (_ : i32) => n < 5)
00:24:49 verbose #22283 > > |> sum
00:24:49 verbose #22284 > > |> _assert_eq 10
00:24:49 verbose #22285 > >
00:24:49 verbose #22286 > > ╭─[ 464.55ms - stdout ]────────────────────────────────────────────────────────╮
00:24:49 verbose #22287 > > │ print_and_return / x: 0                                                      │
00:24:49 verbose #22288 > > │ print_and_return / x: 1                                                      │
00:24:49 verbose #22289 > > │ print_and_return / x: 2                                                      │
00:24:49 verbose #22290 > > │ print_and_return / x: 3                                                      │
00:24:49 verbose #22291 > > │ print_and_return / x: 4                                                      │
00:24:49 verbose #22292 > > │ print_and_return / x: 5                                                      │
00:24:49 verbose #22293 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:24:49 verbose #22294 > > │                                                                              │
00:24:49 verbose #22295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:49 verbose #22296 > >
00:24:49 verbose #22297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:49 verbose #22298 > > //// test
00:24:49 verbose #22299 > >
00:24:49 verbose #22300 > > new_infinite_stream print_and_return
00:24:49 verbose #22301 > > |> take_while (fun n (_ : i32) => n < 5i32)
00:24:49 verbose #22302 > > |> sum
00:24:49 verbose #22303 > > |> _assert_eq 10
00:24:50 verbose #22304 > >
00:24:50 verbose #22305 > > ╭─[ 497.32ms - stdout ]────────────────────────────────────────────────────────╮
00:24:50 verbose #22306 > > │ print_and_return / x: 0                                                      │
00:24:50 verbose #22307 > > │ print_and_return / x: 1                                                      │
00:24:50 verbose #22308 > > │ print_and_return / x: 2                                                      │
00:24:50 verbose #22309 > > │ print_and_return / x: 3                                                      │
00:24:50 verbose #22310 > > │ print_and_return / x: 4                                                      │
00:24:50 verbose #22311 > > │ print_and_return / x: 5                                                      │
00:24:50 verbose #22312 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:24:50 verbose #22313 > > │                                                                              │
00:24:50 verbose #22314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:50 verbose #22315 > >
00:24:50 verbose #22316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:50 verbose #22317 > > //// test
00:24:50 verbose #22318 > >
00:24:50 verbose #22319 > > iterate ((*) 6) 1i32
00:24:50 verbose #22320 > > |> take_while (fun _ i => i <= 7i32)
00:24:50 verbose #22321 > > |> to_list
00:24:50 verbose #22322 > > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:24:50 verbose #22323 > >
00:24:50 verbose #22324 > > ╭─[ 451.73ms - stdout ]────────────────────────────────────────────────────────╮
00:24:50 verbose #22325 > > │ __assert_eq / actual: UH0_1                                                  │
00:24:50 verbose #22326 > > │   (1,                                                                        │
00:24:50 verbose #22327 > > │    UH0_1                                                                     │
00:24:50 verbose #22328 > > │      (6,                                                                     │
00:24:50 verbose #22329 > > │       UH0_1                                                                  │
00:24:50 verbose #22330 > > │         (36,                                                                 │
00:24:50 verbose #22331 > > │          UH0_1                                                               │
00:24:50 verbose #22332 > > │            (216,                                                             │
00:24:50 verbose #22333 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:24:50 verbose #22334 > > │ UH0_0)))))))) / expected: UH0_1                                              │
00:24:50 verbose #22335 > > │   (1,                                                                        │
00:24:50 verbose #22336 > > │    UH0_1                                                                     │
00:24:50 verbose #22337 > > │      (6,                                                                     │
00:24:50 verbose #22338 > > │       UH0_1                                                                  │
00:24:50 verbose #22339 > > │         (36,                                                                 │
00:24:50 verbose #22340 > > │          UH0_1                                                               │
00:24:50 verbose #22341 > > │            (216,                                                             │
00:24:50 verbose #22342 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:24:50 verbose #22343 > > │ UH0_0))))))))                                                                │
00:24:50 verbose #22344 > > │                                                                              │
00:24:50 verbose #22345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:50 verbose #22346 > >
00:24:50 verbose #22347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:50 verbose #22348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:50 verbose #22349 > > │ ### indexed                                                                  │
00:24:50 verbose #22350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:50 verbose #22351 > >
00:24:50 verbose #22352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:50 verbose #22353 > > inl indexed s =
00:24:50 verbose #22354 > >     ((StreamNil, 0), s)
00:24:50 verbose #22355 > >     ||> fold fun (acc, i) x =>
00:24:50 verbose #22356 > >         StreamCons ((i, x), fun () => acc), i + 1
00:24:50 verbose #22357 > >     |> fst
00:24:50 verbose #22358 > >     |> rev
00:24:51 verbose #22359 > >
00:24:51 verbose #22360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:51 verbose #22361 > > //// test
00:24:51 verbose #22362 > >
00:24:51 verbose #22363 > > listm.init 10i32 ((*) 2)
00:24:51 verbose #22364 > > |> from_list
00:24:51 verbose #22365 > > |> indexed
00:24:51 verbose #22366 > > |> item 5i32
00:24:51 verbose #22367 > > |> _assert_eq (5i32, 10i32)
00:24:51 verbose #22368 > >
00:24:51 verbose #22369 > > ╭─[ 475.72ms - stdout ]────────────────────────────────────────────────────────╮
00:24:51 verbose #22370 > > │ __assert_eq / actual: struct (5, 10) / expected: struct (5, 10)              │
00:24:51 verbose #22371 > > │                                                                              │
00:24:51 verbose #22372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:51 verbose #22373 > >
00:24:51 verbose #22374 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:51 verbose #22375 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:51 verbose #22376 > > │ ### map                                                                      │
00:24:51 verbose #22377 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:51 verbose #22378 > >
00:24:51 verbose #22379 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:51 verbose #22380 > > inl map fn s =
00:24:51 verbose #22381 > >     (s, StreamNil)
00:24:51 verbose #22382 > >     ||> fold_back fun x acc =>
00:24:51 verbose #22383 > >         StreamCons (fn x, fun () => acc)
00:24:52 verbose #22384 > >
00:24:52 verbose #22385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:52 verbose #22386 > > //// test
00:24:52 verbose #22387 > >
00:24:52 verbose #22388 > > listm.init 10i32 id
00:24:52 verbose #22389 > > |> from_list
00:24:52 verbose #22390 > > |> map ((*) 2)
00:24:52 verbose #22391 > > |> item 5i32
00:24:52 verbose #22392 > > |> _assert_eq 10i32
00:24:52 verbose #22393 > >
00:24:52 verbose #22394 > > ╭─[ 461.98ms - stdout ]────────────────────────────────────────────────────────╮
00:24:52 verbose #22395 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:24:52 verbose #22396 > > │                                                                              │
00:24:52 verbose #22397 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:52 verbose #22398 > >
00:24:52 verbose #22399 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:52 verbose #22400 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:52 verbose #22401 > > │ ### zip_with                                                                 │
00:24:52 verbose #22402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:52 verbose #22403 > >
00:24:52 verbose #22404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:52 verbose #22405 > > inl zip_with fn s1 s2 =
00:24:52 verbose #22406 > >     inl rec loop s1 s2 =
00:24:52 verbose #22407 > >         match s1, s2 with
00:24:52 verbose #22408 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:24:52 verbose #22409 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:24:52 verbose #22410 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:24:52 verbose #22411 > >     loop s1 s2
00:24:52 verbose #22412 > >
00:24:52 verbose #22413 > > inl zip_with_ fn s1 s2 =
00:24:52 verbose #22414 > >     let rec loop s1 s2 =
00:24:52 verbose #22415 > >         match s1, s2 with
00:24:52 verbose #22416 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:24:52 verbose #22417 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:24:52 verbose #22418 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:24:52 verbose #22419 > >     loop s1 s2
00:24:53 verbose #22420 > >
00:24:53 verbose #22421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:53 verbose #22422 > > //// test
00:24:53 verbose #22423 > >
00:24:53 verbose #22424 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:24:53 verbose #22425 > > ||> zip_with (+)
00:24:53 verbose #22426 > > |> item 2i32
00:24:53 verbose #22427 > > |> _assert_eq 6
00:24:53 verbose #22428 > >
00:24:53 verbose #22429 > > ╭─[ 403.66ms - stdout ]────────────────────────────────────────────────────────╮
00:24:53 verbose #22430 > > │ __assert_eq / actual: 6 / expected: 6                                        │
00:24:53 verbose #22431 > > │                                                                              │
00:24:53 verbose #22432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:53 verbose #22433 > >
00:24:53 verbose #22434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:53 verbose #22435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:53 verbose #22436 > > │ ### zip                                                                      │
00:24:53 verbose #22437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:53 verbose #22438 > >
00:24:53 verbose #22439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:53 verbose #22440 > > inl zip s1 s2 =
00:24:53 verbose #22441 > >     zip_with pair s1 s2
00:24:53 verbose #22442 > >
00:24:53 verbose #22443 > > inl zip_ s1 s2 =
00:24:53 verbose #22444 > >     zip_with_ pair s1 s2
00:24:54 verbose #22445 > >
00:24:54 verbose #22446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:54 verbose #22447 > > //// test
00:24:54 verbose #22448 > >
00:24:54 verbose #22449 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:24:54 verbose #22450 > > ||> zip
00:24:54 verbose #22451 > > |> item 5i32
00:24:54 verbose #22452 > > |> _assert_eq (5, 10)
00:24:54 verbose #22453 > >
00:24:54 verbose #22454 > > ╭─[ 462.90ms - stdout ]────────────────────────────────────────────────────────╮
00:24:54 verbose #22455 > > │ __assert_eq / actual: struct (5, 10) / expected: struct (5, 10)              │
00:24:54 verbose #22456 > > │                                                                              │
00:24:54 verbose #22457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:54 verbose #22458 > >
00:24:54 verbose #22459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:54 verbose #22460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:54 verbose #22461 > > │ ### unzip                                                                    │
00:24:54 verbose #22462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:54 verbose #22463 > >
00:24:54 verbose #22464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:54 verbose #22465 > > inl unzip s =
00:24:54 verbose #22466 > >     inl rec body s =
00:24:54 verbose #22467 > >         match s with
00:24:54 verbose #22468 > >         | StreamCons ((x, y), fn) =>
00:24:54 verbose #22469 > >             inl xs, ys = loop (fn ())
00:24:54 verbose #22470 > >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:24:54 verbose #22471 > >         | StreamNil => pair StreamNil StreamNil
00:24:54 verbose #22472 > >     and inl loop x =
00:24:54 verbose #22473 > >         if var_is x |> not
00:24:54 verbose #22474 > >         then body x
00:24:54 verbose #22475 > >         else
00:24:54 verbose #22476 > >             inl x = dyn x
00:24:54 verbose #22477 > >             join body x
00:24:54 verbose #22478 > >     loop s
00:24:54 verbose #22479 > >
00:24:54 verbose #22480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:54 verbose #22481 > > //// test
00:24:54 verbose #22482 > >
00:24:54 verbose #22483 > > listm.init 10i32 id
00:24:54 verbose #22484 > > |> listm.map (fun x => x, x)
00:24:54 verbose #22485 > > |> from_list
00:24:54 verbose #22486 > > |> unzip
00:24:54 verbose #22487 > > |> fun x, y =>
00:24:54 verbose #22488 > >     x |> sum
00:24:54 verbose #22489 > >     |> _assert_eq 45
00:24:54 verbose #22490 > >
00:24:54 verbose #22491 > >     y |> sum
00:24:54 verbose #22492 > >     |> _assert_eq 45
00:24:55 verbose #22493 > >
00:24:55 verbose #22494 > > ╭─[ 476.35ms - stdout ]────────────────────────────────────────────────────────╮
00:24:55 verbose #22495 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:24:55 verbose #22496 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:24:55 verbose #22497 > > │                                                                              │
00:24:55 verbose #22498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #22499 > >
00:24:55 verbose #22500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:55 verbose #22501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:55 verbose #22502 > > │ ## rust                                                                      │
00:24:55 verbose #22503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #22504 > >
00:24:55 verbose #22505 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:55 verbose #22506 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:55 verbose #22507 > > │ ### io_error                                                                 │
00:24:55 verbose #22508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #22509 > >
00:24:55 verbose #22510 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:55 verbose #22511 > > nominal io_error =
00:24:55 verbose #22512 > >     `(
00:24:55 verbose #22513 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:55 verbose #22514 > > Fable.Core.Emit(\"std::io::Error\")>]]\n#endif\ntype std_io_Error = class end"
00:24:55 verbose #22515 > >         $'' : $'std_io_Error'
00:24:55 verbose #22516 > >     )
00:24:55 verbose #22517 > >
00:24:55 verbose #22518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:55 verbose #22519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:55 verbose #22520 > > │ ### buf_reader                                                               │
00:24:55 verbose #22521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:55 verbose #22522 > >
00:24:55 verbose #22523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:55 verbose #22524 > > nominal buf_reader t =
00:24:55 verbose #22525 > >     `(
00:24:55 verbose #22526 > >         backend_switch `(()) `({}) {
00:24:55 verbose #22527 > >             Fsharp =
00:24:55 verbose #22528 > >                 (fun () =>
00:24:55 verbose #22529 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:55 verbose #22530 > > Fable.Core.Emit(\"std::io::BufReader<$0>\")>]]\n#endif\ntype
00:24:55 verbose #22531 > > std_io_BufReader<'T> = class end"
00:24:55 verbose #22532 > >                 ) : () -> ()
00:24:55 verbose #22533 > >         }
00:24:55 verbose #22534 > >         $'' : $'std_io_BufReader<`t>'
00:24:55 verbose #22535 > >     )
00:24:56 verbose #22536 > >
00:24:56 verbose #22537 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:56 verbose #22538 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:56 verbose #22539 > > │ ### cursor                                                                   │
00:24:56 verbose #22540 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:56 verbose #22541 > >
00:24:56 verbose #22542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:56 verbose #22543 > > nominal cursor t =
00:24:56 verbose #22544 > >     `(
00:24:56 verbose #22545 > >         backend_switch `(()) `({}) {
00:24:56 verbose #22546 > >             Fsharp =
00:24:56 verbose #22547 > >                 (fun () =>
00:24:56 verbose #22548 > >                     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:56 verbose #22549 > > Fable.Core.Emit(\"std::io::Cursor<$0>\")>]]\n#endif\ntype std_io_Cursor<'T> =
00:24:56 verbose #22550 > > class end"
00:24:56 verbose #22551 > >                 ) : () -> ()
00:24:56 verbose #22552 > >         }
00:24:56 verbose #22553 > >         $'' : $'std_io_Cursor<`t>'
00:24:56 verbose #22554 > >     )
00:24:56 verbose #22555 > >
00:24:56 verbose #22556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:56 verbose #22557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:56 verbose #22558 > > │ ### async_buf_reader                                                         │
00:24:56 verbose #22559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:56 verbose #22560 > >
00:24:56 verbose #22561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:56 verbose #22562 > > nominal async_buf_reader t =
00:24:56 verbose #22563 > >     `(
00:24:56 verbose #22564 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:56 verbose #22565 > > Fable.Core.Emit(\"tokio::io::BufReader<$0>\")>]]\n#endif\ntype
00:24:56 verbose #22566 > > tokio_io_BufReader<'T> = class end"
00:24:56 verbose #22567 > >         $'' : $'tokio_io_BufReader<`t>'
00:24:56 verbose #22568 > >     )
00:24:57 verbose #22569 > >
00:24:57 verbose #22570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:57 verbose #22571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:57 verbose #22572 > > │ ### new_buf_reader                                                           │
00:24:57 verbose #22573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:57 verbose #22574 > >
00:24:57 verbose #22575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:57 verbose #22576 > > inl new_buf_reader forall t. (x : t) : buf_reader t =
00:24:57 verbose #22577 > >     !\($'"std::io::BufReader::new(!x)"')
00:24:57 verbose #22578 > >
00:24:57 verbose #22579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:57 verbose #22580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:57 verbose #22581 > > │ ### new_cursor                                                               │
00:24:57 verbose #22582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:57 verbose #22583 > >
00:24:57 verbose #22584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:57 verbose #22585 > > inl new_cursor forall t. (x : t) : cursor t =
00:24:57 verbose #22586 > >     !\($'"std::io::Cursor::new(!x)"')
00:24:58 verbose #22587 > >
00:24:58 verbose #22588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:58 verbose #22589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:58 verbose #22590 > > │ ### lines                                                                    │
00:24:58 verbose #22591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:58 verbose #22592 > >
00:24:58 verbose #22593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:58 verbose #22594 > > nominal lines t =
00:24:58 verbose #22595 > >     `(
00:24:58 verbose #22596 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:58 verbose #22597 > > Fable.Core.Emit(\"std::io::Lines<$0>\")>]]\n#endif\ntype std_io_Lines<'T> =
00:24:58 verbose #22598 > > class end"
00:24:58 verbose #22599 > >         $'' : $'std_io_Lines<`t>'
00:24:58 verbose #22600 > >     )
00:24:58 verbose #22601 > >
00:24:58 verbose #22602 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:58 verbose #22603 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:58 verbose #22604 > > │ ### buf_read_lines                                                           │
00:24:58 verbose #22605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:58 verbose #22606 > >
00:24:58 verbose #22607 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:58 verbose #22608 > > inl buf_read_lines forall t. (buf_reader : buf_reader t) : lines (buf_reader t)
00:24:58 verbose #22609 > > =
00:24:58 verbose #22610 > >     !\($'"std::io::BufRead::lines(!buf_reader)"')
00:24:58 verbose #22611 > >
00:24:58 verbose #22612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:58 verbose #22613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:58 verbose #22614 > > │ ### decode_reader_bytes                                                      │
00:24:58 verbose #22615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:58 verbose #22616 > >
00:24:58 verbose #22617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:58 verbose #22618 > > nominal decode_reader_bytes t u =
00:24:58 verbose #22619 > >     `(
00:24:58 verbose #22620 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:24:58 verbose #22621 > > Fable.Core.Emit(\"encoding_rs_io::DecodeReaderBytes<$0, $1>\")>]]\n#endif\ntype
00:24:58 verbose #22622 > > encoding_rs_io_DecodeReaderBytes<'T, 'U> = class end"
00:24:58 verbose #22623 > >         $'' : $'encoding_rs_io_DecodeReaderBytes<`t, `u>'
00:24:58 verbose #22624 > >     )
00:24:59 verbose #22625 > >
00:24:59 verbose #22626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:59 verbose #22627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:59 verbose #22628 > > │ ### decode_reader_bytes_build                                                │
00:24:59 verbose #22629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:59 verbose #22630 > >
00:24:59 verbose #22631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:59 verbose #22632 > > inl decode_reader_bytes_build forall t. (x : t) : decode_reader_bytes t (am'.vec
00:24:59 verbose #22633 > > u8) =
00:24:59 verbose #22634 > >
00:24:59 verbose #22635 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:24:59 verbose #22636 > > :UTF_8)).build(!x)"')
00:24:59 verbose #22637 > >
00:24:59 verbose #22638 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:24:59 verbose #22639 > > :UTF_8)).utf8_passthru(true).build(!x)"')
00:24:59 verbose #22640 > >     !\\(x,
00:24:59 verbose #22641 > > $'"encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build($0)
00:24:59 verbose #22642 > > "')
00:24:59 verbose #22643 > >     // !\($'"encoding_rs_io::DecodeReaderBytes::new(!x)"')
00:24:59 verbose #22644 > >
00:24:59 verbose #22645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:59 verbose #22646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:59 verbose #22647 > > │ ### buf_reader_read                                                          │
00:24:59 verbose #22648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:59 verbose #22649 > >
00:24:59 verbose #22650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:59 verbose #22651 > > inl buf_reader_read forall el dim. (slice : am'.slice' el dim) (buf_reader :
00:24:59 verbose #22652 > > buf_reader el) : resultm.result' unativeint io_error =
00:24:59 verbose #22653 > >     (!\($'"true; let mut !slice = !slice"') : bool) |> ignore
00:24:59 verbose #22654 > >     !\($'"std::io::Read::read(&mut !buf_reader, &mut !slice)"')
00:25:00 verbose #22655 > >
00:25:00 verbose #22656 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:00 verbose #22657 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:00 verbose #22658 > > │ ### io_read_by_ref                                                           │
00:25:00 verbose #22659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:00 verbose #22660 > >
00:25:00 verbose #22661 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:00 verbose #22662 > > inl io_read_by_ref forall t. (lines : lines t) : lines t =
00:25:00 verbose #22663 > >     !\\(lines, $'"std::io::Read::by_ref($0)"')
00:25:00 verbose #22664 > 00:00:34 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 33575 }
00:25:00 verbose #22665 > 00:00:34   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:25:00 verbose #22666 >     "nbconvert",
00:25:00 verbose #22667 >     "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb",
00:25:00 verbose #22668 >     "--to",
00:25:00 verbose #22669 >     "html",
00:25:00 verbose #22670 >     "--HTMLExporter.theme=dark",
00:25:00 verbose #22671 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:03 verbose #22672 > 00:00:37 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/stream.dib.ipynb to html
00:25:03 verbose #22673 > 00:00:37 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:25:03 verbose #22674 > 00:00:37 verbose #7 !   validate(nb)
00:25:06 verbose #22675 > 00:00:40 verbose #8 ! [NbConvertApp] Writing 369620 bytes to c:\home\git\polyglot\lib\spiral\stream.dib.html
00:25:07 verbose #22676 > 00:00:40 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:25:07 verbose #22677 > 00:00:40   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:25:07 verbose #22678 > 00:00:40   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:25:07 verbose #22679 >     "-c",
00:25:07 verbose #22680 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:25:07 verbose #22681 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:07 verbose #22682 > 00:00:41 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:25:07 verbose #22683 > 00:00:41   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:25:07 verbose #22684 > 00:00:41   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 34277 }
00:25:07   debug #22685 runtime.execute_with_options_async / { exit_code = 0; output_length = 38443 }
00:25:07   debug #29 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3
00:25:07   debug #22686 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:07 verbose #22687 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "threading.dib", "--retries", "3"])) }
00:25:07 verbose #22688 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:25:07 verbose #22689 >     "repl",
00:25:07 verbose #22690 >     "--exit-after-run",
00:25:07 verbose #22691 >     "--run",
00:25:07 verbose #22692 >     "c:/home/git/polyglot/lib/spiral/threading.dib",
00:25:07 verbose #22693 >     "--output-path",
00:25:07 verbose #22694 >     "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb",
00:25:07 verbose #22695 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/threading.dib" --output-path "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:25:10 verbose #22696 > >
00:25:10 verbose #22697 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:10 verbose #22698 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:10 verbose #22699 > > │ # threading                                                                  │
00:25:10 verbose #22700 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:15 verbose #22701 > >
00:25:15 verbose #22702 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:15 verbose #22703 > > open rust
00:25:15 verbose #22704 > > open rust_operators
00:25:17 verbose #22705 > >
00:25:17 verbose #22706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:17 verbose #22707 > > //// test
00:25:17 verbose #22708 > >
00:25:17 verbose #22709 > > open testing
00:25:18 verbose #22710 > >
00:25:18 verbose #22711 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:18 verbose #22712 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:18 verbose #22713 > > │ ## rust                                                                      │
00:25:18 verbose #22714 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:18 verbose #22715 > >
00:25:18 verbose #22716 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:18 verbose #22717 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:18 verbose #22718 > > │ ### sleep                                                                    │
00:25:18 verbose #22719 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:18 verbose #22720 > >
00:25:18 verbose #22721 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:18 verbose #22722 > > inl sleep (duration : date_time.duration) : () =
00:25:18 verbose #22723 > >     inl duration = join duration
00:25:18 verbose #22724 > >     !\($'"std::thread::sleep(!duration)"')
00:25:18 verbose #22725 > >
00:25:18 verbose #22726 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:18 verbose #22727 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:18 verbose #22728 > > │ ### join_handle                                                              │
00:25:18 verbose #22729 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:18 verbose #22730 > >
00:25:18 verbose #22731 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:18 verbose #22732 > > nominal join_handle t =
00:25:18 verbose #22733 > >     `(
00:25:18 verbose #22734 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:18 verbose #22735 > > Fable.Core.Emit(\"std::thread::JoinHandle<$0>\")>]]\n#endif\ntype
00:25:18 verbose #22736 > > std_thread_JoinHandle<'T> = class end"
00:25:18 verbose #22737 > >         $'' : $'std_thread_JoinHandle<`t>'
00:25:18 verbose #22738 > >     )
00:25:18 verbose #22739 > >
00:25:18 verbose #22740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:18 verbose #22741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:18 verbose #22742 > > │ ### spawn                                                                    │
00:25:18 verbose #22743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:18 verbose #22744 > >
00:25:18 verbose #22745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:18 verbose #22746 > > inl spawn forall t. depth flag (x : () -> t) : join_handle t =
00:25:18 verbose #22747 > >     if flag = 1u8
00:25:18 verbose #22748 > >     then (!\($'"true; let __spawn = std::thread::spawn(move || { //"') : bool)
00:25:18 verbose #22749 > > |> ignore
00:25:18 verbose #22750 > >     else (!\($'"true; let __spawn = std::thread::spawn(|| { //"') : bool) |>
00:25:18 verbose #22751 > > ignore
00:25:18 verbose #22752 > >
00:25:18 verbose #22753 > >     let x' = x ()
00:25:18 verbose #22754 > >     inl x' = join x'
00:25:18 verbose #22755 > >
00:25:18 verbose #22756 > >     x' |> rust.fix_closure depth
00:25:18 verbose #22757 > >
00:25:18 verbose #22758 > >     !\($'"__spawn"')
00:25:19 verbose #22759 > >
00:25:19 verbose #22760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #22761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #22762 > > │ ### join'                                                                    │
00:25:19 verbose #22763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #22764 > >
00:25:19 verbose #22765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:19 verbose #22766 > > inl join' forall t.
00:25:19 verbose #22767 > >     (x : join_handle t)
00:25:19 verbose #22768 > >     : resultm.result'
00:25:19 verbose #22769 > >         t
00:25:19 verbose #22770 > >         (
00:25:19 verbose #22771 > >             rust.box (
00:25:19 verbose #22772 > >                 rust.lifetime_ref
00:25:19 verbose #22773 > >                     rust.dyn'
00:25:19 verbose #22774 > >                     (
00:25:19 verbose #22775 > >                         rust.lifetime_join
00:25:19 verbose #22776 > >                             rust.any
00:25:19 verbose #22777 > >                             (
00:25:19 verbose #22778 > >                                 rust.lifetime_ref
00:25:19 verbose #22779 > >                                     rust.send
00:25:19 verbose #22780 > >                                     rust.static_lifetime
00:25:19 verbose #22781 > >                             )
00:25:19 verbose #22782 > >                     )
00:25:19 verbose #22783 > >             )
00:25:19 verbose #22784 > >         ) =
00:25:19 verbose #22785 > >     !\\(x, $'"std::thread::JoinHandle::join($0)"')
00:25:19 verbose #22786 > >
00:25:19 verbose #22787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:19 verbose #22788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:19 verbose #22789 > > │ ### arc                                                                      │
00:25:19 verbose #22790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:19 verbose #22791 > >
00:25:19 verbose #22792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:19 verbose #22793 > > nominal arc t =
00:25:19 verbose #22794 > >     `(
00:25:19 verbose #22795 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:19 verbose #22796 > > Fable.Core.Emit(\"std::sync::Arc<$0>\")>]]\n#endif\ntype std_sync_Arc<'T> =
00:25:19 verbose #22797 > > class end"
00:25:19 verbose #22798 > >         $'' : $'std_sync_Arc<`t>'
00:25:19 verbose #22799 > >     )
00:25:20 verbose #22800 > >
00:25:20 verbose #22801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #22802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #22803 > > │ ### new_arc                                                                  │
00:25:20 verbose #22804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #22805 > >
00:25:20 verbose #22806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #22807 > > inl new_arc forall t. (x : t) : arc t =
00:25:20 verbose #22808 > >     !\\(x, $'"std::sync::Arc::new($0)"')
00:25:20 verbose #22809 > >
00:25:20 verbose #22810 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #22811 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #22812 > > │ ### mutex                                                                    │
00:25:20 verbose #22813 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #22814 > >
00:25:20 verbose #22815 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #22816 > > nominal mutex t =
00:25:20 verbose #22817 > >     `(
00:25:20 verbose #22818 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:20 verbose #22819 > > Fable.Core.Emit(\"std::sync::Mutex<$0>\")>]]\n#endif\ntype std_sync_Mutex<'T> =
00:25:20 verbose #22820 > > class end"
00:25:20 verbose #22821 > >         $'' : $'std_sync_Mutex<`t>'
00:25:20 verbose #22822 > >     )
00:25:20 verbose #22823 > >
00:25:20 verbose #22824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:20 verbose #22825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:20 verbose #22826 > > │ ### new_mutex                                                                │
00:25:20 verbose #22827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:20 verbose #22828 > >
00:25:20 verbose #22829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:20 verbose #22830 > > inl new_mutex forall t. (x : t) : mutex t =
00:25:20 verbose #22831 > >     !\\(x, $'"std::sync::Mutex::new($0)"')
00:25:21 verbose #22832 > >
00:25:21 verbose #22833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #22834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #22835 > > │ ### rw_lock                                                                  │
00:25:21 verbose #22836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #22837 > >
00:25:21 verbose #22838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #22839 > > nominal rw_lock t =
00:25:21 verbose #22840 > >     `(
00:25:21 verbose #22841 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:21 verbose #22842 > > Fable.Core.Emit(\"std::sync::RwLock<$0>\")>]]\n#endif\ntype std_sync_RwLock<'T>
00:25:21 verbose #22843 > > = class end"
00:25:21 verbose #22844 > >         $'' : $'std_sync_RwLock<`t>'
00:25:21 verbose #22845 > >     )
00:25:21 verbose #22846 > >
00:25:21 verbose #22847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #22848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #22849 > > │ ### new_rw_lock                                                              │
00:25:21 verbose #22850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #22851 > >
00:25:21 verbose #22852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #22853 > > inl new_rw_lock forall t. (x : t) : rw_lock t =
00:25:21 verbose #22854 > >     !\\(x, $'"std::sync::RwLock::new($0)"')
00:25:21 verbose #22855 > >
00:25:21 verbose #22856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:21 verbose #22857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:21 verbose #22858 > > │ ### new_arc_mutex                                                            │
00:25:21 verbose #22859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:21 verbose #22860 > >
00:25:21 verbose #22861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:21 verbose #22862 > > inl new_arc_mutex forall t. (x : t) : arc (mutex t) =
00:25:21 verbose #22863 > >     x |> new_mutex |> new_arc
00:25:22 verbose #22864 > >
00:25:22 verbose #22865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:22 verbose #22866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:22 verbose #22867 > > │ ### new_arc_rw_lock                                                          │
00:25:22 verbose #22868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:22 verbose #22869 > >
00:25:22 verbose #22870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:22 verbose #22871 > > inl new_arc_rw_lock forall t. (x : t) : arc (rw_lock t) =
00:25:22 verbose #22872 > >     x |> new_rw_lock |> new_arc
00:25:22 verbose #22873 > >
00:25:22 verbose #22874 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:22 verbose #22875 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:22 verbose #22876 > > │ ### arc_clone                                                                │
00:25:22 verbose #22877 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:22 verbose #22878 > >
00:25:22 verbose #22879 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:22 verbose #22880 > > inl arc_clone forall t. (x : arc t) : arc t =
00:25:22 verbose #22881 > >     inl x = join x
00:25:22 verbose #22882 > >     !\($'"std::sync::Arc::clone(&!x)"')
00:25:23 verbose #22883 > >
00:25:23 verbose #22884 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:23 verbose #22885 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:23 verbose #22886 > > │ ### arc_ptr_eq                                                               │
00:25:23 verbose #22887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:23 verbose #22888 > >
00:25:23 verbose #22889 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:23 verbose #22890 > > inl arc_ptr_eq forall t. (a : rust.ref (arc t)) (b : rust.ref (arc t)) : bool =
00:25:23 verbose #22891 > >     !\\((a, b), $'"std::sync::Arc::ptr_eq($0, $1)"')
00:25:23 verbose #22892 > >
00:25:23 verbose #22893 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:23 verbose #22894 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:23 verbose #22895 > > │ ### arc_try_unwrap                                                           │
00:25:23 verbose #22896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:23 verbose #22897 > >
00:25:23 verbose #22898 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:23 verbose #22899 > > inl arc_try_unwrap forall t. (x : arc t) : resultm.result' t (arc t) =
00:25:23 verbose #22900 > >     !\\(x, $'"std::sync::Arc::try_unwrap($0)"')
00:25:24 verbose #22901 > >
00:25:24 verbose #22902 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:24 verbose #22903 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:24 verbose #22904 > > │ ### arc_into_raw                                                             │
00:25:24 verbose #22905 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:24 verbose #22906 > >
00:25:24 verbose #22907 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:24 verbose #22908 > > inl arc_into_raw forall t. (x : arc t) : rust.ptr t =
00:25:24 verbose #22909 > >     !\\(x, $'"std::sync::Arc::into_raw($0)"')
00:25:24 verbose #22910 > >
00:25:24 verbose #22911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:24 verbose #22912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:24 verbose #22913 > > │ ### arc_from_raw                                                             │
00:25:24 verbose #22914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:24 verbose #22915 > >
00:25:24 verbose #22916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:24 verbose #22917 > > inl arc_from_raw forall t. (x : rust.ptr t) : arc t =
00:25:24 verbose #22918 > >     !\\(x, $'"std::sync::Arc::from_raw($0)"')
00:25:24 verbose #22919 > >
00:25:24 verbose #22920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:24 verbose #22921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:24 verbose #22922 > > │ ### partial_eq_wrapper_arc_eq                                                │
00:25:24 verbose #22923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:24 verbose #22924 > >
00:25:24 verbose #22925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:24 verbose #22926 > > inl partial_eq_wrapper_arc_eq forall t.
00:25:24 verbose #22927 > >     (self : rust.ref (rust.partial_eq_wrapper (arc t)))
00:25:24 verbose #22928 > >     (other : rust.ref (rust.partial_eq_wrapper (arc t)))
00:25:24 verbose #22929 > >     =
00:25:24 verbose #22930 > >     self
00:25:24 verbose #22931 > >     |> rust.unwrap_0_ref
00:25:24 verbose #22932 > >     |> arc_ptr_eq (
00:25:24 verbose #22933 > >         other
00:25:24 verbose #22934 > >         |> rust.unwrap_0_ref
00:25:24 verbose #22935 > >     )
00:25:25 verbose #22936 > >
00:25:25 verbose #22937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:25 verbose #22938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:25 verbose #22939 > > │ ### new_partial_eq_wrapper_arc                                               │
00:25:25 verbose #22940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:25 verbose #22941 > >
00:25:25 verbose #22942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:25 verbose #22943 > > inl new_partial_eq_wrapper_arc forall t. (x : arc t) : rust.partial_eq_wrapper
00:25:25 verbose #22944 > > (arc t) =
00:25:25 verbose #22945 > >     x |> rust.new_partial_eq_wrapper partial_eq_wrapper_arc_eq
00:25:25 verbose #22946 > >
00:25:25 verbose #22947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:25 verbose #22948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:25 verbose #22949 > > │ ### mutex_guard                                                              │
00:25:25 verbose #22950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:25 verbose #22951 > >
00:25:25 verbose #22952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:25 verbose #22953 > > nominal mutex_guard t =
00:25:25 verbose #22954 > >     `(
00:25:25 verbose #22955 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:25 verbose #22956 > > Fable.Core.Emit(\"std::sync::MutexGuard<$0>\")>]]\n#endif\ntype
00:25:25 verbose #22957 > > std_sync_MutexGuard<'T> = class end"
00:25:25 verbose #22958 > >         $'' : $'std_sync_MutexGuard<`t>'
00:25:25 verbose #22959 > >     )
00:25:26 verbose #22960 > >
00:25:26 verbose #22961 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:26 verbose #22962 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:26 verbose #22963 > > │ ### rw_lock_read_guard                                                       │
00:25:26 verbose #22964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:26 verbose #22965 > >
00:25:26 verbose #22966 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:26 verbose #22967 > > nominal rw_lock_read_guard t =
00:25:26 verbose #22968 > >     `(
00:25:26 verbose #22969 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:26 verbose #22970 > > Fable.Core.Emit(\"std::sync::RwLockReadGuard<$0>\")>]]\n#endif\ntype
00:25:26 verbose #22971 > > std_sync_RwLockReadGuard<'T> = class end"
00:25:26 verbose #22972 > >         $'' : $'std_sync_RwLockReadGuard<`t>'
00:25:26 verbose #22973 > >     )
00:25:26 verbose #22974 > >
00:25:26 verbose #22975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:26 verbose #22976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:26 verbose #22977 > > │ ### rw_lock_write_guard                                                      │
00:25:26 verbose #22978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:26 verbose #22979 > >
00:25:26 verbose #22980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:26 verbose #22981 > > nominal rw_lock_write_guard t =
00:25:26 verbose #22982 > >     `(
00:25:26 verbose #22983 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:26 verbose #22984 > > Fable.Core.Emit(\"std::sync::RwLockWriteGuard<$0>\")>]]\n#endif\ntype
00:25:26 verbose #22985 > > std_sync_RwLockWriteGuard<'T> = class end"
00:25:26 verbose #22986 > >         $'' : $'std_sync_RwLockWriteGuard<`t>'
00:25:26 verbose #22987 > >     )
00:25:27 verbose #22988 > >
00:25:27 verbose #22989 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:27 verbose #22990 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:27 verbose #22991 > > │ ### poison_error                                                             │
00:25:27 verbose #22992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:27 verbose #22993 > >
00:25:27 verbose #22994 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:27 verbose #22995 > > nominal poison_error t =
00:25:27 verbose #22996 > >     `(
00:25:27 verbose #22997 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:27 verbose #22998 > > Fable.Core.Emit(\"std::sync::PoisonError<$0>\")>]]\n#endif\ntype
00:25:27 verbose #22999 > > std_sync_PoisonError<'T> = class end"
00:25:27 verbose #23000 > >         $'' : $'std_sync_PoisonError<`t>'
00:25:27 verbose #23001 > >     )
00:25:27 verbose #23002 > >
00:25:27 verbose #23003 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:27 verbose #23004 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:27 verbose #23005 > > │ ### try_lock_error                                                           │
00:25:27 verbose #23006 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:27 verbose #23007 > >
00:25:27 verbose #23008 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:27 verbose #23009 > > nominal try_lock_error t =
00:25:27 verbose #23010 > >     `(
00:25:27 verbose #23011 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:27 verbose #23012 > > Fable.Core.Emit(\"std::sync::TryLockError<$0>\")>]]\n#endif\ntype
00:25:27 verbose #23013 > > std_sync_TryLockError<'T> = class end"
00:25:27 verbose #23014 > >         $'' : $'std_sync_TryLockError<`t>'
00:25:27 verbose #23015 > >     )
00:25:27 verbose #23016 > >
00:25:27 verbose #23017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:27 verbose #23018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:27 verbose #23019 > > │ ### arc_mutex_lock                                                           │
00:25:27 verbose #23020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:27 verbose #23021 > >
00:25:27 verbose #23022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:27 verbose #23023 > > inl arc_mutex_lock forall t. (x : arc (mutex t)) : resultm.result' (mutex_guard
00:25:27 verbose #23024 > > t) (poison_error (mutex_guard t)) =
00:25:27 verbose #23025 > >     inl x = x |> rust.emit
00:25:27 verbose #23026 > >     !\($'"!x.lock()"')
00:25:28 verbose #23027 > >
00:25:28 verbose #23028 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:28 verbose #23029 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:28 verbose #23030 > > │ ### arc_rw_lock_read                                                         │
00:25:28 verbose #23031 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:28 verbose #23032 > >
00:25:28 verbose #23033 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:28 verbose #23034 > > inl arc_rw_lock_read forall t. (x : arc (rw_lock t)) : resultm.result'
00:25:28 verbose #23035 > > (rw_lock_read_guard t) (poison_error (rw_lock_read_guard t)) =
00:25:28 verbose #23036 > >     inl x = x |> rust.emit
00:25:28 verbose #23037 > >     !\($'"!x.read()"')
00:25:28 verbose #23038 > >
00:25:28 verbose #23039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:28 verbose #23040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:28 verbose #23041 > > │ ### arc_rw_lock_write                                                        │
00:25:28 verbose #23042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:28 verbose #23043 > >
00:25:28 verbose #23044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:28 verbose #23045 > > inl arc_rw_lock_write forall t. (x : arc (rw_lock t)) : resultm.result'
00:25:28 verbose #23046 > > (rw_lock_write_guard t) (poison_error (rw_lock_write_guard t)) =
00:25:28 verbose #23047 > >     inl x = x |> rust.emit
00:25:28 verbose #23048 > >     !\($'"!x.write()"')
00:25:29 verbose #23049 > >
00:25:29 verbose #23050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:29 verbose #23051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:29 verbose #23052 > > │ ### arc_rw_lock_try_read                                                     │
00:25:29 verbose #23053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 verbose #23054 > >
00:25:29 verbose #23055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:29 verbose #23056 > > inl arc_rw_lock_try_read forall t. (x : arc (rw_lock t)) : resultm.result'
00:25:29 verbose #23057 > > (rw_lock_read_guard t) (try_lock_error (rw_lock_read_guard t)) =
00:25:29 verbose #23058 > >     inl x = x |> rust.emit
00:25:29 verbose #23059 > >     !\($'"!x.try_read()"')
00:25:29 verbose #23060 > >
00:25:29 verbose #23061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:29 verbose #23062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:29 verbose #23063 > > │ ### arc_rw_lock_try_write                                                    │
00:25:29 verbose #23064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 verbose #23065 > >
00:25:29 verbose #23066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:29 verbose #23067 > > inl arc_rw_lock_try_write forall t. (x : arc (rw_lock t)) : resultm.result'
00:25:29 verbose #23068 > > (rw_lock_write_guard t) (try_lock_error (rw_lock_write_guard t)) =
00:25:29 verbose #23069 > >     inl x = x |> rust.emit
00:25:29 verbose #23070 > >     !\($'"!x.try_write()"')
00:25:29 verbose #23071 > >
00:25:29 verbose #23072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:29 verbose #23073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:29 verbose #23074 > > │ ### mutex_guard_ref                                                          │
00:25:29 verbose #23075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:29 verbose #23076 > >
00:25:29 verbose #23077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:29 verbose #23078 > > inl mutex_guard_ref forall t. (x : mutex_guard t) : rust.ref t =
00:25:29 verbose #23079 > >     !\\(x, $'"&$0"')
00:25:30 verbose #23080 > >
00:25:30 verbose #23081 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:30 verbose #23082 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:30 verbose #23083 > > │ ### rw_lock_read_guard_ref                                                   │
00:25:30 verbose #23084 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:30 verbose #23085 > >
00:25:30 verbose #23086 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:30 verbose #23087 > > inl rw_lock_read_guard_ref forall t. (x : rw_lock_read_guard t) : rust.ref t =
00:25:30 verbose #23088 > >     !\\(x, $'"&$0"')
00:25:30 verbose #23089 > >
00:25:30 verbose #23090 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:30 verbose #23091 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:30 verbose #23092 > > │ ### rw_lock_write_guard_ref                                                  │
00:25:30 verbose #23093 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:30 verbose #23094 > >
00:25:30 verbose #23095 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:30 verbose #23096 > > inl rw_lock_write_guard_ref forall t. (x : rw_lock_write_guard t) : rust.ref t =
00:25:30 verbose #23097 > >     !\\(x, $'"&$0"')
00:25:31 verbose #23098 > >
00:25:31 verbose #23099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:31 verbose #23100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:31 verbose #23101 > > │ ### mutex_guard_ref_mut                                                      │
00:25:31 verbose #23102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:31 verbose #23103 > >
00:25:31 verbose #23104 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:31 verbose #23105 > > inl mutex_guard_ref_mut forall t. (x : mutex_guard t) : rust.ref (rust.mut' t) =
00:25:31 verbose #23106 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:25:31 verbose #23107 > >     !\\(x, $'"&mut $0"')
00:25:31 verbose #23108 > >
00:25:31 verbose #23109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:31 verbose #23110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:31 verbose #23111 > > │ ### mutex_guard_as_mut                                                       │
00:25:31 verbose #23112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:31 verbose #23113 > >
00:25:31 verbose #23114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:31 verbose #23115 > > inl mutex_guard_as_mut forall (t : * -> *) u. (x : mutex_guard (t u)) : t
00:25:31 verbose #23116 > > (rust.ref (rust.mut' u)) =
00:25:31 verbose #23117 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:25:31 verbose #23118 > >     !\\(x, $'"$0.as_mut()"')
00:25:31 verbose #23119 > >
00:25:31 verbose #23120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:31 verbose #23121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:31 verbose #23122 > > │ ### channel_receiver                                                         │
00:25:31 verbose #23123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:31 verbose #23124 > >
00:25:31 verbose #23125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:31 verbose #23126 > > nominal channel_receiver t =
00:25:31 verbose #23127 > >     `(
00:25:31 verbose #23128 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:31 verbose #23129 > > Fable.Core.Emit(\"std::sync::mpsc::Receiver<$0>\")>]]\n#endif\ntype
00:25:31 verbose #23130 > > std_sync_mpsc_Receiver<'T> = class end"
00:25:31 verbose #23131 > >         $'' : $'std_sync_mpsc_Receiver<`t>'
00:25:31 verbose #23132 > >     )
00:25:32 verbose #23133 > >
00:25:32 verbose #23134 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:32 verbose #23135 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:32 verbose #23136 > > │ ### channel_sender                                                           │
00:25:32 verbose #23137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:32 verbose #23138 > >
00:25:32 verbose #23139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:32 verbose #23140 > > nominal channel_sender t =
00:25:32 verbose #23141 > >     `(
00:25:32 verbose #23142 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:32 verbose #23143 > > Fable.Core.Emit(\"std::sync::mpsc::Sender<$0>\")>]]\n#endif\ntype
00:25:32 verbose #23144 > > std_sync_mpsc_Sender<'T> = class end"
00:25:32 verbose #23145 > >         $'' : $'std_sync_mpsc_Sender<`t>'
00:25:32 verbose #23146 > >     )
00:25:32 verbose #23147 > >
00:25:32 verbose #23148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:32 verbose #23149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:32 verbose #23150 > > │ ### new_channel                                                              │
00:25:32 verbose #23151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:32 verbose #23152 > >
00:25:32 verbose #23153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:32 verbose #23154 > > inl new_channel () : channel_sender sm'.std_string * arc (channel_receiver
00:25:32 verbose #23155 > > sm'.std_string) =
00:25:32 verbose #23156 > >     !\($'"{ let (sender, receiver) = std::sync::mpsc::channel(); (sender,
00:25:32 verbose #23157 > > std::sync::Arc::new(receiver)) }"')
00:25:33 verbose #23158 > >
00:25:33 verbose #23159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:33 verbose #23160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:33 verbose #23161 > > │ ### send_error                                                               │
00:25:33 verbose #23162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:33 verbose #23163 > >
00:25:33 verbose #23164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:33 verbose #23165 > > nominal send_error t =
00:25:33 verbose #23166 > >     `(
00:25:33 verbose #23167 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:25:33 verbose #23168 > > Fable.Core.Emit(\"std::sync::mpsc::SendError<$0>\")>]]\n#endif\ntype
00:25:33 verbose #23169 > > std_sync_mpsc_SendError<'T> = class end"
00:25:33 verbose #23170 > >         $'' : $'std_sync_mpsc_SendError<`t>'
00:25:33 verbose #23171 > >     )
00:25:33 verbose #23172 > >
00:25:33 verbose #23173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:33 verbose #23174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:33 verbose #23175 > > │ ### channel_send                                                             │
00:25:33 verbose #23176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:33 verbose #23177 > >
00:25:33 verbose #23178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:33 verbose #23179 > > inl channel_send forall t. (line : t) (sender : rust.ref (channel_sender t)) :
00:25:33 verbose #23180 > > resultm.result' () (send_error sm'.std_string) =
00:25:33 verbose #23181 > >     !\\((sender, line), $'"$0.send($1)"')
00:25:34 verbose #23182 > >
00:25:34 verbose #23183 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:34 verbose #23184 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:34 verbose #23185 > > │ ## fsharp                                                                    │
00:25:34 verbose #23186 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:34 verbose #23187 > >
00:25:34 verbose #23188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:34 verbose #23189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:34 verbose #23190 > > │ ### sleep'                                                                   │
00:25:34 verbose #23191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:34 verbose #23192 > >
00:25:34 verbose #23193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:34 verbose #23194 > > inl sleep' (n : i32) : () =
00:25:34 verbose #23195 > >     run_target function
00:25:34 verbose #23196 > >         | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n
00:25:34 verbose #23197 > >         | _ => fun () => ()
00:25:34 verbose #23198 > >
00:25:34 verbose #23199 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:34 verbose #23200 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:34 verbose #23201 > > │ ### thread                                                                   │
00:25:34 verbose #23202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:34 verbose #23203 > >
00:25:34 verbose #23204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:34 verbose #23205 > > nominal thread = $'System.Threading.Thread'
00:25:35 verbose #23206 > >
00:25:35 verbose #23207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:35 verbose #23208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:35 verbose #23209 > > │ ### cancellation_token                                                       │
00:25:35 verbose #23210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:35 verbose #23211 > >
00:25:35 verbose #23212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:35 verbose #23213 > > nominal cancellation_token = $'System.Threading.CancellationToken'
00:25:35 verbose #23214 > >
00:25:35 verbose #23215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:35 verbose #23216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:35 verbose #23217 > > │ ### cancellation_token_source                                                │
00:25:35 verbose #23218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:35 verbose #23219 > >
00:25:35 verbose #23220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:35 verbose #23221 > > nominal cancellation_token_source = $'System.Threading.CancellationTokenSource'
00:25:35 verbose #23222 > >
00:25:35 verbose #23223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:35 verbose #23224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:35 verbose #23225 > > │ ### cancellation_token_registration                                          │
00:25:35 verbose #23226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:35 verbose #23227 > >
00:25:35 verbose #23228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:35 verbose #23229 > > nominal cancellation_token_registration =
00:25:35 verbose #23230 > > $'System.Threading.CancellationTokenRegistration'
00:25:36 verbose #23231 > >
00:25:36 verbose #23232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:36 verbose #23233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:36 verbose #23234 > > │ ### cancellation_source_token                                                │
00:25:36 verbose #23235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:36 verbose #23236 > >
00:25:36 verbose #23237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:36 verbose #23238 > > inl cancellation_source_token (x : cancellation_token_source) :
00:25:36 verbose #23239 > > cancellation_token =
00:25:36 verbose #23240 > >     $'!x.Token'
00:25:36 verbose #23241 > >
00:25:36 verbose #23242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:36 verbose #23243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:36 verbose #23244 > > │ ### cancellation_source_cancel                                               │
00:25:36 verbose #23245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:36 verbose #23246 > >
00:25:36 verbose #23247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:36 verbose #23248 > > inl cancellation_source_cancel (x : cancellation_token_source) : () =
00:25:36 verbose #23249 > >     run_target function
00:25:36 verbose #23250 > >         | Fsharp (Native) => fun () =>
00:25:36 verbose #23251 > >             $'!x.Cancel' ()
00:25:36 verbose #23252 > >         | _ => fun () => null ()
00:25:37 verbose #23253 > >
00:25:37 verbose #23254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:37 verbose #23255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:37 verbose #23256 > > │ ### create_linked_token_source                                               │
00:25:37 verbose #23257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:37 verbose #23258 > >
00:25:37 verbose #23259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:37 verbose #23260 > > inl create_linked_token_source (x : array_base cancellation_token) :
00:25:37 verbose #23261 > > cancellation_token_source =
00:25:37 verbose #23262 > >     x |> $'System.Threading.CancellationTokenSource.CreateLinkedTokenSource'
00:25:37 verbose #23263 > >
00:25:37 verbose #23264 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:37 verbose #23265 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:37 verbose #23266 > > │ ### concurrent_stack                                                         │
00:25:37 verbose #23267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:37 verbose #23268 > >
00:25:37 verbose #23269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:37 verbose #23270 > > nominal concurrent_stack t =
00:25:37 verbose #23271 > > $'System.Collections.Concurrent.ConcurrentStack<`t>'
00:25:37 verbose #23272 > >
00:25:37 verbose #23273 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:37 verbose #23274 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:37 verbose #23275 > > │ ### concurrent_stack_push                                                    │
00:25:37 verbose #23276 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:37 verbose #23277 > >
00:25:37 verbose #23278 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:37 verbose #23279 > > inl concurrent_stack_push forall t. (item : t) (stack : concurrent_stack t) : ()
00:25:37 verbose #23280 > > =
00:25:37 verbose #23281 > >     $'!stack.Push' item
00:25:38 verbose #23282 > >
00:25:38 verbose #23283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:38 verbose #23284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:38 verbose #23285 > > │ ### token_none                                                               │
00:25:38 verbose #23286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:38 verbose #23287 > >
00:25:38 verbose #23288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:38 verbose #23289 > > inl token_none () : cancellation_token =
00:25:38 verbose #23290 > >     $'`cancellation_token.None'
00:25:38 verbose #23291 > >
00:25:38 verbose #23292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:38 verbose #23293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:38 verbose #23294 > > │ ### new_concurrent_stack                                                     │
00:25:38 verbose #23295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:38 verbose #23296 > >
00:25:38 verbose #23297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:38 verbose #23298 > > inl new_concurrent_stack forall t. () : concurrent_stack t =
00:25:38 verbose #23299 > >     $'System.Collections.Concurrent.ConcurrentStack<`t>' ()
00:25:39 verbose #23300 > >
00:25:39 verbose #23301 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:39 verbose #23302 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:39 verbose #23303 > > │ ### token_register                                                           │
00:25:39 verbose #23304 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:39 verbose #23305 > >
00:25:39 verbose #23306 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:39 verbose #23307 > > inl token_register (fn : () -> ()) (ct : cancellation_token) :
00:25:39 verbose #23308 > > cancellation_token_registration =
00:25:39 verbose #23309 > >     fn |> $'!ct.Register'
00:25:39 verbose #23310 > >
00:25:39 verbose #23311 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:39 verbose #23312 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:39 verbose #23313 > > │ ### new_cancellation_token_source                                            │
00:25:39 verbose #23314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:39 verbose #23315 > >
00:25:39 verbose #23316 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:39 verbose #23317 > > inl new_cancellation_token_source () : cancellation_token_source =
00:25:39 verbose #23318 > >     $'new `cancellation_token_source ()'
00:25:39 verbose #23319 > >
00:25:39 verbose #23320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:39 verbose #23321 > > inl token_cancellation_requested (ct : cancellation_token) : bool =
00:25:39 verbose #23322 > >     $'!ct.IsCancellationRequested'
00:25:40 verbose #23323 > >
00:25:40 verbose #23324 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:40 verbose #23325 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:40 verbose #23326 > > │ ### new_disposable_token                                                     │
00:25:40 verbose #23327 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:40 verbose #23328 > >
00:25:40 verbose #23329 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:40 verbose #23330 > > inl new_disposable_token (merge_token : optionm'.option' cancellation_token) =
00:25:40 verbose #23331 > >     run_target function
00:25:40 verbose #23332 > >         | Fsharp (Native) => fun () =>
00:25:40 verbose #23333 > >             inl cts = new_cancellation_token_source ()
00:25:40 verbose #23334 > >             inl cts =
00:25:40 verbose #23335 > >                 match merge_token |> optionm'.unbox with
00:25:40 verbose #23336 > >                 | None => cts
00:25:40 verbose #23337 > >                 | Some merge_token =>
00:25:40 verbose #23338 > >                     create_linked_token_source ;[[ cts |>
00:25:40 verbose #23339 > > cancellation_source_token; merge_token ]]
00:25:40 verbose #23340 > >             inl disposable : _ () = new_disposable fun () =>
00:25:40 verbose #23341 > >                 cts |> cancellation_source_cancel
00:25:40 verbose #23342 > >             cts |> cancellation_source_token, disposable
00:25:40 verbose #23343 > >         | _ => fun () => null ()
00:25:40 verbose #23344 > >
00:25:40 verbose #23345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:40 verbose #23346 > > //// test
00:25:40 verbose #23347 > >
00:25:40 verbose #23348 > > inl run fn =
00:25:40 verbose #23349 > >     inl token, disposable = new_disposable_token (None |> optionm'.box)
00:25:40 verbose #23350 > >     disposable |> use |> ignore
00:25:40 verbose #23351 > >     fn token
00:25:40 verbose #23352 > >     fun () =>
00:25:40 verbose #23353 > >         fn token
00:25:40 verbose #23354 > >     |> async.new_async
00:25:40 verbose #23355 > >     |> async.start
00:25:40 verbose #23356 > >
00:25:40 verbose #23357 > > fun () =>
00:25:40 verbose #23358 > >     inl counter = mut 0i32
00:25:40 verbose #23359 > >
00:25:40 verbose #23360 > >     inl fn (token : cancellation_token) =
00:25:40 verbose #23361 > >         counter <- *counter + (if token |> token_cancellation_requested then 10
00:25:40 verbose #23362 > > else 1)
00:25:40 verbose #23363 > >
00:25:40 verbose #23364 > >     join run fn
00:25:40 verbose #23365 > >     async.sleep 10 |> async.do
00:25:40 verbose #23366 > >     return *counter
00:25:40 verbose #23367 > > |> async.new_async_unit
00:25:40 verbose #23368 > > |> async.run_synchronously
00:25:40 verbose #23369 > > |> _assert_eq 11i32
00:25:43 verbose #23370 > >
00:25:43 verbose #23371 > > ╭─[ 2.69s - stdout ]───────────────────────────────────────────────────────────╮
00:25:43 verbose #23372 > > │ __assert_eq / actual: 11 / expected: 11                                      │
00:25:43 verbose #23373 > > │                                                                              │
00:25:43 verbose #23374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:43 verbose #23375 > >
00:25:43 verbose #23376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:43 verbose #23377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:43 verbose #23378 > > │ ## main                                                                      │
00:25:43 verbose #23379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:43 verbose #23380 > >
00:25:43 verbose #23381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:43 verbose #23382 > > inl main () =
00:25:43 verbose #23383 > >     $'let new_disposable_token x = !new_disposable_token x' : ()
00:25:44 verbose #23384 > 00:00:36 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34247 }
00:25:44 verbose #23385 > 00:00:36   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:25:44 verbose #23386 >     "nbconvert",
00:25:44 verbose #23387 >     "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb",
00:25:44 verbose #23388 >     "--to",
00:25:44 verbose #23389 >     "html",
00:25:44 verbose #23390 >     "--HTMLExporter.theme=dark",
00:25:44 verbose #23391 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:47 verbose #23392 > 00:00:39 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/threading.dib.ipynb to html
00:25:47 verbose #23393 > 00:00:39 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:25:47 verbose #23394 > 00:00:39 verbose #7 !   validate(nb)
00:25:49 verbose #23395 > 00:00:42 verbose #8 ! [NbConvertApp] Writing 377543 bytes to c:\home\git\polyglot\lib\spiral\threading.dib.html
00:25:50 verbose #23396 > 00:00:42 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:25:50 verbose #23397 > 00:00:42   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:25:50 verbose #23398 > 00:00:42   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:25:50 verbose #23399 >     "-c",
00:25:50 verbose #23400 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:25:50 verbose #23401 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:50 verbose #23402 > 00:00:43 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:25:50 verbose #23403 > 00:00:43   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:25:50 verbose #23404 > 00:00:43   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 34955 }
00:25:50   debug #23405 runtime.execute_with_options_async / { exit_code = 0; output_length = 39036 }
00:25:50   debug #30 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3
00:25:50   debug #23406 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:25:50 verbose #23407 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "benchmark.dib", "--retries", "3"])) }
00:25:50 verbose #23408 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:25:50 verbose #23409 >     "repl",
00:25:50 verbose #23410 >     "--exit-after-run",
00:25:50 verbose #23411 >     "--run",
00:25:50 verbose #23412 >     "c:/home/git/polyglot/lib/spiral/benchmark.dib",
00:25:50 verbose #23413 >     "--output-path",
00:25:50 verbose #23414 >     "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb",
00:25:50 verbose #23415 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/benchmark.dib" --output-path "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:25:53 verbose #23416 > >
00:25:53 verbose #23417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:25:53 verbose #23418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:25:53 verbose #23419 > > │ ## benchmark                                                                 │
00:25:53 verbose #23420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:25:58 verbose #23421 > >
00:25:58 verbose #23422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:25:58 verbose #23423 > > //// test
00:25:58 verbose #23424 > >
00:25:58 verbose #23425 > > open testing
00:26:00 verbose #23426 > >
00:26:00 verbose #23427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:00 verbose #23428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:00 verbose #23429 > > │ ## fsharp                                                                    │
00:26:00 verbose #23430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:00 verbose #23431 > >
00:26:00 verbose #23432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:00 verbose #23433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:00 verbose #23434 > > │ ### test_case_result                                                         │
00:26:00 verbose #23435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:00 verbose #23436 > >
00:26:00 verbose #23437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:00 verbose #23438 > > type test_case_result =
00:26:00 verbose #23439 > >     {
00:26:00 verbose #23440 > >         input : string
00:26:00 verbose #23441 > >         expected : string
00:26:00 verbose #23442 > >         result : string
00:26:00 verbose #23443 > >         time_list : array_base i64
00:26:00 verbose #23444 > >     }
00:26:00 verbose #23445 > >
00:26:00 verbose #23446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:00 verbose #23447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:00 verbose #23448 > > │ ### run'                                                                     │
00:26:00 verbose #23449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:00 verbose #23450 > >
00:26:00 verbose #23451 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:00 verbose #23452 > > inl run' forall t. count (fn : () -> t) =
00:26:00 verbose #23453 > >     runtime.gc_collect ()
00:26:00 verbose #23454 > >     inl stopwatch = date_time.stopwatch ()
00:26:00 verbose #23455 > >     stopwatch |> date_time.stopwatch_start
00:26:00 verbose #23456 > >     inl time1 = stopwatch |> date_time.stopwatch_elapsed_milliseconds
00:26:00 verbose #23457 > >     inl result : t =
00:26:00 verbose #23458 > >         am'.init_series 0 count 1i32
00:26:00 verbose #23459 > >         |> fun x => a x : _ int _
00:26:00 verbose #23460 > >         |> am'.parallel_map fun _n => fn ()
00:26:00 verbose #23461 > >         |> am'.last
00:26:00 verbose #23462 > >     inl time2 = (stopwatch |> date_time.stopwatch_elapsed_milliseconds) - time1
00:26:00 verbose #23463 > >     result, time2
00:26:00 verbose #23464 > >
00:26:00 verbose #23465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:00 verbose #23466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:00 verbose #23467 > > │ ### run                                                                      │
00:26:00 verbose #23468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:00 verbose #23469 > >
00:26:00 verbose #23470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:00 verbose #23471 > > inl run forall input expected.
00:26:00 verbose #23472 > >     count
00:26:00 verbose #23473 > >     (solutions : list (string * (input -> expected)))
00:26:00 verbose #23474 > >     ((input, expected) : (input * expected))
00:26:00 verbose #23475 > >     : test_case_result
00:26:00 verbose #23476 > >     =
00:26:00 verbose #23477 > >     inl input_str = input |> sm'.format_debug
00:26:00 verbose #23478 > >
00:26:00 verbose #23479 > >     console.write_line ""
00:26:00 verbose #23480 > >     trace Verbose
00:26:00 verbose #23481 > >         fun () => $'$"benchmark.run"'
00:26:00 verbose #23482 > >         fun () => { input_str = input_str |> sm'.ellipsis_end 40 }
00:26:00 verbose #23483 > >
00:26:00 verbose #23484 > >     inl results_with_time : array_base _ =
00:26:00 verbose #23485 > >         solutions
00:26:00 verbose #23486 > >         |> listm'.indexed
00:26:00 verbose #23487 > >         |> listm'.box
00:26:00 verbose #23488 > >         |> listm'.to_array'
00:26:00 verbose #23489 > >         |> am'.map_base fun ((i : int), (test_name, solution)) =>
00:26:00 verbose #23490 > >             inl result, time =
00:26:00 verbose #23491 > >                 fun () => solution input
00:26:00 verbose #23492 > >                 |> run' count
00:26:00 verbose #23493 > >             trace Verbose
00:26:00 verbose #23494 > >                 fun () => $'$"benchmark.run / solutions.map"'
00:26:00 verbose #23495 > >                 fun () => { i = i + 1; test_name time }
00:26:00 verbose #23496 > >             result, time
00:26:00 verbose #23497 > >
00:26:00 verbose #23498 > >     match results_with_time |> am'.map_base fst with
00:26:00 verbose #23499 > >     | array when (array |> (fun x => a x : _ int _) |> am'.length) <= 1 => ()
00:26:00 verbose #23500 > >     | array when array |> (fun x => a x : _ int _) |> am.forall' ((=) (array |>
00:26:00 verbose #23501 > > (fun x => a x : _ int _) |> am'.index 0)) => ()
00:26:00 verbose #23502 > >     | results => failwith ($'$"benchmark.run / error / results: {!results}"' :
00:26:00 verbose #23503 > > string)
00:26:00 verbose #23504 > >
00:26:00 verbose #23505 > >     {
00:26:00 verbose #23506 > >         input = input_str
00:26:00 verbose #23507 > >         expected = expected |> sm'.format_debug
00:26:00 verbose #23508 > >         result = results_with_time |> am'.map_base fst |> (fun x => a x : _ int
00:26:00 verbose #23509 > > _) |> am'.index 0 |> sm'.format_debug
00:26:00 verbose #23510 > >         time_list = results_with_time |> am'.map_base snd
00:26:00 verbose #23511 > >     }
00:26:01 verbose #23512 > >
00:26:01 verbose #23513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:01 verbose #23514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:01 verbose #23515 > > │ ### run_all                                                                  │
00:26:01 verbose #23516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:01 verbose #23517 > >
00:26:01 verbose #23518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:01 verbose #23519 > > inl run_all forall input expected.
00:26:01 verbose #23520 > >     test_name
00:26:01 verbose #23521 > >     count
00:26:01 verbose #23522 > >     (solutions : list (string * (input -> expected)))
00:26:01 verbose #23523 > >     test_cases
00:26:01 verbose #23524 > >     =
00:26:01 verbose #23525 > >     console.write_line ""
00:26:01 verbose #23526 > >     console.write_line "```"
00:26:01 verbose #23527 > >     trace Verbose
00:26:01 verbose #23528 > >         fun () => $'$"benchmark.run_all"'
00:26:01 verbose #23529 > >         fun () => { test_name count }
00:26:01 verbose #23530 > >     test_cases
00:26:01 verbose #23531 > >     |> listm'.box
00:26:01 verbose #23532 > >     |> listm'.to_array'
00:26:01 verbose #23533 > >     |> am'.map_base (run count solutions)
00:26:01 verbose #23534 > >
00:26:01 verbose #23535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:01 verbose #23536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:01 verbose #23537 > > │ ### sort_result_list                                                         │
00:26:01 verbose #23538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:01 verbose #23539 > >
00:26:01 verbose #23540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:01 verbose #23541 > > inl sort_result_list results =
00:26:01 verbose #23542 > >     inl table =
00:26:01 verbose #23543 > >         inl rows =
00:26:01 verbose #23544 > >             results
00:26:01 verbose #23545 > >             |> am'.map_base fun (result : test_case_result) =>
00:26:01 verbose #23546 > >                 inl best =
00:26:01 verbose #23547 > >                     result.time_list
00:26:01 verbose #23548 > >                     |> am'.indexed
00:26:01 verbose #23549 > >                     |> am'.map_base fun (i, time) =>
00:26:01 verbose #23550 > >                         i + 1i32, time
00:26:01 verbose #23551 > >                     |> fun x => a x : _ int _
00:26:01 verbose #23552 > >                     |> am'.sort_by snd
00:26:01 verbose #23553 > >                     |> am'.index 0i32
00:26:01 verbose #23554 > >                     |> sm'.format
00:26:01 verbose #23555 > >                 inl row =
00:26:01 verbose #23556 > >                     [[
00:26:01 verbose #23557 > >                         result.input |> sm'.ellipsis_end 40 |> sm'.replace "|"
00:26:01 verbose #23558 > > ""
00:26:01 verbose #23559 > >                         result.expected
00:26:01 verbose #23560 > >                         result.result
00:26:01 verbose #23561 > >                         best
00:26:01 verbose #23562 > >                     ]]
00:26:01 verbose #23563 > >                 inl color : option console.console_color =
00:26:01 verbose #23564 > >                     open console
00:26:01 verbose #23565 > >                     match result.expected = result.result with
00:26:01 verbose #23566 > >                     | true => Some $'`console_color.DarkGreen'
00:26:01 verbose #23567 > >                     | false => Some $'`console_color.DarkRed'
00:26:01 verbose #23568 > >                 row, color
00:26:01 verbose #23569 > >
00:26:01 verbose #23570 > >         inl header =
00:26:01 verbose #23571 > >             [[
00:26:01 verbose #23572 > >                 [[
00:26:01 verbose #23573 > >                     "input"
00:26:01 verbose #23574 > >                     "expected"
00:26:01 verbose #23575 > >                     "result"
00:26:01 verbose #23576 > >                     "best"
00:26:01 verbose #23577 > >                 ]]
00:26:01 verbose #23578 > >                 [[
00:26:01 verbose #23579 > >                     "---"
00:26:01 verbose #23580 > >                     "---"
00:26:01 verbose #23581 > >                     "---"
00:26:01 verbose #23582 > >                     "---"
00:26:01 verbose #23583 > >                 ]]
00:26:01 verbose #23584 > >             ]]
00:26:01 verbose #23585 > >             |> listm.map fun row => row, None
00:26:01 verbose #23586 > >             |> listm'.box
00:26:01 verbose #23587 > >             |> listm'.to_array'
00:26:01 verbose #23588 > >             |> fun x => a x : _ int _
00:26:01 verbose #23589 > >         a rows
00:26:01 verbose #23590 > >         |> am.append header
00:26:01 verbose #23591 > >         |> fun (a x) => x
00:26:01 verbose #23592 > >
00:26:01 verbose #23593 > >     inl formatted_table =
00:26:01 verbose #23594 > >         inl length_map : mapm.map i32 i64 =
00:26:01 verbose #23595 > >             table
00:26:01 verbose #23596 > >             |> am'.map_base (fst >> listm'.box >> listm'.to_array')
00:26:01 verbose #23597 > >             |> am'.transpose
00:26:01 verbose #23598 > >             |> am'.map_base fun column =>
00:26:01 verbose #23599 > >                 column
00:26:01 verbose #23600 > >                 |> am'.map_base sm.length
00:26:01 verbose #23601 > >                 |> fun x => a x : _ int _
00:26:01 verbose #23602 > >                 |> am'.sort_descending
00:26:01 verbose #23603 > >                 |> am'.try_item 0i32
00:26:01 verbose #23604 > >                 |> optionm'.default_value 0i64
00:26:01 verbose #23605 > >             |> am'.indexed
00:26:01 verbose #23606 > >             |> fun x => a x : _ int _
00:26:01 verbose #23607 > >             |> mapm.of_array
00:26:01 verbose #23608 > >         table
00:26:01 verbose #23609 > >         |> am'.map_base fun (row, color) =>
00:26:01 verbose #23610 > >             inl new_row =
00:26:01 verbose #23611 > >                 row
00:26:01 verbose #23612 > >                 |> listm'.indexed
00:26:01 verbose #23613 > >                 |> listm.map fun (i, cell) =>
00:26:01 verbose #23614 > >                     cell |> sm'.pad_right (length_map |> mapm.item i |> conv) '
00:26:01 verbose #23615 > > '
00:26:01 verbose #23616 > >                 |> listm'.box
00:26:01 verbose #23617 > >                 |> listm'.to_array'
00:26:01 verbose #23618 > >             new_row, color
00:26:01 verbose #23619 > >
00:26:01 verbose #23620 > >     console.write_line "```"
00:26:01 verbose #23621 > >     formatted_table
00:26:01 verbose #23622 > >     |> fun x => a x : _ int _
00:26:01 verbose #23623 > >     |> am'.to_list'
00:26:01 verbose #23624 > >     |> listm'.unbox
00:26:01 verbose #23625 > >     |> listm.iter fun (row, color) =>
00:26:01 verbose #23626 > >         match color with
00:26:01 verbose #23627 > >         | Some color => color |> console.set_foreground_color
00:26:01 verbose #23628 > >         | None => console.reset_color ()
00:26:01 verbose #23629 > >
00:26:01 verbose #23630 > >         a row |> sm'.join' "\t| " |> console.write_line
00:26:01 verbose #23631 > >
00:26:01 verbose #23632 > >         console.reset_color ()
00:26:01 verbose #23633 > >
00:26:01 verbose #23634 > >     inl averages =
00:26:01 verbose #23635 > >         results
00:26:01 verbose #23636 > >         |> am'.map_base fun result =>
00:26:01 verbose #23637 > >             result.time_list
00:26:01 verbose #23638 > >             |> am'.map_base ($'float' : i64 -> f64)
00:26:01 verbose #23639 > >         |> am'.transpose
00:26:01 verbose #23640 > >         |> am'.map_base ((fun x => a x : _ int _) >> am'.average)
00:26:01 verbose #23641 > >         |> am'.map_base ($'int64' : f64 -> i64)
00:26:01 verbose #23642 > >         |> am'.indexed
00:26:01 verbose #23643 > >         |> fun x => a x : _ u64 _
00:26:01 verbose #23644 > >
00:26:01 verbose #23645 > >     console.write_line "```"
00:26:01 verbose #23646 > >     averages
00:26:01 verbose #23647 > >     |> am'.sort_by snd
00:26:01 verbose #23648 > >     |> am'.to_list'
00:26:01 verbose #23649 > >     |> listm'.unbox
00:26:01 verbose #23650 > >     |> listm.iter fun ((i : i32), avg) =>
00:26:01 verbose #23651 > >         trace Verbose
00:26:01 verbose #23652 > >             fun () => $'$"benchmark.sort_result_list / averages.iter"'
00:26:01 verbose #23653 > >             fun () => { i = i + 1; avg }
00:26:01 verbose #23654 > >     console.write_line "```"
00:26:02 verbose #23655 > >
00:26:02 verbose #23656 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:02 verbose #23657 > > //// test
00:26:02 verbose #23658 > >
00:26:02 verbose #23659 > > inl is_fast () =
00:26:02 verbose #23660 > >     false
00:26:02 verbose #23661 > >
00:26:02 verbose #23662 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:02 verbose #23663 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:02 verbose #23664 > > │ ### empty2Tests                                                              │
00:26:02 verbose #23665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:02 verbose #23666 > >
00:26:02 verbose #23667 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:02 verbose #23668 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:02 verbose #23669 > > │ Test: Empty2                                                                 │
00:26:02 verbose #23670 > > │                                                                              │
00:26:02 verbose #23671 > > │ Solution: (a, a)                                                             │
00:26:02 verbose #23672 > > │ Test case 1. A. Time: 59L                                                    │
00:26:02 verbose #23673 > > │                                                                              │
00:26:02 verbose #23674 > > │ Solution: (a, a)                                                             │
00:26:02 verbose #23675 > > │ Test case 1. A. Time: 53L                                                    │
00:26:02 verbose #23676 > > │                                                                              │
00:26:02 verbose #23677 > > │ Input   | Expected        | Result  | Best                                   │
00:26:02 verbose #23678 > > │ ---     | ---             | ---     | ---                                    │
00:26:02 verbose #23679 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:26:02 verbose #23680 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:26:02 verbose #23681 > > │                                                                              │
00:26:02 verbose #23682 > > │ Averages                                                                     │
00:26:02 verbose #23683 > > │ Test case 1. Average Time: 56L                                               │
00:26:02 verbose #23684 > > │                                                                              │
00:26:02 verbose #23685 > > │ Ranking                                                                      │
00:26:02 verbose #23686 > > │ Test case 1. Average Time: 56L                                               │
00:26:02 verbose #23687 > > │                                                                              │
00:26:02 verbose #23688 > > │ ---                                                                          │
00:26:02 verbose #23689 > > │                                                                              │
00:26:02 verbose #23690 > > │                                                                              │
00:26:02 verbose #23691 > > │ ```                                                                          │
00:26:02 verbose #23692 > > │ 01:12:03 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:26:02 verbose #23693 > > │ empty_2_tests}                                                               │
00:26:02 verbose #23694 > > │ 01:12:03 verbose #2 benchmark.run / {count = 2000000; expected = a;     │
00:26:02 verbose #23695 > > │ input = a, a; input_str = struct ("a", "a")}                                 │
00:26:02 verbose #23696 > > │ 01:12:03 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:26:02 verbose #23697 > > │ expected = a; i = 0; input = a, a; input_str = struct ("a", "a"); test_name  │
00:26:02 verbose #23698 > > │ = A; time = 119}                                                             │
00:26:02 verbose #23699 > > │ 01:12:04 verbose #4 benchmark.run / solutions.map / {count = 2000000;   │
00:26:02 verbose #23700 > > │ expected = a; i = 1; input = a, a; input_str = struct ("a", "a"); test_name  │
00:26:02 verbose #23701 > > │ = B; time = 122}                                                             │
00:26:02 verbose #23702 > > │ 01:12:04 verbose #5 benchmark.run / {count = 2000000; expected = b;     │
00:26:02 verbose #23703 > > │ input = b, b; input_str = struct ("b", "b")}                                 │
00:26:02 verbose #23704 > > │ 01:12:04 verbose #6 benchmark.run / solutions.map / {count = 2000000;   │
00:26:02 verbose #23705 > > │ expected = b; i = 0; input = b, b; input_str = struct ("b", "b"); test_name  │
00:26:02 verbose #23706 > > │ = A; time = 110}                                                             │
00:26:02 verbose #23707 > > │ 01:12:04 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:26:02 verbose #23708 > > │ expected = b; i = 1; input = b, b; input_str = struct ("b", "b"); test_name  │
00:26:02 verbose #23709 > > │ = B; time = 120}                                                             │
00:26:02 verbose #23710 > > │ ```                                                                          │
00:26:02 verbose #23711 > > │ Input            	| Expected	| Result	| Best                                       │
00:26:02 verbose #23712 > > │ ---              	| ---     	| ---   	| ---                                        │
00:26:02 verbose #23713 > > │ struct ("a", "a")	| "a"     	| "a"   	| struct (1L, 119L)                          │
00:26:02 verbose #23714 > > │ struct ("b", "b")	| "b"     	| "b"   	| struct (1L, 110L)                          │
00:26:02 verbose #23715 > > │ ```                                                                          │
00:26:02 verbose #23716 > > │ 01:12:04 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:26:02 verbose #23717 > > │ 114; i = 0}                                                                  │
00:26:02 verbose #23718 > > │ 01:12:04 verbose #9 benchmark.sort_result_list / averages.iter / {avg = │
00:26:02 verbose #23719 > > │ 121; i = 1}                                                                  │
00:26:02 verbose #23720 > > │ ```                                                                          │
00:26:02 verbose #23721 > > │ `                                                                            │
00:26:02 verbose #23722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:02 verbose #23723 > >
00:26:02 verbose #23724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:02 verbose #23725 > > //// test
00:26:02 verbose #23726 > >
00:26:02 verbose #23727 > > inl get_solutions () =
00:26:02 verbose #23728 > >     [[
00:26:02 verbose #23729 > >         "A",
00:26:02 verbose #23730 > >         fun (a, _b) =>
00:26:02 verbose #23731 > >             a
00:26:02 verbose #23732 > >
00:26:02 verbose #23733 > >         "B",
00:26:02 verbose #23734 > >         fun (_a, b) =>
00:26:02 verbose #23735 > >             b
00:26:02 verbose #23736 > >     ]]
00:26:02 verbose #23737 > >
00:26:02 verbose #23738 > > inl rec empty_2_tests () =
00:26:02 verbose #23739 > >     inl test_cases = [[
00:26:02 verbose #23740 > >         ("a", "a"), "a"
00:26:02 verbose #23741 > >         ("b", "b"), "b"
00:26:02 verbose #23742 > >     ]]
00:26:02 verbose #23743 > >
00:26:02 verbose #23744 > >     inl solutions = get_solutions ()
00:26:02 verbose #23745 > >
00:26:02 verbose #23746 > >     // inl is_fast () = true
00:26:02 verbose #23747 > >
00:26:02 verbose #23748 > >     inl count =
00:26:02 verbose #23749 > >         if is_fast ()
00:26:02 verbose #23750 > >         then 1000i32
00:26:02 verbose #23751 > >         else 2000000i32
00:26:02 verbose #23752 > >
00:26:02 verbose #23753 > >     run_all (reflection.nameof { empty_2_tests }) count solutions test_cases
00:26:02 verbose #23754 > >     |> sort_result_list
00:26:02 verbose #23755 > >
00:26:02 verbose #23756 > > empty_2_tests ()
00:26:10 verbose #23757 > >
00:26:10 verbose #23758 > > ╭─[ 8.26s - stdout ]───────────────────────────────────────────────────────────╮
00:26:10 verbose #23759 > > │                                                                              │
00:26:10 verbose #23760 > > │ ```                                                                          │
00:26:10 verbose #23761 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_2_tests;    │
00:26:10 verbose #23762 > > │ count = 2000000 }                                                            │
00:26:10 verbose #23763 > > │                                                                              │
00:26:10 verbose #23764 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ("a", "a") }   │
00:26:10 verbose #23765 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:26:10 verbose #23766 > > │ = A; time = 247 }                                                            │
00:26:10 verbose #23767 > > │ 00:00:00 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:26:10 verbose #23768 > > │ = B; time = 224 }                                                            │
00:26:10 verbose #23769 > > │                                                                              │
00:26:10 verbose #23770 > > │ 00:00:00 verbose #5 benchmark.run / { input_str = struct ("b", "b") }   │
00:26:10 verbose #23771 > > │ 00:00:01 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:26:10 verbose #23772 > > │ = A; time = 256 }                                                            │
00:26:10 verbose #23773 > > │ 00:00:01 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:26:10 verbose #23774 > > │ = B; time = 229 }                                                            │
00:26:10 verbose #23775 > > │ ```                                                                          │
00:26:10 verbose #23776 > > │ input            	| expected	| result	| best                                       │
00:26:10 verbose #23777 > > │ ---              	| ---     	| ---   	| ---                                        │
00:26:10 verbose #23778 > > │ struct ("a", "a")	| "a"     	| "a"   	| 2, 224                                     │
00:26:10 verbose #23779 > > │ struct ("b", "b")	| "b"     	| "b"   	| 2, 229                                     │
00:26:10 verbose #23780 > > │ ```                                                                          │
00:26:10 verbose #23781 > > │ 00:00:01 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:26:10 verbose #23782 > > │ 2; avg = 226 }                                                               │
00:26:10 verbose #23783 > > │ 00:00:01 verbose #9 benchmark.sort_result_list / averages.iter / { i =  │
00:26:10 verbose #23784 > > │ 1; avg = 251 }                                                               │
00:26:10 verbose #23785 > > │ ```                                                                          │
00:26:10 verbose #23786 > > │                                                                              │
00:26:10 verbose #23787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:10 verbose #23788 > >
00:26:10 verbose #23789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:10 verbose #23790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:10 verbose #23791 > > │ ### emptyTests                                                               │
00:26:10 verbose #23792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:10 verbose #23793 > >
00:26:10 verbose #23794 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:10 verbose #23795 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:10 verbose #23796 > > │ Test: Empty                                                                  │
00:26:10 verbose #23797 > > │                                                                              │
00:26:10 verbose #23798 > > │ Solution: 0                                                                  │
00:26:10 verbose #23799 > > │ Test case 1. A. Time: 61L                                                    │
00:26:10 verbose #23800 > > │                                                                              │
00:26:10 verbose #23801 > > │ Solution: 2                                                                  │
00:26:10 verbose #23802 > > │ Test case 1. A. Time: 62L                                                    │
00:26:10 verbose #23803 > > │                                                                              │
00:26:10 verbose #23804 > > │ Solution: 5                                                                  │
00:26:10 verbose #23805 > > │ Test case 1. A. Time: 70L                                                    │
00:26:10 verbose #23806 > > │                                                                              │
00:26:10 verbose #23807 > > │ Input   | Expected        | Result  | Best                                   │
00:26:10 verbose #23808 > > │ ---     | ---             | ---     | ---                                    │
00:26:10 verbose #23809 > > │ 0       | 0               | 0       | (1, 61)                                │
00:26:10 verbose #23810 > > │ 2       | 2               | 2       | (1, 62)                                │
00:26:10 verbose #23811 > > │ 5       | 5               | 5       | (1, 70)                                │
00:26:10 verbose #23812 > > │                                                                              │
00:26:10 verbose #23813 > > │ Averages                                                                     │
00:26:10 verbose #23814 > > │ Test case 1. Average Time: 64L                                               │
00:26:10 verbose #23815 > > │                                                                              │
00:26:10 verbose #23816 > > │ Ranking                                                                      │
00:26:10 verbose #23817 > > │ Test case 1. Average Time: 64L                                               │
00:26:10 verbose #23818 > > │                                                                              │
00:26:10 verbose #23819 > > │ ---                                                                          │
00:26:10 verbose #23820 > > │                                                                              │
00:26:10 verbose #23821 > > │ ```                                                                          │
00:26:10 verbose #23822 > > │ 01:21:25 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:26:10 verbose #23823 > > │ empty_1_tests}                                                               │
00:26:10 verbose #23824 > > │ 01:21:25 verbose #2 benchmark.run / {count = 2000000; expected =        │
00:26:10 verbose #23825 > > │ +1.000000; input = +0.000000; input_str = 0.0}                               │
00:26:10 verbose #23826 > > │ 01:21:25 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:26:10 verbose #23827 > > │ expected = +1.000000; i = 0; input = +0.000000; input_str = 0.0; test_name = │
00:26:10 verbose #23828 > > │ A; time = 36}                                                                │
00:26:10 verbose #23829 > > │ 01:21:25 verbose #4 benchmark.run / {count = 2000000; expected =        │
00:26:10 verbose #23830 > > │ +3.000000; input = +2.000000; input_str = 2.0}                               │
00:26:10 verbose #23831 > > │ 01:21:25 verbose #5 benchmark.run / solutions.map / {count = 2000000;   │
00:26:10 verbose #23832 > > │ expected = +3.000000; i = 0; input = +2.000000; input_str = 2.0; test_name = │
00:26:10 verbose #23833 > > │ A; time = 20}                                                                │
00:26:10 verbose #23834 > > │ 01:21:25 verbose #6 benchmark.run / {count = 2000000; expected =        │
00:26:10 verbose #23835 > > │ +6.000000; input = +5.000000; input_str = 5.0}                               │
00:26:10 verbose #23836 > > │ 01:21:25 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:26:10 verbose #23837 > > │ expected = +6.000000; i = 0; input = +5.000000; input_str = 5.0; test_name = │
00:26:10 verbose #23838 > > │ A; time = 22}                                                                │
00:26:10 verbose #23839 > > │ ```                                                                          │
00:26:10 verbose #23840 > > │ Input	| Expected	| Result	| Best                                                   │
00:26:10 verbose #23841 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:26:10 verbose #23842 > > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 36L)                                       │
00:26:10 verbose #23843 > > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 20L)                                       │
00:26:10 verbose #23844 > > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 22L)                                       │
00:26:10 verbose #23845 > > │ ```                                                                          │
00:26:10 verbose #23846 > > │ 01:21:25 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:26:10 verbose #23847 > > │ 26; i = 0}                                                                   │
00:26:10 verbose #23848 > > │ ```                                                                          │
00:26:10 verbose #23849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:10 verbose #23850 > >
00:26:10 verbose #23851 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:10 verbose #23852 > > //// test
00:26:10 verbose #23853 > >
00:26:10 verbose #23854 > > inl get_solutions () =
00:26:10 verbose #23855 > >     [[
00:26:10 verbose #23856 > >         "A",
00:26:10 verbose #23857 > >         fun n =>
00:26:10 verbose #23858 > >             n + 1f64
00:26:10 verbose #23859 > >     ]]
00:26:10 verbose #23860 > >
00:26:10 verbose #23861 > > inl rec empty_1_tests () =
00:26:10 verbose #23862 > >     inl test_cases = [[
00:26:10 verbose #23863 > >         0, 1
00:26:10 verbose #23864 > >         2, 3
00:26:10 verbose #23865 > >         5, 6
00:26:10 verbose #23866 > >     ]]
00:26:10 verbose #23867 > >
00:26:10 verbose #23868 > >     inl solutions = get_solutions ()
00:26:10 verbose #23869 > >
00:26:10 verbose #23870 > >     // inl is_fast () = true
00:26:10 verbose #23871 > >
00:26:10 verbose #23872 > >     inl count =
00:26:10 verbose #23873 > >         if is_fast ()
00:26:10 verbose #23874 > >         then 1000i32
00:26:10 verbose #23875 > >         else 2000000i32
00:26:10 verbose #23876 > >
00:26:10 verbose #23877 > >     run_all (reflection.nameof { empty_1_tests }) count solutions test_cases
00:26:10 verbose #23878 > >     |> sort_result_list
00:26:10 verbose #23879 > >
00:26:10 verbose #23880 > > empty_1_tests ()
00:26:15 verbose #23881 > >
00:26:15 verbose #23882 > > ╭─[ 4.75s - stdout ]───────────────────────────────────────────────────────────╮
00:26:15 verbose #23883 > > │                                                                              │
00:26:15 verbose #23884 > > │ ```                                                                          │
00:26:15 verbose #23885 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_1_tests;    │
00:26:15 verbose #23886 > > │ count = 2000000 }                                                            │
00:26:15 verbose #23887 > > │                                                                              │
00:26:15 verbose #23888 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = 0.0 }                 │
00:26:15 verbose #23889 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:26:15 verbose #23890 > > │ = A; time = 36 }                                                             │
00:26:15 verbose #23891 > > │                                                                              │
00:26:15 verbose #23892 > > │ 00:00:00 verbose #4 benchmark.run / { input_str = 2.0 }                 │
00:26:15 verbose #23893 > > │ 00:00:00 verbose #5 benchmark.run / solutions.map / { i = 1; test_name  │
00:26:15 verbose #23894 > > │ = A; time = 14 }                                                             │
00:26:15 verbose #23895 > > │                                                                              │
00:26:15 verbose #23896 > > │ 00:00:00 verbose #6 benchmark.run / { input_str = 5.0 }                 │
00:26:15 verbose #23897 > > │ 00:00:00 verbose #7 benchmark.run / solutions.map / { i = 1; test_name  │
00:26:15 verbose #23898 > > │ = A; time = 22 }                                                             │
00:26:15 verbose #23899 > > │ ```                                                                          │
00:26:15 verbose #23900 > > │ input	| expected	| result	| best                                                   │
00:26:15 verbose #23901 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:26:15 verbose #23902 > > │ 0.0  	| 1.0     	| 1.0   	| 1, 36                                                  │
00:26:15 verbose #23903 > > │ 2.0  	| 3.0     	| 3.0   	| 1, 14                                                  │
00:26:15 verbose #23904 > > │ 5.0  	| 6.0     	| 6.0   	| 1, 22                                                  │
00:26:15 verbose #23905 > > │ ```                                                                          │
00:26:15 verbose #23906 > > │ 00:00:00 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:26:15 verbose #23907 > > │ 1; avg = 24 }                                                                │
00:26:15 verbose #23908 > > │ ```                                                                          │
00:26:15 verbose #23909 > > │                                                                              │
00:26:15 verbose #23910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:15 verbose #23911 > 00:00:25 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24854 }
00:26:15 verbose #23912 > 00:00:25   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:26:15 verbose #23913 >     "nbconvert",
00:26:15 verbose #23914 >     "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb",
00:26:15 verbose #23915 >     "--to",
00:26:15 verbose #23916 >     "html",
00:26:15 verbose #23917 >     "--HTMLExporter.theme=dark",
00:26:15 verbose #23918 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:26:18 verbose #23919 > 00:00:28 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb to html
00:26:18 verbose #23920 > 00:00:28 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:26:18 verbose #23921 > 00:00:28 verbose #7 !   validate(nb)
00:26:21 verbose #23922 > 00:00:30 verbose #8 ! [NbConvertApp] Writing 316754 bytes to c:\home\git\polyglot\lib\spiral\benchmark.dib.html
00:26:21 verbose #23923 > 00:00:30 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:26:21 verbose #23924 > 00:00:30   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:26:21 verbose #23925 > 00:00:30   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:26:21 verbose #23926 >     "-c",
00:26:21 verbose #23927 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:26:21 verbose #23928 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:26:22 verbose #23929 > 00:00:31 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:26:22 verbose #23930 > 00:00:31   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:26:22 verbose #23931 > 00:00:31   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 25562 }
00:26:22   debug #23932 runtime.execute_with_options_async / { exit_code = 0; output_length = 29257 }
00:26:22   debug #31 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3
00:26:22   debug #23933 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:26:22 verbose #23934 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "physics.dib", "--retries", "3"])) }
00:26:22 verbose #23935 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:26:22 verbose #23936 >     "repl",
00:26:22 verbose #23937 >     "--exit-after-run",
00:26:22 verbose #23938 >     "--run",
00:26:22 verbose #23939 >     "c:/home/git/polyglot/lib/spiral/physics.dib",
00:26:22 verbose #23940 >     "--output-path",
00:26:22 verbose #23941 >     "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb",
00:26:22 verbose #23942 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/physics.dib" --output-path "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:26:25 verbose #23943 > >
00:26:25 verbose #23944 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:25 verbose #23945 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:25 verbose #23946 > > │ # physics                                                                    │
00:26:25 verbose #23947 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:54 verbose #23948 > >
00:26:54 verbose #23949 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:54 verbose #23950 > > //// test
00:26:54 verbose #23951 > >
00:26:54 verbose #23952 > > open testing
00:26:55 verbose #23953 > >
00:26:55 verbose #23954 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:55 verbose #23955 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:55 verbose #23956 > > │ ### init_series                                                              │
00:26:55 verbose #23957 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:55 verbose #23958 > >
00:26:55 verbose #23959 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:55 verbose #23960 > > //// test
00:26:55 verbose #23961 > >
00:26:55 verbose #23962 > > inl x = am'.init_series -3f64 3 0.01
00:26:55 verbose #23963 > > inl y = x |> am'.map_base math.square
00:26:55 verbose #23964 > > "square", "x", "y", ;[[ "square", x, y ]]
00:26:56 verbose #23965 > >
00:26:56 verbose #23966 > > ╭─[ 577.96ms - return value ]──────────────────────────────────────────────────╮
00:26:56 verbose #23967 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:26:56 verbose #23968 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:26:56 verbose #23969 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:26:56 verbose #23970 > > │ stroke="none"/>                                                              │
00:26:56 verbose #23971 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:26:56 verbose #23972 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:56 verbose #23973 > > │ fill="#FFFFFF">                                                              │
00:26:56 verbose #23974 > > │ square                                                                       │
00:26:56 verbose #23975 > > │ </text>                                                                      │
00:26:56 verbose #23976 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:26:56 verbose #23977 > > │ y2="75"/>                                                                    │
00:26:56 verbose #23978 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:26:56 verbose #23979 > > │ y2="75"/>                                                                    │
00:26:56 verbose #23980 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:26:56 verbose #23981 > > │ y2="75"/>                                                                    │
00:26:56 verbose #23982 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:26:56 verbose #23983 > > │ y2="75"/>                                                                    │
00:26:56 verbose #23984 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:26:56 verbose #23985 > > │ y2="75"/>                                                                    │
00:26:56 verbose #23986 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:26:56 verbose #23987 > > │ x2="103" y2="75"/>                                                           │
00:26:56 verbose #23988 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:26:56 verbose #23989 > > │ x2="111" y2="75"/>                                                           │
00:26:56 verbose #23990 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:26:56 verbose #23991 > > │ x2="119" y2="75"/>                                                           │
00:26:56 verbose #23992 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:26:56 verbose #23993 > > │ x2="128" y2="75"/>                                                           │
00:26:56 verbose #23994 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:26:56 verbose #23995 > > │ x2="136" y2="75"/>                                                           │
00:26:56 verbose #23996 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:26:56 verbose #23997 > > │ x2="144" y2="75"/>                                                           │
00:26:56 verbose #23998 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:26:56 verbose #23999 > > │ x2="153" y2="75"/>                                                           │
00:26:56 verbose #24000 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:26:56 verbose #24001 > > │ x2="161" y2="75"/>                                                           │
00:26:56 verbose #24002 > > │ <line opacity="1" stroke="#... 449,326 450,324 450,323 451,322 452,321       │
00:26:56 verbose #24003 > > │ 453,320 454,319 455,317 455,316 456,315 457,314 458,313 459,311 460,310      │
00:26:56 verbose #24004 > > │ 460,309 461,308 462,306 463,305 464,304 465,303 465,301 466,300 467,299      │
00:26:56 verbose #24005 > > │ 468,297 469,296 470,295 470,293 471,292 472,291 473,289 474,288 475,287      │
00:26:56 verbose #24006 > > │ 475,285 476,284 477,283 478,281 479,280 480,278 480,277 481,276 482,274      │
00:26:56 verbose #24007 > > │ 483,273 484,271 485,270 485,268 486,267 487,265 488,264 489,262 490,261      │
00:26:56 verbose #24008 > > │ 490,259 491,258 492,256 493,255 494,253 495,252 495,250 496,249 497,247      │
00:26:56 verbose #24009 > > │ 498,246 499,244 499,242 500,241 501,239 502,238 503,236 504,234 504,233      │
00:26:56 verbose #24010 > > │ 505,231 506,229 507,228 508,226 509,224 509,223 510,221 511,219 512,218      │
00:26:56 verbose #24011 > > │ 513,216 514,214 514,213 515,211 516,209 517,207 518,206 519,204 519,202      │
00:26:56 verbose #24012 > > │ 520,200 521,199 522,197 523,195 524,193 524,191 525,190 526,188 527,186      │
00:26:56 verbose #24013 > > │ 528,184 529,182 529,180 530,179 531,177 532,175 533,173 534,171 534,169      │
00:26:56 verbose #24014 > > │ 535,167 536,165 537,164 538,162 539,160 539,158 540,156 541,154 542,152      │
00:26:56 verbose #24015 > > │ 543,150 544,148 544,146 545,144 546,142 547,140 548,138 549,136 549,134      │
00:26:56 verbose #24016 > > │ 550,132 551,130 552,128 553,126 554,124 554,122 555,120 556,117 557,115      │
00:26:56 verbose #24017 > > │ 558,113 559,111 559,109 560,107 561,105 562,103 563,101 564,98 564,96 565,94 │
00:26:56 verbose #24018 > > │ 566,92 567,90 568,88 569,85 "/>                                              │
00:26:56 verbose #24019 > > │ <rect x="497" y="235" width="83" height="30" opacity="1" fill="none"         │
00:26:56 verbose #24020 > > │ stroke="#FFFFFF"/>                                                           │
00:26:56 verbose #24021 > > │ <text x="537" y="245" dy="0.76em" text-anchor="start"                        │
00:26:56 verbose #24022 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:56 verbose #24023 > > │ fill="#FFFFFF">                                                              │
00:26:56 verbose #24024 > > │ square                                                                       │
00:26:56 verbose #24025 > > │ </text>                                                                      │
00:26:56 verbose #24026 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:26:56 verbose #24027 > > │ points="507,250 527,250 "/>                                                  │
00:26:56 verbose #24028 > > │ </svg>                                                                       │
00:26:56 verbose #24029 > > │                                                                              │
00:26:56 verbose #24030 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:56 verbose #24031 > >
00:26:56 verbose #24032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:56 verbose #24033 > > //// test
00:26:56 verbose #24034 > >
00:26:56 verbose #24035 > > inl x = am'.init_series -10f64 10 0.1
00:26:56 verbose #24036 > > inl y_sin = x |> am'.map_base sin
00:26:56 verbose #24037 > > inl y_cos = x |> am'.map_base cos
00:26:56 verbose #24038 > > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:26:57 verbose #24039 > >
00:26:57 verbose #24040 > > ╭─[ 662.77ms - return value ]──────────────────────────────────────────────────╮
00:26:57 verbose #24041 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:26:57 verbose #24042 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:26:57 verbose #24043 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:26:57 verbose #24044 > > │ stroke="none"/>                                                              │
00:26:57 verbose #24045 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:26:57 verbose #24046 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:57 verbose #24047 > > │ fill="#FFFFFF">                                                              │
00:26:57 verbose #24048 > > │ sin cos                                                                      │
00:26:57 verbose #24049 > > │ </text>                                                                      │
00:26:57 verbose #24050 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:26:57 verbose #24051 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24052 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:26:57 verbose #24053 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24054 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:26:57 verbose #24055 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24056 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:26:57 verbose #24057 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24058 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:26:57 verbose #24059 > > │ x2="107" y2="75"/>                                                           │
00:26:57 verbose #24060 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:26:57 verbose #24061 > > │ x2="119" y2="75"/>                                                           │
00:26:57 verbose #24062 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:26:57 verbose #24063 > > │ x2="132" y2="75"/>                                                           │
00:26:57 verbose #24064 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:26:57 verbose #24065 > > │ x2="144" y2="75"/>                                                           │
00:26:57 verbose #24066 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:26:57 verbose #24067 > > │ x2="157" y2="75"/>                                                           │
00:26:57 verbose #24068 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:26:57 verbose #24069 > > │ x2="169" y2="75"/>                                                           │
00:26:57 verbose #24070 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:26:57 verbose #24071 > > │ x2="182" y2="75"/>                                                           │
00:26:57 verbose #24072 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:26:57 verbose #24073 > > │ x2="194" y2="75"/>                                                           │
00:26:57 verbose #24074 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:26:57 verbose #24075 > > │ x2="207" y2="75"/>                                                           │
00:26:57 verbose #24076 > > │ <line opacity="1" stroke...55 282,238 284,222 287,206 289,190 292,175        │
00:26:57 verbose #24077 > > │ 294,161 297,148 299,135 302,124 304,114 307,106 309,98 312,93 314,89 317,86  │
00:26:57 verbose #24078 > > │ 319,85 321,86 324,89 326,93 329,98 331,106 334,114 336,124 339,135 341,148   │
00:26:57 verbose #24079 > > │ 344,161 346,175 349,190 351,206 354,222 356,238 359,255 361,271 364,287      │
00:26:57 verbose #24080 > > │ 366,303 369,319 371,333 374,347 376,360 379,371 381,382 384,391 386,399      │
00:26:57 verbose #24081 > > │ 389,405 391,410 394,413 396,414 399,414 401,413 404,409 406,404 409,398      │
00:26:57 verbose #24082 > > │ 411,390 414,380 416,370 419,358 421,345 424,331 426,316 429,301 431,285      │
00:26:57 verbose #24083 > > │ 434,268 436,252 439,236 441,219 444,203 446,188 449,173 451,159 454,146      │
00:26:57 verbose #24084 > > │ 456,133 459,122 461,113 464,104 466,97 469,92 471,88 474,86 476,85 479,86    │
00:26:57 verbose #24085 > > │ 481,89 484,94 486,99 489,107 491,116 494,126 496,137 499,150 501,163 504,178 │
00:26:57 verbose #24086 > > │ 506,193 509,209 511,225 514,241 516,258 519,274 521,290 524,306 526,321      │
00:26:57 verbose #24087 > > │ 529,335 531,349 534,362 536,373 539,384 541,392 544,400 546,406 549,410      │
00:26:57 verbose #24088 > > │ 551,413 554,415 556,414 559,412 561,408 564,403 566,396 569,388 "/>          │
00:26:57 verbose #24089 > > │ <rect x="514" y="227" width="66" height="45" opacity="1" fill="none"         │
00:26:57 verbose #24090 > > │ stroke="#FFFFFF"/>                                                           │
00:26:57 verbose #24091 > > │ <text x="554" y="237" dy="0.76em" text-anchor="start"                        │
00:26:57 verbose #24092 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:57 verbose #24093 > > │ fill="#FFFFFF">                                                              │
00:26:57 verbose #24094 > > │ sin                                                                          │
00:26:57 verbose #24095 > > │ </text>                                                                      │
00:26:57 verbose #24096 > > │ <text x="554" y="252" dy="0.76em" text-anchor="start"                        │
00:26:57 verbose #24097 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:57 verbose #24098 > > │ fill="#FFFFFF">                                                              │
00:26:57 verbose #24099 > > │ cos                                                                          │
00:26:57 verbose #24100 > > │ </text>                                                                      │
00:26:57 verbose #24101 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:26:57 verbose #24102 > > │ points="524,242 544,242 "/>                                                  │
00:26:57 verbose #24103 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:26:57 verbose #24104 > > │ points="524,257 544,257 "/>                                                  │
00:26:57 verbose #24105 > > │ </svg>                                                                       │
00:26:57 verbose #24106 > > │                                                                              │
00:26:57 verbose #24107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:57 verbose #24108 > >
00:26:57 verbose #24109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:57 verbose #24110 > > //// test
00:26:57 verbose #24111 > >
00:26:57 verbose #24112 > > inl y_pos y0 vy0 ay t =
00:26:57 verbose #24113 > >     y0 + vy0 * t + ay * (t |> math.square) / 2
00:26:57 verbose #24114 > >
00:26:57 verbose #24115 > > inl x = am'.init_series 0f64 5 0.01
00:26:57 verbose #24116 > > inl y = x |> am'.map_base (y_pos 0 20 -9.8)
00:26:57 verbose #24117 > > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:26:57 verbose #24118 > >
00:26:57 verbose #24119 > > ╭─[ 455.53ms - return value ]──────────────────────────────────────────────────╮
00:26:57 verbose #24120 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:26:57 verbose #24121 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:26:57 verbose #24122 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:26:57 verbose #24123 > > │ stroke="none"/>                                                              │
00:26:57 verbose #24124 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:26:57 verbose #24125 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:57 verbose #24126 > > │ fill="#FFFFFF">                                                              │
00:26:57 verbose #24127 > > │ projectile motion                                                            │
00:26:57 verbose #24128 > > │ </text>                                                                      │
00:26:57 verbose #24129 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:26:57 verbose #24130 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24131 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:26:57 verbose #24132 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24133 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:26:57 verbose #24134 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24135 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:26:57 verbose #24136 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24137 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:26:57 verbose #24138 > > │ y2="75"/>                                                                    │
00:26:57 verbose #24139 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:26:57 verbose #24140 > > │ x2="109" y2="75"/>                                                           │
00:26:57 verbose #24141 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:26:57 verbose #24142 > > │ x2="119" y2="75"/>                                                           │
00:26:57 verbose #24143 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:26:57 verbose #24144 > > │ x2="129" y2="75"/>                                                           │
00:26:57 verbose #24145 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:26:57 verbose #24146 > > │ x2="139" y2="75"/>                                                           │
00:26:57 verbose #24147 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:26:57 verbose #24148 > > │ x2="149" y2="75"/>                                                           │
00:26:57 verbose #24149 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:26:57 verbose #24150 > > │ x2="159" y2="75"/>                                                           │
00:26:57 verbose #24151 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:26:57 verbose #24152 > > │ x2="169" y2="75"/>                                                           │
00:26:57 verbose #24153 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:26:57 verbose #24154 > > │ x2="179" y2="75"/>                                                           │
00:26:57 verbose #24155 > > │ <line opacity="1...28,176 429,177 430,178 431,179 432,180 433,182 434,183    │
00:26:57 verbose #24156 > > │ 435,184 436,185 437,186 438,188 439,189 440,190 441,191 442,193 443,194      │
00:26:57 verbose #24157 > > │ 444,195 445,197 446,198 447,199 448,200 449,202 450,203 451,204 452,206      │
00:26:57 verbose #24158 > > │ 453,207 454,208 455,210 456,211 457,213 458,214 459,215 460,217 461,218      │
00:26:57 verbose #24159 > > │ 462,220 463,221 464,222 465,224 466,225 467,227 468,228 469,230 470,231      │
00:26:57 verbose #24160 > > │ 471,233 472,234 473,236 474,237 475,239 476,240 477,242 478,243 479,245      │
00:26:57 verbose #24161 > > │ 480,246 481,248 482,249 483,251 484,253 485,254 486,256 487,257 488,259      │
00:26:57 verbose #24162 > > │ 489,261 490,262 491,264 492,266 493,267 494,269 495,271 496,272 497,274      │
00:26:57 verbose #24163 > > │ 498,276 499,277 500,279 501,281 502,282 503,284 504,286 505,288 506,289      │
00:26:57 verbose #24164 > > │ 507,291 508,293 509,295 510,296 511,298 512,300 513,302 514,304 515,305      │
00:26:57 verbose #24165 > > │ 516,307 517,309 518,311 519,313 520,315 521,316 522,318 523,320 524,322      │
00:26:57 verbose #24166 > > │ 525,324 526,326 527,328 528,330 529,332 530,334 531,335 532,337 533,339      │
00:26:57 verbose #24167 > > │ 534,341 535,343 536,345 537,347 538,349 539,351 540,353 541,355 542,357      │
00:26:57 verbose #24168 > > │ 543,359 544,361 545,363 546,365 547,367 548,370 549,372 550,374 551,376      │
00:26:57 verbose #24169 > > │ 552,378 553,380 554,382 555,384 556,386 557,388 558,391 559,393 560,395      │
00:26:57 verbose #24170 > > │ 561,397 562,399 563,401 564,404 565,406 566,408 567,410 568,412 569,415 "/>  │
00:26:57 verbose #24171 > > │ <rect x="399" y="235" width="181" height="30" opacity="1" fill="none"        │
00:26:57 verbose #24172 > > │ stroke="#FFFFFF"/>                                                           │
00:26:57 verbose #24173 > > │ <text x="439" y="245" dy="0.76em" text-anchor="start"                        │
00:26:57 verbose #24174 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:57 verbose #24175 > > │ fill="#FFFFFF">                                                              │
00:26:57 verbose #24176 > > │ height of projectile (m)                                                     │
00:26:57 verbose #24177 > > │ </text>                                                                      │
00:26:57 verbose #24178 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:26:57 verbose #24179 > > │ points="409,250 429,250 "/>                                                  │
00:26:57 verbose #24180 > > │ </svg>                                                                       │
00:26:57 verbose #24181 > > │                                                                              │
00:26:57 verbose #24182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:57 verbose #24183 > >
00:26:57 verbose #24184 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:57 verbose #24185 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:57 verbose #24186 > > │ ### velocity_cf                                                              │
00:26:57 verbose #24187 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:57 verbose #24188 > >
00:26:57 verbose #24189 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:57 verbose #24190 > > type mass = f64
00:26:57 verbose #24191 > > type time = f64
00:26:57 verbose #24192 > > type position = f64
00:26:57 verbose #24193 > > type velocity = f64
00:26:57 verbose #24194 > > type force = f64
00:26:57 verbose #24195 > >
00:26:57 verbose #24196 > > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:26:57 verbose #24197 > >
00:26:57 verbose #24198 > > inl velocity_cf m v0 fs =
00:26:57 verbose #24199 > >     inl f_net = fs |> listm'.sum
00:26:57 verbose #24200 > >     inl a0 = f_net / m
00:26:57 verbose #24201 > >     inl v t = v0 + a0 * t
00:26:57 verbose #24202 > >     v
00:26:58 verbose #24203 > >
00:26:58 verbose #24204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:58 verbose #24205 > > //// test
00:26:58 verbose #24206 > >
00:26:58 verbose #24207 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:26:58 verbose #24208 > > |> _assert_eq 0.6
00:26:58 verbose #24209 > >
00:26:58 verbose #24210 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:26:58 verbose #24211 > > |> _assert_eq 0.2
00:26:58 verbose #24212 > >
00:26:58 verbose #24213 > > ╭─[ 424.51ms - stdout ]────────────────────────────────────────────────────────╮
00:26:58 verbose #24214 > > │ __assert_eq / actual: 0.6 / expected: 0.6                                    │
00:26:58 verbose #24215 > > │ __assert_eq / actual: 0.2 / expected: 0.2                                    │
00:26:58 verbose #24216 > > │                                                                              │
00:26:58 verbose #24217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:58 verbose #24218 > >
00:26:58 verbose #24219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:58 verbose #24220 > > //// test
00:26:58 verbose #24221 > >
00:26:58 verbose #24222 > > inl x = am'.init_series 0f64 4 0.1
00:26:58 verbose #24223 > > inl y = x |> am'.map_base (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:26:58 verbose #24224 > > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:26:59 verbose #24225 > >
00:26:59 verbose #24226 > > ╭─[ 435.65ms - return value ]──────────────────────────────────────────────────╮
00:26:59 verbose #24227 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:26:59 verbose #24228 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:26:59 verbose #24229 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:26:59 verbose #24230 > > │ stroke="none"/>                                                              │
00:26:59 verbose #24231 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:26:59 verbose #24232 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:59 verbose #24233 > > │ fill="#FFFFFF">                                                              │
00:26:59 verbose #24234 > > │ car on an air track                                                          │
00:26:59 verbose #24235 > > │ </text>                                                                      │
00:26:59 verbose #24236 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:26:59 verbose #24237 > > │ y2="75"/>                                                                    │
00:26:59 verbose #24238 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:26:59 verbose #24239 > > │ y2="75"/>                                                                    │
00:26:59 verbose #24240 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:26:59 verbose #24241 > > │ y2="75"/>                                                                    │
00:26:59 verbose #24242 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:26:59 verbose #24243 > > │ y2="75"/>                                                                    │
00:26:59 verbose #24244 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:26:59 verbose #24245 > > │ x2="107" y2="75"/>                                                           │
00:26:59 verbose #24246 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:26:59 verbose #24247 > > │ x2="119" y2="75"/>                                                           │
00:26:59 verbose #24248 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:26:59 verbose #24249 > > │ x2="132" y2="75"/>                                                           │
00:26:59 verbose #24250 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:26:59 verbose #24251 > > │ x2="144" y2="75"/>                                                           │
00:26:59 verbose #24252 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:26:59 verbose #24253 > > │ x2="157" y2="75"/>                                                           │
00:26:59 verbose #24254 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:26:59 verbose #24255 > > │ x2="169" y2="75"/>                                                           │
00:26:59 verbose #24256 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:26:59 verbose #24257 > > │ x2="182" y2="75"/>                                                           │
00:26:59 verbose #24258 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:26:59 verbose #24259 > > │ x2="194" y2="75"/>                                                           │
00:26:59 verbose #24260 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:26:59 verbose #24261 > > │ x2="207" y2="75"/>                                                           │
00:26:59 verbose #24262 > > │ <line opacit...85,209 590,209 "/>                                            │
00:26:59 verbose #24263 > > │ <text x="617" y="168" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:26:59 verbose #24264 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:26:59 verbose #24265 > > │ 0.2                                                                          │
00:26:59 verbose #24266 > > │ </text>                                                                      │
00:26:59 verbose #24267 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:26:59 verbose #24268 > > │ points="585,168 590,168 "/>                                                  │
00:26:59 verbose #24269 > > │ <text x="617" y="127" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:26:59 verbose #24270 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:26:59 verbose #24271 > > │ 0.4                                                                          │
00:26:59 verbose #24272 > > │ </text>                                                                      │
00:26:59 verbose #24273 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:26:59 verbose #24274 > > │ points="585,127 590,127 "/>                                                  │
00:26:59 verbose #24275 > > │ <text x="617" y="85" dy="0.5ex" text-anchor="end" font-family="sans-serif"   │
00:26:59 verbose #24276 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:26:59 verbose #24277 > > │ 0.6                                                                          │
00:26:59 verbose #24278 > > │ </text>                                                                      │
00:26:59 verbose #24279 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:26:59 verbose #24280 > > │ points="585,85 590,85 "/>                                                    │
00:26:59 verbose #24281 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:26:59 verbose #24282 > > │ points="69,85 82,94 94,102 107,110 119,118 132,127 144,135 157,143 169,151   │
00:26:59 verbose #24283 > > │ 182,159 194,168 207,176 219,184 232,192 244,201 257,209 269,217 282,225      │
00:26:59 verbose #24284 > > │ 294,234 307,242 319,250 331,258 344,266 356,275 369,283 381,291 394,299      │
00:26:59 verbose #24285 > > │ 406,308 419,316 431,324 444,332 456,341 469,349 481,357 494,365 506,373      │
00:26:59 verbose #24286 > > │ 519,382 531,390 544,398 556,406 569,415 "/>                                  │
00:26:59 verbose #24287 > > │ <rect x="415" y="235" width="165" height="30" opacity="1" fill="none"        │
00:26:59 verbose #24288 > > │ stroke="#FFFFFF"/>                                                           │
00:26:59 verbose #24289 > > │ <text x="455" y="245" dy="0.76em" text-anchor="start"                        │
00:26:59 verbose #24290 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:26:59 verbose #24291 > > │ fill="#FFFFFF">                                                              │
00:26:59 verbose #24292 > > │ velocity of car (m/s)                                                        │
00:26:59 verbose #24293 > > │ </text>                                                                      │
00:26:59 verbose #24294 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:26:59 verbose #24295 > > │ points="425,250 445,250 "/>                                                  │
00:26:59 verbose #24296 > > │ </svg>                                                                       │
00:26:59 verbose #24297 > > │                                                                              │
00:26:59 verbose #24298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:59 verbose #24299 > >
00:26:59 verbose #24300 > > ── markdown ────────────────────────────────────────────────────────────────────
00:26:59 verbose #24301 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:26:59 verbose #24302 > > │ ### derivative                                                               │
00:26:59 verbose #24303 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:26:59 verbose #24304 > >
00:26:59 verbose #24305 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:59 verbose #24306 > > type derivative = (f64 -> f64) -> f64 -> f64
00:26:59 verbose #24307 > >
00:26:59 verbose #24308 > > inl derivative dt : derivative =
00:26:59 verbose #24309 > >     fun x t =>
00:26:59 verbose #24310 > >         (x (t + dt / 2) - x (t - dt / 2)) / dt
00:26:59 verbose #24311 > >
00:26:59 verbose #24312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:26:59 verbose #24313 > > //// test
00:26:59 verbose #24314 > >
00:26:59 verbose #24315 > > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24316 > > |> _assert_approx_eq None 0.25
00:26:59 verbose #24317 > >
00:26:59 verbose #24318 > > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24319 > > |> _assert_approx_eq None 0.0000002499998827953931
00:26:59 verbose #24320 > >
00:26:59 verbose #24321 > > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24322 > > |> _assert_approx_eq None 0.000000000001000088900582341
00:26:59 verbose #24323 > >
00:26:59 verbose #24324 > > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24325 > > |> _assert_approx_eq None 0.00000008274037099909037
00:26:59 verbose #24326 > >
00:26:59 verbose #24327 > > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24328 > > |> _assert_approx_eq None 0.00008890058234101161
00:26:59 verbose #24329 > >
00:26:59 verbose #24330 > > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24331 > > |> _assert_approx_eq None -0.0007992778373592246
00:26:59 verbose #24332 > >
00:26:59 verbose #24333 > > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:26:59 verbose #24334 > > |> _assert_approx_eq None -1
00:27:00 verbose #24335 > >
00:27:00 verbose #24336 > > ╭─[ 569.69ms - stdout ]────────────────────────────────────────────────────────╮
00:27:00 verbose #24337 > > │ __assert_approx_eq / actual: 0.25 / expected: 0.25                           │
00:27:00 verbose #24338 > > │ __assert_approx_eq / actual: 2.499998828e-07 / expected: 2.499998828e-07     │
00:27:00 verbose #24339 > > │ __assert_approx_eq / actual: 1.000088901e-12 / expected: 1.000088901e-12     │
00:27:00 verbose #24340 > > │ __assert_approx_eq / actual: 8.2740371e-08 / expected: 8.2740371e-08         │
00:27:00 verbose #24341 > > │ __assert_approx_eq / actual: 8.890058234e-05 / expected: 8.890058234e-05     │
00:27:00 verbose #24342 > > │ __assert_approx_eq / actual: -0.0007992778374 / expected: -0.0007992778374   │
00:27:00 verbose #24343 > > │ __assert_approx_eq / actual: -1.0 / expected: -1.0                           │
00:27:00 verbose #24344 > > │                                                                              │
00:27:00 verbose #24345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:00 verbose #24346 > >
00:27:00 verbose #24347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:00 verbose #24348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:00 verbose #24349 > > │ ### integration                                                              │
00:27:00 verbose #24350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:00 verbose #24351 > >
00:27:00 verbose #24352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:00 verbose #24353 > > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:27:00 verbose #24354 > >
00:27:00 verbose #24355 > > inl integral dt : integration =
00:27:00 verbose #24356 > >     fun f a b =>
00:27:00 verbose #24357 > >         inl rec loop t y =
00:27:00 verbose #24358 > >             if t < b
00:27:00 verbose #24359 > >             then loop (t + dt) (y + f t * dt)
00:27:00 verbose #24360 > >             else t, y
00:27:00 verbose #24361 > >         loop (a + dt / 2) 0
00:27:00 verbose #24362 > >         |> snd
00:27:00 verbose #24363 > >
00:27:00 verbose #24364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:00 verbose #24365 > > //// test
00:27:00 verbose #24366 > >
00:27:00 verbose #24367 > > integral 0.01 math.square 0 1
00:27:00 verbose #24368 > > |> _assert_approx_eq None 0.33332500000000004
00:27:01 verbose #24369 > >
00:27:01 verbose #24370 > > ╭─[ 429.66ms - stdout ]────────────────────────────────────────────────────────╮
00:27:01 verbose #24371 > > │ __assert_approx_eq / actual: 0.333325 / expected: 0.333325                   │
00:27:01 verbose #24372 > > │                                                                              │
00:27:01 verbose #24373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:01 verbose #24374 > >
00:27:01 verbose #24375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:01 verbose #24376 > > inl integral' dt : integration =
00:27:01 verbose #24377 > >     fun f a b =>
00:27:01 verbose #24378 > >         listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:27:01 verbose #24379 > >         |> listm.map (f >> (*) dt)
00:27:01 verbose #24380 > >         |> listm'.sum
00:27:01 verbose #24381 > >
00:27:01 verbose #24382 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:01 verbose #24383 > > //// test
00:27:01 verbose #24384 > >
00:27:01 verbose #24385 > > integral' 0.1 math.square 0 1
00:27:01 verbose #24386 > > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:27:01 verbose #24387 > >
00:27:01 verbose #24388 > > ╭─[ 361.53ms - stdout ]────────────────────────────────────────────────────────╮
00:27:01 verbose #24389 > > │ __assert_approx_eq / actual: 0.3325 / expected: 0.3325                       │
00:27:01 verbose #24390 > > │                                                                              │
00:27:01 verbose #24391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:01 verbose #24392 > >
00:27:01 verbose #24393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:01 verbose #24394 > > inl integral'' dt : integration =
00:27:01 verbose #24395 > >     fun f x y =>
00:27:01 verbose #24396 > >         am'.init_series (x + dt / 2) (y - dt / 2) dt
00:27:01 verbose #24397 > >         |> fun x => a x : _ int _
00:27:01 verbose #24398 > >         |> am.map (f >> (*) dt)
00:27:01 verbose #24399 > >         |> am'.sum
00:27:02 verbose #24400 > >
00:27:02 verbose #24401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:02 verbose #24402 > > //// test
00:27:02 verbose #24403 > >
00:27:02 verbose #24404 > > integral'' 0.01 math.square 0 1
00:27:02 verbose #24405 > > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:27:02 verbose #24406 > >
00:27:02 verbose #24407 > > ╭─[ 453.14ms - stdout ]────────────────────────────────────────────────────────╮
00:27:02 verbose #24408 > > │ __assert_approx_eq / actual: 0.333325 / expected: 0.333325                   │
00:27:02 verbose #24409 > > │                                                                              │
00:27:02 verbose #24410 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:02 verbose #24411 > >
00:27:02 verbose #24412 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:02 verbose #24413 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:02 verbose #24414 > > │ ### anti_derivative                                                          │
00:27:02 verbose #24415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:02 verbose #24416 > >
00:27:02 verbose #24417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:02 verbose #24418 > > inl anti_derivative dt v0 a t =
00:27:02 verbose #24419 > >     v0 + integral' dt a 0 t
00:27:03 verbose #24420 > >
00:27:03 verbose #24421 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:03 verbose #24422 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:03 verbose #24423 > > │ ### velocity_ft                                                              │
00:27:03 verbose #24424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:03 verbose #24425 > >
00:27:03 verbose #24426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:03 verbose #24427 > > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:27:03 verbose #24428 > > velocity)
00:27:03 verbose #24429 > >
00:27:03 verbose #24430 > > inl velocity_ft dt : velocity_ft =
00:27:03 verbose #24431 > >     fun m v0 fs =>
00:27:03 verbose #24432 > >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:27:03 verbose #24433 > >         inl a t = f_net t / m
00:27:03 verbose #24434 > >         anti_derivative dt v0 a
00:27:03 verbose #24435 > >
00:27:03 verbose #24436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:03 verbose #24437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:03 verbose #24438 > > │ ### position_ft                                                              │
00:27:03 verbose #24439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:03 verbose #24440 > >
00:27:03 verbose #24441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:03 verbose #24442 > > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:27:03 verbose #24443 > > -> position)
00:27:03 verbose #24444 > >
00:27:03 verbose #24445 > > inl position_ft dt : position_ft =
00:27:03 verbose #24446 > >     fun m x0 v0 fs =>
00:27:03 verbose #24447 > >         velocity_ft dt m v0 fs
00:27:03 verbose #24448 > >         |> anti_derivative dt x0
00:27:03 verbose #24449 > >
00:27:03 verbose #24450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:03 verbose #24451 > > //// test
00:27:03 verbose #24452 > >
00:27:03 verbose #24453 > > inl pedal_coast (t : time) : force =
00:27:03 verbose #24454 > >     inl t_cycle = 20
00:27:03 verbose #24455 > >     inl n_complete : i32 = t / t_cycle |> conv
00:27:03 verbose #24456 > >     inl remainder = t - conv n_complete * t_cycle
00:27:03 verbose #24457 > >     if remainder > 0 && remainder < 10
00:27:03 verbose #24458 > >     then 10
00:27:03 verbose #24459 > >     else 0
00:27:03 verbose #24460 > >
00:27:03 verbose #24461 > > inl x = am'.init_series -5f64 45 0.1
00:27:03 verbose #24462 > > inl y = x |> am'.map_base pedal_coast
00:27:03 verbose #24463 > > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:27:04 verbose #24464 > >
00:27:04 verbose #24465 > > ╭─[ 557.92ms - return value ]──────────────────────────────────────────────────╮
00:27:04 verbose #24466 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:04 verbose #24467 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:04 verbose #24468 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:04 verbose #24469 > > │ stroke="none"/>                                                              │
00:27:04 verbose #24470 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:04 verbose #24471 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:04 verbose #24472 > > │ fill="#FFFFFF">                                                              │
00:27:04 verbose #24473 > > │ child pedaling then coasting                                                 │
00:27:04 verbose #24474 > > │ </text>                                                                      │
00:27:04 verbose #24475 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:04 verbose #24476 > > │ y2="75"/>                                                                    │
00:27:04 verbose #24477 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:04 verbose #24478 > > │ y2="75"/>                                                                    │
00:27:04 verbose #24479 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:04 verbose #24480 > > │ y2="75"/>                                                                    │
00:27:04 verbose #24481 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:04 verbose #24482 > > │ y2="75"/>                                                                    │
00:27:04 verbose #24483 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:04 verbose #24484 > > │ y2="75"/>                                                                    │
00:27:04 verbose #24485 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:04 verbose #24486 > > │ x2="109" y2="75"/>                                                           │
00:27:04 verbose #24487 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:04 verbose #24488 > > │ x2="119" y2="75"/>                                                           │
00:27:04 verbose #24489 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:04 verbose #24490 > > │ x2="129" y2="75"/>                                                           │
00:27:04 verbose #24491 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:04 verbose #24492 > > │ x2="139" y2="75"/>                                                           │
00:27:04 verbose #24493 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:04 verbose #24494 > > │ x2="149" y2="75"/>                                                           │
00:27:04 verbose #24495 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:04 verbose #24496 > > │ x2="159" y2="75"/>                                                           │
00:27:04 verbose #24497 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:04 verbose #24498 > > │ x2="169" y2="75"/>                                                           │
00:27:04 verbose #24499 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:04 verbose #24500 > > │ x2="179" y2="75"/>                                                           │
00:27:04 verbose #24501 > > │ <line...421,415 422,415 423,415 424,415 425,415 426,415 427,415 428,415      │
00:27:04 verbose #24502 > > │ 429,415 430,415 431,415 432,415 433,415 434,415 435,415 436,415 437,415      │
00:27:04 verbose #24503 > > │ 438,415 439,415 440,415 441,415 442,415 443,415 444,415 445,415 446,415      │
00:27:04 verbose #24504 > > │ 447,415 448,415 449,415 450,415 451,415 452,415 453,415 454,415 455,415      │
00:27:04 verbose #24505 > > │ 456,415 457,415 458,415 459,415 460,415 461,415 462,415 463,415 464,415      │
00:27:04 verbose #24506 > > │ 465,415 466,415 467,415 468,415 469,415 470,415 471,415 472,415 473,415      │
00:27:04 verbose #24507 > > │ 474,415 475,415 476,415 477,415 478,415 479,415 480,415 481,415 482,415      │
00:27:04 verbose #24508 > > │ 483,415 484,415 485,415 486,415 487,415 488,415 489,415 490,415 491,415      │
00:27:04 verbose #24509 > > │ 492,415 493,415 494,415 495,415 496,415 497,415 498,415 499,415 500,415      │
00:27:04 verbose #24510 > > │ 501,415 502,415 503,415 504,415 505,415 506,415 507,415 508,415 509,415      │
00:27:04 verbose #24511 > > │ 510,415 511,415 512,415 513,415 514,415 515,415 516,415 517,415 518,415      │
00:27:04 verbose #24512 > > │ 519,415 520,85 521,85 522,85 523,85 524,85 525,85 526,85 527,85 528,85       │
00:27:04 verbose #24513 > > │ 529,85 530,85 531,85 532,85 533,85 534,85 535,85 536,85 537,85 538,85 539,85 │
00:27:04 verbose #24514 > > │ 540,85 541,85 542,85 543,85 544,85 545,85 546,85 547,85 548,85 549,85 550,85 │
00:27:04 verbose #24515 > > │ 551,85 552,85 553,85 554,85 555,85 556,85 557,85 558,85 559,85 560,85 561,85 │
00:27:04 verbose #24516 > > │ 562,85 563,85 564,85 565,85 566,85 567,85 568,85 569,85 "/>                  │
00:27:04 verbose #24517 > > │ <rect x="437" y="235" width="143" height="30" opacity="1" fill="none"        │
00:27:04 verbose #24518 > > │ stroke="#FFFFFF"/>                                                           │
00:27:04 verbose #24519 > > │ <text x="477" y="245" dy="0.76em" text-anchor="start"                        │
00:27:04 verbose #24520 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:04 verbose #24521 > > │ fill="#FFFFFF">                                                              │
00:27:04 verbose #24522 > > │ force on bike (N)                                                            │
00:27:04 verbose #24523 > > │ </text>                                                                      │
00:27:04 verbose #24524 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:04 verbose #24525 > > │ points="447,250 467,250 "/>                                                  │
00:27:04 verbose #24526 > > │ </svg>                                                                       │
00:27:04 verbose #24527 > > │                                                                              │
00:27:04 verbose #24528 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:04 verbose #24529 > >
00:27:04 verbose #24530 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:04 verbose #24531 > > //// test
00:27:04 verbose #24532 > >
00:27:04 verbose #24533 > > inl x = am'.init_series -5 45 1
00:27:04 verbose #24534 > > inl y = x |> am'.map_base (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:27:04 verbose #24535 > > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:27:04 verbose #24536 > > ]]
00:27:05 verbose #24537 > >
00:27:05 verbose #24538 > > ╭─[ 827.17ms - return value ]──────────────────────────────────────────────────╮
00:27:05 verbose #24539 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:05 verbose #24540 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:05 verbose #24541 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:05 verbose #24542 > > │ stroke="none"/>                                                              │
00:27:05 verbose #24543 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:05 verbose #24544 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:05 verbose #24545 > > │ fill="#FFFFFF">                                                              │
00:27:05 verbose #24546 > > │ child pedaling then coasting                                                 │
00:27:05 verbose #24547 > > │ </text>                                                                      │
00:27:05 verbose #24548 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:05 verbose #24549 > > │ y2="75"/>                                                                    │
00:27:05 verbose #24550 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:05 verbose #24551 > > │ y2="75"/>                                                                    │
00:27:05 verbose #24552 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:05 verbose #24553 > > │ y2="75"/>                                                                    │
00:27:05 verbose #24554 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:05 verbose #24555 > > │ y2="75"/>                                                                    │
00:27:05 verbose #24556 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:05 verbose #24557 > > │ y2="75"/>                                                                    │
00:27:05 verbose #24558 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:05 verbose #24559 > > │ x2="109" y2="75"/>                                                           │
00:27:05 verbose #24560 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:05 verbose #24561 > > │ x2="119" y2="75"/>                                                           │
00:27:05 verbose #24562 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:05 verbose #24563 > > │ x2="129" y2="75"/>                                                           │
00:27:05 verbose #24564 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:05 verbose #24565 > > │ x2="139" y2="75"/>                                                           │
00:27:05 verbose #24566 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:05 verbose #24567 > > │ x2="149" y2="75"/>                                                           │
00:27:05 verbose #24568 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:05 verbose #24569 > > │ x2="159" y2="75"/>                                                           │
00:27:05 verbose #24570 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:05 verbose #24571 > > │ x2="169" y2="75"/>                                                           │
00:27:05 verbose #24572 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:05 verbose #24573 > > │ x2="179" y2="75"/>                                                           │
00:27:05 verbose #24574 > > │ <line...serif" font-size="9.67741935483871" opacity="1" fill="#FFFFFF">      │
00:27:05 verbose #24575 > > │ 200.0                                                                        │
00:27:05 verbose #24576 > > │ </text>                                                                      │
00:27:05 verbose #24577 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:05 verbose #24578 > > │ points="585,201 590,201 "/>                                                  │
00:27:05 verbose #24579 > > │ <text x="595" y="147" dy="0.5ex" text-anchor="start"                         │
00:27:05 verbose #24580 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:05 verbose #24581 > > │ fill="#FFFFFF">                                                              │
00:27:05 verbose #24582 > > │ 250.0                                                                        │
00:27:05 verbose #24583 > > │ </text>                                                                      │
00:27:05 verbose #24584 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:05 verbose #24585 > > │ points="585,147 590,147 "/>                                                  │
00:27:05 verbose #24586 > > │ <text x="595" y="94" dy="0.5ex" text-anchor="start" font-family="sans-serif" │
00:27:05 verbose #24587 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:27:05 verbose #24588 > > │ 300.0                                                                        │
00:27:05 verbose #24589 > > │ </text>                                                                      │
00:27:05 verbose #24590 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:05 verbose #24591 > > │ points="585,94 590,94 "/>                                                    │
00:27:05 verbose #24592 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:05 verbose #24593 > > │ points="69,415 79,415 89,415 99,415 109,415 119,415 129,414 139,413 149,412  │
00:27:05 verbose #24594 > > │ 159,410 169,408 179,405 189,401 199,397 209,393 219,388 229,382 239,377      │
00:27:05 verbose #24595 > > │ 249,372 259,366 269,361 279,356 289,350 299,345 309,340 319,334 329,329      │
00:27:05 verbose #24596 > > │ 339,322 349,316 359,308 369,301 379,292 389,284 399,274 409,264 419,254      │
00:27:05 verbose #24597 > > │ 429,243 439,232 449,221 459,210 469,199 479,189 489,178 499,167 509,157      │
00:27:05 verbose #24598 > > │ 519,146 529,135 539,123 549,111 559,99 569,85 "/>                            │
00:27:05 verbose #24599 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:27:05 verbose #24600 > > │ stroke="#FFFFFF"/>                                                           │
00:27:05 verbose #24601 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:27:05 verbose #24602 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:05 verbose #24603 > > │ fill="#FFFFFF">                                                              │
00:27:05 verbose #24604 > > │ position of bike (m)                                                         │
00:27:05 verbose #24605 > > │ </text>                                                                      │
00:27:05 verbose #24606 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:05 verbose #24607 > > │ points="431,250 451,250 "/>                                                  │
00:27:05 verbose #24608 > > │ </svg>                                                                       │
00:27:05 verbose #24609 > > │                                                                              │
00:27:05 verbose #24610 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 verbose #24611 > >
00:27:05 verbose #24612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:05 verbose #24613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:05 verbose #24614 > > │ ### velocity_fv                                                              │
00:27:05 verbose #24615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:05 verbose #24616 > >
00:27:05 verbose #24617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:05 verbose #24618 > > inl newton_second_v m fs v0 =
00:27:05 verbose #24619 > >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:27:05 verbose #24620 > >
00:27:05 verbose #24621 > > inl update_velocity dt m fs v0 =
00:27:05 verbose #24622 > >     v0 + newton_second_v m fs v0 * dt
00:27:05 verbose #24623 > >
00:27:05 verbose #24624 > > inl velocity_fv dt m v0 fs t =
00:27:05 verbose #24625 > >     stream.iterate (update_velocity dt m fs) v0
00:27:05 verbose #24626 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:27:05 verbose #24627 > >     |> optionm'.default_value 0
00:27:05 verbose #24628 > >
00:27:05 verbose #24629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:05 verbose #24630 > > inl f_air drag rho area v =
00:27:05 verbose #24631 > >     -drag * rho * area * abs v * v / 2
00:27:06 verbose #24632 > >
00:27:06 verbose #24633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:06 verbose #24634 > > //// test
00:27:06 verbose #24635 > >
00:27:06 verbose #24636 > > inl x = am'.init_series 0 60 0.5
00:27:06 verbose #24637 > > inl y = x |> am'.map_base (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225
00:27:06 verbose #24638 > > 0.6 ]])
00:27:06 verbose #24639 > > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:27:07 verbose #24640 > >
00:27:07 verbose #24641 > > ╭─[ 1.03s - return value ]─────────────────────────────────────────────────────╮
00:27:07 verbose #24642 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:07 verbose #24643 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:07 verbose #24644 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:07 verbose #24645 > > │ stroke="none"/>                                                              │
00:27:07 verbose #24646 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:07 verbose #24647 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:07 verbose #24648 > > │ fill="#FFFFFF">                                                              │
00:27:07 verbose #24649 > > │ bike velocity                                                                │
00:27:07 verbose #24650 > > │ </text>                                                                      │
00:27:07 verbose #24651 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:27:07 verbose #24652 > > │ y2="75"/>                                                                    │
00:27:07 verbose #24653 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:07 verbose #24654 > > │ y2="75"/>                                                                    │
00:27:07 verbose #24655 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:27:07 verbose #24656 > > │ y2="75"/>                                                                    │
00:27:07 verbose #24657 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:27:07 verbose #24658 > > │ y2="75"/>                                                                    │
00:27:07 verbose #24659 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:27:07 verbose #24660 > > │ y2="75"/>                                                                    │
00:27:07 verbose #24661 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:27:07 verbose #24662 > > │ x2="103" y2="75"/>                                                           │
00:27:07 verbose #24663 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:27:07 verbose #24664 > > │ x2="111" y2="75"/>                                                           │
00:27:07 verbose #24665 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:07 verbose #24666 > > │ x2="119" y2="75"/>                                                           │
00:27:07 verbose #24667 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:27:07 verbose #24668 > > │ x2="128" y2="75"/>                                                           │
00:27:07 verbose #24669 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:27:07 verbose #24670 > > │ x2="136" y2="75"/>                                                           │
00:27:07 verbose #24671 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:27:07 verbose #24672 > > │ x2="144" y2="75"/>                                                           │
00:27:07 verbose #24673 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:27:07 verbose #24674 > > │ x2="153" y2="75"/>                                                           │
00:27:07 verbose #24675 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:27:07 verbose #24676 > > │ x2="161" y2="75"/>                                                           │
00:27:07 verbose #24677 > > │ <line opacity="1" st...t" font-family="sans-serif"                           │
00:27:07 verbose #24678 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:27:07 verbose #24679 > > │ 12.0                                                                         │
00:27:07 verbose #24680 > > │ </text>                                                                      │
00:27:07 verbose #24681 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:07 verbose #24682 > > │ points="585,76 590,76 "/>                                                    │
00:27:07 verbose #24683 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:07 verbose #24684 > > │ points="69,415 74,415 78,374 82,335 86,335 90,335 94,297 99,261 103,261      │
00:27:07 verbose #24685 > > │ 107,261 111,230 115,202 119,202 124,202 128,179 132,159 136,159 140,159      │
00:27:07 verbose #24686 > > │ 144,143 148,130 153,130 157,130 161,120 165,112 169,112 173,112 178,106      │
00:27:07 verbose #24687 > > │ 182,101 186,101 190,101 194,97 198,94 203,94 207,94 211,92 215,91 219,91     │
00:27:07 verbose #24688 > > │ 223,91 228,89 232,88 236,88 240,88 244,88 248,87 252,87 257,87 261,87 265,86 │
00:27:07 verbose #24689 > > │ 269,86 273,86 277,86 282,86 286,86 290,86 294,86 298,86 302,86 307,86 311,86 │
00:27:07 verbose #24690 > > │ 315,86 319,86 323,86 327,86 331,85 336,85 340,85 344,85 348,85 352,85 356,85 │
00:27:07 verbose #24691 > > │ 361,85 365,85 369,85 373,85 377,85 381,85 386,85 390,85 394,85 398,85 402,85 │
00:27:07 verbose #24692 > > │ 406,85 410,85 415,85 419,85 423,85 427,85 431,85 435,85 440,85 444,85 448,85 │
00:27:07 verbose #24693 > > │ 452,85 456,85 460,85 465,85 469,85 473,85 477,85 481,85 485,85 490,85 494,85 │
00:27:07 verbose #24694 > > │ 498,85 502,85 506,85 510,85 514,85 519,85 523,85 527,85 531,85 535,85 539,85 │
00:27:07 verbose #24695 > > │ 544,85 548,85 552,85 556,85 560,85 564,85 569,85 "/>                         │
00:27:07 verbose #24696 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:27:07 verbose #24697 > > │ stroke="#FFFFFF"/>                                                           │
00:27:07 verbose #24698 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:27:07 verbose #24699 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:07 verbose #24700 > > │ fill="#FFFFFF">                                                              │
00:27:07 verbose #24701 > > │ velocity of bike (m/s)                                                       │
00:27:07 verbose #24702 > > │ </text>                                                                      │
00:27:07 verbose #24703 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:07 verbose #24704 > > │ points="420,250 440,250 "/>                                                  │
00:27:07 verbose #24705 > > │ </svg>                                                                       │
00:27:07 verbose #24706 > > │                                                                              │
00:27:07 verbose #24707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:07 verbose #24708 > >
00:27:07 verbose #24709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:07 verbose #24710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:07 verbose #24711 > > │ ### velocity_ftv                                                             │
00:27:07 verbose #24712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:07 verbose #24713 > >
00:27:07 verbose #24714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:07 verbose #24715 > > inl newton_second_tv m fs (t, v0) =
00:27:07 verbose #24716 > >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:27:07 verbose #24717 > >     inl acc = f_net / m
00:27:07 verbose #24718 > >     1, acc
00:27:07 verbose #24719 > >
00:27:07 verbose #24720 > > inl update_tv dt m fs (t, v0) =
00:27:07 verbose #24721 > >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:27:07 verbose #24722 > >     t + dtdt * dt, v0 + dvdt * dt
00:27:07 verbose #24723 > >
00:27:07 verbose #24724 > > inl velocity_ftv dt m tv0 fs t =
00:27:07 verbose #24725 > >     stream.iterate (join update_tv dt m fs) tv0
00:27:07 verbose #24726 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:27:07 verbose #24727 > >     |> optionm.map snd
00:27:07 verbose #24728 > >     |> optionm'.default_value 0
00:27:07 verbose #24729 > >
00:27:07 verbose #24730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:07 verbose #24731 > > //// test
00:27:07 verbose #24732 > >
00:27:07 verbose #24733 > > inl x = am'.init_series 0 100 0.1
00:27:07 verbose #24734 > > inl y =
00:27:07 verbose #24735 > >     x
00:27:07 verbose #24736 > >     |> am'.map_base (
00:27:07 verbose #24737 > >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:27:07 verbose #24738 > > v) => f_air 2 1.225 0.5 v ]]
00:27:07 verbose #24739 > >     )
00:27:07 verbose #24740 > > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:27:07 verbose #24741 > > x, y ]]
00:27:08 verbose #24742 > >
00:27:08 verbose #24743 > > ╭─[ 839.81ms - return value ]──────────────────────────────────────────────────╮
00:27:08 verbose #24744 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:08 verbose #24745 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:08 verbose #24746 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:08 verbose #24747 > > │ stroke="none"/>                                                              │
00:27:08 verbose #24748 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:08 verbose #24749 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:08 verbose #24750 > > │ fill="#FFFFFF">                                                              │
00:27:08 verbose #24751 > > │ pedaling and coasting with air                                               │
00:27:08 verbose #24752 > > │ </text>                                                                      │
00:27:08 verbose #24753 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:08 verbose #24754 > > │ y2="75"/>                                                                    │
00:27:08 verbose #24755 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:08 verbose #24756 > > │ y2="75"/>                                                                    │
00:27:08 verbose #24757 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:08 verbose #24758 > > │ y2="75"/>                                                                    │
00:27:08 verbose #24759 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:08 verbose #24760 > > │ y2="75"/>                                                                    │
00:27:08 verbose #24761 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:08 verbose #24762 > > │ y2="75"/>                                                                    │
00:27:08 verbose #24763 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:08 verbose #24764 > > │ x2="109" y2="75"/>                                                           │
00:27:08 verbose #24765 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:08 verbose #24766 > > │ x2="119" y2="75"/>                                                           │
00:27:08 verbose #24767 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:08 verbose #24768 > > │ x2="129" y2="75"/>                                                           │
00:27:08 verbose #24769 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:08 verbose #24770 > > │ x2="139" y2="75"/>                                                           │
00:27:08 verbose #24771 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:08 verbose #24772 > > │ x2="149" y2="75"/>                                                           │
00:27:08 verbose #24773 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:08 verbose #24774 > > │ x2="159" y2="75"/>                                                           │
00:27:08 verbose #24775 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:08 verbose #24776 > > │ x2="169" y2="75"/>                                                           │
00:27:08 verbose #24777 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:08 verbose #24778 > > │ x2="179" y2="75"/>                                                           │
00:27:08 verbose #24779 > > │ <li... 497,128 497,126 498,125 498,123 499,122 499,121 500,119 500,118       │
00:27:08 verbose #24780 > > │ 501,117 501,116 502,114 502,113 503,112 503,111 504,110 504,109 505,108      │
00:27:08 verbose #24781 > > │ 505,107 506,106 506,105 507,104 507,103 508,102 508,101 509,100 509,99       │
00:27:08 verbose #24782 > > │ 510,98 510,98 511,97 511,96 512,95 512,94 513,94 513,93 514,92 514,92 515,91 │
00:27:08 verbose #24783 > > │ 515,90 516,90 516,89 517,88 517,88 518,87 518,87 519,86 519,85 520,89 520,93 │
00:27:08 verbose #24784 > > │ 521,97 521,100 522,104 522,107 523,110 523,114 524,117 524,120 525,123       │
00:27:08 verbose #24785 > > │ 525,126 526,129 526,132 527,135 527,137 528,140 528,143 529,145 529,148      │
00:27:08 verbose #24786 > > │ 530,150 530,153 531,155 531,158 532,160 532,162 533,165 533,167 534,169      │
00:27:08 verbose #24787 > > │ 534,171 535,173 535,175 536,177 536,179 537,181 537,183 538,185 538,187      │
00:27:08 verbose #24788 > > │ 539,189 539,190 540,192 540,194 541,196 541,197 542,199 542,201 543,202      │
00:27:08 verbose #24789 > > │ 543,204 544,205 544,207 545,208 545,210 546,211 546,213 547,214 547,216      │
00:27:08 verbose #24790 > > │ 548,217 548,219 549,220 549,221 550,223 550,224 551,225 551,226 552,228      │
00:27:08 verbose #24791 > > │ 552,229 553,230 553,231 554,232 554,234 555,235 555,236 556,237 556,238      │
00:27:08 verbose #24792 > > │ 557,239 557,240 558,241 558,242 559,243 559,245 560,246 560,247 561,248      │
00:27:08 verbose #24793 > > │ 561,249 562,249 562,250 563,251 563,252 564,253 564,254 565,255 565,256      │
00:27:08 verbose #24794 > > │ 566,257 566,258 567,259 567,259 568,260 568,261 569,262 "/>                  │
00:27:08 verbose #24795 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:27:08 verbose #24796 > > │ stroke="#FFFFFF"/>                                                           │
00:27:08 verbose #24797 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:27:08 verbose #24798 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:08 verbose #24799 > > │ fill="#FFFFFF">                                                              │
00:27:08 verbose #24800 > > │ velocity of bike (m/s)                                                       │
00:27:08 verbose #24801 > > │ </text>                                                                      │
00:27:08 verbose #24802 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:08 verbose #24803 > > │ points="420,250 440,250 "/>                                                  │
00:27:08 verbose #24804 > > │ </svg>                                                                       │
00:27:08 verbose #24805 > > │                                                                              │
00:27:08 verbose #24806 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:08 verbose #24807 > >
00:27:08 verbose #24808 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:08 verbose #24809 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:08 verbose #24810 > > │ ### velocity_ftxv                                                            │
00:27:08 verbose #24811 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:08 verbose #24812 > >
00:27:08 verbose #24813 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:08 verbose #24814 > > nominal state_1d = time * position * velocity
00:27:08 verbose #24815 > > nominal rrr = f64 * f64 * f64
00:27:08 verbose #24816 > >
00:27:08 verbose #24817 > > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:27:08 verbose #24818 > >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:27:08 verbose #24819 > > listm'.sum
00:27:08 verbose #24820 > >     inl acc = f_net / m
00:27:08 verbose #24821 > >     rrr (1f64, v0, acc)
00:27:08 verbose #24822 > >
00:27:08 verbose #24823 > > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:27:08 verbose #24824 > >     inl (rrr (_, _, dvdt)) = deriv t
00:27:08 verbose #24825 > >     inl t1 = t0 + dt
00:27:08 verbose #24826 > >     inl x1 = x0 + v0 * dt
00:27:08 verbose #24827 > >     inl v1 = v0 + dvdt * dt
00:27:08 verbose #24828 > >     state_1d (t1, x1, v1)
00:27:08 verbose #24829 > >
00:27:08 verbose #24830 > > inl update_txv dt m fs =
00:27:08 verbose #24831 > >     newton_second_1d m fs |> euler_1d dt
00:27:08 verbose #24832 > >
00:27:08 verbose #24833 > > inl states_txv dt m txv0 fs =
00:27:08 verbose #24834 > >     seq.iterate_ (update_txv dt m fs) txv0
00:27:08 verbose #24835 > >
00:27:08 verbose #24836 > > inl velocity_1d sts t =
00:27:08 verbose #24837 > >     inl (state_1d (t0, _, _)) = sts 0
00:27:08 verbose #24838 > >     inl (state_1d (t1, _, _)) = sts 1
00:27:08 verbose #24839 > >     inl dt = t1 - t0
00:27:08 verbose #24840 > >     inl num_steps = t / dt |> math.round |> abs
00:27:08 verbose #24841 > >     inl (state_1d (_, _, v0)) = sts num_steps
00:27:08 verbose #24842 > >     v0
00:27:08 verbose #24843 > >
00:27:08 verbose #24844 > > inl velocity_ftxv dt m txv0 fs =
00:27:08 verbose #24845 > >     states_txv dt m txv0 fs |> velocity_1d
00:27:08 verbose #24846 > >
00:27:08 verbose #24847 > > inl position_1d sts t =
00:27:08 verbose #24848 > >     inl (state_1d (t0, _, _)) = sts 0
00:27:08 verbose #24849 > >     inl (state_1d (t1, _, _)) = sts 1
00:27:08 verbose #24850 > >     inl dt = t1 - t0
00:27:08 verbose #24851 > >     inl num_steps = t / dt |> math.round |> abs
00:27:08 verbose #24852 > >     inl (state_1d (_, x0, _)) = sts num_steps
00:27:08 verbose #24853 > >     x0
00:27:08 verbose #24854 > >
00:27:08 verbose #24855 > > inl position_ftxv dt m txv0 fs =
00:27:08 verbose #24856 > >     states_txv dt m txv0 fs |> position_1d
00:27:08 verbose #24857 > >
00:27:08 verbose #24858 > > inl spring_force k (state_1d (_, x0, _)) =
00:27:08 verbose #24859 > >     -k * x0
00:27:08 verbose #24860 > >
00:27:08 verbose #24861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:08 verbose #24862 > > //// test
00:27:08 verbose #24863 > >
00:27:08 verbose #24864 > > inl damped_ho_forces () =
00:27:08 verbose #24865 > >     [[
00:27:08 verbose #24866 > >         spring_force 0.8
00:27:08 verbose #24867 > >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:27:08 verbose #24868 > >         fun _ => -0.0027 * 9.80665
00:27:08 verbose #24869 > >     ]]
00:27:08 verbose #24870 > >
00:27:08 verbose #24871 > > inl damped_ho_states () =
00:27:08 verbose #24872 > >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:27:08 verbose #24873 > >
00:27:08 verbose #24874 > > inl pingpong_position t =
00:27:08 verbose #24875 > >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:27:08 verbose #24876 > >
00:27:08 verbose #24877 > > inl x = am'.init_series 0 3 0.01
00:27:08 verbose #24878 > > inl y = x |> am'.map_base pingpong_position
00:27:08 verbose #24879 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:27:09 verbose #24880 > >
00:27:09 verbose #24881 > > ╭─[ 504.78ms - return value ]──────────────────────────────────────────────────╮
00:27:09 verbose #24882 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:09 verbose #24883 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:09 verbose #24884 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:09 verbose #24885 > > │ stroke="none"/>                                                              │
00:27:09 verbose #24886 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:09 verbose #24887 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:09 verbose #24888 > > │ fill="#FFFFFF">                                                              │
00:27:09 verbose #24889 > > │ ping pong ball on a slinky                                                   │
00:27:09 verbose #24890 > > │ </text>                                                                      │
00:27:09 verbose #24891 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:27:09 verbose #24892 > > │ y2="75"/>                                                                    │
00:27:09 verbose #24893 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:09 verbose #24894 > > │ y2="75"/>                                                                    │
00:27:09 verbose #24895 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:27:09 verbose #24896 > > │ y2="75"/>                                                                    │
00:27:09 verbose #24897 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:27:09 verbose #24898 > > │ y2="75"/>                                                                    │
00:27:09 verbose #24899 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:27:09 verbose #24900 > > │ y2="75"/>                                                                    │
00:27:09 verbose #24901 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:27:09 verbose #24902 > > │ x2="103" y2="75"/>                                                           │
00:27:09 verbose #24903 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:27:09 verbose #24904 > > │ x2="111" y2="75"/>                                                           │
00:27:09 verbose #24905 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:09 verbose #24906 > > │ x2="119" y2="75"/>                                                           │
00:27:09 verbose #24907 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:27:09 verbose #24908 > > │ x2="128" y2="75"/>                                                           │
00:27:09 verbose #24909 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:27:09 verbose #24910 > > │ x2="136" y2="75"/>                                                           │
00:27:09 verbose #24911 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:27:09 verbose #24912 > > │ x2="144" y2="75"/>                                                           │
00:27:09 verbose #24913 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:27:09 verbose #24914 > > │ x2="153" y2="75"/>                                                           │
00:27:09 verbose #24915 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:27:09 verbose #24916 > > │ x2="161" y2="75"/>                                                           │
00:27:09 verbose #24917 > > │ <line o...88 332,305 334,321 336,334 337,346 339,354 341,360 342,363 344,362 │
00:27:09 verbose #24918 > > │ 346,359 347,352 349,342 351,330 352,316 354,300 356,283 357,265 359,247      │
00:27:09 verbose #24919 > > │ 361,229 362,212 364,197 366,183 367,172 369,163 371,156 372,153 374,153      │
00:27:09 verbose #24920 > > │ 376,156 377,161 379,170 381,181 382,194 384,209 386,226 387,243 389,260      │
00:27:09 verbose #24921 > > │ 391,277 392,294 394,309 396,323 397,335 399,344 401,351 402,355 404,356      │
00:27:09 verbose #24922 > > │ 406,354 407,349 409,341 410,331 412,319 414,305 415,289 417,273 419,256      │
00:27:09 verbose #24923 > > │ 420,239 422,223 424,208 425,194 427,182 429,172 430,165 432,161 434,159      │
00:27:09 verbose #24924 > > │ 435,160 437,164 439,171 440,180 442,192 444,205 445,220 447,235 449,252      │
00:27:09 verbose #24925 > > │ 450,268 452,284 454,299 455,313 457,325 459,335 460,342 462,347 464,350      │
00:27:09 verbose #24926 > > │ 465,349 467,346 469,340 470,332 472,321 474,309 475,295 477,280 479,264      │
00:27:09 verbose #24927 > > │ 480,248 482,232 484,217 485,204 487,192 489,181 490,173 492,168 494,165      │
00:27:09 verbose #24928 > > │ 495,165 497,167 499,172 500,180 502,189 504,201 505,215 507,229 509,244      │
00:27:09 verbose #24929 > > │ 510,260 512,275 514,290 515,303 517,316 519,326 520,335 522,341 524,344      │
00:27:09 verbose #24930 > > │ 525,345 527,343 529,339 530,332 532,323 534,312 535,300 537,286 539,271      │
00:27:09 verbose #24931 > > │ 540,256 542,241 544,226 545,213 547,200 549,190 550,181 552,175 554,171      │
00:27:09 verbose #24932 > > │ 555,169 557,170 559,174 560,180 562,188 564,198 565,210 567,223 569,238 "/>  │
00:27:09 verbose #24933 > > │ <rect x="464" y="235" width="116" height="30" opacity="1" fill="none"        │
00:27:09 verbose #24934 > > │ stroke="#FFFFFF"/>                                                           │
00:27:09 verbose #24935 > > │ <text x="504" y="245" dy="0.76em" text-anchor="start"                        │
00:27:09 verbose #24936 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:09 verbose #24937 > > │ fill="#FFFFFF">                                                              │
00:27:09 verbose #24938 > > │ position (m)                                                                 │
00:27:09 verbose #24939 > > │ </text>                                                                      │
00:27:09 verbose #24940 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:09 verbose #24941 > > │ points="474,250 494,250 "/>                                                  │
00:27:09 verbose #24942 > > │ </svg>                                                                       │
00:27:09 verbose #24943 > > │                                                                              │
00:27:09 verbose #24944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:09 verbose #24945 > >
00:27:09 verbose #24946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:09 verbose #24947 > > //// test
00:27:09 verbose #24948 > >
00:27:09 verbose #24949 > > inl pingpong_velocity t =
00:27:09 verbose #24950 > >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:27:09 verbose #24951 > >
00:27:09 verbose #24952 > > inl x = am'.init_series 0 3 0.01
00:27:09 verbose #24953 > > inl y = x |> am'.map_base pingpong_velocity
00:27:09 verbose #24954 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:27:09 verbose #24955 > >
00:27:10 verbose #24956 > > ╭─[ 559.70ms - return value ]──────────────────────────────────────────────────╮
00:27:10 verbose #24957 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:10 verbose #24958 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:10 verbose #24959 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:10 verbose #24960 > > │ stroke="none"/>                                                              │
00:27:10 verbose #24961 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:10 verbose #24962 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:10 verbose #24963 > > │ fill="#FFFFFF">                                                              │
00:27:10 verbose #24964 > > │ ping pong ball on a slinky                                                   │
00:27:10 verbose #24965 > > │ </text>                                                                      │
00:27:10 verbose #24966 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:27:10 verbose #24967 > > │ y2="75"/>                                                                    │
00:27:10 verbose #24968 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:10 verbose #24969 > > │ y2="75"/>                                                                    │
00:27:10 verbose #24970 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:27:10 verbose #24971 > > │ y2="75"/>                                                                    │
00:27:10 verbose #24972 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:27:10 verbose #24973 > > │ y2="75"/>                                                                    │
00:27:10 verbose #24974 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:27:10 verbose #24975 > > │ y2="75"/>                                                                    │
00:27:10 verbose #24976 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:27:10 verbose #24977 > > │ x2="103" y2="75"/>                                                           │
00:27:10 verbose #24978 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:27:10 verbose #24979 > > │ x2="111" y2="75"/>                                                           │
00:27:10 verbose #24980 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:10 verbose #24981 > > │ x2="119" y2="75"/>                                                           │
00:27:10 verbose #24982 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:27:10 verbose #24983 > > │ x2="128" y2="75"/>                                                           │
00:27:10 verbose #24984 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:27:10 verbose #24985 > > │ x2="136" y2="75"/>                                                           │
00:27:10 verbose #24986 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:27:10 verbose #24987 > > │ x2="144" y2="75"/>                                                           │
00:27:10 verbose #24988 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:27:10 verbose #24989 > > │ x2="153" y2="75"/>                                                           │
00:27:10 verbose #24990 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:27:10 verbose #24991 > > │ x2="161" y2="75"/>                                                           │
00:27:10 verbose #24992 > > │ <line o... 332,343 334,332 336,319 337,304 339,287 341,269 342,250 344,231   │
00:27:10 verbose #24993 > > │ 346,212 347,195 349,178 351,164 352,153 354,144 356,138 357,136 359,136      │
00:27:10 verbose #24994 > > │ 361,140 362,147 364,157 366,169 367,183 369,199 371,216 372,234 374,253      │
00:27:10 verbose #24995 > > │ 376,271 377,288 379,304 381,318 382,330 384,339 386,346 387,349 389,349      │
00:27:10 verbose #24996 > > │ 391,346 392,340 394,332 396,321 397,307 399,292 401,276 402,258 404,241      │
00:27:10 verbose #24997 > > │ 406,223 407,206 409,190 410,176 412,164 414,154 415,148 417,144 419,143      │
00:27:10 verbose #24998 > > │ 420,145 422,150 424,158 425,168 427,180 429,194 430,210 432,227 434,244      │
00:27:10 verbose #24999 > > │ 435,261 437,278 439,293 440,307 442,320 444,330 445,337 447,341 449,343      │
00:27:10 verbose #25000 > > │ 450,342 452,338 454,331 455,322 457,310 459,297 460,282 462,266 464,249      │
00:27:10 verbose #25001 > > │ 465,233 467,216 469,201 470,187 472,174 474,164 475,156 477,151 479,149      │
00:27:10 verbose #25002 > > │ 480,149 482,153 484,159 485,167 487,178 489,190 490,204 492,220 494,236      │
00:27:10 verbose #25003 > > │ 495,252 497,268 499,283 500,297 502,310 504,320 505,329 507,334 509,337      │
00:27:10 verbose #25004 > > │ 510,337 512,335 514,330 515,322 517,312 519,300 520,287 522,272 524,257      │
00:27:10 verbose #25005 > > │ 525,241 527,226 529,210 530,196 532,184 534,173 535,164 537,158 539,154      │
00:27:10 verbose #25006 > > │ 540,154 542,155 544,160 545,167 547,176 549,187 550,199 552,213 554,228      │
00:27:10 verbose #25007 > > │ 555,244 557,259 559,274 560,288 562,301 564,312 565,321 567,327 569,332 "/>  │
00:27:10 verbose #25008 > > │ <rect x="454" y="235" width="126" height="30" opacity="1" fill="none"        │
00:27:10 verbose #25009 > > │ stroke="#FFFFFF"/>                                                           │
00:27:10 verbose #25010 > > │ <text x="494" y="245" dy="0.76em" text-anchor="start"                        │
00:27:10 verbose #25011 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:10 verbose #25012 > > │ fill="#FFFFFF">                                                              │
00:27:10 verbose #25013 > > │ velocity (m/s)                                                               │
00:27:10 verbose #25014 > > │ </text>                                                                      │
00:27:10 verbose #25015 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:10 verbose #25016 > > │ points="464,250 484,250 "/>                                                  │
00:27:10 verbose #25017 > > │ </svg>                                                                       │
00:27:10 verbose #25018 > > │                                                                              │
00:27:10 verbose #25019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:10 verbose #25020 > >
00:27:10 verbose #25021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:10 verbose #25022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:10 verbose #25023 > > │ ### shift                                                                    │
00:27:10 verbose #25024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:10 verbose #25025 > >
00:27:10 verbose #25026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:10 verbose #25027 > > type update_function s = s -> s
00:27:10 verbose #25028 > >
00:27:10 verbose #25029 > > type differential_equation s ds = s -> ds
00:27:10 verbose #25030 > >
00:27:10 verbose #25031 > > type numerical_method s ds = differential_equation s ds -> update_function s
00:27:10 verbose #25032 > >
00:27:10 verbose #25033 > >
00:27:10 verbose #25034 > > inl solver method =
00:27:10 verbose #25035 > >     method >> seq.iterate
00:27:10 verbose #25036 > > inl solver' method =
00:27:10 verbose #25037 > >     method >> seq.iterate'
00:27:10 verbose #25038 > > inl solver_ method =
00:27:10 verbose #25039 > >     method >> seq.iterate_
00:27:10 verbose #25040 > >
00:27:10 verbose #25041 > >
00:27:10 verbose #25042 > > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:27:10 verbose #25043 > >     inl (rrr (_, _, dvdt)) = deriv t
00:27:10 verbose #25044 > >     inl t1 = t0 + dt
00:27:10 verbose #25045 > >     inl v1 = v0 + dvdt * dt
00:27:10 verbose #25046 > >     inl x1 = x0 + v1 * dt
00:27:10 verbose #25047 > >     state_1d (t1, x1, v1)
00:27:10 verbose #25048 > >
00:27:10 verbose #25049 > > inl update_txv_ec dt m fs =
00:27:10 verbose #25050 > >     euler_cromer_1d dt (newton_second_1d m fs)
00:27:10 verbose #25051 > >
00:27:10 verbose #25052 > > prototype (+++) ds : ds -> ds -> ds
00:27:10 verbose #25053 > > prototype scale ds : f64 -> ds -> ds
00:27:10 verbose #25054 > >
00:27:10 verbose #25055 > > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:27:10 verbose #25056 > > =>
00:27:10 verbose #25057 > >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:27:10 verbose #25058 > >
00:27:10 verbose #25059 > > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:27:10 verbose #25060 > >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:27:10 verbose #25061 > >
00:27:10 verbose #25062 > > prototype shift s : forall ds. f64 -> ds -> s -> s
00:27:10 verbose #25063 > >
00:27:10 verbose #25064 > > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:27:10 verbose #25065 > >     inl dtdt, dxdt, dvdt =
00:27:10 verbose #25066 > >         real
00:27:10 verbose #25067 > >             match ds with
00:27:10 verbose #25068 > >             | rrr x => x
00:27:10 verbose #25069 > >             | state_1d x => x
00:27:10 verbose #25070 > >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:27:10 verbose #25071 > >
00:27:10 verbose #25072 > > inl euler dt deriv st0 =
00:27:10 verbose #25073 > >     shift dt (deriv st0) st0
00:27:10 verbose #25074 > >
00:27:10 verbose #25075 > > inl runge_kutta_4 dt deriv st0 =
00:27:10 verbose #25076 > >     inl m0 = deriv st0
00:27:10 verbose #25077 > >     inl m1 = deriv (shift (dt / 2) m0 st0)
00:27:10 verbose #25078 > >     inl m2 = deriv (shift (dt / 2) m1 st0)
00:27:10 verbose #25079 > >     inl m3 = deriv (shift dt m2 st0)
00:27:10 verbose #25080 > >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:27:10 verbose #25081 > >
00:27:10 verbose #25082 > > inl exponential (_, x0, v0) =
00:27:10 verbose #25083 > >     1f64, v0, x0
00:27:10 verbose #25084 > >
00:27:10 verbose #25085 > > inl of_state_1d (state_1d (t, x, v)) =
00:27:10 verbose #25086 > >     t, x, v
00:27:10 verbose #25087 > >
00:27:10 verbose #25088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:10 verbose #25089 > > //// test
00:27:10 verbose #25090 > >
00:27:10 verbose #25091 > > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:27:10 verbose #25092 > > 1)) 800i32
00:27:10 verbose #25093 > > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:27:10 verbose #25094 > > 2864.8311229272326))
00:27:10 verbose #25095 > >
00:27:10 verbose #25096 > > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:27:10 verbose #25097 > > 1, 1)) 80i32
00:27:10 verbose #25098 > > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:27:10 verbose #25099 > > 2895.0121485099035))
00:27:10 verbose #25100 > >
00:27:10 verbose #25101 > > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:27:10 verbose #25102 > > 1)) 8i32
00:27:10 verbose #25103 > > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:27:11 verbose #25104 > >
00:27:11 verbose #25105 > > ╭─[ 675.55ms - stdout ]────────────────────────────────────────────────────────╮
00:27:11 verbose #25106 > > │ __assert_eq / actual: struct (8.0, 2864.831123, 2864.831123) / expected:     │
00:27:11 verbose #25107 > > │ struct (8.0, 2864.831123, 2864.831123)                                       │
00:27:11 verbose #25108 > > │ __assert_eq / actual: struct (8.0, 3043.379245, 2895.012149) / expected:     │
00:27:11 verbose #25109 > > │ struct (8.0, 3043.379245, 2895.012149)                                       │
00:27:11 verbose #25110 > > │ __assert_eq / actual: struct (8.0, 2894.789039, 2894.789039) / expected:     │
00:27:11 verbose #25111 > > │ struct (8.0, 2894.789039, 2894.789039)                                       │
00:27:11 verbose #25112 > > │                                                                              │
00:27:11 verbose #25113 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:11 verbose #25114 > >
00:27:11 verbose #25115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:11 verbose #25116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:11 verbose #25117 > > │ ### vec                                                                      │
00:27:11 verbose #25118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:11 verbose #25119 > >
00:27:11 verbose #25120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:11 verbose #25121 > > type vec =
00:27:11 verbose #25122 > >     {
00:27:11 verbose #25123 > >         x : f64
00:27:11 verbose #25124 > >         y : f64
00:27:11 verbose #25125 > >         z : f64
00:27:11 verbose #25126 > >     }
00:27:11 verbose #25127 > >
00:27:11 verbose #25128 > > inl vec x y z : vec =
00:27:11 verbose #25129 > >     { x y z }
00:27:11 verbose #25130 > >
00:27:11 verbose #25131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:11 verbose #25132 > > //// test
00:27:11 verbose #25133 > >
00:27:11 verbose #25134 > > vec 1 2 3 .z
00:27:11 verbose #25135 > > |> _assert_eq 3
00:27:11 verbose #25136 > >
00:27:11 verbose #25137 > > ╭─[ 412.40ms - stdout ]────────────────────────────────────────────────────────╮
00:27:11 verbose #25138 > > │ __assert_eq / actual: 3.0 / expected: 3.0                                    │
00:27:11 verbose #25139 > > │                                                                              │
00:27:11 verbose #25140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:11 verbose #25141 > >
00:27:11 verbose #25142 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:11 verbose #25143 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:11 verbose #25144 > > │ #### consts                                                                  │
00:27:11 verbose #25145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:11 verbose #25146 > >
00:27:11 verbose #25147 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:11 verbose #25148 > > inl i_hat () = vec 1 0 0
00:27:11 verbose #25149 > > inl j_hat () = vec 0 1 0
00:27:11 verbose #25150 > > inl k_hat () = vec 0 0 1
00:27:11 verbose #25151 > > inl zero_vec () = vec 0 0 0
00:27:12 verbose #25152 > >
00:27:12 verbose #25153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:12 verbose #25154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:12 verbose #25155 > > │ #### ^+^                                                                     │
00:27:12 verbose #25156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:12 verbose #25157 > >
00:27:12 verbose #25158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:12 verbose #25159 > > inl (^+^) (a : vec) (b : vec) =
00:27:12 verbose #25160 > >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:27:12 verbose #25161 > >
00:27:12 verbose #25162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:12 verbose #25163 > > //// test
00:27:12 verbose #25164 > >
00:27:12 verbose #25165 > > vec 1 2 3 ^+^ vec 4 5 6
00:27:12 verbose #25166 > > |> _assert_eq (vec 5 7 9)
00:27:13 verbose #25167 > >
00:27:13 verbose #25168 > > ╭─[ 469.62ms - stdout ]────────────────────────────────────────────────────────╮
00:27:13 verbose #25169 > > │ __assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,   │
00:27:13 verbose #25170 > > │ 9.0)                                                                         │
00:27:13 verbose #25171 > > │                                                                              │
00:27:13 verbose #25172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:13 verbose #25173 > >
00:27:13 verbose #25174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:13 verbose #25175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:13 verbose #25176 > > │ #### sum_vec                                                                 │
00:27:13 verbose #25177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:13 verbose #25178 > >
00:27:13 verbose #25179 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:13 verbose #25180 > > inl sum_vec vs =
00:27:13 verbose #25181 > >     vs |> listm.fold (^+^) (zero_vec ())
00:27:13 verbose #25182 > >
00:27:13 verbose #25183 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:13 verbose #25184 > > //// test
00:27:13 verbose #25185 > >
00:27:13 verbose #25186 > > [[ vec 1 2 3; vec 4 5 6 ]]
00:27:13 verbose #25187 > > |> sum_vec
00:27:13 verbose #25188 > > |> _assert_eq (vec 5 7 9)
00:27:14 verbose #25189 > >
00:27:14 verbose #25190 > > ╭─[ 439.66ms - stdout ]────────────────────────────────────────────────────────╮
00:27:14 verbose #25191 > > │ __assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,   │
00:27:14 verbose #25192 > > │ 9.0)                                                                         │
00:27:14 verbose #25193 > > │                                                                              │
00:27:14 verbose #25194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:14 verbose #25195 > >
00:27:14 verbose #25196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:14 verbose #25197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:14 verbose #25198 > > │ #### *^                                                                      │
00:27:14 verbose #25199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:14 verbose #25200 > >
00:27:14 verbose #25201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:14 verbose #25202 > > inl (*^) c { x y z } =
00:27:14 verbose #25203 > >     vec (c * x) (c * y) (c * z)
00:27:14 verbose #25204 > >
00:27:14 verbose #25205 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:14 verbose #25206 > > //// test
00:27:14 verbose #25207 > >
00:27:14 verbose #25208 > > 5 *^ vec 1 2 3
00:27:14 verbose #25209 > > |> _assert_eq (vec 5 10 15)
00:27:15 verbose #25210 > >
00:27:15 verbose #25211 > > ╭─[ 421.95ms - stdout ]────────────────────────────────────────────────────────╮
00:27:15 verbose #25212 > > │ __assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0,      │
00:27:15 verbose #25213 > > │ 10.0, 15.0)                                                                  │
00:27:15 verbose #25214 > > │                                                                              │
00:27:15 verbose #25215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:15 verbose #25216 > >
00:27:15 verbose #25217 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:15 verbose #25218 > > //// test
00:27:15 verbose #25219 > >
00:27:15 verbose #25220 > > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:27:15 verbose #25221 > > |> _assert_eq (vec 3 0 4)
00:27:15 verbose #25222 > >
00:27:15 verbose #25223 > > ╭─[ 517.75ms - stdout ]────────────────────────────────────────────────────────╮
00:27:15 verbose #25224 > > │ __assert_eq / actual: struct (3.0, 0.0, 4.0) / expected: struct (3.0, 0.0,   │
00:27:15 verbose #25225 > > │ 4.0)                                                                         │
00:27:15 verbose #25226 > > │                                                                              │
00:27:15 verbose #25227 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:15 verbose #25228 > >
00:27:15 verbose #25229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:15 verbose #25230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:15 verbose #25231 > > │ #### ^*                                                                      │
00:27:15 verbose #25232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:15 verbose #25233 > >
00:27:15 verbose #25234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:15 verbose #25235 > > inl (^*) v c =
00:27:15 verbose #25236 > >     (*^) c v
00:27:16 verbose #25237 > >
00:27:16 verbose #25238 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:16 verbose #25239 > > //// test
00:27:16 verbose #25240 > >
00:27:16 verbose #25241 > > vec 1 2 3 ^* 5
00:27:16 verbose #25242 > > |> _assert_eq (vec 5 10 15)
00:27:16 verbose #25243 > >
00:27:16 verbose #25244 > > ╭─[ 481.99ms - stdout ]────────────────────────────────────────────────────────╮
00:27:16 verbose #25245 > > │ __assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0,      │
00:27:16 verbose #25246 > > │ 10.0, 15.0)                                                                  │
00:27:16 verbose #25247 > > │                                                                              │
00:27:16 verbose #25248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:16 verbose #25249 > >
00:27:16 verbose #25250 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:16 verbose #25251 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:16 verbose #25252 > > │ #### ^/                                                                      │
00:27:16 verbose #25253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:16 verbose #25254 > >
00:27:16 verbose #25255 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:16 verbose #25256 > > inl (^/) { x y z } c =
00:27:16 verbose #25257 > >     vec (x / c) (y / c) (z / c)
00:27:17 verbose #25258 > >
00:27:17 verbose #25259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:17 verbose #25260 > > //// test
00:27:17 verbose #25261 > >
00:27:17 verbose #25262 > > vec 1 2 3 ^/ 5
00:27:17 verbose #25263 > > |> _assert_eq (vec 0.2 0.4 0.6)
00:27:17 verbose #25264 > >
00:27:17 verbose #25265 > > ╭─[ 479.04ms - stdout ]────────────────────────────────────────────────────────╮
00:27:17 verbose #25266 > > │ __assert_eq / actual: struct (0.2, 0.4, 0.6) / expected: struct (0.2, 0.4,   │
00:27:17 verbose #25267 > > │ 0.6)                                                                         │
00:27:17 verbose #25268 > > │                                                                              │
00:27:17 verbose #25269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:17 verbose #25270 > >
00:27:17 verbose #25271 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:17 verbose #25272 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:17 verbose #25273 > > │ #### negate_vec                                                              │
00:27:17 verbose #25274 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:17 verbose #25275 > >
00:27:17 verbose #25276 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:17 verbose #25277 > > inl negate_vec v =
00:27:17 verbose #25278 > >     v ^* -1
00:27:18 verbose #25279 > >
00:27:18 verbose #25280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:18 verbose #25281 > > //// test
00:27:18 verbose #25282 > >
00:27:18 verbose #25283 > > vec 1 2 3
00:27:18 verbose #25284 > > |> negate_vec
00:27:18 verbose #25285 > > |> _assert_eq (vec -1 -2 -3)
00:27:18 verbose #25286 > >
00:27:18 verbose #25287 > > ╭─[ 458.57ms - stdout ]────────────────────────────────────────────────────────╮
00:27:18 verbose #25288 > > │ __assert_eq / actual: struct (-1.0, -2.0, -3.0) / expected: struct (-1.0,    │
00:27:18 verbose #25289 > > │ -2.0, -3.0)                                                                  │
00:27:18 verbose #25290 > > │                                                                              │
00:27:18 verbose #25291 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:18 verbose #25292 > >
00:27:18 verbose #25293 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:18 verbose #25294 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:18 verbose #25295 > > │ #### ^-^                                                                     │
00:27:18 verbose #25296 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:18 verbose #25297 > >
00:27:18 verbose #25298 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:18 verbose #25299 > > inl (^-^) a b =
00:27:18 verbose #25300 > >     a ^+^ (negate_vec b)
00:27:19 verbose #25301 > >
00:27:19 verbose #25302 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:19 verbose #25303 > > //// test
00:27:19 verbose #25304 > >
00:27:19 verbose #25305 > > vec 1 2 3 ^-^ vec 4 5 6
00:27:19 verbose #25306 > > |> _assert_eq (vec -3 -3 -3)
00:27:19 verbose #25307 > >
00:27:19 verbose #25308 > > ╭─[ 505.59ms - stdout ]────────────────────────────────────────────────────────╮
00:27:19 verbose #25309 > > │ __assert_eq / actual: struct (-3.0, -3.0, -3.0) / expected: struct (-3.0,    │
00:27:19 verbose #25310 > > │ -3.0, -3.0)                                                                  │
00:27:19 verbose #25311 > > │                                                                              │
00:27:19 verbose #25312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:19 verbose #25313 > >
00:27:19 verbose #25314 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:19 verbose #25315 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:19 verbose #25316 > > │ #### <.>                                                                     │
00:27:19 verbose #25317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:19 verbose #25318 > >
00:27:19 verbose #25319 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:19 verbose #25320 > > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:27:19 verbose #25321 > >     ax * bx + ay * by + az * bz
00:27:20 verbose #25322 > >
00:27:20 verbose #25323 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:20 verbose #25324 > > //// test
00:27:20 verbose #25325 > >
00:27:20 verbose #25326 > > vec 1 2 3 <.> vec 4 5 6
00:27:20 verbose #25327 > > |> _assert_eq 32
00:27:20 verbose #25328 > >
00:27:20 verbose #25329 > > ╭─[ 418.41ms - stdout ]────────────────────────────────────────────────────────╮
00:27:20 verbose #25330 > > │ __assert_eq / actual: 32.0 / expected: 32.0                                  │
00:27:20 verbose #25331 > > │                                                                              │
00:27:20 verbose #25332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:20 verbose #25333 > >
00:27:20 verbose #25334 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:20 verbose #25335 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:20 verbose #25336 > > │ #### \>\<                                                                    │
00:27:20 verbose #25337 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:20 verbose #25338 > >
00:27:20 verbose #25339 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:20 verbose #25340 > > inl (><) (a : vec) (b : vec) =
00:27:20 verbose #25341 > >     vec
00:27:20 verbose #25342 > >         (a.y * b.z - a.z * b.y)
00:27:20 verbose #25343 > >         (a.z * b.x - a.x * b.z)
00:27:20 verbose #25344 > >         (a.x * b.y - a.y * b.x)
00:27:20 verbose #25345 > >
00:27:20 verbose #25346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:20 verbose #25347 > > //// test
00:27:20 verbose #25348 > >
00:27:20 verbose #25349 > > vec 1 2 3 >< vec 4 5 6
00:27:20 verbose #25350 > > |> _assert_eq (vec -3 6 -3)
00:27:21 verbose #25351 > >
00:27:21 verbose #25352 > > ╭─[ 425.26ms - stdout ]────────────────────────────────────────────────────────╮
00:27:21 verbose #25353 > > │ __assert_eq / actual: struct (-3.0, 6.0, -3.0) / expected: struct (-3.0,     │
00:27:21 verbose #25354 > > │ 6.0, -3.0)                                                                   │
00:27:21 verbose #25355 > > │                                                                              │
00:27:21 verbose #25356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:21 verbose #25357 > >
00:27:21 verbose #25358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:21 verbose #25359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:21 verbose #25360 > > │ #### magnitude                                                               │
00:27:21 verbose #25361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:21 verbose #25362 > >
00:27:21 verbose #25363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:21 verbose #25364 > > inl magnitude v =
00:27:21 verbose #25365 > >     v <.> v |> sqrt
00:27:21 verbose #25366 > >
00:27:21 verbose #25367 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:21 verbose #25368 > > //// test
00:27:21 verbose #25369 > >
00:27:21 verbose #25370 > > vec 1 2 3
00:27:21 verbose #25371 > > |> magnitude
00:27:21 verbose #25372 > > |> _assert_approx_eq None 3.7416573867739413
00:27:22 verbose #25373 > >
00:27:22 verbose #25374 > > ╭─[ 445.50ms - stdout ]────────────────────────────────────────────────────────╮
00:27:22 verbose #25375 > > │ __assert_approx_eq / actual: 3.741657387 / expected: 3.741657387             │
00:27:22 verbose #25376 > > │                                                                              │
00:27:22 verbose #25377 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:22 verbose #25378 > >
00:27:22 verbose #25379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:22 verbose #25380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:22 verbose #25381 > > │ #### v1                                                                      │
00:27:22 verbose #25382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:22 verbose #25383 > >
00:27:22 verbose #25384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:22 verbose #25385 > > inl v1 t =
00:27:22 verbose #25386 > >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:27:22 verbose #25387 > > ()))
00:27:22 verbose #25388 > >
00:27:22 verbose #25389 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:22 verbose #25390 > > //// test
00:27:22 verbose #25391 > >
00:27:22 verbose #25392 > > v1 1
00:27:22 verbose #25393 > > |> _assert_eq (vec 2 6 6)
00:27:23 verbose #25394 > >
00:27:23 verbose #25395 > > ╭─[ 455.28ms - stdout ]────────────────────────────────────────────────────────╮
00:27:23 verbose #25396 > > │ __assert_eq / actual: struct (2.0, 6.0, 6.0) / expected: struct (2.0, 6.0,   │
00:27:23 verbose #25397 > > │ 6.0)                                                                         │
00:27:23 verbose #25398 > > │                                                                              │
00:27:23 verbose #25399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:23 verbose #25400 > >
00:27:23 verbose #25401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:23 verbose #25402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:23 verbose #25403 > > │ #### vec_derivative                                                          │
00:27:23 verbose #25404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:23 verbose #25405 > >
00:27:23 verbose #25406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:23 verbose #25407 > > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:27:23 verbose #25408 > >
00:27:23 verbose #25409 > > inl vec_derivative dt : vec_derivative =
00:27:23 verbose #25410 > >     fun v t =>
00:27:23 verbose #25411 > >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:27:23 verbose #25412 > >
00:27:23 verbose #25413 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:23 verbose #25414 > > //// test
00:27:23 verbose #25415 > >
00:27:23 verbose #25416 > > vec_derivative 0.01 v1 3 .x
00:27:23 verbose #25417 > > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:27:23 verbose #25418 > >
00:27:23 verbose #25419 > > ╭─[ 394.45ms - stdout ]────────────────────────────────────────────────────────╮
00:27:23 verbose #25420 > > │ __assert_approx_eq / actual: 12.0 / expected: 12.0                           │
00:27:23 verbose #25421 > > │                                                                              │
00:27:23 verbose #25422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:23 verbose #25423 > >
00:27:23 verbose #25424 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:23 verbose #25425 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:23 verbose #25426 > > │ ### states_ps                                                                │
00:27:23 verbose #25427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:23 verbose #25428 > >
00:27:23 verbose #25429 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:23 verbose #25430 > > nominal particle_state =
00:27:23 verbose #25431 > >     {
00:27:23 verbose #25432 > >         mass : f64
00:27:23 verbose #25433 > >         charge : f64
00:27:23 verbose #25434 > >         time : f64
00:27:23 verbose #25435 > >         pos_vec : vec
00:27:23 verbose #25436 > >         velocity : vec
00:27:23 verbose #25437 > >     }
00:27:23 verbose #25438 > >
00:27:23 verbose #25439 > > inl default_particle_state () : particle_state =
00:27:23 verbose #25440 > >     particle_state {
00:27:23 verbose #25441 > >         mass = 1
00:27:23 verbose #25442 > >         charge = 0
00:27:23 verbose #25443 > >         time = 0
00:27:23 verbose #25444 > >         pos_vec = zero_vec ()
00:27:23 verbose #25445 > >         velocity = zero_vec ()
00:27:23 verbose #25446 > >     }
00:27:23 verbose #25447 > >
00:27:23 verbose #25448 > > type one_body_force = particle_state -> vec
00:27:23 verbose #25449 > >
00:27:23 verbose #25450 > > nominal d_particle_state =
00:27:23 verbose #25451 > >     {
00:27:23 verbose #25452 > >         dmdt : f64
00:27:23 verbose #25453 > >         dqdt : f64
00:27:23 verbose #25454 > >         dtdt : f64
00:27:23 verbose #25455 > >         drdt : vec
00:27:23 verbose #25456 > >         dvdt : vec
00:27:23 verbose #25457 > >     }
00:27:23 verbose #25458 > >
00:27:23 verbose #25459 > > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:27:23 verbose #25460 > > d_particle_state =
00:27:23 verbose #25461 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:27:23 verbose #25462 > >     d_particle_state {
00:27:23 verbose #25463 > >         dmdt = 0
00:27:23 verbose #25464 > >         dqdt = 0
00:27:23 verbose #25465 > >         dtdt = 1
00:27:23 verbose #25466 > >         drdt = st.velocity
00:27:23 verbose #25467 > >         dvdt = f_net ^/ st.mass
00:27:23 verbose #25468 > >     }
00:27:23 verbose #25469 > >
00:27:23 verbose #25470 > > inl earth_surface_gravity (st : particle_state) =
00:27:23 verbose #25471 > >     inl g = 9.80665
00:27:23 verbose #25472 > >     -st.mass * g *^ k_hat ()
00:27:23 verbose #25473 > >
00:27:23 verbose #25474 > > inl air_resistance drag rho area (st : particle_state) =
00:27:23 verbose #25475 > >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:27:23 verbose #25476 > >
00:27:23 verbose #25477 > > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:27:23 verbose #25478 > > (particle_state st) =
00:27:23 verbose #25479 > >     inl dst : d_particle_state = deriv (particle_state st)
00:27:23 verbose #25480 > >     inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:27:23 verbose #25481 > >     particle_state { st with
00:27:23 verbose #25482 > >         time = st.time + dt
00:27:23 verbose #25483 > >         pos_vec = st.pos_vec ^+^ v' ^* dt
00:27:23 verbose #25484 > >         velocity = st.velocity ^+^ dst.dvdt ^* dt
00:27:23 verbose #25485 > >     }
00:27:23 verbose #25486 > >
00:27:23 verbose #25487 > > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:27:23 verbose #25488 > > d_particle_state) =>
00:27:23 verbose #25489 > >     d_particle_state {
00:27:23 verbose #25490 > >         dmdt = dps.dmdt + dps'.dmdt
00:27:23 verbose #25491 > >         dqdt = dps.dqdt + dps'.dqdt
00:27:23 verbose #25492 > >         dtdt = dps.dtdt + dps'.dtdt
00:27:23 verbose #25493 > >         drdt = dps.drdt ^+^ dps'.drdt
00:27:23 verbose #25494 > >         dvdt = dps.dvdt ^+^ dps'.dvdt
00:27:23 verbose #25495 > >     }
00:27:23 verbose #25496 > >
00:27:23 verbose #25497 > > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:27:23 verbose #25498 > >     d_particle_state {
00:27:23 verbose #25499 > >         dmdt = w * dps.dmdt
00:27:23 verbose #25500 > >         dqdt = w * dps.dqdt
00:27:23 verbose #25501 > >         dtdt = w * dps.dtdt
00:27:23 verbose #25502 > >         drdt = w *^ dps.drdt
00:27:23 verbose #25503 > >         dvdt = w *^ dps.dvdt
00:27:23 verbose #25504 > >     }
00:27:23 verbose #25505 > >
00:27:23 verbose #25506 > > instance shift particle_state = fun dt dps (particle_state st) =>
00:27:23 verbose #25507 > >     inl (d_particle_state dps) =
00:27:23 verbose #25508 > >         real
00:27:23 verbose #25509 > >             match dps with
00:27:23 verbose #25510 > >             | d_particle_state _ => dps
00:27:23 verbose #25511 > >     particle_state { st with
00:27:23 verbose #25512 > >         time = st.time + dps.dtdt * dt
00:27:23 verbose #25513 > >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:27:23 verbose #25514 > >         velocity = st.velocity ^+^ dps.dvdt ^* dt
00:27:23 verbose #25515 > >     }
00:27:23 verbose #25516 > >
00:27:23 verbose #25517 > > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:27:23 verbose #25518 > > _ -> i32 -> particle_state =
00:27:23 verbose #25519 > >     newton_second_ps >> method >> seq.iterate_
00:27:23 verbose #25520 > >
00:27:23 verbose #25521 > > inl z_ge0 sts =
00:27:23 verbose #25522 > >     sts
00:27:23 verbose #25523 > >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:27:23 verbose #25524 > >
00:27:23 verbose #25525 > > inl trajectory sts =
00:27:23 verbose #25526 > >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:27:24 verbose #25527 > >
00:27:24 verbose #25528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:24 verbose #25529 > > //// test
00:27:24 verbose #25530 > >
00:27:24 verbose #25531 > > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:27:24 verbose #25532 > >     newton_second_ps >> method
00:27:24 verbose #25533 > >
00:27:24 verbose #25534 > > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:27:24 verbose #25535 > > st t =
00:27:24 verbose #25536 > >     inl states : i32 -> particle_state = states_ps method fs st
00:27:24 verbose #25537 > >     inl dt = (states 1).time - (states 0).time
00:27:24 verbose #25538 > >     inl num_steps = t / dt |> math.round |> abs
00:27:24 verbose #25539 > >     inl st1 = solver' method (newton_second_ps fs) st num_steps
00:27:24 verbose #25540 > >     st1.pos_vec
00:27:24 verbose #25541 > >
00:27:24 verbose #25542 > > inl sun_gravity (st : particle_state) : vec =
00:27:24 verbose #25543 > >     inl big_g = 0.0000000000667408
00:27:24 verbose #25544 > >     inl sun_mass = 1988480000000000000000000000000
00:27:24 verbose #25545 > >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:27:24 verbose #25546 > >
00:27:24 verbose #25547 > > inl wind_force v_wind drag rho area (st : particle_state) =
00:27:24 verbose #25548 > >     inl v_rel = st.velocity ^-^ v_wind
00:27:24 verbose #25549 > >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:27:24 verbose #25550 > >
00:27:24 verbose #25551 > > inl rock_state () =
00:27:24 verbose #25552 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:24 verbose #25553 > >     particle_state { default_particle_state' with
00:27:24 verbose #25554 > >         mass = 2
00:27:24 verbose #25555 > >         velocity = vec 3 0 4
00:27:24 verbose #25556 > >     }
00:27:24 verbose #25557 > >
00:27:24 verbose #25558 > > inl halley_update dt =
00:27:24 verbose #25559 > >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:27:24 verbose #25560 > >
00:27:24 verbose #25561 > > inl halley_initial () =
00:27:24 verbose #25562 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:24 verbose #25563 > >     particle_state { default_particle_state' with
00:27:24 verbose #25564 > >         mass = 220000000000000
00:27:24 verbose #25565 > >         pos_vec = 87660000000 *^ i_hat ()
00:27:24 verbose #25566 > >         velocity = 54569 *^ j_hat ()
00:27:24 verbose #25567 > >     }
00:27:25 verbose #25568 > >
00:27:25 verbose #25569 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:25 verbose #25570 > > //// test
00:27:25 verbose #25571 > >
00:27:25 verbose #25572 > > inl baseball_forces () =
00:27:25 verbose #25573 > >     inl area = pi * (0.074 / 2) ** 2
00:27:25 verbose #25574 > >     [[
00:27:25 verbose #25575 > >         earth_surface_gravity
00:27:25 verbose #25576 > >         air_resistance 0.3 1.225 area
00:27:25 verbose #25577 > >     ]]
00:27:25 verbose #25578 > >
00:27:25 verbose #25579 > > inl baseball_trajectory dt v0 theta_deg =
00:27:25 verbose #25580 > >     inl theta_rad = theta_deg * pi / 180
00:27:25 verbose #25581 > >     inl vy0 = v0 * cos theta_rad
00:27:25 verbose #25582 > >     inl vz0 = v0 * sin theta_rad
00:27:25 verbose #25583 > >     inl initial_state =
00:27:25 verbose #25584 > >         particle_state {
00:27:25 verbose #25585 > >             mass = 0.145
00:27:25 verbose #25586 > >             charge = 0
00:27:25 verbose #25587 > >             time = 0
00:27:25 verbose #25588 > >             pos_vec = zero_vec ()
00:27:25 verbose #25589 > >             velocity = vec 0 vy0 vz0
00:27:25 verbose #25590 > >         }
00:27:25 verbose #25591 > >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:27:25 verbose #25592 > >     >> Some
00:27:25 verbose #25593 > >     |> z_ge0
00:27:25 verbose #25594 > >     |> trajectory
00:27:25 verbose #25595 > >
00:27:25 verbose #25596 > > inl baseball_range dt v0 theta_deg =
00:27:25 verbose #25597 > >     baseball_trajectory dt v0 theta_deg
00:27:25 verbose #25598 > >     |> listm.fold (fun _ (y, _) => y) 0
00:27:25 verbose #25599 > >
00:27:25 verbose #25600 > > inl x = am'.init_series 10 80 1
00:27:25 verbose #25601 > > inl y = x |> am'.map_base (baseball_range 0.01 45)
00:27:25 verbose #25602 > > "range for a baseball hit at 45 m/s",
00:27:25 verbose #25603 > > "angle above horizontal (degrees)",
00:27:25 verbose #25604 > > "",
00:27:25 verbose #25605 > > ;[[ "horizontal range (m)", x, y ]]
00:27:26 verbose #25606 > >
00:27:26 verbose #25607 > > ╭─[ 1.51s - return value ]─────────────────────────────────────────────────────╮
00:27:26 verbose #25608 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:26 verbose #25609 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:26 verbose #25610 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:26 verbose #25611 > > │ stroke="none"/>                                                              │
00:27:26 verbose #25612 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:26 verbose #25613 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:26 verbose #25614 > > │ fill="#FFFFFF">                                                              │
00:27:26 verbose #25615 > > │ range for a baseball hit at 45 m/s                                           │
00:27:26 verbose #25616 > > │ </text>                                                                      │
00:27:26 verbose #25617 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:27:26 verbose #25618 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25619 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:27:26 verbose #25620 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25621 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:26 verbose #25622 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25623 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:27:26 verbose #25624 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25625 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="84" y1="424" x2="84" │
00:27:26 verbose #25626 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25627 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="91" y1="424" x2="91" │
00:27:26 verbose #25628 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25629 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="98" y1="424" x2="98" │
00:27:26 verbose #25630 > > │ y2="75"/>                                                                    │
00:27:26 verbose #25631 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:27:26 verbose #25632 > > │ x2="105" y2="75"/>                                                           │
00:27:26 verbose #25633 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="112" y1="424"        │
00:27:26 verbose #25634 > > │ x2="112" y2="75"/>                                                           │
00:27:26 verbose #25635 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:26 verbose #25636 > > │ x2="119" y2="75"/>                                                           │
00:27:26 verbose #25637 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="127" y1="424"        │
00:27:26 verbose #25638 > > │ x2="127" y2="75"/>                                                           │
00:27:26 verbose #25639 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="134" y1="424"        │
00:27:26 verbose #25640 > > │ x2="134" y2="75"/>                                                           │
00:27:26 verbose #25641 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:27:26 verbose #25642 > > │ x2="141" y2="75"/>                                                           │
00:27:26 verbose #25643 > > │ <li...nts="585,199 590,199 "/>                                               │
00:27:26 verbose #25644 > > │ <text x="595" y="156" dy="0.5ex" text-anchor="start"                         │
00:27:26 verbose #25645 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:26 verbose #25646 > > │ fill="#FFFFFF">                                                              │
00:27:26 verbose #25647 > > │ 100.0                                                                        │
00:27:26 verbose #25648 > > │ </text>                                                                      │
00:27:26 verbose #25649 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:26 verbose #25650 > > │ points="585,156 590,156 "/>                                                  │
00:27:26 verbose #25651 > > │ <text x="595" y="114" dy="0.5ex" text-anchor="start"                         │
00:27:26 verbose #25652 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:26 verbose #25653 > > │ fill="#FFFFFF">                                                              │
00:27:26 verbose #25654 > > │ 110.0                                                                        │
00:27:26 verbose #25655 > > │ </text>                                                                      │
00:27:26 verbose #25656 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:26 verbose #25657 > > │ points="585,114 590,114 "/>                                                  │
00:27:26 verbose #25658 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:26 verbose #25659 > > │ points="69,343 77,325 84,307 91,290 98,275 105,259 112,245 119,231 127,219   │
00:27:26 verbose #25660 > > │ 134,207 141,196 148,184 155,174 162,164 169,155 176,147 184,139 191,132      │
00:27:26 verbose #25661 > > │ 198,126 205,119 212,114 219,109 226,104 233,100 241,96 248,93 255,91 262,89  │
00:27:26 verbose #25662 > > │ 269,88 276,86 283,86 290,85 298,86 305,87 312,88 319,90 326,92 333,95 340,98 │
00:27:26 verbose #25663 > > │ 348,102 355,106 362,110 369,115 376,120 383,126 390,132 397,139 405,146      │
00:27:26 verbose #25664 > > │ 412,153 419,161 426,169 433,178 440,187 447,197 454,207 462,217 469,228      │
00:27:26 verbose #25665 > > │ 476,239 483,250 490,262 497,274 504,287 511,300 519,313 526,326 533,340      │
00:27:26 verbose #25666 > > │ 540,355 547,369 554,384 561,399 569,415 "/>                                  │
00:27:26 verbose #25667 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:27:26 verbose #25668 > > │ stroke="#FFFFFF"/>                                                           │
00:27:26 verbose #25669 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:27:26 verbose #25670 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:26 verbose #25671 > > │ fill="#FFFFFF">                                                              │
00:27:26 verbose #25672 > > │ horizontal range (m)                                                         │
00:27:26 verbose #25673 > > │ </text>                                                                      │
00:27:26 verbose #25674 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:26 verbose #25675 > > │ points="431,250 451,250 "/>                                                  │
00:27:26 verbose #25676 > > │ </svg>                                                                       │
00:27:26 verbose #25677 > > │                                                                              │
00:27:26 verbose #25678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:26 verbose #25679 > >
00:27:26 verbose #25680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:26 verbose #25681 > > //// test
00:27:26 verbose #25682 > >
00:27:26 verbose #25683 > > inl best_angle (min, max) =
00:27:26 verbose #25684 > >     let rec loop theta_deg (best_range, best_theta_deg) =
00:27:26 verbose #25685 > >         if theta_deg > max
00:27:26 verbose #25686 > >         then best_range, best_theta_deg
00:27:26 verbose #25687 > >         else
00:27:26 verbose #25688 > >             inl range = baseball_range 0.01 45 theta_deg
00:27:26 verbose #25689 > >             loop
00:27:26 verbose #25690 > >                 (theta_deg + 1)
00:27:26 verbose #25691 > >                 (if range > best_range
00:27:26 verbose #25692 > >                     then range, theta_deg
00:27:26 verbose #25693 > >                     else best_range, best_theta_deg)
00:27:26 verbose #25694 > >     loop min (0f64, min)
00:27:26 verbose #25695 > >
00:27:26 verbose #25696 > > best_angle (30f64, 60f64)
00:27:26 verbose #25697 > > |> _assert_eq (116.77499158246208, 41)
00:27:27 verbose #25698 > >
00:27:27 verbose #25699 > > ╭─[ 914.34ms - stdout ]────────────────────────────────────────────────────────╮
00:27:27 verbose #25700 > > │ __assert_eq / actual: struct (116.7749916, 41.0) / expected: struct          │
00:27:27 verbose #25701 > > │ (116.7749916, 41.0)                                                          │
00:27:27 verbose #25702 > > │                                                                              │
00:27:27 verbose #25703 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:27 verbose #25704 > >
00:27:27 verbose #25705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:27 verbose #25706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:27 verbose #25707 > > │ ### relativity_ps                                                            │
00:27:27 verbose #25708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:27 verbose #25709 > >
00:27:27 verbose #25710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:27 verbose #25711 > > inl relativity_ps fs (st : particle_state) =
00:27:27 verbose #25712 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:27:27 verbose #25713 > >     inl c = 299792458
00:27:27 verbose #25714 > >     inl u = st.velocity ^/ c
00:27:27 verbose #25715 > >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:27:27 verbose #25716 > >     d_particle_state {
00:27:27 verbose #25717 > >         dmdt = 0
00:27:27 verbose #25718 > >         dqdt = 0
00:27:27 verbose #25719 > >         dtdt = 1
00:27:27 verbose #25720 > >         drdt = st.velocity
00:27:27 verbose #25721 > >         dvdt = acc
00:27:27 verbose #25722 > >     }
00:27:27 verbose #25723 > >
00:27:27 verbose #25724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:27 verbose #25725 > > //// test
00:27:27 verbose #25726 > >
00:27:27 verbose #25727 > > inl year = 365.25 * 24 * 60 * 60
00:27:27 verbose #25728 > > inl c = 299792458
00:27:27 verbose #25729 > > inl ~method = runge_kutta_4 100000
00:27:27 verbose #25730 > > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:27:27 verbose #25731 > > inl (particle_state default_particle_state') = default_particle_state ()
00:27:27 verbose #25732 > > inl initial_state =
00:27:27 verbose #25733 > >     particle_state { default_particle_state' with
00:27:27 verbose #25734 > >         mass = 1
00:27:27 verbose #25735 > >     }
00:27:27 verbose #25736 > >
00:27:27 verbose #25737 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:27:27 verbose #25738 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:27:27 verbose #25739 > >
00:27:27 verbose #25740 > > inl newton_x, newton_y =
00:27:27 verbose #25741 > >     newton_states
00:27:27 verbose #25742 > >     >> Some
00:27:27 verbose #25743 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:27:27 verbose #25744 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:27:27 verbose #25745 > >     |> listm'.unzip
00:27:27 verbose #25746 > >
00:27:27 verbose #25747 > > inl _, relativity_y =
00:27:27 verbose #25748 > >     relativity_states
00:27:27 verbose #25749 > >     >> Some
00:27:27 verbose #25750 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:27:27 verbose #25751 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:27:27 verbose #25752 > >     |> listm'.unzip
00:27:27 verbose #25753 > >
00:27:27 verbose #25754 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:27:27 verbose #25755 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:27:27 verbose #25756 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:27:27 verbose #25757 > >
00:27:27 verbose #25758 > > "response to a constant force",
00:27:27 verbose #25759 > > "time (years)",
00:27:27 verbose #25760 > > "velocity (multiples of c)",
00:27:27 verbose #25761 > > ;[[
00:27:27 verbose #25762 > >     "newtonian", newton_x, newton_y
00:27:27 verbose #25763 > >     "relativistic", newton_x, relativity_y
00:27:27 verbose #25764 > > ]]
00:27:28 verbose #25765 > >
00:27:28 verbose #25766 > > ╭─[ 874.93ms - return value ]──────────────────────────────────────────────────╮
00:27:28 verbose #25767 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:28 verbose #25768 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:28 verbose #25769 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:28 verbose #25770 > > │ stroke="none"/>                                                              │
00:27:28 verbose #25771 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:28 verbose #25772 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:28 verbose #25773 > > │ fill="#FFFFFF">                                                              │
00:27:28 verbose #25774 > > │ response to a constant force                                                 │
00:27:28 verbose #25775 > > │ </text>                                                                      │
00:27:28 verbose #25776 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:28 verbose #25777 > > │ y2="75"/>                                                                    │
00:27:28 verbose #25778 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:28 verbose #25779 > > │ y2="75"/>                                                                    │
00:27:28 verbose #25780 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:28 verbose #25781 > > │ y2="75"/>                                                                    │
00:27:28 verbose #25782 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:28 verbose #25783 > > │ y2="75"/>                                                                    │
00:27:28 verbose #25784 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:28 verbose #25785 > > │ y2="75"/>                                                                    │
00:27:28 verbose #25786 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:28 verbose #25787 > > │ x2="109" y2="75"/>                                                           │
00:27:28 verbose #25788 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:28 verbose #25789 > > │ x2="119" y2="75"/>                                                           │
00:27:28 verbose #25790 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:28 verbose #25791 > > │ x2="129" y2="75"/>                                                           │
00:27:28 verbose #25792 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:28 verbose #25793 > > │ x2="139" y2="75"/>                                                           │
00:27:28 verbose #25794 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:28 verbose #25795 > > │ x2="149" y2="75"/>                                                           │
00:27:28 verbose #25796 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:28 verbose #25797 > > │ x2="159" y2="75"/>                                                           │
00:27:28 verbose #25798 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:28 verbose #25799 > > │ x2="169" y2="75"/>                                                           │
00:27:28 verbose #25800 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:28 verbose #25801 > > │ x2="179" y2="75"/>                                                           │
00:27:28 verbose #25802 > > │ <line... 393,238 394,238 396,237 397,237 399,236 401,235 402,235 404,234     │
00:27:28 verbose #25803 > > │ 405,234 407,233 409,233 410,232 412,231 413,231 415,230 416,230 418,229      │
00:27:28 verbose #25804 > > │ 420,229 421,228 423,228 424,227 426,227 428,226 429,225 431,225 432,224      │
00:27:28 verbose #25805 > > │ 434,224 435,223 437,223 439,222 440,222 442,221 443,221 445,220 447,220      │
00:27:28 verbose #25806 > > │ 448,219 450,219 451,218 453,218 454,217 456,217 458,216 459,216 461,215      │
00:27:28 verbose #25807 > > │ 462,215 464,214 466,214 467,213 469,213 470,213 472,212 473,212 475,211      │
00:27:28 verbose #25808 > > │ 477,211 478,210 480,210 481,209 483,209 485,208 486,208 488,208 489,207      │
00:27:28 verbose #25809 > > │ 491,207 492,206 494,206 496,205 497,205 499,204 500,204 502,204 504,203      │
00:27:28 verbose #25810 > > │ 505,203 507,202 508,202 510,202 511,201 513,201 515,200 516,200 518,200      │
00:27:28 verbose #25811 > > │ 519,199 521,199 523,198 524,198 526,198 527,197 529,197 531,196 532,196      │
00:27:28 verbose #25812 > > │ 534,196 535,195 537,195 538,194 540,194 542,194 543,193 545,193 546,193      │
00:27:28 verbose #25813 > > │ 548,192 550,192 551,192 553,191 554,191 556,190 557,190 559,190 561,189      │
00:27:28 verbose #25814 > > │ 562,189 564,189 565,188 567,188 569,188 "/>                                  │
00:27:28 verbose #25815 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:27:28 verbose #25816 > > │ stroke="#FFFFFF"/>                                                           │
00:27:28 verbose #25817 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:27:28 verbose #25818 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:28 verbose #25819 > > │ fill="#FFFFFF">                                                              │
00:27:28 verbose #25820 > > │ newtonian                                                                    │
00:27:28 verbose #25821 > > │ </text>                                                                      │
00:27:28 verbose #25822 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:27:28 verbose #25823 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:28 verbose #25824 > > │ fill="#FFFFFF">                                                              │
00:27:28 verbose #25825 > > │ relativistic                                                                 │
00:27:28 verbose #25826 > > │ </text>                                                                      │
00:27:28 verbose #25827 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:28 verbose #25828 > > │ points="474,242 494,242 "/>                                                  │
00:27:28 verbose #25829 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:27:28 verbose #25830 > > │ points="474,257 494,257 "/>                                                  │
00:27:28 verbose #25831 > > │ </svg>                                                                       │
00:27:28 verbose #25832 > > │                                                                              │
00:27:28 verbose #25833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:28 verbose #25834 > >
00:27:28 verbose #25835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:28 verbose #25836 > > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:27:28 verbose #25837 > >     st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:27:29 verbose #25838 > >
00:27:29 verbose #25839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:29 verbose #25840 > > //// test
00:27:29 verbose #25841 > >
00:27:29 verbose #25842 > > inl c : f64 = 299792458
00:27:29 verbose #25843 > > inl ~method = runge_kutta_4 0.000000001
00:27:29 verbose #25844 > > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:27:29 verbose #25845 > > inl (particle_state default_particle_state') = default_particle_state ()
00:27:29 verbose #25846 > > inl initial_state =
00:27:29 verbose #25847 > >     particle_state { default_particle_state' with
00:27:29 verbose #25848 > >         mass = 0.000000000000000000000000001672621898
00:27:29 verbose #25849 > >         charge = 0.0000000000000000001602176621
00:27:29 verbose #25850 > >         velocity = 0.8 *^ (c *^ j_hat ())
00:27:29 verbose #25851 > >     }
00:27:29 verbose #25852 > >
00:27:29 verbose #25853 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:27:29 verbose #25854 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:27:29 verbose #25855 > >
00:27:29 verbose #25856 > > inl newton_x, newton_y =
00:27:29 verbose #25857 > >     newton_states
00:27:29 verbose #25858 > >     >> Some
00:27:29 verbose #25859 > >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:27:29 verbose #25860 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:27:29 verbose #25861 > >     |> listm'.unzip
00:27:29 verbose #25862 > >
00:27:29 verbose #25863 > > inl relativity_x, relativity_y =
00:27:29 verbose #25864 > >     relativity_states
00:27:29 verbose #25865 > >     >> Some
00:27:29 verbose #25866 > >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:27:29 verbose #25867 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:27:29 verbose #25868 > >     |> listm'.unzip
00:27:29 verbose #25869 > >
00:27:29 verbose #25870 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:27:29 verbose #25871 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:27:29 verbose #25872 > >
00:27:29 verbose #25873 > > inl relativity_x = relativity_x |> listm'.box |> listm'.to_array'
00:27:29 verbose #25874 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:27:29 verbose #25875 > >
00:27:29 verbose #25876 > > "proton in a 1-t magnetic field",
00:27:29 verbose #25877 > > "x (m)",
00:27:29 verbose #25878 > > "y (m)",
00:27:29 verbose #25879 > > ;[[
00:27:29 verbose #25880 > >     "newtonian", newton_x, newton_y
00:27:29 verbose #25881 > >     "relativistic", relativity_x, relativity_y
00:27:29 verbose #25882 > > ]]
00:27:30 verbose #25883 > >
00:27:30 verbose #25884 > > ╭─[ 865.34ms - return value ]──────────────────────────────────────────────────╮
00:27:30 verbose #25885 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:30 verbose #25886 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:30 verbose #25887 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:30 verbose #25888 > > │ stroke="none"/>                                                              │
00:27:30 verbose #25889 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:30 verbose #25890 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:30 verbose #25891 > > │ fill="#FFFFFF">                                                              │
00:27:30 verbose #25892 > > │ proton in a 1-t magnetic field                                               │
00:27:30 verbose #25893 > > │ </text>                                                                      │
00:27:30 verbose #25894 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:27:30 verbose #25895 > > │ y2="75"/>                                                                    │
00:27:30 verbose #25896 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:30 verbose #25897 > > │ y2="75"/>                                                                    │
00:27:30 verbose #25898 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:27:30 verbose #25899 > > │ y2="75"/>                                                                    │
00:27:30 verbose #25900 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:27:30 verbose #25901 > > │ y2="75"/>                                                                    │
00:27:30 verbose #25902 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:27:30 verbose #25903 > > │ x2="105" y2="75"/>                                                           │
00:27:30 verbose #25904 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="117" y1="424"        │
00:27:30 verbose #25905 > > │ x2="117" y2="75"/>                                                           │
00:27:30 verbose #25906 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:30 verbose #25907 > > │ x2="129" y2="75"/>                                                           │
00:27:30 verbose #25908 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:27:30 verbose #25909 > > │ x2="141" y2="75"/>                                                           │
00:27:30 verbose #25910 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:27:30 verbose #25911 > > │ x2="153" y2="75"/>                                                           │
00:27:30 verbose #25912 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="165" y1="424"        │
00:27:30 verbose #25913 > > │ x2="165" y2="75"/>                                                           │
00:27:30 verbose #25914 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="177" y1="424"        │
00:27:30 verbose #25915 > > │ x2="177" y2="75"/>                                                           │
00:27:30 verbose #25916 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="189" y1="424"        │
00:27:30 verbose #25917 > > │ x2="189" y2="75"/>                                                           │
00:27:30 verbose #25918 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="201" y1="424"        │
00:27:30 verbose #25919 > > │ x2="201" y2="75"/>                                                           │
00:27:30 verbose #25920 > > │ <...555,197 560,206 563,216 566,225 567,234 568,244 568,253 568,263 566,272  │
00:27:30 verbose #25921 > > │ 564,281 561,291 557,300 552,309 547,317 540,326 533,334 526,342 517,350      │
00:27:30 verbose #25922 > > │ 508,357 499,364 488,371 478,377 466,383 455,388 442,393 430,398 417,402      │
00:27:30 verbose #25923 > > │ 403,405 390,408 376,410 362,412 348,414 333,414 319,415 305,414 290,414      │
00:27:30 verbose #25924 > > │ 276,412 262,410 248,408 235,405 221,401 208,397 196,393 183,388 171,383      │
00:27:30 verbose #25925 > > │ 160,377 149,371 139,364 129,357 120,350 112,342 104,334 97,326 91,317 86,309 │
00:27:30 verbose #25926 > > │ 81,300 77,290 74,281 72,272 70,263 70,253 70,244 71,234 72,225 75,215 78,206 │
00:27:30 verbose #25927 > > │ 83,197 88,188 93,180 100,171 107,163 115,155 124,148 133,140 143,133 153,127 │
00:27:30 verbose #25928 > > │ 164,121 176,115 188,110 200,105 213,101 226,97 239,94 253,91 267,89 281,87   │
00:27:30 verbose #25929 > > │ 295,86 310,85 324,85 338,86 353,87 367,88 381,90 394,93 408,96 421,100       │
00:27:30 verbose #25930 > > │ 434,104 447,109 459,114 470,119 482,125 492,131 502,138 512,145 520,153      │
00:27:30 verbose #25931 > > │ 529,161 536,169 543,177 549,186 554,194 558,203 562,213 565,222 567,231      │
00:27:30 verbose #25932 > > │ 568,241 569,250 "/>                                                          │
00:27:30 verbose #25933 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:27:30 verbose #25934 > > │ stroke="#FFFFFF"/>                                                           │
00:27:30 verbose #25935 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:27:30 verbose #25936 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:30 verbose #25937 > > │ fill="#FFFFFF">                                                              │
00:27:30 verbose #25938 > > │ newtonian                                                                    │
00:27:30 verbose #25939 > > │ </text>                                                                      │
00:27:30 verbose #25940 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:27:30 verbose #25941 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:30 verbose #25942 > > │ fill="#FFFFFF">                                                              │
00:27:30 verbose #25943 > > │ relativistic                                                                 │
00:27:30 verbose #25944 > > │ </text>                                                                      │
00:27:30 verbose #25945 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:30 verbose #25946 > > │ points="474,242 494,242 "/>                                                  │
00:27:30 verbose #25947 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:27:30 verbose #25948 > > │ points="474,257 494,257 "/>                                                  │
00:27:30 verbose #25949 > > │ </svg>                                                                       │
00:27:30 verbose #25950 > > │                                                                              │
00:27:30 verbose #25951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 verbose #25952 > >
00:27:30 verbose #25953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:30 verbose #25954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:30 verbose #25955 > > │ #### system kinetic energy versus time 1                                     │
00:27:30 verbose #25956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:30 verbose #25957 > >
00:27:30 verbose #25958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:30 verbose #25959 > > //// test
00:27:30 verbose #25960 > >
00:27:30 verbose #25961 > > inl central_force f (particle_state st1) (particle_state st2) =
00:27:30 verbose #25962 > >     inl r1 = st1.pos_vec
00:27:30 verbose #25963 > >     inl r2 = st2.pos_vec
00:27:30 verbose #25964 > >     inl r21 = r2 ^-^ r1
00:27:30 verbose #25965 > >     inl r21mag = magnitude r21
00:27:30 verbose #25966 > >     f r21mag *^ r21 ^/ r21mag
00:27:30 verbose #25967 > >
00:27:30 verbose #25968 > > inl billiard_force k re =
00:27:30 verbose #25969 > >     inl f r =
00:27:30 verbose #25970 > >         if r >= re
00:27:30 verbose #25971 > >         then 0
00:27:30 verbose #25972 > >         else -k * (r - re)
00:27:30 verbose #25973 > >     central_force f
00:27:30 verbose #25974 > >
00:27:30 verbose #25975 > > type force_vector = vec
00:27:30 verbose #25976 > > type two_body_force = particle_state -> particle_state -> force_vector
00:27:30 verbose #25977 > >
00:27:30 verbose #25978 > > union force =
00:27:30 verbose #25979 > >     | ExternalForce : i32 * one_body_force
00:27:30 verbose #25980 > >     | InternalForce : i32 * i32 * two_body_force
00:27:30 verbose #25981 > >
00:27:30 verbose #25982 > > nominal multi_particle_state = list particle_state
00:27:30 verbose #25983 > >
00:27:30 verbose #25984 > > nominal d_multi_particle_state = list d_particle_state
00:27:30 verbose #25985 > >
00:27:30 verbose #25986 > > inl force_on n sts force =
00:27:30 verbose #25987 > >     match force with
00:27:30 verbose #25988 > >     | ExternalForce (n0, f_one_body) =>
00:27:30 verbose #25989 > >         if n = n0
00:27:30 verbose #25990 > >         then f_one_body
00:27:30 verbose #25991 > >         else fun _ => zero_vec ()
00:27:30 verbose #25992 > >     | InternalForce (n0, n1, f_two_body) =>
00:27:30 verbose #25993 > >         if n = n0
00:27:30 verbose #25994 > >         then f_two_body (sts |> listm'.item n1)
00:27:30 verbose #25995 > >         elif n = n1
00:27:30 verbose #25996 > >         then f_two_body (sts |> listm'.item n0)
00:27:30 verbose #25997 > >         else fun _ => zero_vec ()
00:27:30 verbose #25998 > >
00:27:30 verbose #25999 > > inl forces_on n (multi_particle_state sts) fs =
00:27:30 verbose #26000 > >     fs |> listm.map (force_on n sts)
00:27:30 verbose #26001 > >
00:27:30 verbose #26002 > > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:27:30 verbose #26003 > >     inl deriv (n, st) =
00:27:30 verbose #26004 > >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:27:30 verbose #26005 > >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:27:30 verbose #26006 > >
00:27:30 verbose #26007 > > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:27:30 verbose #26008 > > (d_multi_particle_state dsts2) =>
00:27:30 verbose #26009 > >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:27:30 verbose #26010 > >
00:27:30 verbose #26011 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:27:30 verbose #26012 > >     d_multi_particle_state (dsts |> listm.map (scale w))
00:27:30 verbose #26013 > >
00:27:30 verbose #26014 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:27:30 verbose #26015 > >     inl (d_multi_particle_state dsts) =
00:27:30 verbose #26016 > >         real
00:27:30 verbose #26017 > >             match dsts with
00:27:30 verbose #26018 > >             | d_multi_particle_state _ => dsts
00:27:30 verbose #26019 > >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:27:30 verbose #26020 > >
00:27:30 verbose #26021 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:27:30 verbose #26022 > > d_multi_particle_state =
00:27:30 verbose #26023 > >     fun deriv mpst0 =>
00:27:30 verbose #26024 > >         inl mpst1 = euler dt deriv mpst0
00:27:30 verbose #26025 > >         inl (multi_particle_state sts0) = mpst0
00:27:30 verbose #26026 > >         inl (multi_particle_state sts1) = mpst1
00:27:30 verbose #26027 > >         sts1
00:27:30 verbose #26028 > >         |> listm'.zip_ sts0
00:27:30 verbose #26029 > >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:27:30 verbose #26030 > >             particle_state {
00:27:30 verbose #26031 > >                 st1 with
00:27:30 verbose #26032 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:27:30 verbose #26033 > >             }
00:27:30 verbose #26034 > >         )
00:27:30 verbose #26035 > >         |> multi_particle_state
00:27:30 verbose #26036 > >
00:27:30 verbose #26037 > > inl update_mps (method : numerical_method multi_particle_state
00:27:30 verbose #26038 > > d_multi_particle_state) =
00:27:30 verbose #26039 > >     newton_second_mps >> method
00:27:30 verbose #26040 > >
00:27:30 verbose #26041 > > inl states_mps (method : numerical_method multi_particle_state
00:27:30 verbose #26042 > > d_multi_particle_state) =
00:27:30 verbose #26043 > >     newton_second_mps >> method >> seq.iterate_
00:27:30 verbose #26044 > >
00:27:30 verbose #26045 > >
00:27:30 verbose #26046 > > inl kinetic_energy (particle_state st) =
00:27:30 verbose #26047 > >     inl m = st.mass
00:27:30 verbose #26048 > >     inl v = magnitude st.velocity
00:27:30 verbose #26049 > >     0.5 * m * v ** 2
00:27:30 verbose #26050 > >
00:27:30 verbose #26051 > > inl system_ke (multi_particle_state sts) =
00:27:30 verbose #26052 > >     sts |> listm.map kinetic_energy |> listm'.sum
00:27:30 verbose #26053 > >
00:27:30 verbose #26054 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:27:30 verbose #26055 > >     inl r1 = st1.pos_vec
00:27:30 verbose #26056 > >     inl r2 = st2.pos_vec
00:27:30 verbose #26057 > >     inl r21 = r2 ^-^ r1
00:27:30 verbose #26058 > >     inl r21mag = magnitude r21
00:27:30 verbose #26059 > >     k * (r21mag - re) ** 2 / 2
00:27:30 verbose #26060 > >
00:27:30 verbose #26061 > > inl earth_surface_gravity_pe (particle_state st) =
00:27:30 verbose #26062 > >     inl g = 9.80665
00:27:30 verbose #26063 > >     inl m = st.mass
00:27:30 verbose #26064 > >     inl z = st.pos_vec.z
00:27:30 verbose #26065 > >     m * g * z
00:27:30 verbose #26066 > >
00:27:30 verbose #26067 > > inl two_springs_pe (multi_particle_state sts) =
00:27:30 verbose #26068 > >     inl st0 = sts |> listm'.item 0i32
00:27:30 verbose #26069 > >     inl st1 = sts |> listm'.item 1i32
00:27:30 verbose #26070 > >     linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:27:30 verbose #26071 > >     + linear_spring_pe 100 0.5 st0 st1
00:27:30 verbose #26072 > >     + earth_surface_gravity_pe st0
00:27:30 verbose #26073 > >     + earth_surface_gravity_pe st1
00:27:30 verbose #26074 > >
00:27:30 verbose #26075 > > inl two_springs_me mpst =
00:27:30 verbose #26076 > >     system_ke mpst + two_springs_pe mpst
00:27:30 verbose #26077 > >
00:27:30 verbose #26078 > > inl ball_radius () = 0.03
00:27:30 verbose #26079 > >
00:27:30 verbose #26080 > > inl billiard_forces k =
00:27:30 verbose #26081 > >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:27:30 verbose #26082 > >
00:27:30 verbose #26083 > > inl billiard_update n_method k dt =
00:27:30 verbose #26084 > >     update_mps (n_method dt) (billiard_forces k)
00:27:30 verbose #26085 > >
00:27:30 verbose #26086 > > inl billiard_initial () =
00:27:30 verbose #26087 > >     inl ball_mass = 0.160
00:27:30 verbose #26088 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:30 verbose #26089 > >     multi_particle_state [[
00:27:30 verbose #26090 > >         particle_state {
00:27:30 verbose #26091 > >             default_particle_state' with
00:27:30 verbose #26092 > >                 mass = ball_mass
00:27:30 verbose #26093 > >                 pos_vec = zero_vec ()
00:27:30 verbose #26094 > >                 velocity = 0.2 *^ i_hat ()
00:27:30 verbose #26095 > >         }
00:27:30 verbose #26096 > >         particle_state {
00:27:30 verbose #26097 > >             default_particle_state' with
00:27:30 verbose #26098 > >                 mass = ball_mass
00:27:30 verbose #26099 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:27:30 verbose #26100 > >                 velocity = zero_vec ()
00:27:30 verbose #26101 > >         }
00:27:30 verbose #26102 > >     ]]
00:27:30 verbose #26103 > >
00:27:30 verbose #26104 > > inl billiard_states ~n_method k dt =
00:27:30 verbose #26105 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:27:30 verbose #26106 > >
00:27:30 verbose #26107 > > inl billiard_states_finite n_method k dt =
00:27:30 verbose #26108 > >     billiard_states n_method k dt
00:27:30 verbose #26109 > >     >> Some
00:27:30 verbose #26110 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:27:30 verbose #26111 > >         (mpst |> listm'.item 0i32).time <= 10
00:27:30 verbose #26112 > >     )
00:27:30 verbose #26113 > >
00:27:30 verbose #26114 > > inl momentum (particle_state st) =
00:27:30 verbose #26115 > >     inl m = st.mass
00:27:30 verbose #26116 > >     inl v = st.velocity
00:27:30 verbose #26117 > >     m *^ v
00:27:30 verbose #26118 > >
00:27:30 verbose #26119 > > inl system_p (multi_particle_state sts) =
00:27:30 verbose #26120 > >     sts |> listm.map momentum |> sum_vec
00:27:30 verbose #26121 > >
00:27:30 verbose #26122 > >
00:27:30 verbose #26123 > > inl time_ke_ec_x, time_ke_ec_y =
00:27:30 verbose #26124 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:27:30 verbose #26125 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:27:30 verbose #26126 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:27:30 verbose #26127 > >     )
00:27:30 verbose #26128 > >     |> listm'.unzip
00:27:30 verbose #26129 > >
00:27:30 verbose #26130 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:27:30 verbose #26131 > >     billiard_states_finite runge_kutta_4 30 0.03
00:27:30 verbose #26132 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:27:30 verbose #26133 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:27:30 verbose #26134 > >     )
00:27:30 verbose #26135 > >     |> listm'.unzip
00:27:30 verbose #26136 > >
00:27:30 verbose #26137 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:27:30 verbose #26138 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:27:30 verbose #26139 > >
00:27:30 verbose #26140 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:27:30 verbose #26141 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:27:30 verbose #26142 > >
00:27:30 verbose #26143 > > "system kinetic energy versus time",
00:27:30 verbose #26144 > > "time (s)",
00:27:30 verbose #26145 > > "system kinetic energy (j)",
00:27:30 verbose #26146 > > ;[[
00:27:30 verbose #26147 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:27:30 verbose #26148 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:27:30 verbose #26149 > > ]]
00:27:32 verbose #26150 > >
00:27:32 verbose #26151 > > ╭─[ 1.94s - return value ]─────────────────────────────────────────────────────╮
00:27:32 verbose #26152 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:32 verbose #26153 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:32 verbose #26154 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:32 verbose #26155 > > │ stroke="none"/>                                                              │
00:27:32 verbose #26156 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:32 verbose #26157 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:32 verbose #26158 > > │ fill="#FFFFFF">                                                              │
00:27:32 verbose #26159 > > │ system kinetic energy versus time                                            │
00:27:32 verbose #26160 > > │ </text>                                                                      │
00:27:32 verbose #26161 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:32 verbose #26162 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26163 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:32 verbose #26164 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26165 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:32 verbose #26166 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26167 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:32 verbose #26168 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26169 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:32 verbose #26170 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26171 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:32 verbose #26172 > > │ x2="109" y2="75"/>                                                           │
00:27:32 verbose #26173 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:32 verbose #26174 > > │ x2="119" y2="75"/>                                                           │
00:27:32 verbose #26175 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:32 verbose #26176 > > │ x2="129" y2="75"/>                                                           │
00:27:32 verbose #26177 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:32 verbose #26178 > > │ x2="139" y2="75"/>                                                           │
00:27:32 verbose #26179 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:32 verbose #26180 > > │ x2="149" y2="75"/>                                                           │
00:27:32 verbose #26181 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:32 verbose #26182 > > │ x2="159" y2="75"/>                                                           │
00:27:32 verbose #26183 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:32 verbose #26184 > > │ x2="169" y2="75"/>                                                           │
00:27:32 verbose #26185 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:32 verbose #26186 > > │ x2="179" y2="75"/>                                                           │
00:27:32 verbose #26187 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:27:32 verbose #26188 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:27:32 verbose #26189 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:27:32 verbose #26190 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:27:32 verbose #26191 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:27:32 verbose #26192 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:27:32 verbose #26193 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:27:32 verbose #26194 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:27:32 verbose #26195 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:27:32 verbose #26196 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:27:32 verbose #26197 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:27:32 verbose #26198 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:27:32 verbose #26199 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:27:32 verbose #26200 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:27:32 verbose #26201 > > │ stroke="#FFFFFF"/>                                                           │
00:27:32 verbose #26202 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:27:32 verbose #26203 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:32 verbose #26204 > > │ fill="#FFFFFF">                                                              │
00:27:32 verbose #26205 > > │ euler-cromer                                                                 │
00:27:32 verbose #26206 > > │ </text>                                                                      │
00:27:32 verbose #26207 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:27:32 verbose #26208 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:32 verbose #26209 > > │ fill="#FFFFFF">                                                              │
00:27:32 verbose #26210 > > │ runge-kutta 4                                                                │
00:27:32 verbose #26211 > > │ </text>                                                                      │
00:27:32 verbose #26212 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:32 verbose #26213 > > │ points="469,242 489,242 "/>                                                  │
00:27:32 verbose #26214 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:27:32 verbose #26215 > > │ points="469,257 489,257 "/>                                                  │
00:27:32 verbose #26216 > > │ </svg>                                                                       │
00:27:32 verbose #26217 > > │                                                                              │
00:27:32 verbose #26218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:32 verbose #26219 > >
00:27:32 verbose #26220 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:32 verbose #26221 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:32 verbose #26222 > > │ #### wave 1                                                                  │
00:27:32 verbose #26223 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:32 verbose #26224 > >
00:27:32 verbose #26225 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:32 verbose #26226 > > //// test
00:27:32 verbose #26227 > >
00:27:32 verbose #26228 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:27:32 verbose #26229 > >     inl r1 = st1.pos_vec
00:27:32 verbose #26230 > >     inl r2 = st2.pos_vec
00:27:32 verbose #26231 > >     inl r21 = r2 ^-^ r1
00:27:32 verbose #26232 > >     inl r21mag = magnitude r21
00:27:32 verbose #26233 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:27:32 verbose #26234 > >
00:27:32 verbose #26235 > > inl fixed_linear_spring k re r1 =
00:27:32 verbose #26236 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:32 verbose #26237 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:27:32 verbose #26238 > > r1 })
00:27:32 verbose #26239 > >
00:27:32 verbose #26240 > > inl forces_string () =
00:27:32 verbose #26241 > >     [[
00:27:32 verbose #26242 > >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:27:32 verbose #26243 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:27:32 verbose #26244 > >     ]] ++ (
00:27:32 verbose #26245 > >         listm'.init_series 0 59 1
00:27:32 verbose #26246 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:27:32 verbose #26247 > >     )
00:27:32 verbose #26248 > >
00:27:32 verbose #26249 > > inl string_update dt =
00:27:32 verbose #26250 > >     update_mps (runge_kutta_4 dt) (forces_string ())
00:27:32 verbose #26251 > >
00:27:32 verbose #26252 > > inl string_initial_overtone n =
00:27:32 verbose #26253 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:27:32 verbose #26254 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:32 verbose #26255 > >     listm'.init_series 0.01 0.64 0.01
00:27:32 verbose #26256 > >     |> listm.map (fun x =>
00:27:32 verbose #26257 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:27:32 verbose #26258 > >         particle_state {
00:27:32 verbose #26259 > >             default_particle_state' with
00:27:32 verbose #26260 > >                 mass = ball_mass
00:27:32 verbose #26261 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:27:32 verbose #26262 > >                 velocity = zero_vec ()
00:27:32 verbose #26263 > >         }
00:27:32 verbose #26264 > >     )
00:27:32 verbose #26265 > >     |> multi_particle_state
00:27:32 verbose #26266 > >
00:27:32 verbose #26267 > > inl string_initial_pluck () =
00:27:32 verbose #26268 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:27:32 verbose #26269 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:32 verbose #26270 > >     listm'.init_series 0.01 0.64 0.01
00:27:32 verbose #26271 > >     |> listm.map (fun x =>
00:27:32 verbose #26272 > >         inl y =
00:27:32 verbose #26273 > >             inl n = if x <= 0.51 then 0 else 0.65
00:27:32 verbose #26274 > >             0.005 / (0.51 - n) * (x - n)
00:27:32 verbose #26275 > >         particle_state {
00:27:32 verbose #26276 > >             default_particle_state' with
00:27:32 verbose #26277 > >                 mass = ball_mass
00:27:32 verbose #26278 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:27:32 verbose #26279 > >                 velocity = zero_vec ()
00:27:32 verbose #26280 > >         }
00:27:32 verbose #26281 > >     )
00:27:32 verbose #26282 > >     |> multi_particle_state
00:27:32 verbose #26283 > >
00:27:32 verbose #26284 > > let main () =
00:27:32 verbose #26285 > >     inl ~frames = listm'.init_series 0 9 1f64
00:27:32 verbose #26286 > >     inl initial_state = string_initial_overtone 3i32
00:27:32 verbose #26287 > >     inl frames =
00:27:32 verbose #26288 > >         frames
00:27:32 verbose #26289 > >         |> listm.map (fun n =>
00:27:32 verbose #26290 > >             inl (multi_particle_state sts) =
00:27:32 verbose #26291 > >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:27:32 verbose #26292 > > f 0f64
00:27:32 verbose #26293 > >             inl rs =
00:27:32 verbose #26294 > >                 [[ zero_vec () ]]
00:27:32 verbose #26295 > >                 ++ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:27:32 verbose #26296 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:27:32 verbose #26297 > >             inl x, y =
00:27:32 verbose #26298 > >                 rs
00:27:32 verbose #26299 > >                 |> listm.map (fun r => r.x, r.y)
00:27:32 verbose #26300 > >                 |> listm'.unzip
00:27:32 verbose #26301 > >             inl x = x |> listm'.box |> listm'.to_array'
00:27:32 verbose #26302 > >             inl y = y |> listm'.box |> listm'.to_array'
00:27:32 verbose #26303 > >             x, y
00:27:32 verbose #26304 > >         )
00:27:32 verbose #26305 > >         |> listm'.box |> listm'.to_array'
00:27:32 verbose #26306 > >
00:27:32 verbose #26307 > >     inl n = 0i32
00:27:32 verbose #26308 > >
00:27:32 verbose #26309 > >     inl x, y = a frames |> am'.index n
00:27:32 verbose #26310 > >
00:27:32 verbose #26311 > >     "wave",
00:27:32 verbose #26312 > >     "position (m)",
00:27:32 verbose #26313 > >     "displacement (m)",
00:27:32 verbose #26314 > >     ;[[
00:27:32 verbose #26315 > >         ($'$"{!n}"' : string), x, y
00:27:32 verbose #26316 > >     ]]
00:27:32 verbose #26317 > >
00:27:32 verbose #26318 > > ╭─[ 823.15ms - return value ]──────────────────────────────────────────────────╮
00:27:32 verbose #26319 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:32 verbose #26320 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:32 verbose #26321 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:32 verbose #26322 > > │ stroke="none"/>                                                              │
00:27:32 verbose #26323 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:32 verbose #26324 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:32 verbose #26325 > > │ fill="#FFFFFF">                                                              │
00:27:32 verbose #26326 > > │ wave                                                                         │
00:27:32 verbose #26327 > > │ </text>                                                                      │
00:27:32 verbose #26328 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:27:32 verbose #26329 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26330 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:32 verbose #26331 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26332 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:27:32 verbose #26333 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26334 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:27:32 verbose #26335 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26336 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:27:32 verbose #26337 > > │ y2="75"/>                                                                    │
00:27:32 verbose #26338 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:27:32 verbose #26339 > > │ x2="100" y2="75"/>                                                           │
00:27:32 verbose #26340 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:27:32 verbose #26341 > > │ x2="108" y2="75"/>                                                           │
00:27:32 verbose #26342 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:27:32 verbose #26343 > > │ x2="116" y2="75"/>                                                           │
00:27:32 verbose #26344 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:27:32 verbose #26345 > > │ x2="123" y2="75"/>                                                           │
00:27:32 verbose #26346 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:27:32 verbose #26347 > > │ x2="131" y2="75"/>                                                           │
00:27:32 verbose #26348 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:32 verbose #26349 > > │ x2="139" y2="75"/>                                                           │
00:27:32 verbose #26350 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:27:32 verbose #26351 > > │ x2="146" y2="75"/>                                                           │
00:27:32 verbose #26352 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="154" y1="424"        │
00:27:32 verbose #26353 > > │ x2="154" y2="75"/>                                                           │
00:27:32 verbose #26354 > > │ <line opacity="1" stroke="#32...ne fill="none" opacity="1" stroke="#FFFFFF"  │
00:27:32 verbose #26355 > > │ stroke-width="1" points="585,250 590,250 "/>                                 │
00:27:32 verbose #26356 > > │ <text x="617" y="184" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:27:32 verbose #26357 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:27:32 verbose #26358 > > │ 0.0                                                                          │
00:27:32 verbose #26359 > > │ </text>                                                                      │
00:27:32 verbose #26360 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:32 verbose #26361 > > │ points="585,184 590,184 "/>                                                  │
00:27:32 verbose #26362 > > │ <text x="617" y="118" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:27:32 verbose #26363 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:27:32 verbose #26364 > > │ 0.0                                                                          │
00:27:32 verbose #26365 > > │ </text>                                                                      │
00:27:32 verbose #26366 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:27:32 verbose #26367 > > │ points="585,118 590,118 "/>                                                  │
00:27:32 verbose #26368 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:32 verbose #26369 > > │ points="69,250 77,226 85,203 93,181 100,160 108,141 116,124 123,110 131,99   │
00:27:32 verbose #26370 > > │ 139,91 146,87 154,85 162,88 169,93 177,102 185,115 192,129 200,147 208,167   │
00:27:32 verbose #26371 > > │ 215,188 223,211 231,234 238,258 246,282 254,305 261,327 269,347 277,365      │
00:27:32 verbose #26372 > > │ 284,381 292,394 300,404 307,411 315,415 323,415 331,411 338,404 346,394      │
00:27:32 verbose #26373 > > │ 354,381 361,365 369,347 377,327 384,305 392,282 400,258 407,234 415,211      │
00:27:32 verbose #26374 > > │ 423,188 430,167 438,147 446,129 453,115 461,102 469,93 476,88 484,85 492,87  │
00:27:32 verbose #26375 > > │ 499,91 507,99 515,110 522,124 530,141 538,160 545,181 553,203 561,226        │
00:27:32 verbose #26376 > > │ 569,250 "/>                                                                  │
00:27:32 verbose #26377 > > │ <rect x="525" y="235" width="55" height="30" opacity="1" fill="none"         │
00:27:32 verbose #26378 > > │ stroke="#FFFFFF"/>                                                           │
00:27:32 verbose #26379 > > │ <text x="565" y="245" dy="0.76em" text-anchor="start"                        │
00:27:32 verbose #26380 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:32 verbose #26381 > > │ fill="#FFFFFF">                                                              │
00:27:32 verbose #26382 > > │ 0                                                                            │
00:27:32 verbose #26383 > > │ </text>                                                                      │
00:27:32 verbose #26384 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:32 verbose #26385 > > │ points="535,250 555,250 "/>                                                  │
00:27:32 verbose #26386 > > │ </svg>                                                                       │
00:27:32 verbose #26387 > > │                                                                              │
00:27:32 verbose #26388 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:32 verbose #26389 > >
00:27:32 verbose #26390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:32 verbose #26391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:32 verbose #26392 > > │ #### system kinetic energy versus time 2                                     │
00:27:32 verbose #26393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:32 verbose #26394 > >
00:27:32 verbose #26395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:32 verbose #26396 > > //// test
00:27:32 verbose #26397 > >
00:27:32 verbose #26398 > > inl central_force f (particle_state st1) (particle_state st2) =
00:27:32 verbose #26399 > >     inl r1 = st1.pos_vec
00:27:32 verbose #26400 > >     inl r2 = st2.pos_vec
00:27:32 verbose #26401 > >     inl r21 = r2 ^-^ r1
00:27:32 verbose #26402 > >     inl r21mag = magnitude r21
00:27:32 verbose #26403 > >     f r21mag *^ r21 ^/ r21mag
00:27:32 verbose #26404 > >
00:27:32 verbose #26405 > > inl billiard_force k re =
00:27:32 verbose #26406 > >     inl f r =
00:27:32 verbose #26407 > >         if r >= re
00:27:32 verbose #26408 > >         then 0
00:27:32 verbose #26409 > >         else -k * (r - re)
00:27:32 verbose #26410 > >     central_force f
00:27:32 verbose #26411 > >
00:27:32 verbose #26412 > > type force_vector = vec
00:27:32 verbose #26413 > > type two_body_force = particle_state -> particle_state -> force_vector
00:27:32 verbose #26414 > >
00:27:32 verbose #26415 > > union force t =
00:27:32 verbose #26416 > >     | ExternalForce : t * one_body_force
00:27:32 verbose #26417 > >     | InternalForce : t * t * two_body_force
00:27:32 verbose #26418 > >
00:27:32 verbose #26419 > > nominal multi_particle_state = stream.stream particle_state
00:27:32 verbose #26420 > >
00:27:32 verbose #26421 > > nominal d_multi_particle_state = stream.stream d_particle_state
00:27:32 verbose #26422 > >
00:27:32 verbose #26423 > > inl force_on n s force =
00:27:32 verbose #26424 > >     match force with
00:27:32 verbose #26425 > >     | ExternalForce (n0, f_one_body) =>
00:27:32 verbose #26426 > >         if n = n0
00:27:32 verbose #26427 > >         then f_one_body
00:27:32 verbose #26428 > >         else fun _ => zero_vec ()
00:27:32 verbose #26429 > >     | InternalForce (n0, n1, f_two_body) =>
00:27:32 verbose #26430 > >         if n = n0
00:27:32 verbose #26431 > >         then s |> stream.try_item n1 |> optionm.map f_two_body
00:27:32 verbose #26432 > >         elif n = n1
00:27:32 verbose #26433 > >         then s |> stream.try_item n0 |> optionm.map f_two_body
00:27:32 verbose #26434 > >         else None
00:27:32 verbose #26435 > >         |> optionm'.default_value (fun _ => zero_vec ())
00:27:32 verbose #26436 > >
00:27:32 verbose #26437 > > inl forces_on n (multi_particle_state sts) fs =
00:27:32 verbose #26438 > >     fs
00:27:32 verbose #26439 > >     |> listm.map (force_on n sts)
00:27:32 verbose #26440 > >
00:27:32 verbose #26441 > > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:27:32 verbose #26442 > >     inl deriv (n, st) =
00:27:32 verbose #26443 > >         newton_second_ps (forces_on n mpst fs) st
00:27:32 verbose #26444 > >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:27:32 verbose #26445 > >
00:27:32 verbose #26446 > > instance (+++) d_multi_particle_state =
00:27:32 verbose #26447 > >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:27:32 verbose #26448 > >         (dsts1, dsts2)
00:27:32 verbose #26449 > >         ||> stream.zip_with (+++)
00:27:32 verbose #26450 > >         |> d_multi_particle_state
00:27:32 verbose #26451 > >
00:27:32 verbose #26452 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:27:32 verbose #26453 > >     dsts
00:27:32 verbose #26454 > >     |> stream.map (scale w)
00:27:32 verbose #26455 > >     |> d_multi_particle_state
00:27:32 verbose #26456 > >
00:27:32 verbose #26457 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:27:32 verbose #26458 > >     inl (d_multi_particle_state dsts) =
00:27:32 verbose #26459 > >         real
00:27:32 verbose #26460 > >             match dsts with
00:27:32 verbose #26461 > >             | d_multi_particle_state _ => dsts
00:27:32 verbose #26462 > >     (dsts, sts)
00:27:32 verbose #26463 > >     ||> stream.zip_with (shift dt)
00:27:32 verbose #26464 > >     |> stream.memoize
00:27:32 verbose #26465 > >     |> fun x => x ()
00:27:32 verbose #26466 > >     |> multi_particle_state
00:27:32 verbose #26467 > >
00:27:32 verbose #26468 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:27:32 verbose #26469 > > d_multi_particle_state =
00:27:32 verbose #26470 > >     fun deriv ((multi_particle_state sts0) as mpst0) =>
00:27:32 verbose #26471 > >         inl (multi_particle_state sts1) = euler dt deriv mpst0
00:27:32 verbose #26472 > >         (sts0, sts1)
00:27:32 verbose #26473 > >         ||> stream.zip
00:27:32 verbose #26474 > >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:27:32 verbose #26475 > >             particle_state {
00:27:32 verbose #26476 > >                 st1 with
00:27:32 verbose #26477 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:27:32 verbose #26478 > >             }
00:27:32 verbose #26479 > >         )
00:27:32 verbose #26480 > >         |> multi_particle_state
00:27:32 verbose #26481 > >
00:27:32 verbose #26482 > > inl update_mps (method : numerical_method multi_particle_state
00:27:32 verbose #26483 > > d_multi_particle_state) =
00:27:32 verbose #26484 > >     newton_second_mps >> method
00:27:32 verbose #26485 > >
00:27:32 verbose #26486 > > inl states_mps (method : numerical_method multi_particle_state
00:27:32 verbose #26487 > > d_multi_particle_state) =
00:27:32 verbose #26488 > >     newton_second_mps
00:27:32 verbose #26489 > >     >> method
00:27:32 verbose #26490 > >     >> (fun x (multi_particle_state y) =>
00:27:32 verbose #26491 > >         y
00:27:32 verbose #26492 > >         |> stream.memoize
00:27:32 verbose #26493 > >         |> (fun x => x ())
00:27:32 verbose #26494 > >         |> multi_particle_state |> x
00:27:32 verbose #26495 > >     )
00:27:32 verbose #26496 > >     // >> stream.iterate
00:27:32 verbose #26497 > >     >> seq.iterate'
00:27:32 verbose #26498 > >
00:27:32 verbose #26499 > > inl kinetic_energy (particle_state st) =
00:27:32 verbose #26500 > >     inl m = st.mass
00:27:32 verbose #26501 > >     inl v = magnitude st.velocity
00:27:32 verbose #26502 > >     0.5 * m * v ** 2
00:27:32 verbose #26503 > >
00:27:32 verbose #26504 > > inl system_ke (multi_particle_state sts) =
00:27:32 verbose #26505 > >     sts
00:27:32 verbose #26506 > >     |> stream.map kinetic_energy
00:27:32 verbose #26507 > >     |> stream.sum
00:27:32 verbose #26508 > >
00:27:32 verbose #26509 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:27:32 verbose #26510 > >     inl r1 = st1.pos_vec
00:27:32 verbose #26511 > >     inl r2 = st2.pos_vec
00:27:32 verbose #26512 > >     inl r21 = r2 ^-^ r1
00:27:32 verbose #26513 > >     inl r21mag = magnitude r21
00:27:32 verbose #26514 > >     k * (r21mag - re) ** 2 / 2
00:27:32 verbose #26515 > >
00:27:32 verbose #26516 > > inl earth_surface_gravity_pe (particle_state st) =
00:27:32 verbose #26517 > >     inl g = 9.80665
00:27:32 verbose #26518 > >     inl m = st.mass
00:27:32 verbose #26519 > >     inl z = st.pos_vec.z
00:27:32 verbose #26520 > >     m * g * z
00:27:32 verbose #26521 > >
00:27:32 verbose #26522 > > inl ball_radius () = 0.03
00:27:32 verbose #26523 > >
00:27:32 verbose #26524 > > inl billiard_forces k =
00:27:32 verbose #26525 > >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:27:32 verbose #26526 > >
00:27:32 verbose #26527 > > inl billiard_initial () =
00:27:32 verbose #26528 > >     inl ball_mass = 0.160
00:27:32 verbose #26529 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:32 verbose #26530 > >     [[
00:27:32 verbose #26531 > >         particle_state {
00:27:32 verbose #26532 > >             default_particle_state' with
00:27:32 verbose #26533 > >                 mass = ball_mass
00:27:32 verbose #26534 > >                 pos_vec = zero_vec ()
00:27:32 verbose #26535 > >                 velocity = 0.2 *^ i_hat ()
00:27:32 verbose #26536 > >         }
00:27:32 verbose #26537 > >         particle_state {
00:27:32 verbose #26538 > >             default_particle_state' with
00:27:32 verbose #26539 > >                 mass = ball_mass
00:27:32 verbose #26540 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:27:32 verbose #26541 > >                 velocity = zero_vec ()
00:27:32 verbose #26542 > >         }
00:27:32 verbose #26543 > >     ]]
00:27:32 verbose #26544 > >     |> stream.from_list
00:27:32 verbose #26545 > >     |> multi_particle_state
00:27:32 verbose #26546 > >
00:27:32 verbose #26547 > > inl billiard_states ~n_method k dt =
00:27:32 verbose #26548 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:27:32 verbose #26549 > >
00:27:32 verbose #26550 > > inl billiard_states_finite n_method k dt =
00:27:32 verbose #26551 > >     billiard_states n_method k dt
00:27:32 verbose #26552 > >     >> Some
00:27:32 verbose #26553 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:27:32 verbose #26554 > >         match mpst |> stream.try_item 0i32 with
00:27:32 verbose #26555 > >         | Some st =>
00:27:32 verbose #26556 > >             st.time <= 10
00:27:32 verbose #26557 > >         | None => false
00:27:32 verbose #26558 > >     )
00:27:32 verbose #26559 > >
00:27:32 verbose #26560 > > inl momentum (particle_state st) =
00:27:32 verbose #26561 > >     inl m = st.mass
00:27:32 verbose #26562 > >     inl v = st.velocity
00:27:32 verbose #26563 > >     m *^ v
00:27:32 verbose #26564 > >
00:27:32 verbose #26565 > > inl system_p (multi_particle_state sts) =
00:27:32 verbose #26566 > >     sts
00:27:32 verbose #26567 > >     |> stream.map momentum
00:27:32 verbose #26568 > >     |> stream.fold (^+^) (zero_vec ())
00:27:32 verbose #26569 > >
00:27:32 verbose #26570 > > inl time_ke_ec_x, time_ke_ec_y =
00:27:32 verbose #26571 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:27:32 verbose #26572 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:27:32 verbose #26573 > >         mpst |> stream.try_item 0i32
00:27:32 verbose #26574 > >         |> optionm.map (fun st =>
00:27:32 verbose #26575 > >             st.time, system_ke (multi_particle_state mpst)
00:27:32 verbose #26576 > >         )
00:27:32 verbose #26577 > >     )
00:27:32 verbose #26578 > >     // |> stream.to_list
00:27:32 verbose #26579 > >     |> listm'.choose id
00:27:32 verbose #26580 > >     |> listm'.unzip
00:27:32 verbose #26581 > >
00:27:32 verbose #26582 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:27:32 verbose #26583 > >     billiard_states_finite runge_kutta_4 30 0.03
00:27:32 verbose #26584 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:27:32 verbose #26585 > >         mpst |> stream.try_item 0i32
00:27:32 verbose #26586 > >         |> optionm.map (fun st =>
00:27:32 verbose #26587 > >             st.time, system_ke (multi_particle_state mpst)
00:27:32 verbose #26588 > >         )
00:27:32 verbose #26589 > >     )
00:27:32 verbose #26590 > >     // |> stream.to_list
00:27:32 verbose #26591 > >     |> listm'.choose id
00:27:32 verbose #26592 > >     |> listm'.unzip
00:27:32 verbose #26593 > >
00:27:32 verbose #26594 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:27:32 verbose #26595 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:27:32 verbose #26596 > >
00:27:32 verbose #26597 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:27:32 verbose #26598 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:27:32 verbose #26599 > >
00:27:32 verbose #26600 > > "system kinetic energy versus time",
00:27:32 verbose #26601 > > "time (s)",
00:27:32 verbose #26602 > > "system kinetic energy (j)",
00:27:32 verbose #26603 > > ;[[
00:27:32 verbose #26604 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:27:32 verbose #26605 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:27:32 verbose #26606 > > ]]
00:27:35 verbose #26607 > >
00:27:35 verbose #26608 > > ╭─[ 2.75s - return value ]─────────────────────────────────────────────────────╮
00:27:35 verbose #26609 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:27:35 verbose #26610 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:35 verbose #26611 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:35 verbose #26612 > > │ stroke="none"/>                                                              │
00:27:35 verbose #26613 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:35 verbose #26614 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:35 verbose #26615 > > │ fill="#FFFFFF">                                                              │
00:27:35 verbose #26616 > > │ system kinetic energy versus time                                            │
00:27:35 verbose #26617 > > │ </text>                                                                      │
00:27:35 verbose #26618 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:27:35 verbose #26619 > > │ y2="75"/>                                                                    │
00:27:35 verbose #26620 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:35 verbose #26621 > > │ y2="75"/>                                                                    │
00:27:35 verbose #26622 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:27:35 verbose #26623 > > │ y2="75"/>                                                                    │
00:27:35 verbose #26624 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:27:35 verbose #26625 > > │ y2="75"/>                                                                    │
00:27:35 verbose #26626 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:27:35 verbose #26627 > > │ y2="75"/>                                                                    │
00:27:35 verbose #26628 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:27:35 verbose #26629 > > │ x2="109" y2="75"/>                                                           │
00:27:35 verbose #26630 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:27:35 verbose #26631 > > │ x2="119" y2="75"/>                                                           │
00:27:35 verbose #26632 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:27:35 verbose #26633 > > │ x2="129" y2="75"/>                                                           │
00:27:35 verbose #26634 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:35 verbose #26635 > > │ x2="139" y2="75"/>                                                           │
00:27:35 verbose #26636 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:27:35 verbose #26637 > > │ x2="149" y2="75"/>                                                           │
00:27:35 verbose #26638 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:27:35 verbose #26639 > > │ x2="159" y2="75"/>                                                           │
00:27:35 verbose #26640 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:27:35 verbose #26641 > > │ x2="169" y2="75"/>                                                           │
00:27:35 verbose #26642 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:27:35 verbose #26643 > > │ x2="179" y2="75"/>                                                           │
00:27:35 verbose #26644 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:27:35 verbose #26645 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:27:35 verbose #26646 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:27:35 verbose #26647 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:27:35 verbose #26648 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:27:35 verbose #26649 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:27:35 verbose #26650 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:27:35 verbose #26651 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:27:35 verbose #26652 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:27:35 verbose #26653 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:27:35 verbose #26654 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:27:35 verbose #26655 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:27:35 verbose #26656 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:27:35 verbose #26657 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:27:35 verbose #26658 > > │ stroke="#FFFFFF"/>                                                           │
00:27:35 verbose #26659 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:27:35 verbose #26660 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:35 verbose #26661 > > │ fill="#FFFFFF">                                                              │
00:27:35 verbose #26662 > > │ euler-cromer                                                                 │
00:27:35 verbose #26663 > > │ </text>                                                                      │
00:27:35 verbose #26664 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:27:35 verbose #26665 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:35 verbose #26666 > > │ fill="#FFFFFF">                                                              │
00:27:35 verbose #26667 > > │ runge-kutta 4                                                                │
00:27:35 verbose #26668 > > │ </text>                                                                      │
00:27:35 verbose #26669 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:35 verbose #26670 > > │ points="469,242 489,242 "/>                                                  │
00:27:35 verbose #26671 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:27:35 verbose #26672 > > │ points="469,257 489,257 "/>                                                  │
00:27:35 verbose #26673 > > │ </svg>                                                                       │
00:27:35 verbose #26674 > > │                                                                              │
00:27:35 verbose #26675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:35 verbose #26676 > >
00:27:35 verbose #26677 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:35 verbose #26678 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:35 verbose #26679 > > │ #### wave 2                                                                  │
00:27:35 verbose #26680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:35 verbose #26681 > >
00:27:35 verbose #26682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:35 verbose #26683 > > //// test
00:27:35 verbose #26684 > >
00:27:35 verbose #26685 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:27:35 verbose #26686 > >     inl r1 = st1.pos_vec
00:27:35 verbose #26687 > >     inl r2 = st2.pos_vec
00:27:35 verbose #26688 > >     inl r21 = r2 ^-^ r1
00:27:35 verbose #26689 > >     inl r21mag = magnitude r21
00:27:35 verbose #26690 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:27:35 verbose #26691 > >
00:27:35 verbose #26692 > > inl fixed_linear_spring k re r1 =
00:27:35 verbose #26693 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:35 verbose #26694 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:27:35 verbose #26695 > > r1 })
00:27:35 verbose #26696 > >
00:27:35 verbose #26697 > > inl forces_string () =
00:27:35 verbose #26698 > >     [[
00:27:35 verbose #26699 > >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:27:35 verbose #26700 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:27:35 verbose #26701 > >     ]] ++ (
00:27:35 verbose #26702 > >         listm'.init_series 0 59 1
00:27:35 verbose #26703 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:27:35 verbose #26704 > >     )
00:27:35 verbose #26705 > >
00:27:35 verbose #26706 > > inl string_update dt =
00:27:35 verbose #26707 > >     update_mps (join runge_kutta_4 dt) (join forces_string ())
00:27:35 verbose #26708 > >
00:27:35 verbose #26709 > > inl string_initial_overtone n =
00:27:35 verbose #26710 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:27:35 verbose #26711 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:27:35 verbose #26712 > >     listm'.init_series 0.01 0.64 0.01
00:27:35 verbose #26713 > >     |> listm.map (fun x =>
00:27:35 verbose #26714 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:27:35 verbose #26715 > >         particle_state {
00:27:35 verbose #26716 > >             default_particle_state' with
00:27:35 verbose #26717 > >                 mass = ball_mass
00:27:35 verbose #26718 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:27:35 verbose #26719 > >                 velocity = zero_vec ()
00:27:35 verbose #26720 > >         }
00:27:35 verbose #26721 > >     )
00:27:35 verbose #26722 > >     |> stream.from_list
00:27:35 verbose #26723 > >     |> multi_particle_state
00:27:35 verbose #26724 > >
00:27:35 verbose #26725 > > let main () =
00:27:35 verbose #26726 > >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:27:35 verbose #26727 > >     inl ~initial_state = string_initial_overtone 3i32
00:27:35 verbose #26728 > >     inl frames =
00:27:35 verbose #26729 > >         frames
00:27:35 verbose #26730 > >         |> stream.map (fun n =>
00:27:35 verbose #26731 > >             inl (multi_particle_state sts) =
00:27:35 verbose #26732 > >                 stream.iterate (string_update 0.000025) initial_state |>
00:27:35 verbose #26733 > > stream.item n
00:27:35 verbose #26734 > >             inl x, y =
00:27:35 verbose #26735 > >                 [[ zero_vec () ]]
00:27:35 verbose #26736 > >                 ++ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:27:35 verbose #26737 > > stream.to_list)
00:27:35 verbose #26738 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:27:35 verbose #26739 > >                 |> listm.map (fun r => r.x, r.y)
00:27:35 verbose #26740 > >                 |> stream.from_list
00:27:35 verbose #26741 > >                 |> stream.unzip
00:27:35 verbose #26742 > >             inl x = x |> stream.to_list |> listm'.box |> listm'.to_array'
00:27:35 verbose #26743 > >             inl y = y |> stream.to_list |> listm'.box |> listm'.to_array'
00:27:35 verbose #26744 > >             x, y
00:27:35 verbose #26745 > >         )
00:27:35 verbose #26746 > >
00:27:35 verbose #26747 > >     inl plots =
00:27:35 verbose #26748 > >         frames
00:27:35 verbose #26749 > >         |> stream.indexed
00:27:35 verbose #26750 > >         |> stream.map (fun ((n : i32), (x, y)) =>
00:27:35 verbose #26751 > >             "wave",
00:27:35 verbose #26752 > >             "position (m)",
00:27:35 verbose #26753 > >             "displacement (m)",
00:27:35 verbose #26754 > >             ;[[
00:27:35 verbose #26755 > >                 ($'$"{!n}"' : string), x, y
00:27:35 verbose #26756 > >             ]]
00:27:35 verbose #26757 > >         )
00:27:35 verbose #26758 > >
00:27:35 verbose #26759 > >     plots |> stream.to_list |> listm'.box |> listm'.to_array'
00:27:43 verbose #26760 > >
00:27:43 verbose #26761 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:27:43 verbose #26762 > > ╭─[ 8.08s - diagnostics ]──────────────────────────────────────────────────────╮
00:27:43 verbose #26763 > > │ input.fsx (22,25)-(1084,1085) typecheck warning Incomplete pattern matches   │
00:27:43 verbose #26764 > > │ on this expression. For example, the value 'UH7_1 (_, _, _, _)' may indicate │
00:27:43 verbose #26765 > > │ a case not covered by the pattern(s).                                        │
00:27:43 verbose #26766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:44 verbose #26767 > >
00:27:44 verbose #26768 > > ╭─[ 8.39s - return value ]─────────────────────────────────────────────────────╮
00:27:44 verbose #26769 > > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:27:44 verbose #26770 > > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │
00:27:44 verbose #26771 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:27:44 verbose #26772 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:27:44 verbose #26773 > > │ stroke="none"/>                                                              │
00:27:44 verbose #26774 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:27:44 verbose #26775 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:44 verbose #26776 > > │ fill="#FFFFFF">                                                              │
00:27:44 verbose #26777 > > │ wave                                                                         │
00:27:44 verbose #26778 > > │ </text>                                                                      │
00:27:44 verbose #26779 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:27:44 verbose #26780 > > │ y2="75"/>                                                                    │
00:27:44 verbose #26781 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:27:44 verbose #26782 > > │ y2="75"/>                                                                    │
00:27:44 verbose #26783 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:27:44 verbose #26784 > > │ y2="75"/>                                                                    │
00:27:44 verbose #26785 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:27:44 verbose #26786 > > │ y2="75"/>                                                                    │
00:27:44 verbose #26787 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:27:44 verbose #26788 > > │ y2="75"/>                                                                    │
00:27:44 verbose #26789 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:27:44 verbose #26790 > > │ x2="100" y2="75"/>                                                           │
00:27:44 verbose #26791 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:27:44 verbose #26792 > > │ x2="108" y2="75"/>                                                           │
00:27:44 verbose #26793 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:27:44 verbose #26794 > > │ x2="116" y2="75"/>                                                           │
00:27:44 verbose #26795 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:27:44 verbose #26796 > > │ x2="123" y2="75"/>                                                           │
00:27:44 verbose #26797 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:27:44 verbose #26798 > > │ x2="131" y2="75"/>                                                           │
00:27:44 verbose #26799 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:27:44 verbose #26800 > > │ x2="139" y2="75"/>                                                           │
00:27:44 verbose #26801 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:27:44 verbose #26802 > > │ x2="146" y2="75"/>                                                           │
00:27:44 verbose #26803 > > │ <line opacity="1" stroke="#...28 590,128 "/>                                 │
00:27:44 verbose #26804 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:44 verbose #26805 > > │ points="69,363 77,322 85,283 92,246 100,211 107,179 115,151 122,127 130,108  │
00:27:44 verbose #26806 > > │ 138,95 145,87 153,85 160,89 168,99 175,114 183,134 190,159 198,188 205,220   │
00:27:44 verbose #26807 > > │ 212,253 218,284 223,311 226,329 227,337 226,337 224,333 223,334 223,344      │
00:27:44 verbose #26808 > > │ 224,357 225,367 224,370 223,374 224,383 224,393 224,397 224,400 224,406      │
00:27:44 verbose #26809 > > │ 224,411 224,412 224,413 224,415 224,413 224,411 224,409 224,405 224,400      │
00:27:44 verbose #26810 > > │ 224,395 224,388 224,382 224,375 224,367 224,360 224,353 224,346 224,339      │
00:27:44 verbose #26811 > > │ 224,332 224,327 224,322 224,318 224,314 224,312 224,311 539,239 546,279      │
00:27:44 verbose #26812 > > │ 569,403 561,363 "/>                                                          │
00:27:44 verbose #26813 > > │ <rect x="519" y="235" width="61" height="30" opacity="1" fill="none"         │
00:27:44 verbose #26814 > > │ stroke="#FFFFFF"/>                                                           │
00:27:44 verbose #26815 > > │ <text x="559" y="245" dy="0.76em" text-anchor="start"                        │
00:27:44 verbose #26816 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:27:44 verbose #26817 > > │ fill="#FFFFFF">                                                              │
00:27:44 verbose #26818 > > │ 65                                                                           │
00:27:44 verbose #26819 > > │ </text>                                                                      │
00:27:44 verbose #26820 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:27:44 verbose #26821 > > │ points="529,250 549,250 "/>                                                  │
00:27:44 verbose #26822 > > │ </svg>                                                                       │
00:27:44 verbose #26823 > > │ </td></tr></tbody></table><style>                                            │
00:27:44 verbose #26824 > > │ .dni-code-hint {                                                             │
00:27:44 verbose #26825 > > │     font-style: italic;                                                      │
00:27:44 verbose #26826 > > │     overflow: hidden;                                                        │
00:27:44 verbose #26827 > > │     white-space: nowrap;                                                     │
00:27:44 verbose #26828 > > │ }                                                                            │
00:27:44 verbose #26829 > > │ .dni-treeview {                                                              │
00:27:44 verbose #26830 > > │     white-space: nowrap;                                                     │
00:27:44 verbose #26831 > > │ }                                                                            │
00:27:44 verbose #26832 > > │ .dni-treeview td {                                                           │
00:27:44 verbose #26833 > > │     vertical-align: top;                                                     │
00:27:44 verbose #26834 > > │     text-align: start;                                                       │
00:27:44 verbose #26835 > > │ }                                                                            │
00:27:44 verbose #26836 > > │ details.dni-treeview {                                                       │
00:27:44 verbose #26837 > > │     padding-left: 1em;                                                       │
00:27:44 verbose #26838 > > │ }                                                                            │
00:27:44 verbose #26839 > > │ table td {                                                                   │
00:27:44 verbose #26840 > > │     text-align: start;                                                       │
00:27:44 verbose #26841 > > │ }                                                                            │
00:27:44 verbose #26842 > > │ table tr {                                                                   │
00:27:44 verbose #26843 > > │     vertical-align: top;                                                     │
00:27:44 verbose #26844 > > │     margin: 0em 0px;                                                         │
00:27:44 verbose #26845 > > │ }                                                                            │
00:27:44 verbose #26846 > > │ table tr td pre                                                              │
00:27:44 verbose #26847 > > │ {                                                                            │
00:27:44 verbose #26848 > > │     vertical-align: top !important;                                          │
00:27:44 verbose #26849 > > │     margin: 0em 0px !important;                                              │
00:27:44 verbose #26850 > > │ }                                                                            │
00:27:44 verbose #26851 > > │ table th {                                                                   │
00:27:44 verbose #26852 > > │     text-align: start;                                                       │
00:27:44 verbose #26853 > > │ }                                                                            │
00:27:44 verbose #26854 > > │ </style>                                                                     │
00:27:44 verbose #26855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:44 verbose #26856 > >
00:27:44 verbose #26857 > > ── markdown ────────────────────────────────────────────────────────────────────
00:27:44 verbose #26858 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:27:44 verbose #26859 > > │ ## end                                                                       │
00:27:44 verbose #26860 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:27:44 verbose #26861 > 00:01:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 157679 }
00:27:44 verbose #26862 > 00:01:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:27:44 verbose #26863 >     "nbconvert",
00:27:44 verbose #26864 >     "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb",
00:27:44 verbose #26865 >     "--to",
00:27:44 verbose #26866 >     "html",
00:27:44 verbose #26867 >     "--HTMLExporter.theme=dark",
00:27:44 verbose #26868 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:27:47 verbose #26869 > 00:01:25 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/physics.dib.ipynb to html
00:27:47 verbose #26870 > 00:01:25 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:27:47 verbose #26871 > 00:01:25 verbose #7 !   validate(nb)
00:27:56 verbose #26872 > 00:01:33 verbose #8 ! [NbConvertApp] Writing 2508212 bytes to c:\home\git\polyglot\lib\spiral\physics.dib.html
00:27:56 verbose #26873 > 00:01:34 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 646 }
00:27:56 verbose #26874 > 00:01:34   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 646 }
00:27:56 verbose #26875 > 00:01:34   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:27:56 verbose #26876 >     "-c",
00:27:56 verbose #26877 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:27:56 verbose #26878 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:27:57 verbose #26879 > 00:01:34 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:27:57 verbose #26880 > 00:01:34   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:27:57 verbose #26881 > 00:01:34   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 158384 }
00:27:57   debug #26882 runtime.execute_with_options_async / { exit_code = 0; output_length = 166909 }
00:27:57   debug #32 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3
00:27:57   debug #26883 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:27:57 verbose #26884 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "seq.dib", "--retries", "3"])) }
00:27:57 verbose #26885 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:27:57 verbose #26886 >     "repl",
00:27:57 verbose #26887 >     "--exit-after-run",
00:27:57 verbose #26888 >     "--run",
00:27:57 verbose #26889 >     "c:/home/git/polyglot/lib/spiral/seq.dib",
00:27:57 verbose #26890 >     "--output-path",
00:27:57 verbose #26891 >     "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb",
00:27:57 verbose #26892 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/seq.dib" --output-path "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:28:00 verbose #26893 > >
00:28:00 verbose #26894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:00 verbose #26895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:00 verbose #26896 > > │ # seq                                                                        │
00:28:00 verbose #26897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:04 verbose #26898 > >
00:28:04 verbose #26899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:04 verbose #26900 > > //// test
00:28:04 verbose #26901 > >
00:28:04 verbose #26902 > > open testing
00:28:06 verbose #26903 > >
00:28:06 verbose #26904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:06 verbose #26905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:06 verbose #26906 > > │ ## seq                                                                       │
00:28:06 verbose #26907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:06 verbose #26908 > >
00:28:06 verbose #26909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:06 verbose #26910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:06 verbose #26911 > > │ ### seq                                                                      │
00:28:06 verbose #26912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:06 verbose #26913 > >
00:28:06 verbose #26914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:06 verbose #26915 > > type seq dim el = dim -> option el
00:28:07 verbose #26916 > >
00:28:07 verbose #26917 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:07 verbose #26918 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:07 verbose #26919 > > │ ### try_item                                                                 │
00:28:07 verbose #26920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:07 verbose #26921 > >
00:28:07 verbose #26922 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:07 verbose #26923 > > inl try_item n s =
00:28:07 verbose #26924 > >     n |> s
00:28:07 verbose #26925 > >
00:28:07 verbose #26926 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:07 verbose #26927 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:07 verbose #26928 > > │ ### from_list                                                                │
00:28:07 verbose #26929 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:07 verbose #26930 > >
00:28:07 verbose #26931 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:07 verbose #26932 > > inl from_list list =
00:28:07 verbose #26933 > >     fun n =>
00:28:07 verbose #26934 > >         list
00:28:07 verbose #26935 > >         |> listm'.try_item n
00:28:07 verbose #26936 > >
00:28:07 verbose #26937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:07 verbose #26938 > > //// test
00:28:07 verbose #26939 > >
00:28:07 verbose #26940 > > listm.init 10i32 print_and_return
00:28:07 verbose #26941 > > |> from_list
00:28:07 verbose #26942 > > |> try_item 5i32
00:28:07 verbose #26943 > > |> _assert_eq (Some 5i32)
00:28:09 verbose #26944 > >
00:28:09 verbose #26945 > > ╭─[ 2.09s - stdout ]───────────────────────────────────────────────────────────╮
00:28:09 verbose #26946 > > │ print_and_return / x: 0                                                      │
00:28:09 verbose #26947 > > │ print_and_return / x: 1                                                      │
00:28:09 verbose #26948 > > │ print_and_return / x: 2                                                      │
00:28:09 verbose #26949 > > │ print_and_return / x: 3                                                      │
00:28:09 verbose #26950 > > │ print_and_return / x: 4                                                      │
00:28:09 verbose #26951 > > │ print_and_return / x: 5                                                      │
00:28:09 verbose #26952 > > │ print_and_return / x: 6                                                      │
00:28:09 verbose #26953 > > │ print_and_return / x: 7                                                      │
00:28:09 verbose #26954 > > │ print_and_return / x: 8                                                      │
00:28:09 verbose #26955 > > │ print_and_return / x: 9                                                      │
00:28:09 verbose #26956 > > │ __assert_eq / actual: US0_0 5 / expected: US0_0 5                            │
00:28:09 verbose #26957 > > │                                                                              │
00:28:09 verbose #26958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:09 verbose #26959 > >
00:28:09 verbose #26960 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:09 verbose #26961 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:09 verbose #26962 > > │ ### map                                                                      │
00:28:09 verbose #26963 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:09 verbose #26964 > >
00:28:09 verbose #26965 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:09 verbose #26966 > > inl map fn s =
00:28:09 verbose #26967 > >     fun n =>
00:28:09 verbose #26968 > >         n
00:28:09 verbose #26969 > >         |> s
00:28:09 verbose #26970 > >         |> optionm.map fn
00:28:10 verbose #26971 > >
00:28:10 verbose #26972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:10 verbose #26973 > > //// test
00:28:10 verbose #26974 > >
00:28:10 verbose #26975 > > listm.init 10i32 id
00:28:10 verbose #26976 > > |> from_list
00:28:10 verbose #26977 > > |> map ((*) 2)
00:28:10 verbose #26978 > > |> try_item 5i32
00:28:10 verbose #26979 > > |> _assert_eq (Some 10i32)
00:28:10 verbose #26980 > >
00:28:10 verbose #26981 > > ╭─[ 558.95ms - stdout ]────────────────────────────────────────────────────────╮
00:28:10 verbose #26982 > > │ __assert_eq / actual: US0_0 10 / expected: US0_0 10                          │
00:28:10 verbose #26983 > > │                                                                              │
00:28:10 verbose #26984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:10 verbose #26985 > >
00:28:10 verbose #26986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:10 verbose #26987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:10 verbose #26988 > > │ ### mapi                                                                     │
00:28:10 verbose #26989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:10 verbose #26990 > >
00:28:10 verbose #26991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:10 verbose #26992 > > inl mapi fn s =
00:28:10 verbose #26993 > >     fun n =>
00:28:10 verbose #26994 > >         n
00:28:10 verbose #26995 > >         |> s
00:28:10 verbose #26996 > >         |> optionm.map (fn n)
00:28:11 verbose #26997 > >
00:28:11 verbose #26998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:11 verbose #26999 > > //// test
00:28:11 verbose #27000 > >
00:28:11 verbose #27001 > > listm.init 10i32 print_and_return
00:28:11 verbose #27002 > > |> from_list
00:28:11 verbose #27003 > > |> mapi fun i x => i + x
00:28:11 verbose #27004 > > |> try_item 5i32
00:28:11 verbose #27005 > > |> _assert_eq (Some 10i32)
00:28:12 verbose #27006 > >
00:28:12 verbose #27007 > > ╭─[ 623.93ms - stdout ]────────────────────────────────────────────────────────╮
00:28:12 verbose #27008 > > │ print_and_return / x: 0                                                      │
00:28:12 verbose #27009 > > │ print_and_return / x: 1                                                      │
00:28:12 verbose #27010 > > │ print_and_return / x: 2                                                      │
00:28:12 verbose #27011 > > │ print_and_return / x: 3                                                      │
00:28:12 verbose #27012 > > │ print_and_return / x: 4                                                      │
00:28:12 verbose #27013 > > │ print_and_return / x: 5                                                      │
00:28:12 verbose #27014 > > │ print_and_return / x: 6                                                      │
00:28:12 verbose #27015 > > │ print_and_return / x: 7                                                      │
00:28:12 verbose #27016 > > │ print_and_return / x: 8                                                      │
00:28:12 verbose #27017 > > │ print_and_return / x: 9                                                      │
00:28:12 verbose #27018 > > │ __assert_eq / actual: US0_0 10 / expected: US0_0 10                          │
00:28:12 verbose #27019 > > │                                                                              │
00:28:12 verbose #27020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:12 verbose #27021 > >
00:28:12 verbose #27022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:12 verbose #27023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:12 verbose #27024 > > │ ### choose                                                                   │
00:28:12 verbose #27025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:12 verbose #27026 > >
00:28:12 verbose #27027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:12 verbose #27028 > > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:28:12 verbose #27029 > > dim u =
00:28:12 verbose #27030 > >     fun n =>
00:28:12 verbose #27031 > >         inl rec body fn s i i' =
00:28:12 verbose #27032 > >             match i |> s with
00:28:12 verbose #27033 > >             | None => None
00:28:12 verbose #27034 > >             | Some x =>
00:28:12 verbose #27035 > >                 match x |> fn with
00:28:12 verbose #27036 > >                 | Some x when n = i' => Some x
00:28:12 verbose #27037 > >                 | Some _ => loop (i + 1) (i' + 1)
00:28:12 verbose #27038 > >                 | _ => loop (i + 1) i'
00:28:12 verbose #27039 > >         and inl loop i i' =
00:28:12 verbose #27040 > >             if n |> var_is |> not
00:28:12 verbose #27041 > >             then body fn s i i'
00:28:12 verbose #27042 > >             else
00:28:12 verbose #27043 > >                 inl fn = join fn
00:28:12 verbose #27044 > >                 inl s = join s
00:28:12 verbose #27045 > >                 join body fn s i i'
00:28:12 verbose #27046 > >         loop 0 0
00:28:12 verbose #27047 > >
00:28:12 verbose #27048 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:12 verbose #27049 > > //// test
00:28:12 verbose #27050 > >
00:28:12 verbose #27051 > > listm.init 10i32 print_and_return
00:28:12 verbose #27052 > > |> from_list
00:28:12 verbose #27053 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:28:12 verbose #27054 > > |> try_item 1i32
00:28:12 verbose #27055 > > |> _assert_eq (Some 2i32)
00:28:12 verbose #27056 > >
00:28:12 verbose #27057 > > ╭─[ 472.55ms - stdout ]────────────────────────────────────────────────────────╮
00:28:12 verbose #27058 > > │ print_and_return / x: 0                                                      │
00:28:12 verbose #27059 > > │ print_and_return / x: 1                                                      │
00:28:12 verbose #27060 > > │ print_and_return / x: 2                                                      │
00:28:12 verbose #27061 > > │ print_and_return / x: 3                                                      │
00:28:12 verbose #27062 > > │ print_and_return / x: 4                                                      │
00:28:12 verbose #27063 > > │ print_and_return / x: 5                                                      │
00:28:12 verbose #27064 > > │ print_and_return / x: 6                                                      │
00:28:12 verbose #27065 > > │ print_and_return / x: 7                                                      │
00:28:12 verbose #27066 > > │ print_and_return / x: 8                                                      │
00:28:12 verbose #27067 > > │ print_and_return / x: 9                                                      │
00:28:12 verbose #27068 > > │ __assert_eq / actual: US0_0 2 / expected: US0_0 2                            │
00:28:12 verbose #27069 > > │                                                                              │
00:28:12 verbose #27070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:12 verbose #27071 > >
00:28:12 verbose #27072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:12 verbose #27073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:12 verbose #27074 > > │ ### indexed                                                                  │
00:28:12 verbose #27075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:12 verbose #27076 > >
00:28:12 verbose #27077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:12 verbose #27078 > > inl indexed s =
00:28:12 verbose #27079 > >     s
00:28:12 verbose #27080 > >     |> mapi fun i x =>
00:28:12 verbose #27081 > >         i, x
00:28:13 verbose #27082 > >
00:28:13 verbose #27083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:13 verbose #27084 > > //// test
00:28:13 verbose #27085 > >
00:28:13 verbose #27086 > > listm.init 10i32 ((*) 2)
00:28:13 verbose #27087 > > |> from_list
00:28:13 verbose #27088 > > |> indexed
00:28:13 verbose #27089 > > |> try_item 5i32
00:28:13 verbose #27090 > > |> _assert_eq (Some (5i32, 10i32))
00:28:13 verbose #27091 > >
00:28:13 verbose #27092 > > ╭─[ 571.63ms - stdout ]────────────────────────────────────────────────────────╮
00:28:13 verbose #27093 > > │ __assert_eq / actual: US0_0 (5, 10) / expected: US0_0 (5, 10)                │
00:28:13 verbose #27094 > > │                                                                              │
00:28:13 verbose #27095 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:13 verbose #27096 > >
00:28:13 verbose #27097 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:13 verbose #27098 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:13 verbose #27099 > > │ ### zip                                                                      │
00:28:13 verbose #27100 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:13 verbose #27101 > >
00:28:13 verbose #27102 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:13 verbose #27103 > > inl zip n seq1 seq2 =
00:28:13 verbose #27104 > >     seq1 n, seq2 n
00:28:14 verbose #27105 > >
00:28:14 verbose #27106 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:14 verbose #27107 > > //// test
00:28:14 verbose #27108 > >
00:28:14 verbose #27109 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:28:14 verbose #27110 > > ||> zip 5i32
00:28:14 verbose #27111 > > |> _assert_eq (Some 5, Some 10)
00:28:14 verbose #27112 > >
00:28:14 verbose #27113 > > ╭─[ 505.60ms - stdout ]────────────────────────────────────────────────────────╮
00:28:14 verbose #27114 > > │ __assert_eq / actual: struct (US0_0 5, US0_0 10) / expected: struct (US0_0   │
00:28:14 verbose #27115 > > │ 5, US0_0 10)                                                                 │
00:28:14 verbose #27116 > > │                                                                              │
00:28:14 verbose #27117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:14 verbose #27118 > >
00:28:14 verbose #27119 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:14 verbose #27120 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:14 verbose #27121 > > │ ### zip_with                                                                 │
00:28:14 verbose #27122 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:14 verbose #27123 > >
00:28:14 verbose #27124 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:14 verbose #27125 > > inl zip_with fn seq1 seq2 =
00:28:14 verbose #27126 > >     fun n =>
00:28:14 verbose #27127 > >         fn (seq1 n) (seq2 n)
00:28:15 verbose #27128 > >
00:28:15 verbose #27129 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:15 verbose #27130 > > //// test
00:28:15 verbose #27131 > >
00:28:15 verbose #27132 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:28:15 verbose #27133 > > ||> zip_with (optionm'.choose (+))
00:28:15 verbose #27134 > > |> try_item 2i32
00:28:15 verbose #27135 > > |> _assert_eq (Some 6)
00:28:15 verbose #27136 > >
00:28:15 verbose #27137 > > ╭─[ 504.31ms - stdout ]────────────────────────────────────────────────────────╮
00:28:15 verbose #27138 > > │ __assert_eq / actual: US0_0 6 / expected: US0_0 6                            │
00:28:15 verbose #27139 > > │                                                                              │
00:28:15 verbose #27140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:15 verbose #27141 > >
00:28:15 verbose #27142 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:15 verbose #27143 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:15 verbose #27144 > > │ ### fold                                                                     │
00:28:15 verbose #27145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:15 verbose #27146 > >
00:28:15 verbose #27147 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:15 verbose #27148 > > inl fold fn init seq =
00:28:15 verbose #27149 > >     inl rec loop acc n =
00:28:15 verbose #27150 > >         match seq n with
00:28:15 verbose #27151 > >         | Some x => loop (fn acc x) (n + 1)
00:28:15 verbose #27152 > >         | None => acc
00:28:15 verbose #27153 > >     loop init 0
00:28:15 verbose #27154 > >
00:28:15 verbose #27155 > > inl fold_ fn init seq =
00:28:15 verbose #27156 > >     let rec loop acc n =
00:28:15 verbose #27157 > >         match seq n with
00:28:15 verbose #27158 > >         | Some x => loop (fn acc x) (n + 1)
00:28:15 verbose #27159 > >         | None => acc
00:28:15 verbose #27160 > >     loop init 0
00:28:16 verbose #27161 > >
00:28:16 verbose #27162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:16 verbose #27163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:16 verbose #27164 > > │ ### sum                                                                      │
00:28:16 verbose #27165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:16 verbose #27166 > >
00:28:16 verbose #27167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:16 verbose #27168 > > inl sum seq =
00:28:16 verbose #27169 > >     seq |> fold (+) 0
00:28:16 verbose #27170 > >
00:28:16 verbose #27171 > > inl sum_ seq =
00:28:16 verbose #27172 > >     seq |> fold_ (+) 0
00:28:16 verbose #27173 > >
00:28:16 verbose #27174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:16 verbose #27175 > > //// test
00:28:16 verbose #27176 > >
00:28:16 verbose #27177 > > listm.init 10i32 id
00:28:16 verbose #27178 > > |> from_list
00:28:16 verbose #27179 > > |> fun f (n : i32) => f n
00:28:16 verbose #27180 > > |> sum
00:28:16 verbose #27181 > > |> _assert_eq 45
00:28:17 verbose #27182 > >
00:28:17 verbose #27183 > > ╭─[ 417.47ms - stdout ]────────────────────────────────────────────────────────╮
00:28:17 verbose #27184 > > │ __assert_eq / actual: 45 / expected: 45                                      │
00:28:17 verbose #27185 > > │                                                                              │
00:28:17 verbose #27186 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:17 verbose #27187 > >
00:28:17 verbose #27188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:17 verbose #27189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:17 verbose #27190 > > │ ### to_list                                                                  │
00:28:17 verbose #27191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:17 verbose #27192 > >
00:28:17 verbose #27193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:17 verbose #27194 > > inl to_list seq =
00:28:17 verbose #27195 > >     seq
00:28:17 verbose #27196 > >     |> fold (fun acc x => x :: acc) [[]]
00:28:17 verbose #27197 > >     |> listm.rev
00:28:17 verbose #27198 > >
00:28:17 verbose #27199 > > inl to_list_ seq =
00:28:17 verbose #27200 > >     seq
00:28:17 verbose #27201 > >     |> fold_ (fun acc x => x :: acc) [[]]
00:28:17 verbose #27202 > >     |> listm.rev
00:28:17 verbose #27203 > >
00:28:17 verbose #27204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:17 verbose #27205 > > //// test
00:28:17 verbose #27206 > >
00:28:17 verbose #27207 > > listm.init 10i32 id
00:28:17 verbose #27208 > > |> from_list
00:28:17 verbose #27209 > > |> fun f (n : i32) => f n
00:28:17 verbose #27210 > > |> to_list
00:28:17 verbose #27211 > > |> _assert_eq (listm.init 10i32 id)
00:28:18 verbose #27212 > >
00:28:18 verbose #27213 > > ╭─[ 547.26ms - stdout ]────────────────────────────────────────────────────────╮
00:28:18 verbose #27214 > > │ __assert_eq / actual: UH0_1                                                  │
00:28:18 verbose #27215 > > │   (0,                                                                        │
00:28:18 verbose #27216 > > │    UH0_1                                                                     │
00:28:18 verbose #27217 > > │      (1,                                                                     │
00:28:18 verbose #27218 > > │       UH0_1                                                                  │
00:28:18 verbose #27219 > > │         (2,                                                                  │
00:28:18 verbose #27220 > > │          UH0_1                                                               │
00:28:18 verbose #27221 > > │            (3,                                                               │
00:28:18 verbose #27222 > > │             UH0_1                                                            │
00:28:18 verbose #27223 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:28:18 verbose #27224 > > │ UH0_0)))))))))) / expected: UH0_1                                            │
00:28:18 verbose #27225 > > │   (0,                                                                        │
00:28:18 verbose #27226 > > │    UH0_1                                                                     │
00:28:18 verbose #27227 > > │      (1,                                                                     │
00:28:18 verbose #27228 > > │       UH0_1                                                                  │
00:28:18 verbose #27229 > > │         (2,                                                                  │
00:28:18 verbose #27230 > > │          UH0_1                                                               │
00:28:18 verbose #27231 > > │            (3,                                                               │
00:28:18 verbose #27232 > > │             UH0_1                                                            │
00:28:18 verbose #27233 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:28:18 verbose #27234 > > │ UH0_0))))))))))                                                              │
00:28:18 verbose #27235 > > │                                                                              │
00:28:18 verbose #27236 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:18 verbose #27237 > >
00:28:18 verbose #27238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:18 verbose #27239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:18 verbose #27240 > > │ ### from_array                                                               │
00:28:18 verbose #27241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:18 verbose #27242 > >
00:28:18 verbose #27243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:18 verbose #27244 > > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:28:18 verbose #27245 > >     fun n =>
00:28:18 verbose #27246 > >         if n >= length array
00:28:18 verbose #27247 > >         then None
00:28:18 verbose #27248 > >         else index array n |> Some
00:28:18 verbose #27249 > >
00:28:18 verbose #27250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:18 verbose #27251 > > //// test
00:28:18 verbose #27252 > >
00:28:18 verbose #27253 > > a ;[[ 1; 2; 3 ]]
00:28:18 verbose #27254 > > |> from_array
00:28:18 verbose #27255 > > |> try_item 1i32
00:28:18 verbose #27256 > > |> _assert_eq (Some 2i32)
00:28:19 verbose #27257 > >
00:28:19 verbose #27258 > > ╭─[ 832.71ms - stdout ]────────────────────────────────────────────────────────╮
00:28:19 verbose #27259 > > │ __assert_eq / actual: US0_0 2 / expected: US0_0 2                            │
00:28:19 verbose #27260 > > │                                                                              │
00:28:19 verbose #27261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:19 verbose #27262 > >
00:28:19 verbose #27263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:19 verbose #27264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:19 verbose #27265 > > │ ### to_array                                                                 │
00:28:19 verbose #27266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:19 verbose #27267 > >
00:28:19 verbose #27268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:19 verbose #27269 > > inl to_array seq =
00:28:19 verbose #27270 > >     inl ar = a ;[[]] |> mut
00:28:19 verbose #27271 > >     ((), seq)
00:28:19 verbose #27272 > >     ||> fold fun _ x =>
00:28:19 verbose #27273 > >         ar <- *ar ++ a ;[[x]]
00:28:19 verbose #27274 > >     *ar
00:28:19 verbose #27275 > >
00:28:19 verbose #27276 > > inl to_array_ seq =
00:28:19 verbose #27277 > >     inl ar = a ;[[]] |> mut
00:28:19 verbose #27278 > >     ((), seq)
00:28:19 verbose #27279 > >     ||> fold_ fun _ x =>
00:28:19 verbose #27280 > >         ar <- *ar ++ a ;[[x]]
00:28:19 verbose #27281 > >     *ar
00:28:19 verbose #27282 > >
00:28:19 verbose #27283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:19 verbose #27284 > > //// test
00:28:19 verbose #27285 > >
00:28:19 verbose #27286 > > listm.init 10i32 id
00:28:19 verbose #27287 > > |> from_list
00:28:19 verbose #27288 > > |> fun (x : i32 -> _) => x
00:28:19 verbose #27289 > > |> to_array
00:28:19 verbose #27290 > > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:28:20 verbose #27291 > >
00:28:20 verbose #27292 > > ╭─[ 1.05s - stdout ]───────────────────────────────────────────────────────────╮
00:28:20 verbose #27293 > > │ __assert_eq / actual: [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] / expected: [|0; 1;   │
00:28:20 verbose #27294 > > │ 2; 3; 4; 5; 6; 7; 8; 9|]                                                     │
00:28:20 verbose #27295 > > │                                                                              │
00:28:20 verbose #27296 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:20 verbose #27297 > >
00:28:20 verbose #27298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:20 verbose #27299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:20 verbose #27300 > > │ ### take_while                                                               │
00:28:20 verbose #27301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:20 verbose #27302 > >
00:28:20 verbose #27303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:20 verbose #27304 > > inl take_while cond seq =
00:28:20 verbose #27305 > >     inl rec loop acc i =
00:28:20 verbose #27306 > >         match seq i with
00:28:20 verbose #27307 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:28:20 verbose #27308 > >         | _ => acc |> listm.rev
00:28:20 verbose #27309 > >     loop [[]] 0
00:28:21 verbose #27310 > >
00:28:21 verbose #27311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:21 verbose #27312 > > //// test
00:28:21 verbose #27313 > >
00:28:21 verbose #27314 > > listm.init 10i32 id
00:28:21 verbose #27315 > > |> from_list
00:28:21 verbose #27316 > > |> take_while (fun n (_ : i32) => n < 5)
00:28:21 verbose #27317 > > |> listm'.sum
00:28:21 verbose #27318 > > |> _assert_eq 10
00:28:21 verbose #27319 > >
00:28:21 verbose #27320 > > ╭─[ 450.99ms - stdout ]────────────────────────────────────────────────────────╮
00:28:21 verbose #27321 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:21 verbose #27322 > > │                                                                              │
00:28:21 verbose #27323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:21 verbose #27324 > >
00:28:21 verbose #27325 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:21 verbose #27326 > > //// test
00:28:21 verbose #27327 > >
00:28:21 verbose #27328 > > stream.new_finite_stream print_and_return 10i32
00:28:21 verbose #27329 > > |> flip stream.try_item
00:28:21 verbose #27330 > > |> take_while (fun n (_ : i32) => n < 5)
00:28:21 verbose #27331 > > |> listm'.sum
00:28:21 verbose #27332 > > |> _assert_eq 10
00:28:22 verbose #27333 > >
00:28:22 verbose #27334 > > ╭─[ 554.09ms - stdout ]────────────────────────────────────────────────────────╮
00:28:22 verbose #27335 > > │ print_and_return / x: 0                                                      │
00:28:22 verbose #27336 > > │ print_and_return / x: 1                                                      │
00:28:22 verbose #27337 > > │ print_and_return / x: 1                                                      │
00:28:22 verbose #27338 > > │ print_and_return / x: 2                                                      │
00:28:22 verbose #27339 > > │ print_and_return / x: 1                                                      │
00:28:22 verbose #27340 > > │ print_and_return / x: 2                                                      │
00:28:22 verbose #27341 > > │ print_and_return / x: 3                                                      │
00:28:22 verbose #27342 > > │ print_and_return / x: 1                                                      │
00:28:22 verbose #27343 > > │ print_and_return / x: 2                                                      │
00:28:22 verbose #27344 > > │ print_and_return / x: 3                                                      │
00:28:22 verbose #27345 > > │ print_and_return / x: 4                                                      │
00:28:22 verbose #27346 > > │ print_and_return / x: 1                                                      │
00:28:22 verbose #27347 > > │ print_and_return / x: 2                                                      │
00:28:22 verbose #27348 > > │ print_and_return / x: 3                                                      │
00:28:22 verbose #27349 > > │ print_and_return / x: 4                                                      │
00:28:22 verbose #27350 > > │ print_and_return / x: 5                                                      │
00:28:22 verbose #27351 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:22 verbose #27352 > > │                                                                              │
00:28:22 verbose #27353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:22 verbose #27354 > >
00:28:22 verbose #27355 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:22 verbose #27356 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:22 verbose #27357 > > │ ### take_while_                                                              │
00:28:22 verbose #27358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:22 verbose #27359 > >
00:28:22 verbose #27360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:22 verbose #27361 > > inl take_while_ cond seq =
00:28:22 verbose #27362 > >     let rec loop acc i =
00:28:22 verbose #27363 > >         match seq i with
00:28:22 verbose #27364 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:28:22 verbose #27365 > >         | _ => acc |> listm.rev
00:28:22 verbose #27366 > >     loop [[]] 0
00:28:22 verbose #27367 > >
00:28:22 verbose #27368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:22 verbose #27369 > > //// test
00:28:22 verbose #27370 > >
00:28:22 verbose #27371 > > stream.new_infinite_stream_ print_and_return
00:28:22 verbose #27372 > > |> flip stream.try_item
00:28:22 verbose #27373 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:28:22 verbose #27374 > > |> listm'.sum
00:28:22 verbose #27375 > > |> _assert_eq 10
00:28:23 verbose #27376 > >
00:28:23 verbose #27377 > > ╭─[ 708.68ms - stdout ]────────────────────────────────────────────────────────╮
00:28:23 verbose #27378 > > │ print_and_return / x: 0                                                      │
00:28:23 verbose #27379 > > │ print_and_return / x: 1                                                      │
00:28:23 verbose #27380 > > │ print_and_return / x: 1                                                      │
00:28:23 verbose #27381 > > │ print_and_return / x: 2                                                      │
00:28:23 verbose #27382 > > │ print_and_return / x: 1                                                      │
00:28:23 verbose #27383 > > │ print_and_return / x: 2                                                      │
00:28:23 verbose #27384 > > │ print_and_return / x: 3                                                      │
00:28:23 verbose #27385 > > │ print_and_return / x: 1                                                      │
00:28:23 verbose #27386 > > │ print_and_return / x: 2                                                      │
00:28:23 verbose #27387 > > │ print_and_return / x: 3                                                      │
00:28:23 verbose #27388 > > │ print_and_return / x: 4                                                      │
00:28:23 verbose #27389 > > │ print_and_return / x: 1                                                      │
00:28:23 verbose #27390 > > │ print_and_return / x: 2                                                      │
00:28:23 verbose #27391 > > │ print_and_return / x: 3                                                      │
00:28:23 verbose #27392 > > │ print_and_return / x: 4                                                      │
00:28:23 verbose #27393 > > │ print_and_return / x: 5                                                      │
00:28:23 verbose #27394 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:23 verbose #27395 > > │                                                                              │
00:28:23 verbose #27396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:23 verbose #27397 > >
00:28:23 verbose #27398 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:23 verbose #27399 > > //// test
00:28:23 verbose #27400 > >
00:28:23 verbose #27401 > > stream.new_infinite_stream_ print_and_return
00:28:23 verbose #27402 > > |> stream.memoize
00:28:23 verbose #27403 > > |> fun list =>
00:28:23 verbose #27404 > >     inl list = list ()
00:28:23 verbose #27405 > >     fun n =>
00:28:23 verbose #27406 > >         list |> stream.try_item n
00:28:23 verbose #27407 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:28:23 verbose #27408 > > |> listm'.sum
00:28:23 verbose #27409 > > |> _assert_eq 10
00:28:24 verbose #27410 > >
00:28:24 verbose #27411 > > ╭─[ 669.52ms - stdout ]────────────────────────────────────────────────────────╮
00:28:24 verbose #27412 > > │ print_and_return / x: 0                                                      │
00:28:24 verbose #27413 > > │ print_and_return / x: 1                                                      │
00:28:24 verbose #27414 > > │ print_and_return / x: 2                                                      │
00:28:24 verbose #27415 > > │ print_and_return / x: 3                                                      │
00:28:24 verbose #27416 > > │ print_and_return / x: 4                                                      │
00:28:24 verbose #27417 > > │ print_and_return / x: 5                                                      │
00:28:24 verbose #27418 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:24 verbose #27419 > > │                                                                              │
00:28:24 verbose #27420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:24 verbose #27421 > >
00:28:24 verbose #27422 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:24 verbose #27423 > > //// test
00:28:24 verbose #27424 > >
00:28:24 verbose #27425 > > stream.new_finite_stream print_and_return 10i32
00:28:24 verbose #27426 > > |> stream.memoize
00:28:24 verbose #27427 > > |> fun list =>
00:28:24 verbose #27428 > >     inl list = list ()
00:28:24 verbose #27429 > >     fun n =>
00:28:24 verbose #27430 > >         list |> stream.try_item n
00:28:24 verbose #27431 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:28:24 verbose #27432 > > |> listm'.sum
00:28:24 verbose #27433 > > |> _assert_eq 10
00:28:24 verbose #27434 > >
00:28:24 verbose #27435 > > ╭─[ 746.69ms - stdout ]────────────────────────────────────────────────────────╮
00:28:24 verbose #27436 > > │ print_and_return / x: 0                                                      │
00:28:24 verbose #27437 > > │ print_and_return / x: 1                                                      │
00:28:24 verbose #27438 > > │ print_and_return / x: 2                                                      │
00:28:24 verbose #27439 > > │ print_and_return / x: 3                                                      │
00:28:24 verbose #27440 > > │ print_and_return / x: 4                                                      │
00:28:24 verbose #27441 > > │ print_and_return / x: 5                                                      │
00:28:24 verbose #27442 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:24 verbose #27443 > > │                                                                              │
00:28:24 verbose #27444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:24 verbose #27445 > >
00:28:24 verbose #27446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:24 verbose #27447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:24 verbose #27448 > > │ ### memoize                                                                  │
00:28:24 verbose #27449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:24 verbose #27450 > >
00:28:24 verbose #27451 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:24 verbose #27452 > > inl memoize seq =
00:28:24 verbose #27453 > >     inl state = mut [[]]
00:28:24 verbose #27454 > >     fun n =>
00:28:24 verbose #27455 > >         match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:28:24 verbose #27456 > >         | Some (_, v) => v
00:28:24 verbose #27457 > >         | None =>
00:28:24 verbose #27458 > >             inl new_state = seq n
00:28:24 verbose #27459 > >             state <- (n, new_state) :: *state
00:28:24 verbose #27460 > >             new_state
00:28:24 verbose #27461 > >
00:28:24 verbose #27462 > > inl memoize_ seq =
00:28:24 verbose #27463 > >     inl state = mut [[]]
00:28:24 verbose #27464 > >     fun n =>
00:28:24 verbose #27465 > >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:28:24 verbose #27466 > >         | Some (_, v) => v
00:28:24 verbose #27467 > >         | None =>
00:28:24 verbose #27468 > >             inl new_state = seq n
00:28:24 verbose #27469 > >             state <- (n, new_state) :: *state
00:28:24 verbose #27470 > >             new_state
00:28:25 verbose #27471 > >
00:28:25 verbose #27472 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:25 verbose #27473 > > //// test
00:28:25 verbose #27474 > >
00:28:25 verbose #27475 > > inl seq =
00:28:25 verbose #27476 > >     fun n =>
00:28:25 verbose #27477 > >         n |> print_and_return |> Some
00:28:25 verbose #27478 > >     |> memoize_
00:28:25 verbose #27479 > >
00:28:25 verbose #27480 > > seq
00:28:25 verbose #27481 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:28:25 verbose #27482 > > |> listm'.sum
00:28:25 verbose #27483 > > |> _assert_eq 10
00:28:25 verbose #27484 > >
00:28:25 verbose #27485 > > seq
00:28:25 verbose #27486 > > |> take_while_ (fun n _ => n < 5)
00:28:25 verbose #27487 > > |> listm'.sum
00:28:25 verbose #27488 > > |> _assert_eq 10
00:28:26 verbose #27489 > >
00:28:26 verbose #27490 > > ╭─[ 696.87ms - stdout ]────────────────────────────────────────────────────────╮
00:28:26 verbose #27491 > > │ print_and_return / x: 0                                                      │
00:28:26 verbose #27492 > > │ print_and_return / x: 1                                                      │
00:28:26 verbose #27493 > > │ print_and_return / x: 2                                                      │
00:28:26 verbose #27494 > > │ print_and_return / x: 3                                                      │
00:28:26 verbose #27495 > > │ print_and_return / x: 4                                                      │
00:28:26 verbose #27496 > > │ print_and_return / x: 5                                                      │
00:28:26 verbose #27497 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:26 verbose #27498 > > │ __assert_eq / actual: 10 / expected: 10                                      │
00:28:26 verbose #27499 > > │                                                                              │
00:28:26 verbose #27500 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:26 verbose #27501 > >
00:28:26 verbose #27502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:26 verbose #27503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:26 verbose #27504 > > │ ### iterate                                                                  │
00:28:26 verbose #27505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:26 verbose #27506 > >
00:28:26 verbose #27507 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:26 verbose #27508 > > inl iterate f x0 num_steps =
00:28:26 verbose #27509 > >     inl rec loop x n =
00:28:26 verbose #27510 > >         if n <= 0
00:28:26 verbose #27511 > >         then x
00:28:26 verbose #27512 > >         else loop (f x) (n - 1)
00:28:26 verbose #27513 > >     loop x0 num_steps
00:28:26 verbose #27514 > >
00:28:26 verbose #27515 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:26 verbose #27516 > > //// test
00:28:26 verbose #27517 > >
00:28:26 verbose #27518 > > 10i32 |> iterate ((*) 2) 1i32
00:28:26 verbose #27519 > > |> _assert_eq 1024
00:28:27 verbose #27520 > >
00:28:27 verbose #27521 > > ╭─[ 451.13ms - stdout ]────────────────────────────────────────────────────────╮
00:28:27 verbose #27522 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:28:27 verbose #27523 > > │                                                                              │
00:28:27 verbose #27524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:27 verbose #27525 > >
00:28:27 verbose #27526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:27 verbose #27527 > > inl iterate_ f x0 num_steps =
00:28:27 verbose #27528 > >     let rec loop x n =
00:28:27 verbose #27529 > >         if n <= 0
00:28:27 verbose #27530 > >         then x
00:28:27 verbose #27531 > >         else loop (f x) (n - 1)
00:28:27 verbose #27532 > >     loop x0 num_steps
00:28:27 verbose #27533 > >
00:28:27 verbose #27534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:27 verbose #27535 > > //// test
00:28:27 verbose #27536 > >
00:28:27 verbose #27537 > > 10i32 |> iterate_ ((*) 2) 1i32
00:28:27 verbose #27538 > > |> _assert_eq 1024
00:28:28 verbose #27539 > >
00:28:28 verbose #27540 > > ╭─[ 493.97ms - stdout ]────────────────────────────────────────────────────────╮
00:28:28 verbose #27541 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:28:28 verbose #27542 > > │                                                                              │
00:28:28 verbose #27543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:28 verbose #27544 > >
00:28:28 verbose #27545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:28 verbose #27546 > > inl iterate' f x0 num_steps =
00:28:28 verbose #27547 > >     listm.init num_steps id
00:28:28 verbose #27548 > >     |> listm.fold (fun x _ => f x) x0
00:28:28 verbose #27549 > >
00:28:28 verbose #27550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:28 verbose #27551 > > //// test
00:28:28 verbose #27552 > >
00:28:28 verbose #27553 > > 10i32 |> iterate' ((*) 2) 1i32
00:28:28 verbose #27554 > > |> _assert_eq 1024
00:28:28 verbose #27555 > >
00:28:28 verbose #27556 > > ╭─[ 486.26ms - stdout ]────────────────────────────────────────────────────────╮
00:28:28 verbose #27557 > > │ __assert_eq / actual: 1024 / expected: 1024                                  │
00:28:28 verbose #27558 > > │                                                                              │
00:28:28 verbose #27559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:28 verbose #27560 > >
00:28:28 verbose #27561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:28 verbose #27562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:28 verbose #27563 > > │ ### find_last                                                                │
00:28:28 verbose #27564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:28 verbose #27565 > >
00:28:28 verbose #27566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:28 verbose #27567 > > inl find_last forall item result. fold_fn fn target : option result =
00:28:28 verbose #27568 > >     fold_fn (fun (item : item) (result : option result) =>
00:28:28 verbose #27569 > >         match result with
00:28:28 verbose #27570 > >         | None => fn item
00:28:28 verbose #27571 > >         | result => result
00:28:28 verbose #27572 > >     ) target (None : option result)
00:28:28 verbose #27573 > >
00:28:28 verbose #27574 > > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:28:28 verbose #27575 > > i32 item) : option result =
00:28:28 verbose #27576 > >     find_last am.foldBack fn target
00:28:28 verbose #27577 > >
00:28:28 verbose #27578 > > inl list_find_last forall item result. (fn : item -> option result) (target :
00:28:28 verbose #27579 > > list item) : option result =
00:28:28 verbose #27580 > >     find_last listm.foldBack fn target
00:28:29 verbose #27581 > >
00:28:29 verbose #27582 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:29 verbose #27583 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:29 verbose #27584 > > │ ## fsharp                                                                    │
00:28:29 verbose #27585 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:29 verbose #27586 > >
00:28:29 verbose #27587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:29 verbose #27588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:29 verbose #27589 > > │ ### seq'                                                                     │
00:28:29 verbose #27590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:29 verbose #27591 > >
00:28:29 verbose #27592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:29 verbose #27593 > > nominal seq' t = $"backend_switch `({ Fsharp : $"`t seq"; Python : t })"
00:28:29 verbose #27594 > >
00:28:29 verbose #27595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:29 verbose #27596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:29 verbose #27597 > > │ ### of_array'                                                                │
00:28:29 verbose #27598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:29 verbose #27599 > >
00:28:29 verbose #27600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:29 verbose #27601 > > inl of_array' forall dim t. (items : a dim t) : seq' t =
00:28:29 verbose #27602 > >     backend_switch {
00:28:29 verbose #27603 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:28:29 verbose #27604 > > !items.[[i]] }' : seq' t
00:28:29 verbose #27605 > >         Python = fun () => $'!items ' : seq' t
00:28:29 verbose #27606 > >     }
00:28:30 verbose #27607 > >
00:28:30 verbose #27608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:30 verbose #27609 > > //// test
00:28:30 verbose #27610 > >
00:28:30 verbose #27611 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:28:30 verbose #27612 > > |> of_array'
00:28:31 verbose #27613 > >
00:28:31 verbose #27614 > > ╭─[ 816.19ms - return value ]──────────────────────────────────────────────────╮
00:28:31 verbose #27615 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:28:31 verbose #27616 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:28:31 verbose #27617 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:28:31 verbose #27618 > > │ CheckClose</td><td><div                                                      │
00:28:31 verbose #27619 > > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │
00:28:31 verbose #27620 > > │ /td><td><div                                                                 │
00:28:31 verbose #27621 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>v2</td> │
00:28:31 verbose #27622 > > │ <td><div class="dni-plaintext"><pre>[ a, b                                   │
00:28:31 verbose #27623 > > │ ]</pre></div></td></tr><tr><td>enum</td><td><div                             │
00:28:31 verbose #27624 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>pc</td> │
00:28:31 verbose #27625 > > │ <td><div                                                                     │
00:28:31 verbose #27626 > > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │
00:28:31 verbose #27627 > > │ iv                                                                           │
00:28:31 verbose #27628 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td><i>(val │
00:28:31 verbose #27629 > > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b                      │
00:28:31 verbose #27630 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:28:31 verbose #27631 > > │ .dni-code-hint {                                                             │
00:28:31 verbose #27632 > > │     font-style: italic;                                                      │
00:28:31 verbose #27633 > > │     overflow: hidden;                                                        │
00:28:31 verbose #27634 > > │     white-space: nowrap;                                                     │
00:28:31 verbose #27635 > > │ }                                                                            │
00:28:31 verbose #27636 > > │ .dni-treeview {                                                              │
00:28:31 verbose #27637 > > │     white-space: nowrap;                                                     │
00:28:31 verbose #27638 > > │ }                                                                            │
00:28:31 verbose #27639 > > │ .dni-treeview td {                                                           │
00:28:31 verbose #27640 > > │     vertical-align: top;                                                     │
00:28:31 verbose #27641 > > │     text-align: start;                                                       │
00:28:31 verbose #27642 > > │ }                                                                            │
00:28:31 verbose #27643 > > │ details.dni-treeview {                                                       │
00:28:31 verbose #27644 > > │     padding-left: 1em;                                                       │
00:28:31 verbose #27645 > > │ }                                                                            │
00:28:31 verbose #27646 > > │ table td {                                                                   │
00:28:31 verbose #27647 > > │     text-align: start;                                                       │
00:28:31 verbose #27648 > > │ }                                                                            │
00:28:31 verbose #27649 > > │ table tr {                                                                   │
00:28:31 verbose #27650 > > │     vertical-align: top;                                                     │
00:28:31 verbose #27651 > > │     margin: 0em 0px;                                                         │
00:28:31 verbose #27652 > > │ }                                                                            │
00:28:31 verbose #27653 > > │ table tr td pre                                                              │
00:28:31 verbose #27654 > > │ {                                                                            │
00:28:31 verbose #27655 > > │     vertical-align: top !important;                                          │
00:28:31 verbose #27656 > > │     margin: 0em 0px !important;                                              │
00:28:31 verbose #27657 > > │ }                                                                            │
00:28:31 verbose #27658 > > │ table th {                                                                   │
00:28:31 verbose #27659 > > │     text-align: start;                                                       │
00:28:31 verbose #27660 > > │ }                                                                            │
00:28:31 verbose #27661 > > │ </style>                                                                     │
00:28:31 verbose #27662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:31 verbose #27663 > >
00:28:31 verbose #27664 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:31 verbose #27665 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:31 verbose #27666 > > │ ### of_array                                                                 │
00:28:31 verbose #27667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:31 verbose #27668 > >
00:28:31 verbose #27669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:31 verbose #27670 > > inl of_array forall dim t. (items : a dim t) : seq' t =
00:28:31 verbose #27671 > >     backend_switch {
00:28:31 verbose #27672 > >         Fsharp = fun () => $'!items |> Seq.ofArray' : seq' t
00:28:31 verbose #27673 > >         Python = fun () => $'!items ' : seq' t
00:28:31 verbose #27674 > >     }
00:28:31 verbose #27675 > >
00:28:31 verbose #27676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:31 verbose #27677 > > //// test
00:28:31 verbose #27678 > >
00:28:31 verbose #27679 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:28:31 verbose #27680 > > |> of_array
00:28:32 verbose #27681 > >
00:28:32 verbose #27682 > > ╭─[ 501.15ms - return value ]──────────────────────────────────────────────────╮
00:28:32 verbose #27683 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:28:32 verbose #27684 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:28:32 verbose #27685 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:28:32 verbose #27686 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:28:32 verbose #27687 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:28:32 verbose #27688 > > │ 010[                                                                         │
00:28:32 verbose #27689 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:28:32 verbose #27690 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:28:32 verbose #27691 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:28:32 verbose #27692 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:28:32 verbose #27693 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:28:32 verbose #27694 > > │ .dni-code-hint {                                                             │
00:28:32 verbose #27695 > > │     font-style: italic;                                                      │
00:28:32 verbose #27696 > > │     overflow: hidden;                                                        │
00:28:32 verbose #27697 > > │     white-space: nowrap;                                                     │
00:28:32 verbose #27698 > > │ }                                                                            │
00:28:32 verbose #27699 > > │ .dni-treeview {                                                              │
00:28:32 verbose #27700 > > │     white-space: nowrap;                                                     │
00:28:32 verbose #27701 > > │ }                                                                            │
00:28:32 verbose #27702 > > │ .dni-treeview td {                                                           │
00:28:32 verbose #27703 > > │     vertical-align: top;                                                     │
00:28:32 verbose #27704 > > │     text-align: start;                                                       │
00:28:32 verbose #27705 > > │ }                                                                            │
00:28:32 verbose #27706 > > │ details.dni-treeview {                                                       │
00:28:32 verbose #27707 > > │     padding-left: 1em;                                                       │
00:28:32 verbose #27708 > > │ }                                                                            │
00:28:32 verbose #27709 > > │ table td {                                                                   │
00:28:32 verbose #27710 > > │     text-align: start;                                                       │
00:28:32 verbose #27711 > > │ }                                                                            │
00:28:32 verbose #27712 > > │ table tr {                                                                   │
00:28:32 verbose #27713 > > │     vertical-align: top;                                                     │
00:28:32 verbose #27714 > > │     margin: 0em 0px;                                                         │
00:28:32 verbose #27715 > > │ }                                                                            │
00:28:32 verbose #27716 > > │ table tr td pre                                                              │
00:28:32 verbose #27717 > > │ {                                                                            │
00:28:32 verbose #27718 > > │     vertical-align: top !important;                                          │
00:28:32 verbose #27719 > > │     margin: 0em 0px !important;                                              │
00:28:32 verbose #27720 > > │ }                                                                            │
00:28:32 verbose #27721 > > │ table th {                                                                   │
00:28:32 verbose #27722 > > │     text-align: start;                                                       │
00:28:32 verbose #27723 > > │ }                                                                            │
00:28:32 verbose #27724 > > │ </style>                                                                     │
00:28:32 verbose #27725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 verbose #27726 > >
00:28:32 verbose #27727 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:32 verbose #27728 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:32 verbose #27729 > > │ ### of_array_base                                                            │
00:28:32 verbose #27730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:32 verbose #27731 > >
00:28:32 verbose #27732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:32 verbose #27733 > > inl of_array_base forall t. (items : array_base t) : seq' t =
00:28:32 verbose #27734 > >     a items
00:28:32 verbose #27735 > >     |> fun x => x : _ int _
00:28:32 verbose #27736 > >     |> of_array
00:28:32 verbose #27737 > >
00:28:32 verbose #27738 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:32 verbose #27739 > > //// test
00:28:32 verbose #27740 > >
00:28:32 verbose #27741 > > ;[[ "a"; "b" ]]
00:28:32 verbose #27742 > > |> of_array_base
00:28:33 verbose #27743 > >
00:28:33 verbose #27744 > > ╭─[ 466.75ms - return value ]──────────────────────────────────────────────────╮
00:28:33 verbose #27745 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:28:33 verbose #27746 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:28:33 verbose #27747 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:28:33 verbose #27748 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:28:33 verbose #27749 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:28:33 verbose #27750 > > │ 010[                                                                         │
00:28:33 verbose #27751 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:28:33 verbose #27752 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:28:33 verbose #27753 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:28:33 verbose #27754 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:28:33 verbose #27755 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:28:33 verbose #27756 > > │ .dni-code-hint {                                                             │
00:28:33 verbose #27757 > > │     font-style: italic;                                                      │
00:28:33 verbose #27758 > > │     overflow: hidden;                                                        │
00:28:33 verbose #27759 > > │     white-space: nowrap;                                                     │
00:28:33 verbose #27760 > > │ }                                                                            │
00:28:33 verbose #27761 > > │ .dni-treeview {                                                              │
00:28:33 verbose #27762 > > │     white-space: nowrap;                                                     │
00:28:33 verbose #27763 > > │ }                                                                            │
00:28:33 verbose #27764 > > │ .dni-treeview td {                                                           │
00:28:33 verbose #27765 > > │     vertical-align: top;                                                     │
00:28:33 verbose #27766 > > │     text-align: start;                                                       │
00:28:33 verbose #27767 > > │ }                                                                            │
00:28:33 verbose #27768 > > │ details.dni-treeview {                                                       │
00:28:33 verbose #27769 > > │     padding-left: 1em;                                                       │
00:28:33 verbose #27770 > > │ }                                                                            │
00:28:33 verbose #27771 > > │ table td {                                                                   │
00:28:33 verbose #27772 > > │     text-align: start;                                                       │
00:28:33 verbose #27773 > > │ }                                                                            │
00:28:33 verbose #27774 > > │ table tr {                                                                   │
00:28:33 verbose #27775 > > │     vertical-align: top;                                                     │
00:28:33 verbose #27776 > > │     margin: 0em 0px;                                                         │
00:28:33 verbose #27777 > > │ }                                                                            │
00:28:33 verbose #27778 > > │ table tr td pre                                                              │
00:28:33 verbose #27779 > > │ {                                                                            │
00:28:33 verbose #27780 > > │     vertical-align: top !important;                                          │
00:28:33 verbose #27781 > > │     margin: 0em 0px !important;                                              │
00:28:33 verbose #27782 > > │ }                                                                            │
00:28:33 verbose #27783 > > │ table th {                                                                   │
00:28:33 verbose #27784 > > │     text-align: start;                                                       │
00:28:33 verbose #27785 > > │ }                                                                            │
00:28:33 verbose #27786 > > │ </style>                                                                     │
00:28:33 verbose #27787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:33 verbose #27788 > >
00:28:33 verbose #27789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:33 verbose #27790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:33 verbose #27791 > > │ ### to_array'                                                                │
00:28:33 verbose #27792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:33 verbose #27793 > >
00:28:33 verbose #27794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:33 verbose #27795 > > inl to_array' forall dim t. (items : seq' t) : a dim t =
00:28:33 verbose #27796 > >     backend_switch {
00:28:33 verbose #27797 > >         Fsharp = fun () => items |> $'Seq.toArray' : a dim t
00:28:33 verbose #27798 > >         Python = fun () => $'!items ' : a dim t
00:28:33 verbose #27799 > >     }
00:28:33 verbose #27800 > >
00:28:33 verbose #27801 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:33 verbose #27802 > > //// test
00:28:33 verbose #27803 > >
00:28:33 verbose #27804 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:28:33 verbose #27805 > > |> of_array'
00:28:33 verbose #27806 > > |> to_array'
00:28:33 verbose #27807 > > |> _assert_eq' (a ;[[ "a"; "b" ]] : _ i32 _)
00:28:34 verbose #27808 > >
00:28:34 verbose #27809 > > ╭─[ 493.83ms - stdout ]────────────────────────────────────────────────────────╮
00:28:34 verbose #27810 > > │ __assert_eq' / actual: [|"a"; "b"|] / expected: [|"a"; "b"|]                 │
00:28:34 verbose #27811 > > │                                                                              │
00:28:34 verbose #27812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 verbose #27813 > >
00:28:34 verbose #27814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:34 verbose #27815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:34 verbose #27816 > > │ ### of_list'                                                                 │
00:28:34 verbose #27817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 verbose #27818 > >
00:28:34 verbose #27819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 verbose #27820 > > inl of_list' forall t. (items : listm'.list' t) : seq' t =
00:28:34 verbose #27821 > >     backend_switch {
00:28:34 verbose #27822 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:28:34 verbose #27823 > > !items.[[i]] }' : seq' t
00:28:34 verbose #27824 > >         Python = fun () => $'!items ' : seq' t
00:28:34 verbose #27825 > >     }
00:28:34 verbose #27826 > >
00:28:34 verbose #27827 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:34 verbose #27828 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:34 verbose #27829 > > │ ### to_list'                                                                 │
00:28:34 verbose #27830 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:34 verbose #27831 > >
00:28:34 verbose #27832 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 verbose #27833 > > inl to_list' forall t. (items : seq' t) : listm'.list' t =
00:28:34 verbose #27834 > >     backend_switch {
00:28:34 verbose #27835 > >         Fsharp = fun () => items |> $'Seq.toList' : listm'.list' t
00:28:34 verbose #27836 > >         Python = fun () => $'!items ' : listm'.list' t
00:28:34 verbose #27837 > >     }
00:28:34 verbose #27838 > >
00:28:34 verbose #27839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:34 verbose #27840 > > //// test
00:28:34 verbose #27841 > >
00:28:34 verbose #27842 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:28:34 verbose #27843 > > |> of_array
00:28:34 verbose #27844 > > |> to_list'
00:28:34 verbose #27845 > > |> listm'.unbox
00:28:34 verbose #27846 > > |> _assert_eq ([[ "a"; "b" ]])
00:28:35 verbose #27847 > >
00:28:35 verbose #27848 > > ╭─[ 496.53ms - stdout ]────────────────────────────────────────────────────────╮
00:28:35 verbose #27849 > > │ __assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_0)) / expected: UH0_1      │
00:28:35 verbose #27850 > > │ ("a", UH0_1 ("b", UH0_0))                                                    │
00:28:35 verbose #27851 > > │                                                                              │
00:28:35 verbose #27852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 verbose #27853 > >
00:28:35 verbose #27854 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:35 verbose #27855 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:35 verbose #27856 > > │ ### rev'                                                                     │
00:28:35 verbose #27857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 verbose #27858 > >
00:28:35 verbose #27859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:35 verbose #27860 > > inl rev'' forall t u. (items : t) : seq' u =
00:28:35 verbose #27861 > >     backend_switch {
00:28:35 verbose #27862 > >         Fsharp = fun () => items |> $'Seq.rev' : seq' u
00:28:35 verbose #27863 > >         Python = fun () => $'reversed(!items)' : seq' u
00:28:35 verbose #27864 > >     }
00:28:35 verbose #27865 > >
00:28:35 verbose #27866 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:35 verbose #27867 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:35 verbose #27868 > > │ ## rust                                                                      │
00:28:35 verbose #27869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 verbose #27870 > >
00:28:35 verbose #27871 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:35 verbose #27872 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:35 verbose #27873 > > │ ### fuse                                                                     │
00:28:35 verbose #27874 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:35 verbose #27875 > >
00:28:35 verbose #27876 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:35 verbose #27877 > > nominal fuse t =
00:28:35 verbose #27878 > >     `(
00:28:35 verbose #27879 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:35 verbose #27880 > > Fable.Core.Emit(\"core::iter::Fuse<$0>\")>]]\n#endif\ntype core_iter_Fuse<'T> =
00:28:35 verbose #27881 > > class end"
00:28:35 verbose #27882 > >         $'' : $'core_iter_Fuse<`t>'
00:28:35 verbose #27883 > >     )
00:28:36 verbose #27884 > 00:00:39 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 50263 }
00:28:36 verbose #27885 > 00:00:39   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:28:36 verbose #27886 >     "nbconvert",
00:28:36 verbose #27887 >     "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb",
00:28:36 verbose #27888 >     "--to",
00:28:36 verbose #27889 >     "html",
00:28:36 verbose #27890 >     "--HTMLExporter.theme=dark",
00:28:36 verbose #27891 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:39 verbose #27892 > 00:00:42 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/seq.dib.ipynb to html
00:28:39 verbose #27893 > 00:00:42 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:28:39 verbose #27894 > 00:00:42 verbose #7 !   validate(nb)
00:28:42 verbose #27895 > 00:00:45 verbose #8 ! [NbConvertApp] Writing 385656 bytes to c:\home\git\polyglot\lib\spiral\seq.dib.html
00:28:42 verbose #27896 > 00:00:45 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:28:42 verbose #27897 > 00:00:45   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:28:42 verbose #27898 > 00:00:45   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:28:42 verbose #27899 >     "-c",
00:28:42 verbose #27900 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:28:42 verbose #27901 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:43 verbose #27902 > 00:00:45 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:28:43 verbose #27903 > 00:00:45   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:28:43 verbose #27904 > 00:00:45   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 50959 }
00:28:43   debug #27905 runtime.execute_with_options_async / { exit_code = 0; output_length = 55592 }
00:28:43   debug #33 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3
00:28:43   debug #27906 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:43 verbose #27907 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "env.dib", "--retries", "3"])) }
00:28:43 verbose #27908 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:28:43 verbose #27909 >     "repl",
00:28:43 verbose #27910 >     "--exit-after-run",
00:28:43 verbose #27911 >     "--run",
00:28:43 verbose #27912 >     "c:/home/git/polyglot/lib/spiral/env.dib",
00:28:43 verbose #27913 >     "--output-path",
00:28:43 verbose #27914 >     "c:/home/git/polyglot/lib/spiral/env.dib.ipynb",
00:28:43 verbose #27915 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/env.dib" --output-path "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:28:45 verbose #27916 > >
00:28:45 verbose #27917 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:45 verbose #27918 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:45 verbose #27919 > > │ # env                                                                        │
00:28:45 verbose #27920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:45 verbose #27921 > >
00:28:45 verbose #27922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:45 verbose #27923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:45 verbose #27924 > > │ ## rust                                                                      │
00:28:45 verbose #27925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:45 verbose #27926 > >
00:28:45 verbose #27927 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:45 verbose #27928 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:45 verbose #27929 > > │ ### var_error                                                                │
00:28:45 verbose #27930 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:51 verbose #27931 > >
00:28:51 verbose #27932 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:51 verbose #27933 > > nominal var_error =
00:28:51 verbose #27934 > >     `(
00:28:51 verbose #27935 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:28:51 verbose #27936 > > Fable.Core.Emit(\"std::env::VarError\")>]]\n#endif\ntype std_env_VarError =
00:28:51 verbose #27937 > > class end"
00:28:51 verbose #27938 > >         $'' : $'std_env_VarError'
00:28:51 verbose #27939 > >     )
00:28:52 verbose #27940 > >
00:28:52 verbose #27941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:52 verbose #27942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:52 verbose #27943 > > │ ### get_environment_variable_comptime                                        │
00:28:52 verbose #27944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:52 verbose #27945 > >
00:28:52 verbose #27946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:52 verbose #27947 > > inl get_environment_variable_comptime (var : string) : string =
00:28:52 verbose #27948 > >     run_target_args (fun () => var) function
00:28:52 verbose #27949 > >         | Rust _ => fun var =>
00:28:52 verbose #27950 > >             open rust.rust_operators
00:28:52 verbose #27951 > >             !\($'"env\!(\\\"" + !var + "\\\")"')
00:28:52 verbose #27952 > >             |> sm'.ref_to_std_string
00:28:52 verbose #27953 > >             |> sm'.from_std_string
00:28:52 verbose #27954 > >         | target => fun _ => null ()
00:28:53 verbose #27955 > >
00:28:53 verbose #27956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:53 verbose #27957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:53 verbose #27958 > > │ ## python                                                                    │
00:28:53 verbose #27959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:53 verbose #27960 > >
00:28:53 verbose #27961 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:53 verbose #27962 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:53 verbose #27963 > > │ ### os_environ                                                               │
00:28:53 verbose #27964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:53 verbose #27965 > >
00:28:53 verbose #27966 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:53 verbose #27967 > > nominal os_environ = any
00:28:53 verbose #27968 > >
00:28:53 verbose #27969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:53 verbose #27970 > > inl os_environ () : os_environ =
00:28:53 verbose #27971 > >     backend_switch {
00:28:53 verbose #27972 > >         Fsharp = fun () =>
00:28:53 verbose #27973 > >             open python_operators
00:28:53 verbose #27974 > >             global "type IOsEnviron = abstract environ: x: unit -> obj"
00:28:53 verbose #27975 > >             inl os : $'IOsEnviron' = python.import_all "os"
00:28:53 verbose #27976 > >             !\($'"!os.environ"') : os_environ
00:28:53 verbose #27977 > >         Python = fun () =>
00:28:53 verbose #27978 > >             global "import os"
00:28:53 verbose #27979 > >             $'os.environ' : os_environ
00:28:53 verbose #27980 > >     }
00:28:54 verbose #27981 > >
00:28:54 verbose #27982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:54 verbose #27983 > > inl environ_get (key : string) (os_environ : os_environ) : string =
00:28:54 verbose #27984 > >     backend_switch {
00:28:54 verbose #27985 > >         Fsharp = fun () =>
00:28:54 verbose #27986 > >             open python_operators
00:28:54 verbose #27987 > >             !\\(key, $'"!os_environ.get($0)"') : string
00:28:54 verbose #27988 > >         Python = fun () =>
00:28:54 verbose #27989 > >             $'!os_environ.get(!key)' : string
00:28:54 verbose #27990 > >     }
00:28:54 verbose #27991 > >
00:28:54 verbose #27992 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:54 verbose #27993 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:54 verbose #27994 > > │ ## env                                                                       │
00:28:54 verbose #27995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:54 verbose #27996 > >
00:28:54 verbose #27997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:54 verbose #27998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:54 verbose #27999 > > │ ### get_environment_variable                                                 │
00:28:54 verbose #28000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:54 verbose #28001 > >
00:28:54 verbose #28002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:54 verbose #28003 > > let get_environment_variable (var : string) : string =
00:28:54 verbose #28004 > >     run_target function
00:28:54 verbose #28005 > >         | Rust _ => fun () =>
00:28:54 verbose #28006 > >             open rust.rust_operators
00:28:54 verbose #28007 > >             !\\(var, $'"std::env::var(&*$0)"')
00:28:54 verbose #28008 > >             |> fun x => x : resultm.result' sm'.std_string var_error
00:28:54 verbose #28009 > >             |> resultm.map' sm'.from_std_string
00:28:54 verbose #28010 > >             |> resultm.unwrap_or' (join "")
00:28:54 verbose #28011 > >         | Fsharp _ => fun () =>
00:28:54 verbose #28012 > >             var
00:28:54 verbose #28013 > >             |> $'System.Environment.GetEnvironmentVariable'
00:28:54 verbose #28014 > >             |> optionm'.of_obj
00:28:54 verbose #28015 > >             |> optionm'.unbox
00:28:54 verbose #28016 > >             |> optionm'.default_value ""
00:28:54 verbose #28017 > >         | TypeScript _ => fun () =>
00:28:54 verbose #28018 > >             open typescript_operators
00:28:54 verbose #28019 > >             !\\(var, $'"process.env[[$0]] ?? \\\"\\\""')
00:28:54 verbose #28020 > >         | Python _ | Cuda _ => fun () =>
00:28:54 verbose #28021 > >             os_environ ()
00:28:54 verbose #28022 > >             |> environ_get var
00:28:54 verbose #28023 > >             |> optionm'.of_obj
00:28:54 verbose #28024 > >             |> optionm'.unbox
00:28:54 verbose #28025 > >             |> optionm'.default_value ""
00:28:54 verbose #28026 > >         | target => fun () => failwith $'$"env.get_environment_variable
00:28:54 verbose #28027 > > target: {!target} / var: {!var}"'
00:28:55 verbose #28028 > >
00:28:55 verbose #28029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:55 verbose #28030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:55 verbose #28031 > > │ ### get_entry_assembly_name                                                  │
00:28:55 verbose #28032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:55 verbose #28033 > >
00:28:55 verbose #28034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:55 verbose #28035 > > let get_entry_assembly_name () : string =
00:28:55 verbose #28036 > >     run_target function
00:28:55 verbose #28037 > >         | Rust _ => fun () =>
00:28:55 verbose #28038 > >             (join "CARGO_PKG_NAME") |> get_environment_variable
00:28:55 verbose #28039 > >         | Fsharp _ => fun () =>
00:28:55 verbose #28040 > >             $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name'
00:28:55 verbose #28041 > >         | target => fun () => failwith $'$"env.get_entry_assembly_name / target:
00:28:55 verbose #28042 > > {!target}"'
00:28:55 verbose #28043 > >
00:28:55 verbose #28044 > > ── markdown ────────────────────────────────────────────────────────────────────
00:28:55 verbose #28045 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:28:55 verbose #28046 > > │ ### append_path                                                              │
00:28:55 verbose #28047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:28:55 verbose #28048 > >
00:28:55 verbose #28049 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:28:55 verbose #28050 > > inl append_path (path : string) : option string =
00:28:55 verbose #28051 > >     inl env_path = "PATH" |> get_environment_variable
00:28:55 verbose #28052 > >     if env_path = ""
00:28:55 verbose #28053 > >     then None
00:28:55 verbose #28054 > >     else
00:28:55 verbose #28055 > >         inl env_sep =
00:28:55 verbose #28056 > >             if platform.is_windows ()
00:28:55 verbose #28057 > >             then ";"
00:28:55 verbose #28058 > >             else ":"
00:28:55 verbose #28059 > >         Some $'$"{!path}{!env_sep}{!env_path}"'
00:28:56 verbose #28060 > 00:00:13 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6822 }
00:28:56 verbose #28061 > 00:00:13   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:28:56 verbose #28062 >     "nbconvert",
00:28:56 verbose #28063 >     "c:/home/git/polyglot/lib/spiral/env.dib.ipynb",
00:28:56 verbose #28064 >     "--to",
00:28:56 verbose #28065 >     "html",
00:28:56 verbose #28066 >     "--HTMLExporter.theme=dark",
00:28:56 verbose #28067 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/env.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:28:59 verbose #28068 > 00:00:16 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/env.dib.ipynb to html
00:28:59 verbose #28069 > 00:00:16 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:28:59 verbose #28070 > 00:00:16 verbose #7 !   validate(nb)
00:29:01 verbose #28071 > 00:00:18 verbose #8 ! [NbConvertApp] Writing 290902 bytes to c:\home\git\polyglot\lib\spiral\env.dib.html
00:29:01 verbose #28072 > 00:00:18 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:29:01 verbose #28073 > 00:00:18   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:29:01 verbose #28074 > 00:00:18   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:29:01 verbose #28075 >     "-c",
00:29:01 verbose #28076 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:29:01 verbose #28077 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:02 verbose #28078 > 00:00:19 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:29:02 verbose #28079 > 00:00:19   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:29:02 verbose #28080 > 00:00:19   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 7518 }
00:29:02   debug #28081 runtime.execute_with_options_async / { exit_code = 0; output_length = 10455 }
00:29:02   debug #34 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3
00:29:02   debug #28082 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:02 verbose #28083 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "python.dib", "--retries", "3"])) }
00:29:02 verbose #28084 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:29:02 verbose #28085 >     "repl",
00:29:02 verbose #28086 >     "--exit-after-run",
00:29:02 verbose #28087 >     "--run",
00:29:02 verbose #28088 >     "c:/home/git/polyglot/lib/spiral/python.dib",
00:29:02 verbose #28089 >     "--output-path",
00:29:02 verbose #28090 >     "c:/home/git/polyglot/lib/spiral/python.dib.ipynb",
00:29:02 verbose #28091 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/python.dib" --output-path "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:29:05 verbose #28092 > >
00:29:05 verbose #28093 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:05 verbose #28094 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:05 verbose #28095 > > │ # python                                                                     │
00:29:05 verbose #28096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:05 verbose #28097 > >
00:29:05 verbose #28098 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:05 verbose #28099 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:05 verbose #28100 > > │ ### emit_expr                                                                │
00:29:05 verbose #28101 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:10 verbose #28102 > >
00:29:10 verbose #28103 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:10 verbose #28104 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:29:10 verbose #28105 > >     real
00:29:10 verbose #28106 > >         $'Fable.Core.PyInterop.emitPyExpr !args !code ' : t
00:29:12 verbose #28107 > >
00:29:12 verbose #28108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:12 verbose #28109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:12 verbose #28110 > > │ ###                                                                          │
00:29:12 verbose #28111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:12 verbose #28112 > >
00:29:12 verbose #28113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:12 verbose #28114 > > inl (~!\) forall t. (code : string) : t =
00:29:12 verbose #28115 > >     emit_expr () code
00:29:12 verbose #28116 > >
00:29:12 verbose #28117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:12 verbose #28118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:12 verbose #28119 > > │ ###                                                                          │
00:29:12 verbose #28120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:12 verbose #28121 > >
00:29:12 verbose #28122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:12 verbose #28123 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:29:12 verbose #28124 > >     emit_expr args code
00:29:12 verbose #28125 > >
00:29:12 verbose #28126 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:12 verbose #28127 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:12 verbose #28128 > > │ ###                                                                          │
00:29:12 verbose #28129 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:12 verbose #28130 > >
00:29:12 verbose #28131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:12 verbose #28132 > > inl import_all forall t. (file : string) : t =
00:29:12 verbose #28133 > >     real
00:29:12 verbose #28134 > >         $'Fable.Core.PyInterop.importAll !file ' : t
00:29:13 verbose #28135 > >
00:29:13 verbose #28136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:13 verbose #28137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:13 verbose #28138 > > │ ###                                                                          │
00:29:13 verbose #28139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:13 verbose #28140 > >
00:29:13 verbose #28141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:13 verbose #28142 > > inl import forall t. (name : string) (file : string) : t =
00:29:13 verbose #28143 > >     real
00:29:13 verbose #28144 > >         $'Fable.Core.PyInterop.import !name !file ' : t
00:29:13 verbose #28145 > 00:00:11 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:29:13 verbose #28146 > 00:00:11   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:29:13 verbose #28147 >     "nbconvert",
00:29:13 verbose #28148 >     "c:/home/git/polyglot/lib/spiral/python.dib.ipynb",
00:29:13 verbose #28149 >     "--to",
00:29:13 verbose #28150 >     "html",
00:29:13 verbose #28151 >     "--HTMLExporter.theme=dark",
00:29:13 verbose #28152 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/python.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:16 verbose #28153 > 00:00:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/python.dib.ipynb to html
00:29:16 verbose #28154 > 00:00:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:29:16 verbose #28155 > 00:00:14 verbose #7 !   validate(nb)
00:29:18 verbose #28156 > 00:00:16 verbose #8 ! [NbConvertApp] Writing 278637 bytes to c:\home\git\polyglot\lib\spiral\python.dib.html
00:29:18 verbose #28157 > 00:00:16 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:29:18 verbose #28158 > 00:00:16   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:29:18 verbose #28159 > 00:00:16   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:29:18 verbose #28160 >     "-c",
00:29:18 verbose #28161 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:29:18 verbose #28162 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:19 verbose #28163 > 00:00:16 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:29:19 verbose #28164 > 00:00:16   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:29:19 verbose #28165 > 00:00:16   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3569 }
00:29:19   debug #28166 runtime.execute_with_options_async / { exit_code = 0; output_length = 6351 }
00:29:19   debug #35 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3
00:29:19   debug #28167 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:19 verbose #28168 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "typescript.dib", "--retries", "3"])) }
00:29:19 verbose #28169 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:29:19 verbose #28170 >     "repl",
00:29:19 verbose #28171 >     "--exit-after-run",
00:29:19 verbose #28172 >     "--run",
00:29:19 verbose #28173 >     "c:/home/git/polyglot/lib/spiral/typescript.dib",
00:29:19 verbose #28174 >     "--output-path",
00:29:19 verbose #28175 >     "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb",
00:29:19 verbose #28176 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/typescript.dib" --output-path "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:29:22 verbose #28177 > >
00:29:22 verbose #28178 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:22 verbose #28179 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:22 verbose #28180 > > │ # typescript                                                                 │
00:29:22 verbose #28181 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:22 verbose #28182 > >
00:29:22 verbose #28183 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:22 verbose #28184 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:22 verbose #28185 > > │ ### emit_expr                                                                │
00:29:22 verbose #28186 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:27 verbose #28187 > >
00:29:27 verbose #28188 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:27 verbose #28189 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:29:27 verbose #28190 > >     real
00:29:27 verbose #28191 > >         $'Fable.Core.JsInterop.emitJsExpr !args !code ' : t
00:29:29 verbose #28192 > >
00:29:29 verbose #28193 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:29 verbose #28194 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:29 verbose #28195 > > │ ###                                                                          │
00:29:29 verbose #28196 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:29 verbose #28197 > >
00:29:29 verbose #28198 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:29 verbose #28199 > > inl (~!\) forall t. (code : string) : t =
00:29:29 verbose #28200 > >     emit_expr () code
00:29:29 verbose #28201 > >
00:29:29 verbose #28202 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:29 verbose #28203 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:29 verbose #28204 > > │ ###                                                                          │
00:29:29 verbose #28205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:29 verbose #28206 > >
00:29:29 verbose #28207 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:29 verbose #28208 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:29:29 verbose #28209 > >     emit_expr args code
00:29:30 verbose #28210 > >
00:29:30 verbose #28211 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:30 verbose #28212 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:30 verbose #28213 > > │ ###                                                                          │
00:29:30 verbose #28214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:30 verbose #28215 > >
00:29:30 verbose #28216 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:30 verbose #28217 > > inl import_all forall t. (file : string) : t =
00:29:30 verbose #28218 > >     real
00:29:30 verbose #28219 > >         $'Fable.Core.JsInterop.importAll !file ' : t
00:29:30 verbose #28220 > >
00:29:30 verbose #28221 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:30 verbose #28222 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:30 verbose #28223 > > │ ###                                                                          │
00:29:30 verbose #28224 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:30 verbose #28225 > >
00:29:30 verbose #28226 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:30 verbose #28227 > > inl import forall t. (name : string) (file : string) : t =
00:29:30 verbose #28228 > >     real
00:29:30 verbose #28229 > >         $'Fable.Core.JsInterop.import !name !file ' : t
00:29:31 verbose #28230 > 00:00:11 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:29:31 verbose #28231 > 00:00:11   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:29:31 verbose #28232 >     "nbconvert",
00:29:31 verbose #28233 >     "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb",
00:29:31 verbose #28234 >     "--to",
00:29:31 verbose #28235 >     "html",
00:29:31 verbose #28236 >     "--HTMLExporter.theme=dark",
00:29:31 verbose #28237 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:34 verbose #28238 > 00:00:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb to html
00:29:34 verbose #28239 > 00:00:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:29:34 verbose #28240 > 00:00:14 verbose #7 !   validate(nb)
00:29:35 verbose #28241 > 00:00:16 verbose #8 ! [NbConvertApp] Writing 278653 bytes to c:\home\git\polyglot\lib\spiral\typescript.dib.html
00:29:36 verbose #28242 > 00:00:16 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:29:36 verbose #28243 > 00:00:16   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:29:36 verbose #28244 > 00:00:16   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:29:36 verbose #28245 >     "-c",
00:29:36 verbose #28246 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:29:36 verbose #28247 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:36 verbose #28248 > 00:00:17 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:29:36 verbose #28249 > 00:00:17   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:29:36 verbose #28250 > 00:00:17   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3577 }
00:29:36   debug #28251 runtime.execute_with_options_async / { exit_code = 0; output_length = 6395 }
00:29:36   debug #36 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3
00:29:36   debug #28252 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:29:36 verbose #28253 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "file_system.dib", "--retries", "3"])) }
00:29:36 verbose #28254 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:29:36 verbose #28255 >     "repl",
00:29:36 verbose #28256 >     "--exit-after-run",
00:29:36 verbose #28257 >     "--run",
00:29:36 verbose #28258 >     "c:/home/git/polyglot/lib/spiral/file_system.dib",
00:29:36 verbose #28259 >     "--output-path",
00:29:36 verbose #28260 >     "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb",
00:29:36 verbose #28261 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/file_system.dib" --output-path "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:29:39 verbose #28262 > >
00:29:39 verbose #28263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:39 verbose #28264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:39 verbose #28265 > > │ # file_system                                                                │
00:29:39 verbose #28266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:44 verbose #28267 > >
00:29:44 verbose #28268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:44 verbose #28269 > > open sm'_operators
00:29:44 verbose #28270 > > open rust
00:29:44 verbose #28271 > > open rust_operators
00:29:45 verbose #28272 > >
00:29:45 verbose #28273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:45 verbose #28274 > > //// test
00:29:45 verbose #28275 > >
00:29:45 verbose #28276 > > open testing
00:29:46 verbose #28277 > >
00:29:46 verbose #28278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:46 verbose #28279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:46 verbose #28280 > > │ ## fsharp                                                                    │
00:29:46 verbose #28281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:46 verbose #28282 > >
00:29:46 verbose #28283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:46 verbose #28284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:46 verbose #28285 > > │ ### file_mode                                                                │
00:29:46 verbose #28286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:46 verbose #28287 > >
00:29:46 verbose #28288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:46 verbose #28289 > > nominal file_mode' = $'System.IO.FileMode'
00:29:46 verbose #28290 > >
00:29:46 verbose #28291 > > union file_mode =
00:29:46 verbose #28292 > >     | ModeCreateNew
00:29:46 verbose #28293 > >     | ModeCreate
00:29:46 verbose #28294 > >     | ModeOpen
00:29:46 verbose #28295 > >     | ModeOpenOrCreate
00:29:46 verbose #28296 > >     | Truncate
00:29:46 verbose #28297 > >     | Append
00:29:46 verbose #28298 > >
00:29:46 verbose #28299 > > inl file_mode = function
00:29:46 verbose #28300 > >     | ModeCreateNew => $'System.IO.FileMode.CreateNew' : file_mode'
00:29:46 verbose #28301 > >     | ModeCreate => $'System.IO.FileMode.Create' : file_mode'
00:29:46 verbose #28302 > >     | ModeOpen => $'System.IO.FileMode.Open' : file_mode'
00:29:46 verbose #28303 > >     | ModeOpenOrCreate => $'System.IO.FileMode.OpenOrCreate' : file_mode'
00:29:46 verbose #28304 > >     | Truncate => $'System.IO.FileMode.Truncate' : file_mode'
00:29:46 verbose #28305 > >     | Append => $'System.IO.FileMode.Append' : file_mode'
00:29:46 verbose #28306 > >
00:29:46 verbose #28307 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:46 verbose #28308 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:46 verbose #28309 > > │ ### file_access                                                              │
00:29:46 verbose #28310 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:46 verbose #28311 > >
00:29:46 verbose #28312 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:46 verbose #28313 > > nominal file_access' = $'System.IO.FileAccess'
00:29:46 verbose #28314 > >
00:29:46 verbose #28315 > > union file_access =
00:29:46 verbose #28316 > >     | AccessRead
00:29:46 verbose #28317 > >     | AccessWrite
00:29:46 verbose #28318 > >     | AccessReadWrite
00:29:46 verbose #28319 > >
00:29:46 verbose #28320 > > inl file_access = function
00:29:46 verbose #28321 > >     | AccessRead => $'System.IO.FileAccess.Read' : file_access'
00:29:46 verbose #28322 > >     | AccessWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:29:46 verbose #28323 > >     | AccessReadWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:29:47 verbose #28324 > >
00:29:47 verbose #28325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:47 verbose #28326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:47 verbose #28327 > > │ ### file_share                                                               │
00:29:47 verbose #28328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:47 verbose #28329 > >
00:29:47 verbose #28330 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:47 verbose #28331 > > nominal file_share' = $'System.IO.FileShare'
00:29:47 verbose #28332 > >
00:29:47 verbose #28333 > > union file_share =
00:29:47 verbose #28334 > >     | ShareNone
00:29:47 verbose #28335 > >     | ShareRead
00:29:47 verbose #28336 > >     | ShareWrite
00:29:47 verbose #28337 > >     | ShareReadWrite
00:29:47 verbose #28338 > >     | ShareDelete
00:29:47 verbose #28339 > >
00:29:47 verbose #28340 > > inl file_share = function
00:29:47 verbose #28341 > >     | ShareNone => $'System.IO.FileShare.None' : file_share'
00:29:47 verbose #28342 > >     | ShareRead => $'System.IO.FileShare.Read' : file_share'
00:29:47 verbose #28343 > >     | ShareWrite => $'System.IO.FileShare.Write' : file_share'
00:29:47 verbose #28344 > >     | ShareReadWrite => $'System.IO.FileShare.ReadWrite' : file_share'
00:29:47 verbose #28345 > >     | ShareDelete => $'System.IO.FileShare.Delete' : file_share'
00:29:47 verbose #28346 > >
00:29:47 verbose #28347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:47 verbose #28348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:47 verbose #28349 > > │ ### file_stream                                                              │
00:29:47 verbose #28350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:47 verbose #28351 > >
00:29:47 verbose #28352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:47 verbose #28353 > > nominal file_stream' = $'System.IO.FileStream'
00:29:47 verbose #28354 > >
00:29:47 verbose #28355 > > inl file_stream (path : string) mode access share : file_stream' =
00:29:47 verbose #28356 > >     run_target function
00:29:47 verbose #28357 > >         | Fsharp (Native) => fun () =>
00:29:47 verbose #28358 > >             inl mode = mode |> file_mode
00:29:47 verbose #28359 > >             inl access = access |> file_access
00:29:47 verbose #28360 > >             inl share = share |> file_share
00:29:47 verbose #28361 > >             $'new System.IO.FileStream (!path, !mode, !access, !share)'
00:29:47 verbose #28362 > >         | _ => fun () => null ()
00:29:47 verbose #28363 > >
00:29:47 verbose #28364 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:47 verbose #28365 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:47 verbose #28366 > > │ ### directory_info                                                           │
00:29:47 verbose #28367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:47 verbose #28368 > >
00:29:47 verbose #28369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:47 verbose #28370 > > nominal directory_info = $'System.IO.DirectoryInfo'
00:29:47 verbose #28371 > >
00:29:47 verbose #28372 > > inl directory_info (path : string) : directory_info =
00:29:47 verbose #28373 > >     path |> $'`directory_info '
00:29:48 verbose #28374 > >
00:29:48 verbose #28375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:48 verbose #28376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:48 verbose #28377 > > │ ### directory_info_exists                                                    │
00:29:48 verbose #28378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:48 verbose #28379 > >
00:29:48 verbose #28380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:48 verbose #28381 > > inl directory_info_exists (info : directory_info) : bool =
00:29:48 verbose #28382 > >     run_target function
00:29:48 verbose #28383 > >         | Fsharp (Native) => fun () =>
00:29:48 verbose #28384 > >             $'!info.Exists'
00:29:48 verbose #28385 > >         | _ => fun () => null ()
00:29:48 verbose #28386 > >
00:29:48 verbose #28387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:48 verbose #28388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:48 verbose #28389 > > │ ### directory_info_creation_time                                             │
00:29:48 verbose #28390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:48 verbose #28391 > >
00:29:48 verbose #28392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:48 verbose #28393 > > inl directory_info_creation_time (info : directory_info) : date_time.date_time =
00:29:48 verbose #28394 > >     run_target function
00:29:48 verbose #28395 > >         | Fsharp (Native) => fun () =>
00:29:48 verbose #28396 > >             $'!info.CreationTime'
00:29:48 verbose #28397 > >         | _ => fun () => null ()
00:29:49 verbose #28398 > >
00:29:49 verbose #28399 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:49 verbose #28400 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:49 verbose #28401 > > │ ### directory_info_name                                                      │
00:29:49 verbose #28402 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:49 verbose #28403 > >
00:29:49 verbose #28404 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:49 verbose #28405 > > inl directory_info_name (info : directory_info) : string =
00:29:49 verbose #28406 > >     run_target function
00:29:49 verbose #28407 > >         | Fsharp (Native) => fun () =>
00:29:49 verbose #28408 > >             $'!info.Name'
00:29:49 verbose #28409 > >         | _ => fun () => null ()
00:29:49 verbose #28410 > >
00:29:49 verbose #28411 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:49 verbose #28412 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:49 verbose #28413 > > │ ### directory_info_full_name                                                 │
00:29:49 verbose #28414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:49 verbose #28415 > >
00:29:49 verbose #28416 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:49 verbose #28417 > > inl directory_info_full_name (info : directory_info) : string =
00:29:49 verbose #28418 > >     run_target function
00:29:49 verbose #28419 > >         | Fsharp (Native) => fun () =>
00:29:49 verbose #28420 > >             $'!info.FullName'
00:29:49 verbose #28421 > >         | _ => fun () => null ()
00:29:49 verbose #28422 > >
00:29:49 verbose #28423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:49 verbose #28424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:49 verbose #28425 > > │ ### create_directory                                                         │
00:29:49 verbose #28426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:49 verbose #28427 > >
00:29:49 verbose #28428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:49 verbose #28429 > > inl create_directory (path : string) : directory_info =
00:29:49 verbose #28430 > >     run_target function
00:29:49 verbose #28431 > >         | Fsharp (Native) => fun () =>
00:29:49 verbose #28432 > >             path |> $'System.IO.Directory.CreateDirectory'
00:29:49 verbose #28433 > >         | _ => fun () => null ()
00:29:50 verbose #28434 > >
00:29:50 verbose #28435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:50 verbose #28436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:50 verbose #28437 > > │ ### directory_get_files                                                      │
00:29:50 verbose #28438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:50 verbose #28439 > >
00:29:50 verbose #28440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:50 verbose #28441 > > inl directory_get_files (path : string) : array_base string =
00:29:50 verbose #28442 > >     run_target function
00:29:50 verbose #28443 > >         | Fsharp (Native) => fun () =>
00:29:50 verbose #28444 > >             path |> $'System.IO.Directory.GetFiles'
00:29:50 verbose #28445 > >         | _ => fun () => null ()
00:29:50 verbose #28446 > >
00:29:50 verbose #28447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:50 verbose #28448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:50 verbose #28449 > > │ ### file_move                                                                │
00:29:50 verbose #28450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:50 verbose #28451 > >
00:29:50 verbose #28452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:50 verbose #28453 > > inl file_move (new_path : string) (old_path : string) : () =
00:29:50 verbose #28454 > >     run_target function
00:29:50 verbose #28455 > >         | Fsharp (Native) => fun () =>
00:29:50 verbose #28456 > >             $'System.IO.File.Move (!old_path, !new_path)'
00:29:50 verbose #28457 > >         | _ => fun () => ()
00:29:51 verbose #28458 > >
00:29:51 verbose #28459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:51 verbose #28460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:51 verbose #28461 > > │ ### read_all_text_async                                                      │
00:29:51 verbose #28462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:51 verbose #28463 > >
00:29:51 verbose #28464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:51 verbose #28465 > > inl read_all_text_async (path : string) : _ string =
00:29:51 verbose #28466 > >     run_target function
00:29:51 verbose #28467 > >         | Fsharp (Native) => fun () =>
00:29:51 verbose #28468 > >             path |> $'System.IO.File.ReadAllTextAsync' |> async.await_task
00:29:51 verbose #28469 > >         | _ => fun () => null ()
00:29:51 verbose #28470 > >
00:29:51 verbose #28471 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:51 verbose #28472 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:51 verbose #28473 > > │ ### write_all_text_async                                                     │
00:29:51 verbose #28474 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:51 verbose #28475 > >
00:29:51 verbose #28476 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:51 verbose #28477 > > inl write_all_text_async (path : string) (text : string) : _ () =
00:29:51 verbose #28478 > >     run_target function
00:29:51 verbose #28479 > >         | Fsharp (Native) => fun () =>
00:29:51 verbose #28480 > >             $'System.IO.File.WriteAllTextAsync (!path, !text)' |>
00:29:51 verbose #28481 > > async.await_task
00:29:51 verbose #28482 > >         | _ => fun () => null ()
00:29:52 verbose #28483 > >
00:29:52 verbose #28484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:52 verbose #28485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:52 verbose #28486 > > │ ### file_system_info                                                         │
00:29:52 verbose #28487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:52 verbose #28488 > >
00:29:52 verbose #28489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:52 verbose #28490 > > nominal file_system_info = $'System.IO.FileSystemInfo'
00:29:52 verbose #28491 > >
00:29:52 verbose #28492 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:52 verbose #28493 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:52 verbose #28494 > > │ ### get_source_directory                                                     │
00:29:52 verbose #28495 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:52 verbose #28496 > >
00:29:52 verbose #28497 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:52 verbose #28498 > > inl get_source_directory () =
00:29:52 verbose #28499 > >     $'__SOURCE_DIRECTORY__' : string
00:29:52 verbose #28500 > >
00:29:52 verbose #28501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:52 verbose #28502 > > //// test
00:29:52 verbose #28503 > >
00:29:52 verbose #28504 > > get_source_directory ()
00:29:52 verbose #28505 > > |> directory_info
00:29:52 verbose #28506 > > |> directory_info_name
00:29:52 verbose #28507 > > |> _assert_eq "spiral"
00:29:54 verbose #28508 > >
00:29:54 verbose #28509 > > ╭─[ 1.70s - stdout ]───────────────────────────────────────────────────────────╮
00:29:54 verbose #28510 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:29:54 verbose #28511 > > │                                                                              │
00:29:54 verbose #28512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:54 verbose #28513 > >
00:29:54 verbose #28514 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:54 verbose #28515 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:54 verbose #28516 > > │ ## rust                                                                      │
00:29:54 verbose #28517 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:54 verbose #28518 > >
00:29:54 verbose #28519 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:54 verbose #28520 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:54 verbose #28521 > > │ ### display                                                                  │
00:29:54 verbose #28522 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:54 verbose #28523 > >
00:29:54 verbose #28524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:54 verbose #28525 > > nominal display =
00:29:54 verbose #28526 > >     `(
00:29:54 verbose #28527 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:29:54 verbose #28528 > > Fable.Core.Emit(\"std::path::Display\")>]]\n#endif\ntype std_path_Display =
00:29:54 verbose #28529 > > class end"
00:29:54 verbose #28530 > >         $'' : $'std_path_Display'
00:29:54 verbose #28531 > >     )
00:29:55 verbose #28532 > >
00:29:55 verbose #28533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:55 verbose #28534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:55 verbose #28535 > > │ ### path                                                                     │
00:29:55 verbose #28536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 verbose #28537 > >
00:29:55 verbose #28538 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 verbose #28539 > > nominal path =
00:29:55 verbose #28540 > >     `(
00:29:55 verbose #28541 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:29:55 verbose #28542 > > Fable.Core.Emit(\"std::path::Path\")>]]\n#endif\ntype std_path_Path = class end"
00:29:55 verbose #28543 > >         $'' : $'std_path_Path'
00:29:55 verbose #28544 > >     )
00:29:55 verbose #28545 > >
00:29:55 verbose #28546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:55 verbose #28547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:55 verbose #28548 > > │ ### path_buf                                                                 │
00:29:55 verbose #28549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 verbose #28550 > >
00:29:55 verbose #28551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 verbose #28552 > > nominal path_buf =
00:29:55 verbose #28553 > >     `(
00:29:55 verbose #28554 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:29:55 verbose #28555 > > Fable.Core.Emit(\"std::path::PathBuf\")>]]\n#endif\ntype std_path_PathBuf =
00:29:55 verbose #28556 > > class end"
00:29:55 verbose #28557 > >         $'' : $'std_path_PathBuf'
00:29:55 verbose #28558 > >     )
00:29:55 verbose #28559 > >
00:29:55 verbose #28560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:55 verbose #28561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:55 verbose #28562 > > │ ### new_path_buf                                                             │
00:29:55 verbose #28563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:55 verbose #28564 > >
00:29:55 verbose #28565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:55 verbose #28566 > > inl new_path_buf (path : sm'.std_string) : path_buf =
00:29:55 verbose #28567 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:29:56 verbose #28568 > >
00:29:56 verbose #28569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:56 verbose #28570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:56 verbose #28571 > > │ ### path_buf_from                                                            │
00:29:56 verbose #28572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:56 verbose #28573 > >
00:29:56 verbose #28574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:56 verbose #28575 > > inl path_buf_from (path : rust.box path) : path_buf =
00:29:56 verbose #28576 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:29:56 verbose #28577 > >
00:29:56 verbose #28578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:56 verbose #28579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:56 verbose #28580 > > │ ### path_buf_join                                                            │
00:29:56 verbose #28581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:56 verbose #28582 > >
00:29:56 verbose #28583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:56 verbose #28584 > > inl path_buf_join (s : string) (path_buf : path_buf) : path_buf =
00:29:56 verbose #28585 > >     !\\((path_buf, s |> sm'.to_std_string), $'"$0.join($1)"')
00:29:57 verbose #28586 > >
00:29:57 verbose #28587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:57 verbose #28588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:57 verbose #28589 > > │ ### path_buf_strip_prefix                                                    │
00:29:57 verbose #28590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:57 verbose #28591 > >
00:29:57 verbose #28592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:57 verbose #28593 > > inl path_buf_strip_prefix (s : string) (path_buf : path_buf) : path_buf =
00:29:57 verbose #28594 > >     !\\((path_buf, s |> sm'.to_std_string),
00:29:57 verbose #28595 > > $'"$0.strip_prefix($1).unwrap().to_path_buf()"')
00:29:57 verbose #28596 > >
00:29:57 verbose #28597 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:57 verbose #28598 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:57 verbose #28599 > > │ ### path_display                                                             │
00:29:57 verbose #28600 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:57 verbose #28601 > >
00:29:57 verbose #28602 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:57 verbose #28603 > > inl path_display (path : rust.ref path) : display =
00:29:57 verbose #28604 > >     !\\(path, $'"$0.display()"')
00:29:58 verbose #28605 > >
00:29:58 verbose #28606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:58 verbose #28607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:58 verbose #28608 > > │ ### path_buf_display                                                         │
00:29:58 verbose #28609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:58 verbose #28610 > >
00:29:58 verbose #28611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:58 verbose #28612 > > inl path_buf_display (path_buf : path_buf) : display =
00:29:58 verbose #28613 > >     !\\(path_buf, $'"$0.display()"')
00:29:58 verbose #28614 > >
00:29:58 verbose #28615 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:58 verbose #28616 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:58 verbose #28617 > > │ ### path_buf_file_name                                                       │
00:29:58 verbose #28618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:58 verbose #28619 > >
00:29:58 verbose #28620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:58 verbose #28621 > > inl path_buf_file_name (path : path_buf) : optionm'.option' (rust.ref
00:29:58 verbose #28622 > > sm'.os_str) =
00:29:58 verbose #28623 > >     !\($'"!path.file_name()"')
00:29:58 verbose #28624 > >
00:29:58 verbose #28625 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:58 verbose #28626 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:58 verbose #28627 > > │ ### path_buf_exists                                                          │
00:29:58 verbose #28628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:58 verbose #28629 > >
00:29:58 verbose #28630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:58 verbose #28631 > > inl path_buf_exists (path_buf : path_buf) : bool =
00:29:58 verbose #28632 > >     !\\(path_buf, $'"$0.exists()"')
00:29:59 verbose #28633 > >
00:29:59 verbose #28634 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:59 verbose #28635 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:59 verbose #28636 > > │ ### path_buf_is_dir                                                          │
00:29:59 verbose #28637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:59 verbose #28638 > >
00:29:59 verbose #28639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:59 verbose #28640 > > inl path_buf_is_dir (path_buf : path_buf) : bool =
00:29:59 verbose #28641 > >     !\\(path_buf, $'"$0.is_dir()"')
00:29:59 verbose #28642 > >
00:29:59 verbose #28643 > > ── markdown ────────────────────────────────────────────────────────────────────
00:29:59 verbose #28644 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:29:59 verbose #28645 > > │ ### path_buf_is_file                                                         │
00:29:59 verbose #28646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:29:59 verbose #28647 > >
00:29:59 verbose #28648 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:29:59 verbose #28649 > > inl path_buf_is_file (path_buf : path_buf) : bool =
00:29:59 verbose #28650 > >     !\\(path_buf, $'"$0.is_file()"')
00:30:00 verbose #28651 > >
00:30:00 verbose #28652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:00 verbose #28653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:00 verbose #28654 > > │ ### path_buf_is_symlink                                                      │
00:30:00 verbose #28655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:00 verbose #28656 > >
00:30:00 verbose #28657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:00 verbose #28658 > > inl path_buf_is_symlink (path_buf : path_buf) : bool =
00:30:00 verbose #28659 > >     !\\(path_buf, $'"$0.is_symlink()"')
00:30:00 verbose #28660 > >
00:30:00 verbose #28661 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:00 verbose #28662 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:00 verbose #28663 > > │ ### path_buf_parent                                                          │
00:30:00 verbose #28664 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:00 verbose #28665 > >
00:30:00 verbose #28666 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:00 verbose #28667 > > inl path_buf_parent (path_buf : path_buf) : optionm'.option' path_buf =
00:30:00 verbose #28668 > >     !\\(path_buf, $'"$0.parent().map(std::path::PathBuf::from)"')
00:30:01 verbose #28669 > >
00:30:01 verbose #28670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:01 verbose #28671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:01 verbose #28672 > > │ ### dir_entry                                                                │
00:30:01 verbose #28673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:01 verbose #28674 > >
00:30:01 verbose #28675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:01 verbose #28676 > > nominal dir_entry =
00:30:01 verbose #28677 > >     `(
00:30:01 verbose #28678 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:01 verbose #28679 > > Fable.Core.Emit(\"async_walkdir::DirEntry\")>]]\n#endif\ntype
00:30:01 verbose #28680 > > async_walkdir_DirEntry = class end"
00:30:01 verbose #28681 > >         $'' : $'async_walkdir_DirEntry'
00:30:01 verbose #28682 > >     )
00:30:01 verbose #28683 > >
00:30:01 verbose #28684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:01 verbose #28685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:01 verbose #28686 > > │ ### walk_dir                                                                 │
00:30:01 verbose #28687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:01 verbose #28688 > >
00:30:01 verbose #28689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:01 verbose #28690 > > nominal walk_dir =
00:30:01 verbose #28691 > >     `(
00:30:01 verbose #28692 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:01 verbose #28693 > > Fable.Core.Emit(\"async_walkdir::WalkDir\")>]]\n#endif\ntype
00:30:01 verbose #28694 > > async_walkdir_WalkDir = class end"
00:30:01 verbose #28695 > >         $'' : $'async_walkdir_WalkDir'
00:30:01 verbose #28696 > >     )
00:30:01 verbose #28697 > >
00:30:01 verbose #28698 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:01 verbose #28699 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:01 verbose #28700 > > │ ### async_walkdir_filtering                                                  │
00:30:01 verbose #28701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:01 verbose #28702 > >
00:30:01 verbose #28703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:01 verbose #28704 > > nominal async_walkdir_filtering =
00:30:01 verbose #28705 > >     `(
00:30:01 verbose #28706 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:01 verbose #28707 > > Fable.Core.Emit(\"async_walkdir::Filtering\")>]]\n#endif\ntype
00:30:01 verbose #28708 > > async_walkdir_Filtering = class end"
00:30:01 verbose #28709 > >         $'' : $'async_walkdir_Filtering'
00:30:01 verbose #28710 > >     )
00:30:02 verbose #28711 > >
00:30:02 verbose #28712 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:02 verbose #28713 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:02 verbose #28714 > > │ ### filtering                                                                │
00:30:02 verbose #28715 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:02 verbose #28716 > >
00:30:02 verbose #28717 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:02 verbose #28718 > > union filtering =
00:30:02 verbose #28719 > >     | Ignore
00:30:02 verbose #28720 > >     | IgnoreDir
00:30:02 verbose #28721 > >     | Continue
00:30:02 verbose #28722 > >
00:30:02 verbose #28723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:02 verbose #28724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:02 verbose #28725 > > │ ### async_walkdir_error                                                      │
00:30:02 verbose #28726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:02 verbose #28727 > >
00:30:02 verbose #28728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:02 verbose #28729 > > nominal async_walkdir_error =
00:30:02 verbose #28730 > >     `(
00:30:02 verbose #28731 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:02 verbose #28732 > > Fable.Core.Emit(\"async_walkdir::Error\")>]]\n#endif\ntype async_walkdir_Error =
00:30:02 verbose #28733 > > class end"
00:30:02 verbose #28734 > >         $'' : $'async_walkdir_Error'
00:30:02 verbose #28735 > >     )
00:30:03 verbose #28736 > >
00:30:03 verbose #28737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:03 verbose #28738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:03 verbose #28739 > > │ ### new_walk_dir                                                             │
00:30:03 verbose #28740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:03 verbose #28741 > >
00:30:03 verbose #28742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:03 verbose #28743 > > inl new_walk_dir (dir : string) : walk_dir =
00:30:03 verbose #28744 > >     !\\(dir, $'"async_walkdir::WalkDir::new(&*$0)"')
00:30:03 verbose #28745 > >     // inl walk_dir : walk_dir = walk_dir |> rust.to_mut
00:30:03 verbose #28746 > >     // (!\($'"true; let mut !walk_dir = !walk_dir"') : bool) |> ignore
00:30:03 verbose #28747 > >
00:30:03 verbose #28748 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:03 verbose #28749 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:03 verbose #28750 > > │ ### walk_dir_filter                                                          │
00:30:03 verbose #28751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:03 verbose #28752 > >
00:30:03 verbose #28753 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:03 verbose #28754 > > inl walk_dir_filter (fn : dir_entry -> async.future_pin_send filtering)
00:30:03 verbose #28755 > > (walk_dir : walk_dir) : walk_dir =
00:30:03 verbose #28756 > >     inl fn entry = async.new_future_send fun () =>
00:30:03 verbose #28757 > >         inl result = fn entry |> async.await_send
00:30:03 verbose #28758 > >         inl filtering : async_walkdir_filtering =
00:30:03 verbose #28759 > >             match result with
00:30:03 verbose #28760 > >             | Ignore => !\($'"async_walkdir::Filtering::Ignore"')
00:30:03 verbose #28761 > >             | IgnoreDir => !\($'"async_walkdir::Filtering::IgnoreDir"')
00:30:03 verbose #28762 > >             | Continue => !\($'"async_walkdir::Filtering::Continue"')
00:30:03 verbose #28763 > >         filtering
00:30:03 verbose #28764 > >     !\\((walk_dir, fn), $'"async_walkdir::WalkDir::filter($0, |x| $1(x))"')
00:30:04 verbose #28765 > >
00:30:04 verbose #28766 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:04 verbose #28767 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:04 verbose #28768 > > │ ### file_type                                                                │
00:30:04 verbose #28769 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:04 verbose #28770 > >
00:30:04 verbose #28771 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:04 verbose #28772 > > nominal file_type =
00:30:04 verbose #28773 > >     `(
00:30:04 verbose #28774 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:04 verbose #28775 > > Fable.Core.Emit(\"std::fs::FileType\")>]]\n#endif\ntype std_fs_FileType = class
00:30:04 verbose #28776 > > end"
00:30:04 verbose #28777 > >         $'' : $'std_fs_FileType'
00:30:04 verbose #28778 > >     )
00:30:04 verbose #28779 > >
00:30:04 verbose #28780 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:04 verbose #28781 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:04 verbose #28782 > > │ ### dir_entry_file_type                                                      │
00:30:04 verbose #28783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:04 verbose #28784 > >
00:30:04 verbose #28785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:04 verbose #28786 > > inl dir_entry_file_type (dir_entry : dir_entry) : async.future_pin_send
00:30:04 verbose #28787 > > (resultm.result' file_type stream.io_error) =
00:30:04 verbose #28788 > >     inl dir_entry = join dir_entry
00:30:04 verbose #28789 > >     !\($'"Box::pin(async_walkdir::DirEntry::file_type(&!dir_entry))"')
00:30:04 verbose #28790 > >
00:30:04 verbose #28791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:04 verbose #28792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:04 verbose #28793 > > │ ### file_type_is_dir                                                         │
00:30:04 verbose #28794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:04 verbose #28795 > >
00:30:04 verbose #28796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:04 verbose #28797 > > inl file_type_is_dir (file_type : file_type) : bool =
00:30:04 verbose #28798 > >     inl file_type = join file_type
00:30:04 verbose #28799 > >     !\($'"std::fs::FileType::is_dir(&!file_type)"')
00:30:05 verbose #28800 > >
00:30:05 verbose #28801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:05 verbose #28802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:05 verbose #28803 > > │ ### file                                                                     │
00:30:05 verbose #28804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:05 verbose #28805 > >
00:30:05 verbose #28806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:05 verbose #28807 > > nominal file =
00:30:05 verbose #28808 > >     `(
00:30:05 verbose #28809 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:30:05 verbose #28810 > > Fable.Core.Emit(\"std::fs::File\")>]]\n#endif\ntype std_fs_File = class end"
00:30:05 verbose #28811 > >         $'' : $'std_fs_File'
00:30:05 verbose #28812 > >     )
00:30:05 verbose #28813 > >
00:30:05 verbose #28814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:05 verbose #28815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:05 verbose #28816 > > │ ### file_open                                                                │
00:30:05 verbose #28817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:05 verbose #28818 > >
00:30:05 verbose #28819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:05 verbose #28820 > > inl file_open (path : string) : resultm.result' file stream.io_error =
00:30:05 verbose #28821 > >     !\($'"std::fs::File::open(&*!path)"')
00:30:06 verbose #28822 > >
00:30:06 verbose #28823 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:06 verbose #28824 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:06 verbose #28825 > > │ ### rename                                                                   │
00:30:06 verbose #28826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:06 verbose #28827 > >
00:30:06 verbose #28828 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:06 verbose #28829 > > inl rename (to : string) (path : string) : resultm.result' () stream.io_error =
00:30:06 verbose #28830 > >     !\($'"std::fs::rename(&*!path, &*!to)"')
00:30:06 verbose #28831 > >
00:30:06 verbose #28832 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:06 verbose #28833 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:06 verbose #28834 > > │ ### dir_entry_path                                                           │
00:30:06 verbose #28835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:06 verbose #28836 > >
00:30:06 verbose #28837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:06 verbose #28838 > > inl dir_entry_path (dir_entry : dir_entry) : path_buf =
00:30:06 verbose #28839 > >     !\\(dir_entry, $'"async_walkdir::DirEntry::path(&$0)"')
00:30:07 verbose #28840 > >
00:30:07 verbose #28841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:07 verbose #28842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:07 verbose #28843 > > │ ### create_dir_all                                                           │
00:30:07 verbose #28844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:07 verbose #28845 > >
00:30:07 verbose #28846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:07 verbose #28847 > > inl create_dir_all (path : string) : resultm.result' () stream.io_error =
00:30:07 verbose #28848 > >     !\\(path, $'"std::fs::create_dir_all(&*$0)"')
00:30:07 verbose #28849 > >
00:30:07 verbose #28850 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:07 verbose #28851 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:07 verbose #28852 > > │ ### read_link                                                                │
00:30:07 verbose #28853 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:07 verbose #28854 > >
00:30:07 verbose #28855 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:07 verbose #28856 > > inl read_link (path : string) : resultm.result' path_buf stream.io_error =
00:30:07 verbose #28857 > >     run_target function
00:30:07 verbose #28858 > >         | Rust _ => fun () => !\\(path, $'"std::fs::read_link(&*$0)"')
00:30:07 verbose #28859 > >         | TypeScript _ => fun () => null ()
00:30:07 verbose #28860 > >         | _ => fun () => $'Unchecked.defaultof<_>'
00:30:07 verbose #28861 > >
00:30:07 verbose #28862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:07 verbose #28863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:07 verbose #28864 > > │ ### read                                                                     │
00:30:07 verbose #28865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:07 verbose #28866 > >
00:30:07 verbose #28867 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:07 verbose #28868 > > inl read (path : string) : resultm.result' (am'.vec u8) stream.io_error =
00:30:07 verbose #28869 > >     !\\(path, $'"std::fs::read(&*$0)"')
00:30:08 verbose #28870 > >
00:30:08 verbose #28871 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:08 verbose #28872 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:08 verbose #28873 > > │ ## typescript                                                                │
00:30:08 verbose #28874 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:08 verbose #28875 > >
00:30:08 verbose #28876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:08 verbose #28877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:08 verbose #28878 > > │ ### ts_path_join                                                             │
00:30:08 verbose #28879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:08 verbose #28880 > >
00:30:08 verbose #28881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:08 verbose #28882 > > inl ts_path_join (b : string) (a : string) : string =
00:30:08 verbose #28883 > >     open typescript_operators
00:30:08 verbose #28884 > >     global "type IPathJoin = abstract join: [[<System.ParamArray>]] paths:
00:30:08 verbose #28885 > > string[[]] -> string"
00:30:08 verbose #28886 > >     inl path : $'IPathJoin' = typescript.import_all "path"
00:30:08 verbose #28887 > >     !\\((join a, join b), $'"!path.join($0, $1)"')
00:30:08 verbose #28888 > >
00:30:08 verbose #28889 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:08 verbose #28890 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:08 verbose #28891 > > │ ## file_system                                                               │
00:30:08 verbose #28892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:08 verbose #28893 > >
00:30:08 verbose #28894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:08 verbose #28895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:08 verbose #28896 > > │ ### (< />)                                                                   │
00:30:08 verbose #28897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:08 verbose #28898 > >
00:30:08 verbose #28899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:08 verbose #28900 > > let (</>) (a : string) (b : string) : string =
00:30:08 verbose #28901 > >     run_target function
00:30:08 verbose #28902 > >         | Rust (Contract) => fun () => null ()
00:30:08 verbose #28903 > >         | Rust (Native) => fun () =>
00:30:08 verbose #28904 > >             a
00:30:08 verbose #28905 > >             |> sm'.to_std_string
00:30:08 verbose #28906 > >             |> new_path_buf
00:30:08 verbose #28907 > >             |> path_buf_join b
00:30:08 verbose #28908 > >             |> path_buf_display
00:30:08 verbose #28909 > >             |> sm'.format'
00:30:08 verbose #28910 > >             |> sm'.from_std_string
00:30:08 verbose #28911 > >         | TypeScript (Native) => fun () =>
00:30:08 verbose #28912 > >             a |> ts_path_join b
00:30:08 verbose #28913 > >         | Fsharp (Native) => fun () =>
00:30:08 verbose #28914 > >             $'System.IO.Path.Combine (!a, !b)'
00:30:08 verbose #28915 > >         | target => fun () => failwith $'$"file_system.(</>) / target: {!target}
00:30:08 verbose #28916 > > / a: {!a} / b: {!b}"'
00:30:09 verbose #28917 > >
00:30:09 verbose #28918 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:09 verbose #28919 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:09 verbose #28920 > > │ ### get_temp_path                                                            │
00:30:09 verbose #28921 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:09 verbose #28922 > >
00:30:09 verbose #28923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:09 verbose #28924 > > let get_temp_path () : string =
00:30:09 verbose #28925 > >     run_target function
00:30:09 verbose #28926 > >         | Rust (Contract) => fun () => null ()
00:30:09 verbose #28927 > >         | Rust (Native) => fun () =>
00:30:09 verbose #28928 > >             !\($'"std::env::temp_dir()"')
00:30:09 verbose #28929 > >             |> path_buf_display
00:30:09 verbose #28930 > >             |> sm'.format'
00:30:09 verbose #28931 > >             |> sm'.from_std_string
00:30:09 verbose #28932 > >         | Fsharp (Native) => fun () =>
00:30:09 verbose #28933 > >             $'System.IO.Path.GetTempPath' ()
00:30:09 verbose #28934 > >         | target => fun () => failwith $'$"file_system.get_temp_path / target:
00:30:09 verbose #28935 > > {!target}"'
00:30:09 verbose #28936 > >
00:30:09 verbose #28937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:09 verbose #28938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:09 verbose #28939 > > │ ### get_file_name                                                            │
00:30:09 verbose #28940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:09 verbose #28941 > >
00:30:09 verbose #28942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:09 verbose #28943 > > let get_file_name (path : string) : string =
00:30:09 verbose #28944 > >     run_target function
00:30:09 verbose #28945 > >         | Rust (Contract) => fun () => null ()
00:30:09 verbose #28946 > >         | Rust (Native) => fun () =>
00:30:09 verbose #28947 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:09 verbose #28948 > >             !\\(path_buf, $'"$0.file_name()"')
00:30:09 verbose #28949 > >             |> optionm'.unwrap
00:30:09 verbose #28950 > >             |> sm'.from_os_str_ref
00:30:09 verbose #28951 > >         | Fsharp (Native) => fun () =>
00:30:09 verbose #28952 > >             path |> $'System.IO.Path.GetFileName'
00:30:09 verbose #28953 > >         | target => fun () => failwith $'$"file_system.get_file_name / target:
00:30:09 verbose #28954 > > {!target} / path: {!path}"'
00:30:10 verbose #28955 > >
00:30:10 verbose #28956 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:10 verbose #28957 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:10 verbose #28958 > > │ ### get_file_name_without_extension                                          │
00:30:10 verbose #28959 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:10 verbose #28960 > >
00:30:10 verbose #28961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:10 verbose #28962 > > let get_file_name_without_extension (path : string) : string =
00:30:10 verbose #28963 > >     run_target function
00:30:10 verbose #28964 > >         | Rust (Contract) => fun () => null ()
00:30:10 verbose #28965 > >         | Rust (Native) => fun () =>
00:30:10 verbose #28966 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:10 verbose #28967 > >             !\\(path_buf, $'"$0.file_stem()"')
00:30:10 verbose #28968 > >             |> optionm'.unwrap
00:30:10 verbose #28969 > >             |> sm'.from_os_str_ref
00:30:10 verbose #28970 > >         | _ => fun () =>
00:30:10 verbose #28971 > >             path |> $'System.IO.Path.GetFileNameWithoutExtension'
00:30:10 verbose #28972 > >
00:30:10 verbose #28973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:10 verbose #28974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:10 verbose #28975 > > │ ### get_directory_name                                                       │
00:30:10 verbose #28976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:10 verbose #28977 > >
00:30:10 verbose #28978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:10 verbose #28979 > > let get_directory_name (path : string) : string =
00:30:10 verbose #28980 > >     run_target function
00:30:10 verbose #28981 > >         | Rust (Native) => fun () =>
00:30:10 verbose #28982 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:10 verbose #28983 > >             !\\(path_buf, $'"$0.parent()"')
00:30:10 verbose #28984 > >             |> optionm'.unwrap
00:30:10 verbose #28985 > >             |> path_display
00:30:10 verbose #28986 > >             |> sm'.format'
00:30:10 verbose #28987 > >             |> sm'.from_std_string
00:30:10 verbose #28988 > >         | Fsharp _ => fun () =>
00:30:10 verbose #28989 > >             path |> $'System.IO.Path.GetDirectoryName'
00:30:10 verbose #28990 > >         | _ => fun () => null ()
00:30:11 verbose #28991 > >
00:30:11 verbose #28992 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:11 verbose #28993 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:11 verbose #28994 > > │ ### get_extension                                                            │
00:30:11 verbose #28995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:11 verbose #28996 > >
00:30:11 verbose #28997 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:11 verbose #28998 > > let get_extension (path : string) : string =
00:30:11 verbose #28999 > >     run_target function
00:30:11 verbose #29000 > >         | Rust (Contract) => fun () => null ()
00:30:11 verbose #29001 > >         | Rust (Native) => fun () =>
00:30:11 verbose #29002 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:11 verbose #29003 > >             !\\(path_buf, $'"$0.extension()"')
00:30:11 verbose #29004 > >             |> optionm'.unwrap
00:30:11 verbose #29005 > >             |> sm'.from_os_str_ref
00:30:11 verbose #29006 > >         | _ => fun () =>
00:30:11 verbose #29007 > >             path |> $'System.IO.Path.GetExtension'
00:30:11 verbose #29008 > >
00:30:11 verbose #29009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:11 verbose #29010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:11 verbose #29011 > > │ ### directory_separator_char                                                 │
00:30:11 verbose #29012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:11 verbose #29013 > >
00:30:11 verbose #29014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:11 verbose #29015 > > let directory_separator_char () : char =
00:30:11 verbose #29016 > >     run_target function
00:30:11 verbose #29017 > >         | Rust (Native) => fun () =>
00:30:11 verbose #29018 > >             !\($'"std::path::MAIN_SEPARATOR"')
00:30:11 verbose #29019 > >         | _ => fun () =>
00:30:11 verbose #29020 > >             $'System.IO.Path.DirectorySeparatorChar'
00:30:12 verbose #29021 > >
00:30:12 verbose #29022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:12 verbose #29023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:12 verbose #29024 > > │ ### get_current_directory                                                    │
00:30:12 verbose #29025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:12 verbose #29026 > >
00:30:12 verbose #29027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:12 verbose #29028 > > let get_current_directory () : string =
00:30:12 verbose #29029 > >     run_target function
00:30:12 verbose #29030 > >         | Rust (Contract | Wasm) => fun () => null ()
00:30:12 verbose #29031 > >         | Rust (Native) => fun () =>
00:30:12 verbose #29032 > >             inl current_dir = !\($'"std::env::current_dir()"') : resultm.result'
00:30:12 verbose #29033 > > path_buf stream.io_error
00:30:12 verbose #29034 > >             current_dir
00:30:12 verbose #29035 > >             |> resultm.unwrap'
00:30:12 verbose #29036 > >             |> path_buf_display
00:30:12 verbose #29037 > >             |> sm'.format'
00:30:12 verbose #29038 > >             |> sm'.from_std_string
00:30:12 verbose #29039 > >         | Fsharp (Native) => fun () =>
00:30:12 verbose #29040 > >             $'System.IO.Directory.GetCurrentDirectory' ()
00:30:12 verbose #29041 > >         | _ => fun () => null ()
00:30:12 verbose #29042 > >
00:30:12 verbose #29043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:12 verbose #29044 > > //// test
00:30:12 verbose #29045 > >
00:30:12 verbose #29046 > > get_current_directory ()
00:30:12 verbose #29047 > > |> _assert_contains (directory_separator_char ())
00:30:13 verbose #29048 > >
00:30:13 verbose #29049 > > ╭─[ 1.31s - stdout ]───────────────────────────────────────────────────────────╮
00:30:13 verbose #29050 > > │ __assert_contains / actual: "C:\home\git\polyglot\lib\spiral" / expected:    │
00:30:13 verbose #29051 > > │ '\\'                                                                         │
00:30:13 verbose #29052 > > │                                                                              │
00:30:13 verbose #29053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:13 verbose #29054 > >
00:30:13 verbose #29055 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:13 verbose #29056 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:13 verbose #29057 > > │ ### normalize_path                                                           │
00:30:13 verbose #29058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:13 verbose #29059 > >
00:30:13 verbose #29060 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:13 verbose #29061 > > let normalize_path (path : string) : string =
00:30:13 verbose #29062 > >     if path = ""
00:30:13 verbose #29063 > >     then ""
00:30:13 verbose #29064 > >     else
00:30:13 verbose #29065 > >         inl path = path |> sm'.replace_regex @"^\\\\\?\\" ""
00:30:13 verbose #29066 > >         $'$"{!path.[[0]] |> string |> _.ToLower()}{!path.[[1..]]}"' |>
00:30:13 verbose #29067 > > sm'.replace "\\" "/"
00:30:14 verbose #29068 > >
00:30:14 verbose #29069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:14 verbose #29070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:14 verbose #29071 > > │ ### get_full_path                                                            │
00:30:14 verbose #29072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:14 verbose #29073 > >
00:30:14 verbose #29074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:14 verbose #29075 > > let get_full_path (path : string) : string =
00:30:14 verbose #29076 > >     run_target_args (fun () => path) function
00:30:14 verbose #29077 > >         | Fsharp (Native) => fun path =>
00:30:14 verbose #29078 > >             path |> $'System.IO.Path.GetFullPath'
00:30:14 verbose #29079 > >         | Rust (Native) => fun path =>
00:30:14 verbose #29080 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:14 verbose #29081 > >             if path_buf |> path_buf_exists |> not then
00:30:14 verbose #29082 > >                 inl current_dir = get_current_directory ()
00:30:14 verbose #29083 > >                 current_dir </> path
00:30:14 verbose #29084 > >                 |> normalize_path
00:30:14 verbose #29085 > >                 |> sm'.split "/"
00:30:14 verbose #29086 > >                 |> fun x =>
00:30:14 verbose #29087 > >                     ((a x : _ i32 _), (0i32, (a ;[[]] : _ i32 _)))
00:30:14 verbose #29088 > >                     ||> am.foldBack fun x level, acc =>
00:30:14 verbose #29089 > >                         match x, level with
00:30:14 verbose #29090 > >                         | "..", _ => level + 1, acc
00:30:14 verbose #29091 > >                         | ".", _ => level, acc
00:30:14 verbose #29092 > >                         | _, 0 when x |> sm'.ends_with ":" => 0, a ;[[
00:30:14 verbose #29093 > > $'$"{!current_dir.[[0]]}:"' ]] ++ acc
00:30:14 verbose #29094 > >                         | _, 0 => 0, a ;[[ x ]] ++ acc
00:30:14 verbose #29095 > >                         | _ => level - 1, acc
00:30:14 verbose #29096 > >                 |> snd
00:30:14 verbose #29097 > >                 |> seq.of_array'
00:30:14 verbose #29098 > >                 |> sm'.concat (directory_separator_char () |> sm'.obj_to_string)
00:30:14 verbose #29099 > >             else
00:30:14 verbose #29100 > >                 inl path = !\\(path, $'"std::fs::canonicalize(&*$0)"') :
00:30:14 verbose #29101 > > resultm.result' path_buf stream.io_error
00:30:14 verbose #29102 > >                 path
00:30:14 verbose #29103 > >                 |> resultm.unwrap'
00:30:14 verbose #29104 > >                 |> path_buf_display
00:30:14 verbose #29105 > >                 |> sm'.format'
00:30:14 verbose #29106 > >                 |> sm'.from_std_string
00:30:14 verbose #29107 > >         | _ => fun _ => null ()
00:30:14 verbose #29108 > >
00:30:14 verbose #29109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:14 verbose #29110 > > //// test
00:30:14 verbose #29111 > >
00:30:14 verbose #29112 > > "."
00:30:14 verbose #29113 > > |> get_full_path
00:30:14 verbose #29114 > > |> directory_info
00:30:14 verbose #29115 > > |> directory_info_name
00:30:14 verbose #29116 > > |> _assert_eq "spiral"
00:30:15 verbose #29117 > >
00:30:15 verbose #29118 > > ╭─[ 872.60ms - stdout ]────────────────────────────────────────────────────────╮
00:30:15 verbose #29119 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:30:15 verbose #29120 > > │                                                                              │
00:30:15 verbose #29121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:15 verbose #29122 > >
00:30:15 verbose #29123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:15 verbose #29124 > > //// test
00:30:15 verbose #29125 > >
00:30:15 verbose #29126 > > "dir/.././._file"
00:30:15 verbose #29127 > > |> get_full_path
00:30:15 verbose #29128 > > |> _assert_eq (get_current_directory () </> "._file")
00:30:16 verbose #29129 > >
00:30:16 verbose #29130 > > ╭─[ 799.98ms - stdout ]────────────────────────────────────────────────────────╮
00:30:16 verbose #29131 > > │ __assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:   │
00:30:16 verbose #29132 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:30:16 verbose #29133 > > │                                                                              │
00:30:16 verbose #29134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:16 verbose #29135 > >
00:30:16 verbose #29136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:16 verbose #29137 > > //// test
00:30:16 verbose #29138 > > ///! rust -d regex
00:30:16 verbose #29139 > >
00:30:16 verbose #29140 > > "."
00:30:16 verbose #29141 > > |> get_full_path
00:30:16 verbose #29142 > > |> sm'.to_std_string
00:30:16 verbose #29143 > > |> new_path_buf
00:30:16 verbose #29144 > > |> path_buf_file_name
00:30:16 verbose #29145 > > |> optionm'.unwrap
00:30:16 verbose #29146 > > |> sm'.from_os_str_ref
00:30:16 verbose #29147 > > |> _assert_eq "spiral"
00:30:21 verbose #29148 > >
00:30:21 verbose #29149 > > ╭─[ 5.03s - return value ]─────────────────────────────────────────────────────╮
00:30:21 verbose #29150 > > │ __assert_eq / actual: "spiral" / expected: "spiral"                          │
00:30:21 verbose #29151 > > │                                                                              │
00:30:21 verbose #29152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:21 verbose #29153 > >
00:30:21 verbose #29154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:21 verbose #29155 > > //// test
00:30:21 verbose #29156 > > ///! rust -d regex
00:30:21 verbose #29157 > >
00:30:21 verbose #29158 > > "dir/.././._file"
00:30:21 verbose #29159 > > |> get_full_path
00:30:21 verbose #29160 > > |> _assert_eq (get_current_directory () </> "._file")
00:30:25 verbose #29161 > >
00:30:25 verbose #29162 > > ╭─[ 4.19s - return value ]─────────────────────────────────────────────────────╮
00:30:25 verbose #29163 > > │ __assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:   │
00:30:25 verbose #29164 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:30:25 verbose #29165 > > │                                                                              │
00:30:25 verbose #29166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:25 verbose #29167 > >
00:30:25 verbose #29168 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:25 verbose #29169 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:25 verbose #29170 > > │ ### create_temp_path'                                                        │
00:30:25 verbose #29171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:25 verbose #29172 > >
00:30:25 verbose #29173 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:25 verbose #29174 > > let create_temp_path' (guid : guid.guid) =
00:30:25 verbose #29175 > >     run_target function
00:30:25 verbose #29176 > >         | Rust (Contract) => fun () => null ()
00:30:25 verbose #29177 > >         | _ => fun () =>
00:30:25 verbose #29178 > >             get_temp_path ()
00:30:25 verbose #29179 > >             </> (join "!create_temp_path_")
00:30:25 verbose #29180 > >             </> (env.get_entry_assembly_name ())
00:30:25 verbose #29181 > >             </> (guid |> sm'.obj_to_string)
00:30:26 verbose #29182 > >
00:30:26 verbose #29183 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:26 verbose #29184 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:26 verbose #29185 > > │ ### create_temp_path                                                         │
00:30:26 verbose #29186 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:26 verbose #29187 > >
00:30:26 verbose #29188 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:26 verbose #29189 > > let create_temp_path () =
00:30:26 verbose #29190 > >     run_target function
00:30:26 verbose #29191 > >         | Rust (Contract) => fun () => null ()
00:30:26 verbose #29192 > >         | _ => fun () =>
00:30:26 verbose #29193 > >             date_time.now ()
00:30:26 verbose #29194 > >             |> date_time.new_guid_from_date_time
00:30:26 verbose #29195 > >             |> create_temp_path'
00:30:26 verbose #29196 > >
00:30:26 verbose #29197 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:26 verbose #29198 > > //// test
00:30:26 verbose #29199 > > ///! fsharp
00:30:26 verbose #29200 > > ///! rust -d chrono
00:30:26 verbose #29201 > >
00:30:26 verbose #29202 > > create_temp_path ()
00:30:26 verbose #29203 > > |> _assert_contains (directory_separator_char ())
00:30:30 verbose #29204 > >
00:30:30 verbose #29205 > > ╭─[ 4.23s - return value ]─────────────────────────────────────────────────────╮
00:30:30 verbose #29206 > > │ .rs output (rust -d chrono):                                                 │
00:30:30 verbose #29207 > > │ __assert_contains / actual:                                                  │
00:30:30 verbose #29208 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_567fb5c │
00:30:30 verbose #29209 > > │ e8e45dcd003d7c8559e0b7785123cc5cf3a299bac2bd5b728550ae998\20240919-1605-3003 │
00:30:30 verbose #29210 > > │ -2334-000000943bdb" / expected: '\\'                                         │
00:30:30 verbose #29211 > > │                                                                              │
00:30:30 verbose #29212 > > │                                                                              │
00:30:30 verbose #29213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:30 verbose #29214 > >
00:30:30 verbose #29215 > > ╭─[ 4.24s - stdout ]───────────────────────────────────────────────────────────╮
00:30:30 verbose #29216 > > │ .fsx output:                                                                 │
00:30:30 verbose #29217 > > │ __assert_contains / actual:                                                  │
00:30:30 verbose #29218 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\20240919-1 │
00:30:30 verbose #29219 > > │ 605-3068-6819-600400ae95c8" / expected: '\\'                                 │
00:30:30 verbose #29220 > > │                                                                              │
00:30:30 verbose #29221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:30 verbose #29222 > >
00:30:30 verbose #29223 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:30 verbose #29224 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:30 verbose #29225 > > │ ### directory_exists                                                         │
00:30:30 verbose #29226 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:30 verbose #29227 > >
00:30:30 verbose #29228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:30 verbose #29229 > > let directory_exists (path : string) : bool =
00:30:30 verbose #29230 > >     run_target function
00:30:30 verbose #29231 > >         | Fsharp (Native) => fun () =>
00:30:30 verbose #29232 > >             path |> $'System.IO.Directory.Exists'
00:30:30 verbose #29233 > >         | Rust (Native) => fun () =>
00:30:30 verbose #29234 > >             inl path = path |> sm'.to_std_string |> new_path_buf
00:30:30 verbose #29235 > >             path_buf_exists path || path_buf_is_dir path || path_buf_is_symlink
00:30:30 verbose #29236 > > path
00:30:30 verbose #29237 > >         | TypeScript (Native) => fun () =>
00:30:30 verbose #29238 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:30:30 verbose #29239 > > bool"
00:30:30 verbose #29240 > >             open typescript_operators
00:30:30 verbose #29241 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:30:30 verbose #29242 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:30:30 verbose #29243 > >         | _ => fun () => null ()
00:30:31 verbose #29244 > >
00:30:31 verbose #29245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:31 verbose #29246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:31 verbose #29247 > > │ ### directory_get_parent                                                     │
00:30:31 verbose #29248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:31 verbose #29249 > >
00:30:31 verbose #29250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:31 verbose #29251 > > let directory_get_parent (path : string) : optionm'.option' string =
00:30:31 verbose #29252 > >     run_target function
00:30:31 verbose #29253 > >         | Fsharp (Native) => fun () =>
00:30:31 verbose #29254 > >             inl parent : directory_info = path |>
00:30:31 verbose #29255 > > $'System.IO.Directory.GetParent'
00:30:31 verbose #29256 > >             if parent =. null ()
00:30:31 verbose #29257 > >             then None
00:30:31 verbose #29258 > >             else parent |> directory_info_full_name |> Some
00:30:31 verbose #29259 > >         | Rust (Native) => fun () =>
00:30:31 verbose #29260 > >             path
00:30:31 verbose #29261 > >             |> sm'.to_std_string
00:30:31 verbose #29262 > >             |> new_path_buf
00:30:31 verbose #29263 > >             |> path_buf_parent
00:30:31 verbose #29264 > >             |> optionm'.try'
00:30:31 verbose #29265 > >             |> path_buf_display
00:30:31 verbose #29266 > >             |> sm'.format'
00:30:31 verbose #29267 > >             |> sm'.from_std_string
00:30:31 verbose #29268 > >             |> Some
00:30:31 verbose #29269 > >         | TypeScript _ => fun () =>
00:30:31 verbose #29270 > >             open typescript_operators
00:30:31 verbose #29271 > >             global "type IPathDirname = abstract dirname: path: string ->
00:30:31 verbose #29272 > > string"
00:30:31 verbose #29273 > >             inl fs : $'IPathDirname' = typescript.import_all "path"
00:30:31 verbose #29274 > >             !\\(path, $'"!fs.dirname($0)"') |> Some
00:30:31 verbose #29275 > >         | _ => fun () => null ()
00:30:31 verbose #29276 > >     |> optionm'.box
00:30:31 verbose #29277 > >
00:30:31 verbose #29278 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:31 verbose #29279 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:31 verbose #29280 > > │ ### file_copy                                                                │
00:30:31 verbose #29281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:31 verbose #29282 > >
00:30:31 verbose #29283 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:31 verbose #29284 > > let file_copy (new_path : string) (old_path : string) : () =
00:30:31 verbose #29285 > >     run_target function
00:30:31 verbose #29286 > >         | Fsharp (Native) => fun () =>
00:30:31 verbose #29287 > >             $'System.IO.File.Copy (!old_path, !new_path, true)'
00:30:31 verbose #29288 > >         | Rust (Native) => fun () =>
00:30:31 verbose #29289 > >             inl new_path = join new_path
00:30:31 verbose #29290 > >             !\\(old_path, $'"std::fs::copy(&*$0, &*!new_path)"')
00:30:31 verbose #29291 > >             |> fun x => x : _ u64 stream.io_error
00:30:31 verbose #29292 > >             |> resultm.unwrap'
00:30:31 verbose #29293 > >             |> ignore
00:30:31 verbose #29294 > >         | _ => fun () => ()
00:30:32 verbose #29295 > >
00:30:32 verbose #29296 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:32 verbose #29297 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:32 verbose #29298 > > │ ### file_exists                                                              │
00:30:32 verbose #29299 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:32 verbose #29300 > >
00:30:32 verbose #29301 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:32 verbose #29302 > > let file_exists (path : string) : bool =
00:30:32 verbose #29303 > >     run_target function
00:30:32 verbose #29304 > >         | Fsharp (Native) => fun () =>
00:30:32 verbose #29305 > >             path |> $'System.IO.File.Exists'
00:30:32 verbose #29306 > >         | Rust (Native) => fun () =>
00:30:32 verbose #29307 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:30:32 verbose #29308 > >             path_buf_exists path_buf && path_buf_is_file path_buf
00:30:32 verbose #29309 > >         | TypeScript (Native) => fun () =>
00:30:32 verbose #29310 > >             open typescript_operators
00:30:32 verbose #29311 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:30:32 verbose #29312 > > bool"
00:30:32 verbose #29313 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:30:32 verbose #29314 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:30:32 verbose #29315 > >         | _ => fun () => null ()
00:30:32 verbose #29316 > >
00:30:32 verbose #29317 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:32 verbose #29318 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:32 verbose #29319 > > │ ### directory_delete                                                         │
00:30:32 verbose #29320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:32 verbose #29321 > >
00:30:32 verbose #29322 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:32 verbose #29323 > > let directory_delete recursive (path : string) : () =
00:30:32 verbose #29324 > >     run_target function
00:30:32 verbose #29325 > >         | Fsharp (Native) => fun () =>
00:30:32 verbose #29326 > >             $'System.IO.Directory.Delete (!path, !recursive)'
00:30:32 verbose #29327 > >         | Rust (Native) => fun () =>
00:30:32 verbose #29328 > >             inl path = join path
00:30:32 verbose #29329 > >             if path |> directory_exists then
00:30:32 verbose #29330 > >                 if recursive
00:30:32 verbose #29331 > >                 then !\\(path, $'"std::fs::remove_dir_all(&*$0).unwrap()"')
00:30:32 verbose #29332 > >                 else !\\(path, $'"std::fs::remove_dir(&*$0).unwrap()"')
00:30:32 verbose #29333 > >         | _ => fun () => ()
00:30:33 verbose #29334 > >
00:30:33 verbose #29335 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:33 verbose #29336 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:33 verbose #29337 > > │ ### write_all_text                                                           │
00:30:33 verbose #29338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:33 verbose #29339 > >
00:30:33 verbose #29340 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:33 verbose #29341 > > inl write_all_text (path : string) (text : string) : () =
00:30:33 verbose #29342 > >     run_target function
00:30:33 verbose #29343 > >         | Fsharp (Native) => fun () =>
00:30:33 verbose #29344 > >             inl text = join text
00:30:33 verbose #29345 > >             $'System.IO.File.WriteAllText (!path, !text)'
00:30:33 verbose #29346 > >         | Rust (Native) => fun () =>
00:30:33 verbose #29347 > >             !\\((path, text), $'"std::fs::write(&*$0, &*$1).unwrap()"')
00:30:33 verbose #29348 > >         | _ => fun () => ()
00:30:33 verbose #29349 > >
00:30:33 verbose #29350 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:33 verbose #29351 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:33 verbose #29352 > > │ ### read_all_bytes                                                           │
00:30:33 verbose #29353 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:33 verbose #29354 > >
00:30:33 verbose #29355 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:33 verbose #29356 > > inl read_all_bytes (path : string) : am'.vec u8 =
00:30:33 verbose #29357 > >     run_target function
00:30:33 verbose #29358 > >         | Fsharp (Native) => fun () =>
00:30:33 verbose #29359 > >             $'!path |> System.IO.File.ReadAllBytes'
00:30:33 verbose #29360 > >             |> am'.to_vec
00:30:33 verbose #29361 > >         | Rust (Native) => fun () =>
00:30:33 verbose #29362 > >             path |> read |> resultm.unwrap'
00:30:33 verbose #29363 > >         | _ => fun () => null ()
00:30:34 verbose #29364 > >
00:30:34 verbose #29365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:34 verbose #29366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:34 verbose #29367 > > │ ### read_all_text                                                            │
00:30:34 verbose #29368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:34 verbose #29369 > >
00:30:34 verbose #29370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:34 verbose #29371 > > inl read_all_text (path : string) : string =
00:30:34 verbose #29372 > >     run_target function
00:30:34 verbose #29373 > >         | Fsharp (Native) => fun () =>
00:30:34 verbose #29374 > >             $'!path |> System.IO.File.ReadAllText'
00:30:34 verbose #29375 > >         | Rust (Native) => fun () =>
00:30:34 verbose #29376 > >             path
00:30:34 verbose #29377 > >             |> read_all_bytes
00:30:34 verbose #29378 > >             |> sm'.string_from_utf8
00:30:34 verbose #29379 > >             |> resultm.unwrap'
00:30:34 verbose #29380 > >             |> sm'.from_std_string
00:30:34 verbose #29381 > >         | _ => fun () => null ()
00:30:34 verbose #29382 > >
00:30:34 verbose #29383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:34 verbose #29384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:34 verbose #29385 > > │ ### directory_create_symbolic_link                                           │
00:30:34 verbose #29386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:34 verbose #29387 > >
00:30:34 verbose #29388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:34 verbose #29389 > > inl directory_create_symbolic_link (target : string) (path : string) : () =
00:30:34 verbose #29390 > >     run_target function
00:30:34 verbose #29391 > >         | Fsharp (Native) => fun () =>
00:30:34 verbose #29392 > >             ($'System.IO.Directory.CreateSymbolicLink (!path, !target)' :
00:30:34 verbose #29393 > > file_system_info)
00:30:34 verbose #29394 > >             |> ignore
00:30:34 verbose #29395 > >         | Rust (Native) => fun () =>
00:30:34 verbose #29396 > >             (!\\((target, path), $'"true; #[[cfg(windows)]]
00:30:34 verbose #29397 > > std::os::windows::fs::symlink_dir(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:30:34 verbose #29398 > >             (!\\((target, path), $'"true; #[[cfg(unix)]]
00:30:34 verbose #29399 > > std::os::unix::fs::symlink(&*$0, &*$1).unwrap()"') : bool) |> ignore
00:30:34 verbose #29400 > >         | _ => fun () => ()
00:30:35 verbose #29401 > >
00:30:35 verbose #29402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:35 verbose #29403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:35 verbose #29404 > > │ ### find_parent                                                              │
00:30:35 verbose #29405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:35 verbose #29406 > >
00:30:35 verbose #29407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:35 verbose #29408 > > inl find_parent name is_file root_dir =
00:30:35 verbose #29409 > >     let rec loop dir =
00:30:35 verbose #29410 > >         if dir </> name |> (if is_file then file_exists else directory_exists)
00:30:35 verbose #29411 > >         then dir |> Ok
00:30:35 verbose #29412 > >         else
00:30:35 verbose #29413 > >             inl result = dir |> (join directory_get_parent)
00:30:35 verbose #29414 > >             match result |> optionm'.unbox with
00:30:35 verbose #29415 > >             | Some parent => parent |> loop
00:30:35 verbose #29416 > >             | None => ($'$"""No parent for {if !is_file then "file" else "dir"}
00:30:35 verbose #29417 > > \'{!name}\' at \'{!root_dir}\' (until \'{!dir}\')"""' : string) |> Error
00:30:35 verbose #29418 > >     loop root_dir
00:30:35 verbose #29419 > >
00:30:35 verbose #29420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:35 verbose #29421 > > //// test
00:30:35 verbose #29422 > >
00:30:35 verbose #29423 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:30:35 verbose #29424 > > |> am.map fun (file, is_file) =>
00:30:35 verbose #29425 > >     get_source_directory ()
00:30:35 verbose #29426 > >     |> find_parent file is_file
00:30:35 verbose #29427 > >     |> resultm.get
00:30:35 verbose #29428 > >     |> directory_info
00:30:35 verbose #29429 > >     |> directory_info_name
00:30:35 verbose #29430 > > |> am'.distinct
00:30:35 verbose #29431 > > |> fun (a x : _ int _) => x
00:30:35 verbose #29432 > > |> _assert_eq' ;[[ "polyglot" ]]
00:30:36 verbose #29433 > >
00:30:36 verbose #29434 > > ╭─[ 808.92ms - stdout ]────────────────────────────────────────────────────────╮
00:30:36 verbose #29435 > > │ __assert_eq' / actual: [|"polyglot"|] / expected: [|"polyglot"|]             │
00:30:36 verbose #29436 > > │                                                                              │
00:30:36 verbose #29437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:36 verbose #29438 > >
00:30:36 verbose #29439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:36 verbose #29440 > > //// test
00:30:36 verbose #29441 > > ///! rust
00:30:36 verbose #29442 > >
00:30:36 verbose #29443 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:30:36 verbose #29444 > > |> am.map fun (file, is_file) =>
00:30:36 verbose #29445 > >     fun () =>
00:30:36 verbose #29446 > >         join
00:30:36 verbose #29447 > >             get_source_directory ()
00:30:36 verbose #29448 > >             |> find_parent file is_file
00:30:36 verbose #29449 > >             |> resultm.get
00:30:36 verbose #29450 > >             |> sm'.to_std_string
00:30:36 verbose #29451 > >             |> new_path_buf
00:30:36 verbose #29452 > >             |> path_buf_file_name
00:30:36 verbose #29453 > >             |> optionm'.try'
00:30:36 verbose #29454 > >             |> sm'.from_os_str_ref
00:30:36 verbose #29455 > >             |> Some
00:30:36 verbose #29456 > >             |> optionm'.box
00:30:36 verbose #29457 > >     |> fun x => x () |> optionm'.unbox
00:30:36 verbose #29458 > >     |> optionm'.default_value ""
00:30:36 verbose #29459 > > |> am'.distinct
00:30:36 verbose #29460 > > |> fun result =>
00:30:36 verbose #29461 > >     result |> am'.length |> _assert_eq 1i32
00:30:36 verbose #29462 > >     index result 0i32 |> _assert_eq "polyglot"
00:30:40 verbose #29463 > >
00:30:40 verbose #29464 > > ╭─[ 3.82s - return value ]─────────────────────────────────────────────────────╮
00:30:40 verbose #29465 > > │ __assert_eq / actual: 1 / expected: 1                                        │
00:30:40 verbose #29466 > > │ __assert_eq / actual: "polyglot" / expected: "polyglot"                      │
00:30:40 verbose #29467 > > │                                                                              │
00:30:40 verbose #29468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 verbose #29469 > >
00:30:40 verbose #29470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:40 verbose #29471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:40 verbose #29472 > > │ ### get_workspace_root                                                       │
00:30:40 verbose #29473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 verbose #29474 > >
00:30:40 verbose #29475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:40 verbose #29476 > > inl get_workspace_root () =
00:30:40 verbose #29477 > >     (None, [[ get_source_directory; get_current_directory ]])
00:30:40 verbose #29478 > >     ||> listm.fold fun acc path =>
00:30:40 verbose #29479 > >         match acc with
00:30:40 verbose #29480 > >         | Some path => Some path
00:30:40 verbose #29481 > >         | None =>
00:30:40 verbose #29482 > >             path ()
00:30:40 verbose #29483 > >             |> find_parent ("polyglot" </> ".devcontainer") false
00:30:40 verbose #29484 > >             |> function
00:30:40 verbose #29485 > >                 | Ok path => Some path
00:30:40 verbose #29486 > >                 | Error error =>
00:30:40 verbose #29487 > >                     trace Warning
00:30:40 verbose #29488 > >                         fun () => "file_system.get_workspace_root"
00:30:40 verbose #29489 > >                         fun () => { error }
00:30:40 verbose #29490 > >                     None
00:30:40 verbose #29491 > >     |> optionm.value
00:30:40 verbose #29492 > >     |> fun root => root </> "polyglot"
00:30:40 verbose #29493 > >
00:30:40 verbose #29494 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:40 verbose #29495 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:40 verbose #29496 > > │ ### get_workspace_root_external                                              │
00:30:40 verbose #29497 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:40 verbose #29498 > >
00:30:40 verbose #29499 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:40 verbose #29500 > > inl get_workspace_root_external () =
00:30:40 verbose #29501 > >     inl workspace_root = get_workspace_root ()
00:30:40 verbose #29502 > >     inl current_dir = get_current_directory () |> sm'.to_lower
00:30:40 verbose #29503 > >     inl workspace_root = workspace_root |> sm'.to_lower
00:30:40 verbose #29504 > >     if current_dir |> sm'.starts_with workspace_root
00:30:40 verbose #29505 > >     then Error workspace_root
00:30:40 verbose #29506 > >     else Ok workspace_root
00:30:41 verbose #29507 > >
00:30:41 verbose #29508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:41 verbose #29509 > > //// test
00:30:41 verbose #29510 > >
00:30:41 verbose #29511 > > get_workspace_root_external ()
00:30:41 verbose #29512 > > |> resultm.unwrap_err
00:30:41 verbose #29513 > > |> get_file_name
00:30:41 verbose #29514 > > |> _assert_eq "polyglot"
00:30:42 verbose #29515 > >
00:30:42 verbose #29516 > > ╭─[ 1.32s - stdout ]───────────────────────────────────────────────────────────╮
00:30:42 verbose #29517 > > │ __assert_eq / actual: "polyglot" / expected: "polyglot"                      │
00:30:42 verbose #29518 > > │                                                                              │
00:30:42 verbose #29519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:42 verbose #29520 > >
00:30:42 verbose #29521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:42 verbose #29522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:42 verbose #29523 > > │ ### standardize_path                                                         │
00:30:42 verbose #29524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:42 verbose #29525 > >
00:30:42 verbose #29526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:42 verbose #29527 > > let standardize_path path =
00:30:42 verbose #29528 > >     path |> get_full_path |> normalize_path
00:30:43 verbose #29529 > >
00:30:43 verbose #29530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:43 verbose #29531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:43 verbose #29532 > > │ ### absolute_path                                                            │
00:30:43 verbose #29533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:43 verbose #29534 > >
00:30:43 verbose #29535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:43 verbose #29536 > > let absolute_path path =
00:30:43 verbose #29537 > >     inl current_dir = get_current_directory ()
00:30:43 verbose #29538 > >     current_dir </> path |> standardize_path
00:30:43 verbose #29539 > >
00:30:43 verbose #29540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:43 verbose #29541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:43 verbose #29542 > > │ ### new_file_uri                                                             │
00:30:43 verbose #29543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:43 verbose #29544 > >
00:30:43 verbose #29545 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:43 verbose #29546 > > inl new_file_uri (path : string) : string =
00:30:43 verbose #29547 > >     inl path = path |> sm'.trim_start [[ '/' ]]
00:30:43 verbose #29548 > >     $'$"file:///{!path}"'
00:30:44 verbose #29549 > >
00:30:44 verbose #29550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:44 verbose #29551 > > //// test
00:30:44 verbose #29552 > >
00:30:44 verbose #29553 > > @"\\?\C:\test"
00:30:44 verbose #29554 > > |> normalize_path
00:30:44 verbose #29555 > > |> new_file_uri
00:30:44 verbose #29556 > > |> _assert_eq "file:///c:/test"
00:30:44 verbose #29557 > >
00:30:44 verbose #29558 > > ╭─[ 582.68ms - stdout ]────────────────────────────────────────────────────────╮
00:30:44 verbose #29559 > > │ __assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"        │
00:30:44 verbose #29560 > > │                                                                              │
00:30:44 verbose #29561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:44 verbose #29562 > >
00:30:44 verbose #29563 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:44 verbose #29564 > > //// test
00:30:44 verbose #29565 > > ///! rust -d regex
00:30:44 verbose #29566 > >
00:30:44 verbose #29567 > > @"\\?\C:\test"
00:30:44 verbose #29568 > > |> normalize_path
00:30:44 verbose #29569 > > |> new_file_uri
00:30:44 verbose #29570 > > |> _assert_eq "file:///c:/test"
00:30:48 verbose #29571 > >
00:30:48 verbose #29572 > > ╭─[ 3.85s - return value ]─────────────────────────────────────────────────────╮
00:30:48 verbose #29573 > > │ __assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"        │
00:30:48 verbose #29574 > > │                                                                              │
00:30:48 verbose #29575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:48 verbose #29576 > >
00:30:48 verbose #29577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:48 verbose #29578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:48 verbose #29579 > > │ ### file_delete                                                              │
00:30:48 verbose #29580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:48 verbose #29581 > >
00:30:48 verbose #29582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:48 verbose #29583 > > inl file_delete (path : string) : () =
00:30:48 verbose #29584 > >     run_target function
00:30:48 verbose #29585 > >         | Fsharp (Native) => fun () =>
00:30:48 verbose #29586 > >             path |> $'System.IO.File.Delete'
00:30:48 verbose #29587 > >         | Rust (Native) => fun () =>
00:30:48 verbose #29588 > >             !\\(path, $'"std::fs::remove_file(&*$0).unwrap()"')
00:30:48 verbose #29589 > >         | _ => fun () => ()
00:30:49 verbose #29590 > >
00:30:49 verbose #29591 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:49 verbose #29592 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:49 verbose #29593 > > │ ## fsharp                                                                    │
00:30:49 verbose #29594 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:49 verbose #29595 > >
00:30:49 verbose #29596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:49 verbose #29597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:49 verbose #29598 > > │ ### file_exists_content_async                                                │
00:30:49 verbose #29599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:49 verbose #29600 > >
00:30:49 verbose #29601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:49 verbose #29602 > > inl file_exists_content_async path content : async.async bool =
00:30:49 verbose #29603 > >     run_target function
00:30:49 verbose #29604 > >         | Fsharp (Native) => fun () =>
00:30:49 verbose #29605 > >             fun () =>
00:30:49 verbose #29606 > >                 fix_condition
00:30:49 verbose #29607 > >                     fun () => path |> file_exists |> not
00:30:49 verbose #29608 > >                     fun () => false |> return
00:30:49 verbose #29609 > >                     fun () =>
00:30:49 verbose #29610 > >                         inl existing_content = path |> read_all_text_async |>
00:30:49 verbose #29611 > > async.let'
00:30:49 verbose #29612 > >                         content = existing_content |> return
00:30:49 verbose #29613 > >             |> async.new_async_unit
00:30:49 verbose #29614 > >         | _ => fun () => null ()
00:30:49 verbose #29615 > >
00:30:49 verbose #29616 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:49 verbose #29617 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:49 verbose #29618 > > │ ### write_all_text_exists_async                                              │
00:30:49 verbose #29619 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:49 verbose #29620 > >
00:30:49 verbose #29621 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:49 verbose #29622 > > inl write_all_text_exists_async path contents =
00:30:49 verbose #29623 > >     fun () =>
00:30:49 verbose #29624 > >         inl exists' = contents |> file_exists_content_async path |> async.let'
00:30:49 verbose #29625 > >         if not exists'
00:30:49 verbose #29626 > >         then contents |> write_all_text_async path |> async.do
00:30:49 verbose #29627 > >     |> async.new_async
00:30:50 verbose #29628 > >
00:30:50 verbose #29629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:50 verbose #29630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:50 verbose #29631 > > │ ### delete_directory_async                                                   │
00:30:50 verbose #29632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:50 verbose #29633 > >
00:30:50 verbose #29634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:50 verbose #29635 > > inl delete_directory_async path : _ i64 =
00:30:50 verbose #29636 > >     run_target function
00:30:50 verbose #29637 > >         | Fsharp (Native) => fun () =>
00:30:50 verbose #29638 > >             let rec loop (retry : i64) =
00:30:50 verbose #29639 > >                 fun () =>
00:30:50 verbose #29640 > >                     try_unit
00:30:50 verbose #29641 > >                         fun () =>
00:30:50 verbose #29642 > >                             path |> directory_delete true
00:30:50 verbose #29643 > >                             retry |> return
00:30:50 verbose #29644 > >                         fun ex =>
00:30:50 verbose #29645 > >                             if retry % 100i64 = 0 then
00:30:50 verbose #29646 > >                                 inl ex = ex |> sm'.format_exception
00:30:50 verbose #29647 > >                                 trace Debug
00:30:50 verbose #29648 > >                                     fun () =>
00:30:50 verbose #29649 > > "file_system.delete_directory_async"
00:30:50 verbose #29650 > >                                     fun () => { ex path = path |> get_file_name
00:30:50 verbose #29651 > > }
00:30:50 verbose #29652 > >                             async.sleep 10i32 |> async.do
00:30:50 verbose #29653 > >                             loop (retry + 1) |> async.return_await
00:30:50 verbose #29654 > >                 |> async.new_async
00:30:50 verbose #29655 > >             loop 0
00:30:50 verbose #29656 > >         | _ => fun () => null ()
00:30:50 verbose #29657 > >
00:30:50 verbose #29658 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:50 verbose #29659 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:50 verbose #29660 > > │ ### trace_file                                                               │
00:30:50 verbose #29661 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:50 verbose #29662 > >
00:30:50 verbose #29663 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:50 verbose #29664 > > let rec trace_file text =
00:30:50 verbose #29665 > >     run_target function
00:30:50 verbose #29666 > >     | Fsharp (Native) => fun () =>
00:30:50 verbose #29667 > >         try_unit
00:30:50 verbose #29668 > >             fun () =>
00:30:50 verbose #29669 > >                 inl assembly_name = env.get_entry_assembly_name ()
00:30:50 verbose #29670 > >                 inl guid = date_time.now () |> date_time.new_guid_from_date_time
00:30:50 verbose #29671 > >                 inl file_name = $'$"{!assembly_name}_{!guid}.txt"'
00:30:50 verbose #29672 > >
00:30:50 verbose #29673 > >                 inl workspace_root = get_workspace_root ()
00:30:50 verbose #29674 > >                 inl trace_dir = workspace_root </> "target/trace"
00:30:50 verbose #29675 > >                 trace_dir |> create_directory |> ignore
00:30:50 verbose #29676 > >                 inl path = trace_dir </> file_name
00:30:50 verbose #29677 > >                 text |> write_all_text_async path |> async.run_synchronously
00:30:50 verbose #29678 > >             fun ex =>
00:30:50 verbose #29679 > >                 trace_file $'$"file_system.trace_file / ex: %A{!ex}"'
00:30:50 verbose #29680 > >     | _ => fun () => ()
00:30:51 verbose #29681 > >
00:30:51 verbose #29682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:51 verbose #29683 > > //// test
00:30:51 verbose #29684 > >
00:30:51 verbose #29685 > > inl get_count dir : i64 =
00:30:51 verbose #29686 > >     inl files = dir |> directory_get_files
00:30:51 verbose #29687 > >     a files |> am'.length
00:30:51 verbose #29688 > >
00:30:51 verbose #29689 > > inl trace_dir = get_workspace_root () </> "target/trace"
00:30:51 verbose #29690 > > trace_dir |> create_directory |> ignore
00:30:51 verbose #29691 > >
00:30:51 verbose #29692 > > inl count = get_count trace_dir
00:30:51 verbose #29693 > >
00:30:51 verbose #29694 > > trace_file "test"
00:30:51 verbose #29695 > >
00:30:51 verbose #29696 > > get_count trace_dir
00:30:51 verbose #29697 > > |> _assert_eq (count + 1)
00:30:53 verbose #29698 > >
00:30:53 verbose #29699 > > ╭─[ 2.02s - stdout ]───────────────────────────────────────────────────────────╮
00:30:53 verbose #29700 > > │ __assert_eq / actual: 2L / expected: 2L                                      │
00:30:53 verbose #29701 > > │                                                                              │
00:30:53 verbose #29702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 verbose #29703 > >
00:30:53 verbose #29704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:53 verbose #29705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:53 verbose #29706 > > │ ### init_trace_file                                                          │
00:30:53 verbose #29707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 verbose #29708 > >
00:30:53 verbose #29709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:53 verbose #29710 > > inl init_trace_file enabled =
00:30:53 verbose #29711 > >     inl state_trace_file = get_trace_state_or_init None .trace_file
00:30:53 verbose #29712 > >     state_trace_file <- if enabled then trace_file else ignore
00:30:53 verbose #29713 > >
00:30:53 verbose #29714 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:53 verbose #29715 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:53 verbose #29716 > > │ ## file_system                                                               │
00:30:53 verbose #29717 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 verbose #29718 > >
00:30:53 verbose #29719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:53 verbose #29720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:53 verbose #29721 > > │ ### create_dir                                                               │
00:30:53 verbose #29722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:53 verbose #29723 > >
00:30:53 verbose #29724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:53 verbose #29725 > > let create_dir dir =
00:30:53 verbose #29726 > >     run_target function
00:30:53 verbose #29727 > >         | Rust (Contract | Wasm) => fun () => null ()
00:30:53 verbose #29728 > >         | Rust (Native) => fun () =>
00:30:53 verbose #29729 > >             inl dir = join dir
00:30:53 verbose #29730 > >             match dir |> create_dir_all |> resultm.map_error' sm'.format' |>
00:30:53 verbose #29731 > > resultm.unbox with
00:30:53 verbose #29732 > >             | Ok () =>
00:30:53 verbose #29733 > >                 trace Verbose
00:30:53 verbose #29734 > >                     fun () => "file_system.create_dir"
00:30:53 verbose #29735 > >                     fun () => { dir }
00:30:53 verbose #29736 > >             | Error error =>
00:30:53 verbose #29737 > >                 trace Critical
00:30:53 verbose #29738 > >                     fun () => "file_system.create_dir"
00:30:53 verbose #29739 > >                     fun () => { dir error }
00:30:53 verbose #29740 > >             inl disposable : _ () = new_disposable fun () =>
00:30:53 verbose #29741 > >                 dir
00:30:53 verbose #29742 > >                 |> directory_delete true
00:30:53 verbose #29743 > >             disposable
00:30:53 verbose #29744 > >         | _ => fun () =>
00:30:53 verbose #29745 > >             inl directory_info = dir |> create_directory
00:30:53 verbose #29746 > >             inl exists' = directory_info |> directory_info_exists
00:30:53 verbose #29747 > >             if not exists' then
00:30:53 verbose #29748 > >                 inl creation_time = directory_info |>
00:30:53 verbose #29749 > > directory_info_creation_time
00:30:53 verbose #29750 > >                 inl result = ($'{| Exists = !exists'; CreationTime =
00:30:53 verbose #29751 > > !creation_time |}' : any) |> sm'.format_debug
00:30:53 verbose #29752 > >                 trace Debug
00:30:53 verbose #29753 > >                     fun () => "file_system.create_dir"
00:30:53 verbose #29754 > >                     fun () => { dir result }
00:30:53 verbose #29755 > >             inl disposable : _ () = new_disposable fun () =>
00:30:53 verbose #29756 > >                 dir
00:30:53 verbose #29757 > >                 |> delete_directory_async
00:30:53 verbose #29758 > >                 |> async.ignore
00:30:53 verbose #29759 > >                 |> async.run_synchronously
00:30:53 verbose #29760 > >             disposable
00:30:54 verbose #29761 > >
00:30:54 verbose #29762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:30:54 verbose #29763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:30:54 verbose #29764 > > │ ### create_temp_dir                                                          │
00:30:54 verbose #29765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:54 verbose #29766 > >
00:30:54 verbose #29767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:54 verbose #29768 > > inl create_temp_dir () =
00:30:54 verbose #29769 > >     inl dir = create_temp_path ()
00:30:54 verbose #29770 > >     dir, dir |> create_dir
00:30:54 verbose #29771 > >
00:30:54 verbose #29772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:54 verbose #29773 > > //// test
00:30:54 verbose #29774 > >
00:30:54 verbose #29775 > > inl path, disposable = create_temp_dir ()
00:30:54 verbose #29776 > > disposable |> use |> ignore
00:30:54 verbose #29777 > > path
00:30:54 verbose #29778 > > |> directory_exists
00:30:54 verbose #29779 > > |> _assert_eq true
00:30:57 verbose #29780 > >
00:30:57 verbose #29781 > > ╭─[ 2.90s - stdout ]───────────────────────────────────────────────────────────╮
00:30:57 verbose #29782 > > │ __assert_eq / actual: true / expected: true                                  │
00:30:57 verbose #29783 > > │                                                                              │
00:30:57 verbose #29784 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:30:57 verbose #29785 > >
00:30:57 verbose #29786 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:30:57 verbose #29787 > > //// test
00:30:57 verbose #29788 > > ///! rust -d chrono
00:30:57 verbose #29789 > >
00:30:57 verbose #29790 > > inl path, disposable = create_temp_dir ()
00:30:57 verbose #29791 > > path
00:30:57 verbose #29792 > > |> directory_exists
00:30:57 verbose #29793 > > |> _assert_eq true
00:30:57 verbose #29794 > > disposable |> use |> ignore
00:30:57 verbose #29795 > > path
00:30:57 verbose #29796 > > |> directory_exists
00:30:57 verbose #29797 > > |> _assert_eq false
00:31:02 verbose #29798 > >
00:31:02 verbose #29799 > > ╭─[ 5.19s - return value ]─────────────────────────────────────────────────────╮
00:31:02 verbose #29800 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:31:02 verbose #29801 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_67a0ceef │
00:31:02 verbose #29802 > > │ 40c717ddd5ccb1cf3fdfb29a8c13b18c15496f3b91ce8641cc690e09\20240919-1606-0277- │
00:31:02 verbose #29803 > > │ 1121-0000005ffc88 }                                                          │
00:31:02 verbose #29804 > > │ __assert_eq / actual: true / expected: true                                  │
00:31:02 verbose #29805 > > │ __assert_eq / actual: false / expected: false                                │
00:31:02 verbose #29806 > > │                                                                              │
00:31:02 verbose #29807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:02 verbose #29808 > >
00:31:02 verbose #29809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:02 verbose #29810 > > //// test
00:31:02 verbose #29811 > >
00:31:02 verbose #29812 > > inl lock_directory path =
00:31:02 verbose #29813 > >     fun () =>
00:31:02 verbose #29814 > >         trace Debug (fun () => "_1") id
00:31:02 verbose #29815 > >         "0" |> write_all_text_async (path </> "test.txt") |> async.do
00:31:02 verbose #29816 > >         file_stream
00:31:02 verbose #29817 > >             (path </> "test.txt")
00:31:02 verbose #29818 > >             ModeOpen
00:31:02 verbose #29819 > >             AccessReadWrite
00:31:02 verbose #29820 > >             ShareNone
00:31:02 verbose #29821 > >         |> use
00:31:02 verbose #29822 > >         |> ignore
00:31:02 verbose #29823 > >         trace Debug (fun () => "_2") id
00:31:02 verbose #29824 > >         async.sleep 2000 |> async.do
00:31:02 verbose #29825 > >         trace Debug (fun () => "_3") id
00:31:02 verbose #29826 > >         () |> return
00:31:02 verbose #29827 > >     |> async.new_async
00:31:02 verbose #29828 > >
00:31:02 verbose #29829 > > inl temp_dir, disposable = create_temp_dir ()
00:31:02 verbose #29830 > > disposable |> use |> ignore
00:31:02 verbose #29831 > > inl path = temp_dir </> "test"
00:31:02 verbose #29832 > >
00:31:02 verbose #29833 > > fun () =>
00:31:02 verbose #29834 > >     trace Debug (fun () => "1") id
00:31:02 verbose #29835 > >     path |> create_directory |> ignore
00:31:02 verbose #29836 > >     trace Debug (fun () => "2") id
00:31:02 verbose #29837 > >     inl child = path |> lock_directory |> async.start_child |> async.let'
00:31:02 verbose #29838 > >     trace Debug (fun () => "3") id
00:31:02 verbose #29839 > >     async.sleep 60 |> async.do
00:31:02 verbose #29840 > >     trace Debug (fun () => "4") id
00:31:02 verbose #29841 > >     inl retries = path |> delete_directory_async |> async.let'
00:31:02 verbose #29842 > >     trace Debug (fun () => "5") id
00:31:02 verbose #29843 > >     child |> async.do
00:31:02 verbose #29844 > >     trace Debug (fun () => "6") id
00:31:02 verbose #29845 > >     retries |> return
00:31:02 verbose #29846 > > |> async.new_async_unit
00:31:02 verbose #29847 > > |> async.run_with_timeout 3000
00:31:02 verbose #29848 > > |> fun x => x : _ i64
00:31:02 verbose #29849 > > |> function
00:31:02 verbose #29850 > >     | Some (retries : i64) =>
00:31:02 verbose #29851 > >         retries
00:31:02 verbose #29852 > >         |> _assert_between
00:31:02 verbose #29853 > >             (if platform.is_windows () then 50 else 0)
00:31:02 verbose #29854 > >             (if platform.is_windows () then 180 else 0)
00:31:02 verbose #29855 > >
00:31:02 verbose #29856 > >         true
00:31:02 verbose #29857 > >     | _ => false
00:31:02 verbose #29858 > > |> _assert_eq true
00:31:10 verbose #29859 > >
00:31:10 verbose #29860 > > ╭─[ 7.93s - stdout ]───────────────────────────────────────────────────────────╮
00:31:10 verbose #29861 > > │ 00:00:00   debug #1 1                                                   │
00:31:10 verbose #29862 > > │ 00:00:00   debug #2 2                                                   │
00:31:10 verbose #29863 > > │ 00:00:00   debug #3 3                                                   │
00:31:10 verbose #29864 > > │ 00:00:00   debug #4 _1                                                  │
00:31:10 verbose #29865 > > │ 00:00:00   debug #5 _2                                                  │
00:31:10 verbose #29866 > > │ 00:00:00   debug #6 4                                                   │
00:31:10 verbose #29867 > > │ 00:00:00   debug #7 file_system.delete_directory_async / { ex =         │
00:31:10 verbose #29868 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:31:10 verbose #29869 > > │ it is being used by another process.; path = test }                          │
00:31:10 verbose #29870 > > │ 00:00:01   debug #8 file_system.delete_directory_async / { ex =         │
00:31:10 verbose #29871 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:31:10 verbose #29872 > > │ it is being used by another process.; path = test }                          │
00:31:10 verbose #29873 > > │ 00:00:02   debug #9 _3                                                  │
00:31:10 verbose #29874 > > │ 00:00:02   debug #10 5                                                  │
00:31:10 verbose #29875 > > │ 00:00:02   debug #11 6                                                  │
00:31:10 verbose #29876 > > │ __assert_between / actual: 125L / expected: struct (50L, 180L)               │
00:31:10 verbose #29877 > > │ __assert_eq / actual: true / expected: true                                  │
00:31:10 verbose #29878 > > │                                                                              │
00:31:10 verbose #29879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:10 verbose #29880 > >
00:31:10 verbose #29881 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:10 verbose #29882 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:10 verbose #29883 > > │ ### create_temp_dir'                                                         │
00:31:10 verbose #29884 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:10 verbose #29885 > >
00:31:10 verbose #29886 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:10 verbose #29887 > > inl create_temp_dir' (hash : string) =
00:31:10 verbose #29888 > >     inl dir = hash |> guid.hash_guid |> create_temp_path'
00:31:10 verbose #29889 > >     dir, dir |> create_dir
00:31:11 verbose #29890 > >
00:31:11 verbose #29891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:11 verbose #29892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:11 verbose #29893 > > │ ### link_directory                                                           │
00:31:11 verbose #29894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:11 verbose #29895 > >
00:31:11 verbose #29896 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:11 verbose #29897 > > let link_directory target_path path =
00:31:11 verbose #29898 > >     if target_path |> directory_exists |> not
00:31:11 verbose #29899 > >     then target_path |> create_dir |> ignore
00:31:11 verbose #29900 > >
00:31:11 verbose #29901 > >     inl lib_dir_path = path |> get_directory_name
00:31:11 verbose #29902 > >     if lib_dir_path |> directory_exists |> not
00:31:11 verbose #29903 > >     then lib_dir_path |> create_dir |> ignore
00:31:11 verbose #29904 > >
00:31:11 verbose #29905 > >     if (path |> directory_exists)
00:31:11 verbose #29906 > >         && (path |> read_link |> resultm.is_err) then
00:31:11 verbose #29907 > >         path |> directory_delete true
00:31:11 verbose #29908 > >
00:31:11 verbose #29909 > >     if path |> directory_exists |> not then
00:31:11 verbose #29910 > >         path |> directory_create_symbolic_link target_path
00:31:11 verbose #29911 > >
00:31:11 verbose #29912 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:11 verbose #29913 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:11 verbose #29914 > > │ ## rust                                                                      │
00:31:11 verbose #29915 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:11 verbose #29916 > >
00:31:11 verbose #29917 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:11 verbose #29918 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:11 verbose #29919 > > │ ### file_exists_content                                                      │
00:31:11 verbose #29920 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:11 verbose #29921 > >
00:31:11 verbose #29922 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:11 verbose #29923 > > let file_exists_content path content : bool =
00:31:11 verbose #29924 > >     run_target function
00:31:11 verbose #29925 > >         | Rust (Native) => fun () =>
00:31:11 verbose #29926 > >             if path |> file_exists |> not
00:31:11 verbose #29927 > >             then false
00:31:11 verbose #29928 > >             else
00:31:11 verbose #29929 > >                 inl existing_content = path |> read_all_text
00:31:11 verbose #29930 > >                 content = existing_content
00:31:11 verbose #29931 > >         | _ => fun () => null ()
00:31:12 verbose #29932 > >
00:31:12 verbose #29933 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:12 verbose #29934 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:12 verbose #29935 > > │ ### write_all_text_exists                                                    │
00:31:12 verbose #29936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:12 verbose #29937 > >
00:31:12 verbose #29938 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:12 verbose #29939 > > let write_all_text_exists path contents =
00:31:12 verbose #29940 > >     inl exists' = contents |> file_exists_content path
00:31:12 verbose #29941 > >     if not exists' then
00:31:12 verbose #29942 > >         inl dir = path |> get_directory_name
00:31:12 verbose #29943 > >         if dir |> directory_exists |> not
00:31:12 verbose #29944 > >         then dir |> create_dir |> ignore
00:31:12 verbose #29945 > >         contents |> write_all_text path
00:31:12 verbose #29946 > >
00:31:12 verbose #29947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:12 verbose #29948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:12 verbose #29949 > > │ ## fsharp                                                                    │
00:31:12 verbose #29950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:12 verbose #29951 > >
00:31:12 verbose #29952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:12 verbose #29953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:12 verbose #29954 > > │ ### wait_for_file_access                                                     │
00:31:12 verbose #29955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:12 verbose #29956 > >
00:31:12 verbose #29957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:12 verbose #29958 > > inl wait_for_file_access access path =
00:31:12 verbose #29959 > >     run_target function
00:31:12 verbose #29960 > >         | Fsharp (Native) => fun () =>
00:31:12 verbose #29961 > >             inl file_access, file_share =
00:31:12 verbose #29962 > >                 access
00:31:12 verbose #29963 > >                 |> optionm'.default_value (AccessReadWrite, ShareRead)
00:31:12 verbose #29964 > >             let rec loop (retry : i64) : _ i64 =
00:31:12 verbose #29965 > >                 fun () =>
00:31:12 verbose #29966 > >                     try_unit
00:31:12 verbose #29967 > >                         fun () =>
00:31:12 verbose #29968 > >                             file_stream
00:31:12 verbose #29969 > >                                 path
00:31:12 verbose #29970 > >                                 ModeOpen
00:31:12 verbose #29971 > >                                 file_access
00:31:12 verbose #29972 > >                                 file_share
00:31:12 verbose #29973 > >                             |> use
00:31:12 verbose #29974 > >                             |> ignore
00:31:12 verbose #29975 > >                             retry |> return
00:31:12 verbose #29976 > >                         fun ex =>
00:31:12 verbose #29977 > >                             if retry > 0 && retry % 100i64 = 0 then
00:31:12 verbose #29978 > >                                 inl ex = ex |> sm'.format_exception
00:31:12 verbose #29979 > >                                 trace Debug
00:31:12 verbose #29980 > >                                     fun () => "file_system.wait_for_file_access"
00:31:12 verbose #29981 > >                                     fun () => { path = path |> get_file_name;
00:31:12 verbose #29982 > > retry ex }
00:31:12 verbose #29983 > >                             async.sleep 10i32 |> async.do
00:31:12 verbose #29984 > >                             loop (retry + 1) |> async.return_await
00:31:12 verbose #29985 > >                 |> async.new_async
00:31:12 verbose #29986 > >             loop 0
00:31:12 verbose #29987 > >         | _ => fun () => null ()
00:31:12 verbose #29988 > >
00:31:12 verbose #29989 > > inl wait_for_file_access_read path =
00:31:12 verbose #29990 > >     path
00:31:12 verbose #29991 > >     |> wait_for_file_access (Some (
00:31:12 verbose #29992 > >         AccessRead,
00:31:12 verbose #29993 > >         ShareRead
00:31:12 verbose #29994 > >     ))
00:31:13 verbose #29995 > >
00:31:13 verbose #29996 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:13 verbose #29997 > > //// test
00:31:13 verbose #29998 > >
00:31:13 verbose #29999 > > inl lock_file path =
00:31:13 verbose #30000 > >     fun () =>
00:31:13 verbose #30001 > >         trace Debug (fun () => "_1") id
00:31:13 verbose #30002 > >         inl stream : file_stream' =
00:31:13 verbose #30003 > >             file_stream
00:31:13 verbose #30004 > >                 path
00:31:13 verbose #30005 > >                 ModeOpen
00:31:13 verbose #30006 > >                 AccessReadWrite
00:31:13 verbose #30007 > >                 ShareNone
00:31:13 verbose #30008 > >             |> use
00:31:13 verbose #30009 > >         trace Debug (fun () => "_2") id
00:31:13 verbose #30010 > >         async.sleep 2000 |> async.do
00:31:13 verbose #30011 > >         trace Debug (fun () => "_3") id
00:31:13 verbose #30012 > >         ($'!stream.Seek (0L, System.IO.SeekOrigin.Begin)' : i64) |> ignore
00:31:13 verbose #30013 > >         trace Debug (fun () => "_4") id
00:31:13 verbose #30014 > >         $'!stream.WriteByte' 49u8
00:31:13 verbose #30015 > >         trace Debug (fun () => "_5") id
00:31:13 verbose #30016 > >         stream |> $'_.Flush()'
00:31:13 verbose #30017 > >         trace Debug (fun () => "_6") id
00:31:13 verbose #30018 > >     |> async.new_async
00:31:13 verbose #30019 > >
00:31:13 verbose #30020 > > inl file_name = "test.txt"
00:31:13 verbose #30021 > > inl text = "0"
00:31:13 verbose #30022 > >
00:31:13 verbose #30023 > > inl temp_dir, disposable =
00:31:13 verbose #30024 > >     (file_name, text)
00:31:13 verbose #30025 > >     |> sm'.format_debug
00:31:13 verbose #30026 > >     |> crypto.hash_text
00:31:13 verbose #30027 > >     |> create_temp_dir'
00:31:13 verbose #30028 > > disposable |> use |> ignore
00:31:13 verbose #30029 > > inl path = temp_dir </> file_name
00:31:13 verbose #30030 > >
00:31:13 verbose #30031 > > fun () =>
00:31:13 verbose #30032 > >     trace Debug (fun () => "1") id
00:31:13 verbose #30033 > >     text |> write_all_text_async path |> async.do
00:31:13 verbose #30034 > >     trace Debug (fun () => "2") id
00:31:13 verbose #30035 > >     inl child = path |> lock_file |> async.start_child |> async.let'
00:31:13 verbose #30036 > >     trace Debug (fun () => "3") id
00:31:13 verbose #30037 > >     async.sleep 1 |> async.do
00:31:13 verbose #30038 > >     trace Debug (fun () => "4") id
00:31:13 verbose #30039 > >     inl retries = path |> wait_for_file_access None |> async.let'
00:31:13 verbose #30040 > >     trace Debug (fun () => "5") id
00:31:13 verbose #30041 > >     inl text = path |> read_all_text_async |> async.let'
00:31:13 verbose #30042 > >     trace Debug (fun () => "6") id
00:31:13 verbose #30043 > >     child |> async.do
00:31:13 verbose #30044 > >     trace Debug (fun () => "7") id
00:31:13 verbose #30045 > >     (retries, text) |> return
00:31:13 verbose #30046 > > |> async.new_async_unit
00:31:13 verbose #30047 > > |> async.run_with_timeout 3000
00:31:13 verbose #30048 > > |> function
00:31:13 verbose #30049 > >     | Some ((retries : i64), text) =>
00:31:13 verbose #30050 > >         retries
00:31:13 verbose #30051 > >         |> _assert_between
00:31:13 verbose #30052 > >             (if platform.is_windows () then 50 else 100)
00:31:13 verbose #30053 > >             (if platform.is_windows () then 180 else 200)
00:31:13 verbose #30054 > >
00:31:13 verbose #30055 > >         text |> _assert_eq (join "1")
00:31:13 verbose #30056 > >
00:31:13 verbose #30057 > >         true
00:31:13 verbose #30058 > >     | _ => false
00:31:13 verbose #30059 > > |> _assert_eq true
00:31:22 verbose #30060 > >
00:31:22 verbose #30061 > > ╭─[ 9.42s - stdout ]───────────────────────────────────────────────────────────╮
00:31:22 verbose #30062 > > │ 00:00:00   debug #1 1                                                   │
00:31:22 verbose #30063 > > │ 00:00:00   debug #2 2                                                   │
00:31:22 verbose #30064 > > │ 00:00:00   debug #3 3                                                   │
00:31:22 verbose #30065 > > │ 00:00:00   debug #4 _1                                                  │
00:31:22 verbose #30066 > > │ 00:00:00   debug #5 _2                                                  │
00:31:22 verbose #30067 > > │ 00:00:00   debug #6 4                                                   │
00:31:22 verbose #30068 > > │ 00:00:01   debug #7 file_system.wait_for_file_access / { path =         │
00:31:22 verbose #30069 > > │ test.txt; retry = 100; ex = System.IO.IOException: The process cannot access │
00:31:22 verbose #30070 > > │ the file                                                                     │
00:31:22 verbose #30071 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:31:22 verbose #30072 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:31:22 verbose #30073 > > │ process. }                                                                   │
00:31:22 verbose #30074 > > │ 00:00:02   debug #8 _3                                                  │
00:31:22 verbose #30075 > > │ 00:00:02   debug #9 _4                                                  │
00:31:22 verbose #30076 > > │ 00:00:02   debug #10 _5                                                 │
00:31:22 verbose #30077 > > │ 00:00:02   debug #11 _6                                                 │
00:31:22 verbose #30078 > > │ 00:00:02   debug #12 5                                                  │
00:31:22 verbose #30079 > > │ 00:00:02   debug #13 6                                                  │
00:31:22 verbose #30080 > > │ 00:00:02   debug #14 7                                                  │
00:31:22 verbose #30081 > > │ __assert_between / actual: 129L / expected: struct (50L, 180L)               │
00:31:22 verbose #30082 > > │ __assert_eq / actual: "1" / expected: "1"                                    │
00:31:22 verbose #30083 > > │ __assert_eq / actual: true / expected: true                                  │
00:31:22 verbose #30084 > > │                                                                              │
00:31:22 verbose #30085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:22 verbose #30086 > >
00:31:22 verbose #30087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:22 verbose #30088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:22 verbose #30089 > > │ ### read_all_text_retry_async                                                │
00:31:22 verbose #30090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:22 verbose #30091 > >
00:31:22 verbose #30092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:22 verbose #30093 > > inl read_all_text_retry_async full_path : async.async (optionm'.option' string)
00:31:22 verbose #30094 > > =
00:31:22 verbose #30095 > >     run_target function
00:31:22 verbose #30096 > >         | Fsharp (Native) => fun () =>
00:31:22 verbose #30097 > >             let rec loop (retry : i64) =
00:31:22 verbose #30098 > >                 fun () =>
00:31:22 verbose #30099 > >                     try_unit
00:31:22 verbose #30100 > >                         fun () =>
00:31:22 verbose #30101 > >                             if retry > 0
00:31:22 verbose #30102 > >                             then
00:31:22 verbose #30103 > >                                 full_path
00:31:22 verbose #30104 > >                                 |> wait_for_file_access_read
00:31:22 verbose #30105 > >                                 |> async.run_with_timeout_async 1000
00:31:22 verbose #30106 > >                                 |> async.ignore
00:31:22 verbose #30107 > >                                 |> async.do
00:31:22 verbose #30108 > >                             full_path |> read_all_text_async |> async.map (Some
00:31:22 verbose #30109 > > >> optionm'.box) |> async.return_await
00:31:22 verbose #30110 > >                         fun ex =>
00:31:22 verbose #30111 > >                             fix_condition
00:31:22 verbose #30112 > >                                 fun () => retry <> 0
00:31:22 verbose #30113 > >                                 fun () =>
00:31:22 verbose #30114 > >                                     inl ex = ex |> sm'.format_exception
00:31:22 verbose #30115 > >                                     trace Debug
00:31:22 verbose #30116 > >                                         fun () => $'"read_all_text_retry_async"'
00:31:22 verbose #30117 > >                                         fun () => { retry ex }
00:31:22 verbose #30118 > >                                     (None : _ string) |> optionm'.box |> return
00:31:22 verbose #30119 > >                                 fun () =>
00:31:22 verbose #30120 > >                                     loop (retry + 1) |> async.return_await
00:31:22 verbose #30121 > >                 |> async.new_async
00:31:22 verbose #30122 > >             loop 0
00:31:22 verbose #30123 > >         | _ => fun () => null ()
00:31:23 verbose #30124 > >
00:31:23 verbose #30125 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:23 verbose #30126 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:23 verbose #30127 > > │ ### move_file_async                                                          │
00:31:23 verbose #30128 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:23 verbose #30129 > >
00:31:23 verbose #30130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:23 verbose #30131 > > inl move_file_async new_path old_path : _ i64 =
00:31:23 verbose #30132 > >     run_target function
00:31:23 verbose #30133 > >         | Fsharp (Native) => fun () =>
00:31:23 verbose #30134 > >             let rec loop (retry : i64) =
00:31:23 verbose #30135 > >                 fun () =>
00:31:23 verbose #30136 > >                     try_unit
00:31:23 verbose #30137 > >                         fun () =>
00:31:23 verbose #30138 > >                             old_path |> file_move new_path
00:31:23 verbose #30139 > >                             return retry
00:31:23 verbose #30140 > >                         fun ex =>
00:31:23 verbose #30141 > >                             if retry % 100 = 0 then
00:31:23 verbose #30142 > >
00:31:23 verbose #30143 > >                                 trace Warning
00:31:23 verbose #30144 > >                                     fun () => "move_file_async"
00:31:23 verbose #30145 > >                                     fun () => {
00:31:23 verbose #30146 > >                                         old_path = old_path |> get_file_name
00:31:23 verbose #30147 > >                                         new_path = new_path |> get_file_name
00:31:23 verbose #30148 > >                                         ex
00:31:23 verbose #30149 > >                                     }
00:31:23 verbose #30150 > >                             async.sleep 10 |> async.do
00:31:23 verbose #30151 > >                             loop (retry + 1) |> async.return_await
00:31:23 verbose #30152 > >                 |> async.new_async_unit
00:31:23 verbose #30153 > >             loop 0
00:31:23 verbose #30154 > >         | _ => fun () => null ()
00:31:23 verbose #30155 > >
00:31:23 verbose #30156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:23 verbose #30157 > > //// test
00:31:23 verbose #30158 > >
00:31:23 verbose #30159 > > inl lock_file path =
00:31:23 verbose #30160 > >     fun () =>
00:31:23 verbose #30161 > >         trace Debug (fun () => "_1") id
00:31:23 verbose #30162 > >         file_stream
00:31:23 verbose #30163 > >             path
00:31:23 verbose #30164 > >             ModeOpen
00:31:23 verbose #30165 > >             AccessReadWrite
00:31:23 verbose #30166 > >             ShareNone
00:31:23 verbose #30167 > >         |> use
00:31:23 verbose #30168 > >         |> ignore
00:31:23 verbose #30169 > >         trace Debug (fun () => "_2") id
00:31:23 verbose #30170 > >         async.sleep 2000 |> async.do
00:31:23 verbose #30171 > >         trace Debug (fun () => "_3") id
00:31:23 verbose #30172 > >     |> async.new_async
00:31:23 verbose #30173 > >
00:31:23 verbose #30174 > > fun () =>
00:31:23 verbose #30175 > >     inl file_name = "test.txt"
00:31:23 verbose #30176 > >     inl text = "0"
00:31:23 verbose #30177 > >
00:31:23 verbose #30178 > >     inl temp_dir, disposable =
00:31:23 verbose #30179 > >         (file_name, text)
00:31:23 verbose #30180 > >         |> sm'.format_debug
00:31:23 verbose #30181 > >         |> crypto.hash_text
00:31:23 verbose #30182 > >         |> create_temp_dir'
00:31:23 verbose #30183 > >     disposable |> use |> ignore
00:31:23 verbose #30184 > >     let path = temp_dir </> file_name
00:31:23 verbose #30185 > >     let new_path = temp_dir </> "test2.txt"
00:31:23 verbose #30186 > >
00:31:23 verbose #30187 > >     trace Debug (fun () => "1") id
00:31:23 verbose #30188 > >     text |> write_all_text_async path |> async.do
00:31:23 verbose #30189 > >     trace Debug (fun () => "2") id
00:31:23 verbose #30190 > >     inl child = lock_file path |> async.start_child |> async.let'
00:31:23 verbose #30191 > >     trace Debug (fun () => "3") id
00:31:23 verbose #30192 > >     async.sleep 1 |> async.do
00:31:23 verbose #30193 > >     trace Debug (fun () => "4") id
00:31:23 verbose #30194 > >     inl retries1 = path |> move_file_async new_path |> async.let'
00:31:23 verbose #30195 > >     trace Debug (fun () => "5") id
00:31:23 verbose #30196 > >     inl retries2 = new_path |> wait_for_file_access None |> async.let'
00:31:23 verbose #30197 > >     trace Debug (fun () => "6") id
00:31:23 verbose #30198 > >     inl text = new_path |> read_all_text_async |> async.let'
00:31:23 verbose #30199 > >     trace Debug (fun () => "7") id
00:31:23 verbose #30200 > >     child |> async.do
00:31:23 verbose #30201 > >     trace Debug (fun () => "8") id
00:31:23 verbose #30202 > >     (retries1, retries2, text) |> return
00:31:23 verbose #30203 > > |> async.new_async_unit
00:31:23 verbose #30204 > > |> async.run_with_timeout 3000
00:31:23 verbose #30205 > > |> function
00:31:23 verbose #30206 > >     | Some (retries1, retries2, text) =>
00:31:23 verbose #30207 > >         retries1
00:31:23 verbose #30208 > >         |> _assert_between
00:31:23 verbose #30209 > >             (if platform.is_windows () then 50i64 else 0)
00:31:23 verbose #30210 > >             (if platform.is_windows () then 200 else 0)
00:31:23 verbose #30211 > >
00:31:23 verbose #30212 > >         retries2
00:31:23 verbose #30213 > >         |> _assert_between
00:31:23 verbose #30214 > >             (if platform.is_windows () then 0i64 else 100)
00:31:23 verbose #30215 > >             (if platform.is_windows () then 0 else 200)
00:31:23 verbose #30216 > >
00:31:23 verbose #30217 > >         text |> _assert_eq (join "0")
00:31:23 verbose #30218 > >
00:31:23 verbose #30219 > >         true
00:31:23 verbose #30220 > >     | _ => false
00:31:23 verbose #30221 > > |> _assert_eq true
00:31:33 verbose #30222 > >
00:31:33 verbose #30223 > > ╭─[ 9.35s - stdout ]───────────────────────────────────────────────────────────╮
00:31:33 verbose #30224 > > │ 00:00:00   debug #1 1                                                   │
00:31:33 verbose #30225 > > │ 00:00:00   debug #2 2                                                   │
00:31:33 verbose #30226 > > │ 00:00:00   debug #4 3                                                   │
00:31:33 verbose #30227 > > │ 00:00:00   debug #4 _1                                                  │
00:31:33 verbose #30228 > > │ 00:00:00   debug #5 _2                                                  │
00:31:33 verbose #30229 > > │ 00:00:00   debug #6 4                                                   │
00:31:33 verbose #30230 > > │ 00:00:00 warning #7 move_file_async / { old_path = test.txt; new_path = │
00:31:33 verbose #30231 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:31:33 verbose #30232 > > │ because it is being used by another process.                                 │
00:31:33 verbose #30233 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:31:33 verbose #30234 > > │ destFullPath, Boolean overwrite)                                             │
00:31:33 verbose #30235 > > │    at FSI_0114.method35@7760-12.Invoke(Unit unitVar)                         │
00:31:33 verbose #30236 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:31:33 verbose #30237 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:31:33 verbose #30238 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:31:33 verbose #30239 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:31:33 verbose #30240 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:31:33 verbose #30241 > > │ 00:00:01 warning #8 move_file_async / { old_path = test.txt; new_path = │
00:31:33 verbose #30242 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:31:33 verbose #30243 > > │ because it is being used by another process.                                 │
00:31:33 verbose #30244 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:31:33 verbose #30245 > > │ destFullPath, Boolean overwrite)                                             │
00:31:33 verbose #30246 > > │    at FSI_0114.method35@7760-12.Invoke(Unit unitVar)                         │
00:31:33 verbose #30247 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:31:33 verbose #30248 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:31:33 verbose #30249 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:31:33 verbose #30250 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:31:33 verbose #30251 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:31:33 verbose #30252 > > │ 00:00:02   debug #9 _3                                                  │
00:31:33 verbose #30253 > > │ 00:00:02   debug #10 5                                                  │
00:31:33 verbose #30254 > > │ 00:00:02   debug #11 6                                                  │
00:31:33 verbose #30255 > > │ 00:00:02   debug #12 7                                                  │
00:31:33 verbose #30256 > > │ 00:00:02   debug #13 8                                                  │
00:31:33 verbose #30257 > > │ __assert_between / actual: 128L / expected: struct (50L, 200L)               │
00:31:33 verbose #30258 > > │ __assert_between / actual: 0L / expected: struct (0L, 0L)                    │
00:31:33 verbose #30259 > > │ __assert_eq / actual: "0" / expected: "0"                                    │
00:31:33 verbose #30260 > > │ __assert_eq / actual: true / expected: true                                  │
00:31:33 verbose #30261 > > │                                                                              │
00:31:33 verbose #30262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:33 verbose #30263 > >
00:31:33 verbose #30264 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:33 verbose #30265 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:33 verbose #30266 > > │ ### delete_file_async                                                        │
00:31:33 verbose #30267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:33 verbose #30268 > >
00:31:33 verbose #30269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:33 verbose #30270 > > inl delete_file_async path : _ i64 =
00:31:33 verbose #30271 > >     run_target function
00:31:33 verbose #30272 > >         | Fsharp (Native) => fun () =>
00:31:33 verbose #30273 > >             let rec loop (retry : i64) =
00:31:33 verbose #30274 > >                 fun () =>
00:31:33 verbose #30275 > >                     try_unit
00:31:33 verbose #30276 > >                         fun () =>
00:31:33 verbose #30277 > >                             path |> file_delete
00:31:33 verbose #30278 > >                             return retry
00:31:33 verbose #30279 > >                         fun ex =>
00:31:33 verbose #30280 > >                             if retry % 100 = 0 then
00:31:33 verbose #30281 > >                                 trace Warning
00:31:33 verbose #30282 > >                                     fun () => "delete_file_async"
00:31:33 verbose #30283 > >                                     fun () => { path = path |> get_file_name; ex
00:31:33 verbose #30284 > > = ex |> sm'.format_exception }
00:31:33 verbose #30285 > >                             async.sleep 10 |> async.do
00:31:33 verbose #30286 > >                             loop (retry + 1) |> async.return_await
00:31:33 verbose #30287 > >                 |> async.new_async
00:31:33 verbose #30288 > >             loop 0
00:31:33 verbose #30289 > >         | _ => fun () => null ()
00:31:33 verbose #30290 > >
00:31:33 verbose #30291 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:33 verbose #30292 > > //// test
00:31:33 verbose #30293 > >
00:31:33 verbose #30294 > > inl lock_file path =
00:31:33 verbose #30295 > >     fun () =>
00:31:33 verbose #30296 > >         trace Debug (fun () => "_1") id
00:31:33 verbose #30297 > >         file_stream
00:31:33 verbose #30298 > >             path
00:31:33 verbose #30299 > >             ModeOpen
00:31:33 verbose #30300 > >             AccessReadWrite
00:31:33 verbose #30301 > >             ShareNone
00:31:33 verbose #30302 > >         |> use
00:31:33 verbose #30303 > >         |> ignore
00:31:33 verbose #30304 > >         trace Debug (fun () => "_2") id
00:31:33 verbose #30305 > >         async.sleep 2000 |> async.do
00:31:33 verbose #30306 > >         trace Debug (fun () => "_3") id
00:31:33 verbose #30307 > >     |> async.new_async
00:31:33 verbose #30308 > >
00:31:33 verbose #30309 > > fun () =>
00:31:33 verbose #30310 > >     inl file_name = "test.txt"
00:31:33 verbose #30311 > >     inl text = "0"
00:31:33 verbose #30312 > >
00:31:33 verbose #30313 > >     inl temp_dir, disposable =
00:31:33 verbose #30314 > >         (file_name, text)
00:31:33 verbose #30315 > >         |> sm'.format_debug
00:31:33 verbose #30316 > >         |> crypto.hash_text
00:31:33 verbose #30317 > >         |> create_temp_dir'
00:31:33 verbose #30318 > >     disposable |> use |> ignore
00:31:33 verbose #30319 > >     inl path = temp_dir </> file_name
00:31:33 verbose #30320 > >
00:31:33 verbose #30321 > >     trace Debug (fun () => "1") id
00:31:33 verbose #30322 > >     text |> write_all_text_async path |> async.do
00:31:33 verbose #30323 > >     trace Debug (fun () => "2") id
00:31:33 verbose #30324 > >     inl child = lock_file path |> async.start_child |> async.let'
00:31:33 verbose #30325 > >     trace Debug (fun () => "3") id
00:31:33 verbose #30326 > >     async.sleep 1 |> async.do
00:31:33 verbose #30327 > >     trace Debug (fun () => "4") id
00:31:33 verbose #30328 > >     inl retries = delete_file_async path |> async.let'
00:31:33 verbose #30329 > >     trace Debug (fun () => "5") id
00:31:33 verbose #30330 > >     child |> async.do
00:31:33 verbose #30331 > >     trace Debug (fun () => "6") id
00:31:33 verbose #30332 > >     return retries
00:31:33 verbose #30333 > > |> async.new_async_unit
00:31:33 verbose #30334 > > |> async.run_with_timeout 3000
00:31:33 verbose #30335 > > |> function
00:31:33 verbose #30336 > >     | Some (retries : i64) =>
00:31:33 verbose #30337 > >         retries
00:31:33 verbose #30338 > >         |> _assert_between
00:31:33 verbose #30339 > >             (if platform.is_windows () then 50 else 0)
00:31:33 verbose #30340 > >             (if platform.is_windows () then 180 else 0)
00:31:33 verbose #30341 > >
00:31:33 verbose #30342 > >         true
00:31:33 verbose #30343 > >     | _ => false
00:31:33 verbose #30344 > > |> _assert_eq true
00:31:42 verbose #30345 > >
00:31:42 verbose #30346 > > ╭─[ 8.50s - stdout ]───────────────────────────────────────────────────────────╮
00:31:42 verbose #30347 > > │ 00:00:00   debug #1 1                                                   │
00:31:42 verbose #30348 > > │ 00:00:00   debug #2 2                                                   │
00:31:42 verbose #30349 > > │ 00:00:00   debug #3 3                                                   │
00:31:42 verbose #30350 > > │ 00:00:00   debug #4 _1                                                  │
00:31:42 verbose #30351 > > │ 00:00:00   debug #5 _2                                                  │
00:31:42 verbose #30352 > > │ 00:00:00   debug #6 4                                                   │
00:31:42 verbose #30353 > > │ 00:00:00 warning #7 delete_file_async / { path = test.txt; ex =         │
00:31:42 verbose #30354 > > │ System.IO.IOException: The process cannot access the file                    │
00:31:42 verbose #30355 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:31:42 verbose #30356 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:31:42 verbose #30357 > > │ process. }                                                                   │
00:31:42 verbose #30358 > > │ 00:00:01 warning #8 delete_file_async / { path = test.txt; ex =         │
00:31:42 verbose #30359 > > │ System.IO.IOException: The process cannot access the file                    │
00:31:42 verbose #30360 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:31:42 verbose #30361 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:31:42 verbose #30362 > > │ process. }                                                                   │
00:31:42 verbose #30363 > > │ 00:00:02   debug #9 _3                                                  │
00:31:42 verbose #30364 > > │ 00:00:02   debug #10 5                                                  │
00:31:42 verbose #30365 > > │ 00:00:02   debug #11 6                                                  │
00:31:42 verbose #30366 > > │ __assert_between / actual: 128L / expected: struct (50L, 180L)               │
00:31:42 verbose #30367 > > │ __assert_eq / actual: true / expected: true                                  │
00:31:42 verbose #30368 > > │                                                                              │
00:31:42 verbose #30369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:42 verbose #30370 > >
00:31:42 verbose #30371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:31:42 verbose #30372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:31:42 verbose #30373 > > │ ## main                                                                      │
00:31:42 verbose #30374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:31:42 verbose #30375 > >
00:31:42 verbose #30376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:31:42 verbose #30377 > > inl main () =
00:31:42 verbose #30378 > >     init_trace_state None
00:31:42 verbose #30379 > >     $'let delete_directory_async x = !delete_directory_async x' : ()
00:31:42 verbose #30380 > >     $'let wait_for_file_access x = !wait_for_file_access x' : ()
00:31:42 verbose #30381 > >     $'let wait_for_file_access_read x = !wait_for_file_access_read x' : ()
00:31:42 verbose #30382 > >     $'let read_all_text_async x = !read_all_text_async x' : ()
00:31:42 verbose #30383 > >     $'let file_exists_content x = !file_exists_content x' : ()
00:31:42 verbose #30384 > >     $'let write_all_text_async x = !write_all_text_async x' : ()
00:31:42 verbose #30385 > >     $'let write_all_text_exists x = !write_all_text_exists_async x' : ()
00:31:42 verbose #30386 > >     $'let delete_file_async x = !delete_file_async x' : ()
00:31:42 verbose #30387 > >     $'let move_file_async x = !move_file_async x' : ()
00:31:42 verbose #30388 > >     $'let read_all_text_retry_async x = !read_all_text_retry_async x' : ()
00:31:42 verbose #30389 > >     $'let create_temp_path () = !create_temp_path ()' : ()
00:31:42 verbose #30390 > >     $'let create_temp_dir () = !create_temp_dir ()' : ()
00:31:42 verbose #30391 > >     $'let create_temp_dir\' x = !create_temp_dir' x' : ()
00:31:42 verbose #30392 > >     $'let get_source_directory () = !get_source_directory ()' : ()
00:31:42 verbose #30393 > >     $'let normalize_path x = !normalize_path x' : ()
00:31:42 verbose #30394 > >     $'let new_file_uri x = !new_file_uri x' : ()
00:31:42 verbose #30395 > >     $'let get_workspace_root () = !get_workspace_root ()' : ()
00:31:42 verbose #30396 > >     $'let init_trace_file x = !init_trace_file x' : ()
00:31:42 verbose #30397 > >     $'let link_directory x = !link_directory x' : ()
00:31:42 verbose #30398 > >     inl combine x = (</>) x
00:31:42 verbose #30399 > >     $'let (</>) x = !combine x' : ()
00:31:49 verbose #30400 > 00:02:12 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 101153 }
00:31:49 verbose #30401 > 00:02:12   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:31:49 verbose #30402 >     "nbconvert",
00:31:49 verbose #30403 >     "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb",
00:31:49 verbose #30404 >     "--to",
00:31:49 verbose #30405 >     "html",
00:31:49 verbose #30406 >     "--HTMLExporter.theme=dark",
00:31:49 verbose #30407 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:31:51 verbose #30408 > 00:02:14 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb to html
00:31:51 verbose #30409 > 00:02:14 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:31:51 verbose #30410 > 00:02:14 verbose #7 !   validate(nb)
00:31:56 verbose #30411 > 00:02:19 verbose #8 ! [NbConvertApp] Writing 584882 bytes to c:\home\git\polyglot\lib\spiral\file_system.dib.html
00:31:56 verbose #30412 > 00:02:20 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:31:56 verbose #30413 > 00:02:20   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:31:56 verbose #30414 > 00:02:20   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:31:56 verbose #30415 >     "-c",
00:31:56 verbose #30416 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:31:56 verbose #30417 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:31:57 verbose #30418 > 00:02:20 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:31:57 verbose #30419 > 00:02:20   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:31:57 verbose #30420 > 00:02:20   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 101865 }
00:31:57   debug #30421 runtime.execute_with_options_async / { exit_code = 0; output_length = 108866 }
00:31:57   debug #37 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3
00:31:57   debug #30422 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:31:57 verbose #30423 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "networking.dib", "--retries", "3"])) }
00:31:57 verbose #30424 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:31:57 verbose #30425 >     "repl",
00:31:57 verbose #30426 >     "--exit-after-run",
00:31:57 verbose #30427 >     "--run",
00:31:57 verbose #30428 >     "c:/home/git/polyglot/lib/spiral/networking.dib",
00:31:57 verbose #30429 >     "--output-path",
00:31:57 verbose #30430 >     "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb",
00:31:57 verbose #30431 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/networking.dib" --output-path "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:32:00 verbose #30432 > >
00:32:00 verbose #30433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:00 verbose #30434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:00 verbose #30435 > > │ # networking                                                                 │
00:32:00 verbose #30436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:05 verbose #30437 > >
00:32:05 verbose #30438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:05 verbose #30439 > > open rust.rust_operators
00:32:07 verbose #30440 > >
00:32:07 verbose #30441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:07 verbose #30442 > > //// test
00:32:07 verbose #30443 > >
00:32:07 verbose #30444 > > open testing
00:32:07 verbose #30445 > >
00:32:07 verbose #30446 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:07 verbose #30447 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:07 verbose #30448 > > │ ## rust                                                                      │
00:32:07 verbose #30449 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:07 verbose #30450 > >
00:32:07 verbose #30451 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:07 verbose #30452 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:07 verbose #30453 > > │ ### reqwest_response                                                         │
00:32:07 verbose #30454 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:07 verbose #30455 > >
00:32:07 verbose #30456 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:07 verbose #30457 > > nominal reqwest_response =
00:32:07 verbose #30458 > >     `(
00:32:07 verbose #30459 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:32:07 verbose #30460 > > Fable.Core.Emit(\"reqwest_wasm::Response\")>]]\n#endif\ntype reqwest_Response =
00:32:07 verbose #30461 > > class end"
00:32:07 verbose #30462 > >         $'' : $'reqwest_Response'
00:32:07 verbose #30463 > >     )
00:32:08 verbose #30464 > >
00:32:08 verbose #30465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 verbose #30466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 verbose #30467 > > │ ### reqwest_error                                                            │
00:32:08 verbose #30468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 verbose #30469 > >
00:32:08 verbose #30470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 verbose #30471 > > nominal reqwest_error =
00:32:08 verbose #30472 > >     `(
00:32:08 verbose #30473 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:32:08 verbose #30474 > > Fable.Core.Emit(\"reqwest_wasm::Error\")>]]\n#endif\ntype reqwest_Error = class
00:32:08 verbose #30475 > > end"
00:32:08 verbose #30476 > >         $'' : $'reqwest_Error'
00:32:08 verbose #30477 > >     )
00:32:08 verbose #30478 > >
00:32:08 verbose #30479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 verbose #30480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 verbose #30481 > > │ ### request_builder                                                          │
00:32:08 verbose #30482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 verbose #30483 > >
00:32:08 verbose #30484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 verbose #30485 > > nominal request_builder =
00:32:08 verbose #30486 > >     `(
00:32:08 verbose #30487 > >         global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:32:08 verbose #30488 > > Fable.Core.Emit(\"reqwest_wasm::RequestBuilder\")>]]\n#endif\ntype
00:32:08 verbose #30489 > > reqwest_RequestBuilder = class end"
00:32:08 verbose #30490 > >         $'' : $'reqwest_RequestBuilder'
00:32:08 verbose #30491 > >     )
00:32:08 verbose #30492 > >
00:32:08 verbose #30493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:08 verbose #30494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:08 verbose #30495 > > │ ### request_type                                                             │
00:32:08 verbose #30496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:08 verbose #30497 > >
00:32:08 verbose #30498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:08 verbose #30499 > > union request_type =
00:32:08 verbose #30500 > >     | Get
00:32:08 verbose #30501 > >     | Post
00:32:09 verbose #30502 > >
00:32:09 verbose #30503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:09 verbose #30504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:09 verbose #30505 > > │ ### request                                                                  │
00:32:09 verbose #30506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:09 verbose #30507 > >
00:32:09 verbose #30508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:09 verbose #30509 > > type request =
00:32:09 verbose #30510 > >     {
00:32:09 verbose #30511 > >         url : string
00:32:09 verbose #30512 > >         request_type : request_type
00:32:09 verbose #30513 > >         body : string
00:32:09 verbose #30514 > >         json : bool
00:32:09 verbose #30515 > >         auto_refresh : bool
00:32:09 verbose #30516 > >     }
00:32:09 verbose #30517 > >
00:32:09 verbose #30518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:09 verbose #30519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:09 verbose #30520 > > │ ### new_request_get                                                          │
00:32:09 verbose #30521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:09 verbose #30522 > >
00:32:09 verbose #30523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:09 verbose #30524 > > inl new_request_get (url : string) : request_builder =
00:32:09 verbose #30525 > >     inl url = join url
00:32:09 verbose #30526 > >     inl url = url |> sm'.to_std_string
00:32:09 verbose #30527 > >     inl url = join url
00:32:09 verbose #30528 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:32:09 verbose #30529 > > err.to_string())?.get(!url)"')
00:32:10 verbose #30530 > >
00:32:10 verbose #30531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:10 verbose #30532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:10 verbose #30533 > > │ ### new_request_post                                                         │
00:32:10 verbose #30534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:10 verbose #30535 > >
00:32:10 verbose #30536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:10 verbose #30537 > > inl new_request_post (url : string) : request_builder =
00:32:10 verbose #30538 > >     inl url = join url
00:32:10 verbose #30539 > >     inl url = url |> sm'.to_std_string
00:32:10 verbose #30540 > >     inl url = join url
00:32:10 verbose #30541 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:32:10 verbose #30542 > > err.to_string())?.post(!url)"')
00:32:10 verbose #30543 > >
00:32:10 verbose #30544 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:10 verbose #30545 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:10 verbose #30546 > > │ ### request_send                                                             │
00:32:10 verbose #30547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:10 verbose #30548 > >
00:32:10 verbose #30549 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:10 verbose #30550 > > inl request_send (request : request_builder) : async.future_pin (resultm.result'
00:32:10 verbose #30551 > > reqwest_response reqwest_error) =
00:32:10 verbose #30552 > >     inl request = join request
00:32:10 verbose #30553 > >     !\($'"Box::pin(reqwest_wasm::RequestBuilder::send(!request))"')
00:32:10 verbose #30554 > >
00:32:10 verbose #30555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:10 verbose #30556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:10 verbose #30557 > > │ ### request_body                                                             │
00:32:10 verbose #30558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:10 verbose #30559 > >
00:32:10 verbose #30560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:10 verbose #30561 > > inl request_body (body : string) (request : request_builder) : request_builder =
00:32:10 verbose #30562 > >     inl body = body |> sm'.to_std_string
00:32:10 verbose #30563 > >     !\($'"reqwest_wasm::RequestBuilder::body(!request, !body)"')
00:32:11 verbose #30564 > >
00:32:11 verbose #30565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:11 verbose #30566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:11 verbose #30567 > > │ ### request_header                                                           │
00:32:11 verbose #30568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:11 verbose #30569 > >
00:32:11 verbose #30570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:11 verbose #30571 > > inl request_header (key : string) (value : string) (request : request_builder) :
00:32:11 verbose #30572 > > request_builder =
00:32:11 verbose #30573 > >     inl request = join request
00:32:11 verbose #30574 > >     inl key = key |> sm'.to_std_string
00:32:11 verbose #30575 > >     inl value = value |> sm'.to_std_string
00:32:11 verbose #30576 > >     !\($'"reqwest_wasm::RequestBuilder::header(!request, !key, !value)"')
00:32:11 verbose #30577 > >
00:32:11 verbose #30578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:11 verbose #30579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:11 verbose #30580 > > │ ### request_json                                                             │
00:32:11 verbose #30581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:11 verbose #30582 > >
00:32:11 verbose #30583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:11 verbose #30584 > > inl request_json forall t. (obj : t) (request : request_builder) :
00:32:11 verbose #30585 > > request_builder =
00:32:11 verbose #30586 > >     !\($'"reqwest_wasm::RequestBuilder::json(!request, &!obj)"')
00:32:12 verbose #30587 > >
00:32:12 verbose #30588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:12 verbose #30589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:12 verbose #30590 > > │ ### response_text                                                            │
00:32:12 verbose #30591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:12 verbose #30592 > >
00:32:12 verbose #30593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:12 verbose #30594 > > inl response_text (response : reqwest_response) : async.future_pin
00:32:12 verbose #30595 > > (resultm.result' sm'.std_string reqwest_error) =
00:32:12 verbose #30596 > >     !\($'"Box::pin(reqwest_wasm::Response::text(!response))"')
00:32:12 verbose #30597 > >
00:32:12 verbose #30598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:12 verbose #30599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:12 verbose #30600 > > │ ## fsharp                                                                    │
00:32:12 verbose #30601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:12 verbose #30602 > >
00:32:12 verbose #30603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:12 verbose #30604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:12 verbose #30605 > > │ ### tcp_client                                                               │
00:32:12 verbose #30606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:12 verbose #30607 > >
00:32:12 verbose #30608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:12 verbose #30609 > > nominal tcp_client = $'System.Net.Sockets.TcpClient'
00:32:13 verbose #30610 > >
00:32:13 verbose #30611 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:13 verbose #30612 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:13 verbose #30613 > > │ ### new_tcp_client                                                           │
00:32:13 verbose #30614 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:13 verbose #30615 > >
00:32:13 verbose #30616 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:13 verbose #30617 > > inl new_tcp_client () : tcp_client =
00:32:13 verbose #30618 > >     $'new `tcp_client ()'
00:32:13 verbose #30619 > >
00:32:13 verbose #30620 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:13 verbose #30621 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:13 verbose #30622 > > │ ### ip_address                                                               │
00:32:13 verbose #30623 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:13 verbose #30624 > >
00:32:13 verbose #30625 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:13 verbose #30626 > > nominal ip_address = $'System.Net.IPAddress'
00:32:14 verbose #30627 > >
00:32:14 verbose #30628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:14 verbose #30629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:14 verbose #30630 > > │ ### ip_address_parse                                                         │
00:32:14 verbose #30631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:14 verbose #30632 > >
00:32:14 verbose #30633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:14 verbose #30634 > > inl ip_address_parse (s : string) : ip_address =
00:32:14 verbose #30635 > >     s |> $'`ip_address.Parse'
00:32:14 verbose #30636 > >
00:32:14 verbose #30637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:14 verbose #30638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:14 verbose #30639 > > │ ### tcp_listener                                                             │
00:32:14 verbose #30640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:14 verbose #30641 > >
00:32:14 verbose #30642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:14 verbose #30643 > > nominal tcp_listener = $'System.Net.Sockets.TcpListener'
00:32:15 verbose #30644 > >
00:32:15 verbose #30645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:15 verbose #30646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:15 verbose #30647 > > │ ### new_tcp_listener                                                         │
00:32:15 verbose #30648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:15 verbose #30649 > >
00:32:15 verbose #30650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:15 verbose #30651 > > inl new_tcp_listener (ip_address : ip_address) (port : i32) : tcp_listener =
00:32:15 verbose #30652 > >     $'new `tcp_listener (!ip_address, !port)'
00:32:15 verbose #30653 > >
00:32:15 verbose #30654 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:15 verbose #30655 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:15 verbose #30656 > > │ ### listener_start                                                           │
00:32:15 verbose #30657 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:15 verbose #30658 > >
00:32:15 verbose #30659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:15 verbose #30660 > > inl listener_start (listener : tcp_listener) : () =
00:32:15 verbose #30661 > >     $'!listener.Start' ()
00:32:15 verbose #30662 > >
00:32:15 verbose #30663 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:15 verbose #30664 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:15 verbose #30665 > > │ ### listener_stop                                                            │
00:32:15 verbose #30666 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:15 verbose #30667 > >
00:32:15 verbose #30668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:15 verbose #30669 > > inl listener_stop (listener : tcp_listener) : () =
00:32:15 verbose #30670 > >     $'!listener.Stop' ()
00:32:16 verbose #30671 > >
00:32:16 verbose #30672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:16 verbose #30673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:16 verbose #30674 > > │ ### client_connect_async                                                     │
00:32:16 verbose #30675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:16 verbose #30676 > >
00:32:16 verbose #30677 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:16 verbose #30678 > > inl client_connect_async
00:32:16 verbose #30679 > >     (host : string)
00:32:16 verbose #30680 > >     (port : i32)
00:32:16 verbose #30681 > >     (ct : threading.cancellation_token)
00:32:16 verbose #30682 > >     (client : tcp_client)
00:32:16 verbose #30683 > >     : async.value_task
00:32:16 verbose #30684 > >     =
00:32:16 verbose #30685 > >     $'!client.ConnectAsync (!host, !port, !ct)'
00:32:16 verbose #30686 > >
00:32:16 verbose #30687 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:16 verbose #30688 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:16 verbose #30689 > > │ ### test_port_open                                                           │
00:32:16 verbose #30690 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:16 verbose #30691 > >
00:32:16 verbose #30692 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:16 verbose #30693 > > inl test_port_open host port : _ bool = async.new_async fun () =>
00:32:16 verbose #30694 > >     inl ct = async.cancellation_token () |> async.let'
00:32:16 verbose #30695 > >     inl client = new_tcp_client () |> use
00:32:16 verbose #30696 > >     try_unit
00:32:16 verbose #30697 > >         fun () =>
00:32:16 verbose #30698 > >             client |> client_connect_async host port ct |>
00:32:16 verbose #30699 > > async.await_value_task_unit |> async.do
00:32:16 verbose #30700 > >             return true
00:32:16 verbose #30701 > >         fun ex =>
00:32:16 verbose #30702 > >             inl ex = ex |> sm'.format_exception
00:32:16 verbose #30703 > >             trace Verbose
00:32:16 verbose #30704 > >                 fun () => $'$"networking.test_port_open"'
00:32:16 verbose #30705 > >                 fun () => { port ex }
00:32:16 verbose #30706 > >             return false
00:32:17 verbose #30707 > >
00:32:17 verbose #30708 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:17 verbose #30709 > > //// test
00:32:17 verbose #30710 > >
00:32:17 verbose #30711 > > test_port_open "127.0.0.1" 65536
00:32:17 verbose #30712 > > |> async.run_with_timeout 120
00:32:17 verbose #30713 > > |> _assert_eq (Some false)
00:32:22 verbose #30714 > >
00:32:22 verbose #30715 > > ╭─[ 4.82s - stdout ]───────────────────────────────────────────────────────────╮
00:32:22 verbose #30716 > > │ 00:00:00 verbose #1 networking.test_port_open / { port = 65536; ex =    │
00:32:22 verbose #30717 > > │ System.ArgumentOutOfRangeException: Specified argument was out of the range  │
00:32:22 verbose #30718 > > │ of valid values. (Parameter 'port') }                                        │
00:32:22 verbose #30719 > > │ __assert_eq / actual: US4_0 false / expected: US4_0 false                    │
00:32:22 verbose #30720 > > │                                                                              │
00:32:22 verbose #30721 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:22 verbose #30722 > >
00:32:22 verbose #30723 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:22 verbose #30724 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:22 verbose #30725 > > │ ### test_port_open_timeout                                                   │
00:32:22 verbose #30726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:22 verbose #30727 > >
00:32:22 verbose #30728 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:22 verbose #30729 > > inl test_port_open_timeout timeout host port : _ bool = async.new_async_unit fun
00:32:22 verbose #30730 > > () =>
00:32:22 verbose #30731 > >     test_port_open host port
00:32:22 verbose #30732 > >     |> async.run_with_timeout_async timeout
00:32:22 verbose #30733 > >     |> async.let'
00:32:22 verbose #30734 > >     |> function
00:32:22 verbose #30735 > >         | None => false
00:32:22 verbose #30736 > >         | Some result => result
00:32:22 verbose #30737 > >     |> return
00:32:22 verbose #30738 > >
00:32:22 verbose #30739 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:22 verbose #30740 > > //// test
00:32:22 verbose #30741 > >
00:32:22 verbose #30742 > > test_port_open_timeout 120 "127.0.0.1" 65535
00:32:22 verbose #30743 > > |> async.run_synchronously
00:32:22 verbose #30744 > > |> _assert_eq false
00:32:25 verbose #30745 > >
00:32:25 verbose #30746 > > ╭─[ 2.45s - stdout ]───────────────────────────────────────────────────────────╮
00:32:25 verbose #30747 > > │ 00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 120 }    │
00:32:25 verbose #30748 > > │ __assert_eq / actual: false / expected: false                                │
00:32:25 verbose #30749 > > │                                                                              │
00:32:25 verbose #30750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:25 verbose #30751 > >
00:32:25 verbose #30752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:25 verbose #30753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:25 verbose #30754 > > │ ### wait_for_port_access                                                     │
00:32:25 verbose #30755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:25 verbose #30756 > >
00:32:25 verbose #30757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:25 verbose #30758 > > inl wait_for_port_access timeout status host port : _ i64 =
00:32:25 verbose #30759 > >     let rec loop retry : _ i64 = async.new_async_unit fun () =>
00:32:25 verbose #30760 > >         inl isPortOpen =
00:32:25 verbose #30761 > >             match timeout |> optionm'.unbox with
00:32:25 verbose #30762 > >             | None => test_port_open host port
00:32:25 verbose #30763 > >             | Some timeout => test_port_open_timeout timeout host port
00:32:25 verbose #30764 > >             |> async.let'
00:32:25 verbose #30765 > >
00:32:25 verbose #30766 > >         fix_condition
00:32:25 verbose #30767 > >             fun () => isPortOpen = status
00:32:25 verbose #30768 > >             fun () => retry |> return
00:32:25 verbose #30769 > >             fun () =>
00:32:25 verbose #30770 > >                 if retry % 100 = 0 then
00:32:25 verbose #30771 > >                     trace Verbose
00:32:25 verbose #30772 > >                         fun () => "networking.wait_for_port_access"
00:32:25 verbose #30773 > >                         fun () => { port retry timeout status }
00:32:25 verbose #30774 > >                 async.sleep 10 |> async.do
00:32:25 verbose #30775 > >                 loop (retry + 1) |> async.return_await
00:32:25 verbose #30776 > >     loop 0i64
00:32:25 verbose #30777 > >
00:32:25 verbose #30778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:25 verbose #30779 > > //// test
00:32:25 verbose #30780 > >
00:32:25 verbose #30781 > > inl lock_port host port = async.new_async fun () =>
00:32:25 verbose #30782 > >     trace Debug (fun () => "_1") id
00:32:25 verbose #30783 > >     async.sleep 5000 |> async.do
00:32:25 verbose #30784 > >     inl listener = new_tcp_listener (host |> ip_address_parse) port |> use
00:32:25 verbose #30785 > >     trace Debug (fun () => "_2") id
00:32:25 verbose #30786 > >     listener |> listener_start
00:32:25 verbose #30787 > >     trace Debug (fun () => "_3") id
00:32:25 verbose #30788 > >     async.sleep 2000 |> async.do
00:32:25 verbose #30789 > >     trace Debug (fun () => "_4") id
00:32:25 verbose #30790 > >     $'!listener.Stop' ()
00:32:25 verbose #30791 > >     trace Debug (fun () => "_5") id
00:32:25 verbose #30792 > >
00:32:25 verbose #30793 > > inl host = "127.0.0.1"
00:32:25 verbose #30794 > > inl port = 5555i32
00:32:25 verbose #30795 > >
00:32:25 verbose #30796 > > fun () =>
00:32:25 verbose #30797 > >     trace Debug (fun () => "1") id
00:32:25 verbose #30798 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:32:25 verbose #30799 > >     trace Debug (fun () => "2") id
00:32:25 verbose #30800 > >     async.sleep 1 |> async.do
00:32:25 verbose #30801 > >     trace Debug (fun () => "3") id
00:32:25 verbose #30802 > >     inl retries1 = wait_for_port_access (None |> optionm'.box) true host port |>
00:32:25 verbose #30803 > > async.let'
00:32:25 verbose #30804 > >     trace Debug (fun () => "4") id
00:32:25 verbose #30805 > >     inl retries2 = wait_for_port_access (None |> optionm'.box) false host port
00:32:25 verbose #30806 > > |> async.let'
00:32:25 verbose #30807 > >     trace Debug (fun () => "5") id
00:32:25 verbose #30808 > >     child |> async.do
00:32:25 verbose #30809 > >     trace Debug (fun () => "6") id
00:32:25 verbose #30810 > >     (retries1, retries2) |> return
00:32:25 verbose #30811 > > |> async.new_async_unit
00:32:25 verbose #30812 > > |> async.run_with_timeout 20000
00:32:25 verbose #30813 > > |> function
00:32:25 verbose #30814 > >     | Some (retries1, retries2) =>
00:32:25 verbose #30815 > >         retries1
00:32:25 verbose #30816 > >         |> _assert_between
00:32:25 verbose #30817 > >             if platform.is_windows () then 2i64 else 2
00:32:25 verbose #30818 > >             if platform.is_windows () then 5 else 1500
00:32:25 verbose #30819 > >
00:32:25 verbose #30820 > >         retries2
00:32:25 verbose #30821 > >         |> _assert_between
00:32:25 verbose #30822 > >             if platform.is_windows () then 80i64 else 80
00:32:25 verbose #30823 > >             if platform.is_windows () then 200 else 600
00:32:25 verbose #30824 > >
00:32:25 verbose #30825 > >         true
00:32:25 verbose #30826 > >     | _ => false
00:32:25 verbose #30827 > > |> _assert_eq true
00:32:42 verbose #30828 > >
00:32:42 verbose #30829 > > ╭─[ 16.64s - stdout ]──────────────────────────────────────────────────────────╮
00:32:42 verbose #30830 > > │ 00:00:00   debug #1 1                                                   │
00:32:42 verbose #30831 > > │ 00:00:00   debug #2 _1                                                  │
00:32:42 verbose #30832 > > │ 00:00:00   debug #3 2                                                   │
00:32:42 verbose #30833 > > │ 00:00:00   debug #4 3                                                   │
00:32:42 verbose #30834 > > │ 00:00:02 verbose #5 networking.test_port_open / { port = 5555; ex =     │
00:32:42 verbose #30835 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:32:42 verbose #30836 > > │ be made because the target machine actively refused it.) }                   │
00:32:42 verbose #30837 > > │ 00:00:02 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:32:42 verbose #30838 > > │ retry = 0; timeout = None; status = true }                                   │
00:32:42 verbose #30839 > > │ 00:00:04 verbose #7 networking.test_port_open / { port = 5555; ex =     │
00:32:42 verbose #30840 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:32:42 verbose #30841 > > │ be made because the target machine actively refused it.) }                   │
00:32:42 verbose #30842 > > │ 00:00:05   debug #8 _2                                                  │
00:32:42 verbose #30843 > > │ 00:00:05   debug #9 _3                                                  │
00:32:42 verbose #30844 > > │ 00:00:05   debug #10 4                                                  │
00:32:42 verbose #30845 > > │ 00:00:05 verbose #11 networking.wait_for_port_access / { port = 5555;   │
00:32:42 verbose #30846 > > │ retry = 0; timeout = None; status = false }                                  │
00:32:42 verbose #30847 > > │ 00:00:06 verbose #12 networking.wait_for_port_access / { port = 5555;   │
00:32:42 verbose #30848 > > │ retry = 100; timeout = None; status = false }                                │
00:32:42 verbose #30849 > > │ 00:00:07   debug #13 _4                                                 │
00:32:42 verbose #30850 > > │ 00:00:07   debug #14 _5                                                 │
00:32:42 verbose #30851 > > │ 00:00:09 verbose #15 networking.test_port_open / { port = 5555; ex =    │
00:32:42 verbose #30852 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:32:42 verbose #30853 > > │ be made because the target machine actively refused it.) }                   │
00:32:42 verbose #30854 > > │ 00:00:09   debug #16 5                                                  │
00:32:42 verbose #30855 > > │ 00:00:09   debug #17 6                                                  │
00:32:42 verbose #30856 > > │ __assert_between / actual: 2L / expected: struct (2L, 5L)                    │
00:32:42 verbose #30857 > > │ __assert_between / actual: 121L / expected: struct (80L, 200L)               │
00:32:42 verbose #30858 > > │ __assert_eq / actual: true / expected: true                                  │
00:32:42 verbose #30859 > > │                                                                              │
00:32:42 verbose #30860 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:42 verbose #30861 > >
00:32:42 verbose #30862 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:42 verbose #30863 > > //// test
00:32:42 verbose #30864 > >
00:32:42 verbose #30865 > > inl lock_port host port = async.new_async_unit fun () =>
00:32:42 verbose #30866 > >     trace Debug (fun () => "_1") id
00:32:42 verbose #30867 > >     async.sleep 500 |> async.do
00:32:42 verbose #30868 > >     inl listener = new_tcp_listener (ip_address_parse host) port |> use
00:32:42 verbose #30869 > >     trace Debug (fun () => "_2") id
00:32:42 verbose #30870 > >     listener |> listener_start
00:32:42 verbose #30871 > >     trace Debug (fun () => "_3") id
00:32:42 verbose #30872 > >     async.sleep 200 |> async.do
00:32:42 verbose #30873 > >     trace Debug (fun () => "_4") id
00:32:42 verbose #30874 > >     listener |> listener_stop
00:32:42 verbose #30875 > >     trace Debug (fun () => "_5") id
00:32:42 verbose #30876 > >
00:32:42 verbose #30877 > > inl host = "127.0.0.1"
00:32:42 verbose #30878 > > inl port = 5555
00:32:42 verbose #30879 > >
00:32:42 verbose #30880 > > fun () =>
00:32:42 verbose #30881 > >     trace Debug (fun () => "1") id
00:32:42 verbose #30882 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:32:42 verbose #30883 > >     trace Debug (fun () => "2") id
00:32:42 verbose #30884 > >     async.sleep 1 |> async.do
00:32:42 verbose #30885 > >     trace Debug (fun () => "3") id
00:32:42 verbose #30886 > >     inl retries1 = wait_for_port_access (Some 60 |> optionm'.box) true host port
00:32:42 verbose #30887 > > |> async.let'
00:32:42 verbose #30888 > >     trace Debug (fun () => "4") id
00:32:42 verbose #30889 > >     inl retries2 = wait_for_port_access (Some 60 |> optionm'.box) false host
00:32:42 verbose #30890 > > port |> async.let'
00:32:42 verbose #30891 > >     trace Debug (fun () => "5") id
00:32:42 verbose #30892 > >     child |> async.do
00:32:42 verbose #30893 > >     trace Debug (fun () => "6") id
00:32:42 verbose #30894 > >     (retries1, retries2) |> return
00:32:42 verbose #30895 > > |> async.new_async_unit
00:32:42 verbose #30896 > > |> async.run_with_timeout 2000
00:32:42 verbose #30897 > > |> function
00:32:42 verbose #30898 > >     | Some (retries1, retries2) =>
00:32:42 verbose #30899 > >         retries1
00:32:42 verbose #30900 > >         |> _assert_between
00:32:42 verbose #30901 > >             if platform.is_windows () then 4i64 else 2
00:32:42 verbose #30902 > >             if platform.is_windows () then 15 else 150
00:32:42 verbose #30903 > >
00:32:42 verbose #30904 > >         retries2
00:32:42 verbose #30905 > >         |> _assert_between
00:32:42 verbose #30906 > >             if platform.is_windows () then 5i64 else 0
00:32:42 verbose #30907 > >             if platform.is_windows () then 20 else 60
00:32:42 verbose #30908 > >
00:32:42 verbose #30909 > >         true
00:32:42 verbose #30910 > >     | _ => false
00:32:42 verbose #30911 > > |> _assert_eq true
00:32:49 verbose #30912 > >
00:32:49 verbose #30913 > > ╭─[ 7.33s - stdout ]───────────────────────────────────────────────────────────╮
00:32:49 verbose #30914 > > │ 00:00:00   debug #1 1                                                   │
00:32:49 verbose #30915 > > │ 00:00:00   debug #3 2                                                   │
00:32:49 verbose #30916 > > │ 00:00:00   debug #3 _1                                                  │
00:32:49 verbose #30917 > > │ 00:00:00   debug #4 3                                                   │
00:32:49 verbose #30918 > > │ 00:00:00 verbose #5 async.run_with_timeout_async / { timeout = 60 }     │
00:32:49 verbose #30919 > > │ 00:00:00 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:32:49 verbose #30920 > > │ retry = 0; timeout = Some 60; status = true }                                │
00:32:49 verbose #30921 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:32:49 verbose #30922 > > │ 00:00:00 verbose #8 async.run_with_timeout_async / { timeout = 60 }     │
00:32:49 verbose #30923 > > │ 00:00:00 verbose #9 async.run_with_timeout_async / { timeout = 60 }     │
00:32:49 verbose #30924 > > │ 00:00:00 verbose #10 async.run_with_timeout_async / { timeout = 60 }    │
00:32:49 verbose #30925 > > │ 00:00:00 verbose #11 async.run_with_timeout_async / { timeout = 60 }    │
00:32:49 verbose #30926 > > │ 00:00:00   debug #12 _2                                                 │
00:32:49 verbose #30927 > > │ 00:00:00   debug #13 _3                                                 │
00:32:49 verbose #30928 > > │ 00:00:00   debug #14 4                                                  │
00:32:49 verbose #30929 > > │ 00:00:00 verbose #15 networking.wait_for_port_access / { port = 5555;   │
00:32:49 verbose #30930 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:32:49 verbose #30931 > > │ 00:00:00   debug #16 _4                                                 │
00:32:49 verbose #30932 > > │ 00:00:00   debug #17 _5                                                 │
00:32:49 verbose #30933 > > │ 00:00:00 verbose #18 async.run_with_timeout_async / { timeout = 60 }    │
00:32:49 verbose #30934 > > │ 00:00:00   debug #19 5                                                  │
00:32:49 verbose #30935 > > │ 00:00:00   debug #20 6                                                  │
00:32:49 verbose #30936 > > │ __assert_between / actual: 6L / expected: struct (4L, 15L)                   │
00:32:49 verbose #30937 > > │ __assert_between / actual: 12L / expected: struct (5L, 20L)                  │
00:32:49 verbose #30938 > > │ __assert_eq / actual: true / expected: true                                  │
00:32:49 verbose #30939 > > │                                                                              │
00:32:49 verbose #30940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:49 verbose #30941 > >
00:32:49 verbose #30942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:32:49 verbose #30943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:32:49 verbose #30944 > > │ ### get_available_port                                                       │
00:32:49 verbose #30945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:32:49 verbose #30946 > >
00:32:49 verbose #30947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:49 verbose #30948 > > inl get_available_port timeout host initial_port : _ i32 =
00:32:49 verbose #30949 > >     let rec loop port = async.new_async_unit fun () =>
00:32:49 verbose #30950 > >         inl is_port_open =
00:32:49 verbose #30951 > >             match timeout |> optionm'.unbox with
00:32:49 verbose #30952 > >             | None => test_port_open host port
00:32:49 verbose #30953 > >             | Some timeout => test_port_open_timeout timeout host port
00:32:49 verbose #30954 > >             |> async.let'
00:32:49 verbose #30955 > >         fix_condition
00:32:49 verbose #30956 > >             fun () => is_port_open |> not
00:32:49 verbose #30957 > >             fun () => port |> return
00:32:49 verbose #30958 > >             fun () => loop (port + 1) |> async.return_await
00:32:49 verbose #30959 > >     loop initial_port
00:32:49 verbose #30960 > >
00:32:49 verbose #30961 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:32:49 verbose #30962 > > //// test
00:32:49 verbose #30963 > >
00:32:49 verbose #30964 > > inl lock_ports host port = async.new_async_unit fun () =>
00:32:49 verbose #30965 > >     trace Debug (fun () => "_1") id
00:32:49 verbose #30966 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:32:49 verbose #30967 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:32:49 verbose #30968 > >     trace Debug (fun () => "_2") id
00:32:49 verbose #30969 > >     listener1 |> listener_start
00:32:49 verbose #30970 > >     listener2 |> listener_start
00:32:49 verbose #30971 > >     trace Debug (fun () => "_3") id
00:32:49 verbose #30972 > >     async.sleep 4000 |> async.do
00:32:49 verbose #30973 > >     trace Debug (fun () => "_4") id
00:32:49 verbose #30974 > >     listener1 |> listener_stop
00:32:49 verbose #30975 > >     listener2 |> listener_stop
00:32:49 verbose #30976 > >     trace Debug (fun () => "_5") id
00:32:49 verbose #30977 > >
00:32:49 verbose #30978 > > inl host = "127.0.0.1"
00:32:49 verbose #30979 > > inl port = 5555
00:32:49 verbose #30980 > >
00:32:49 verbose #30981 > > fun () =>
00:32:49 verbose #30982 > >     trace Debug (fun () => "1") id
00:32:49 verbose #30983 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:32:49 verbose #30984 > >     trace Debug (fun () => "2") id
00:32:49 verbose #30985 > >     async.sleep 240 |> async.do
00:32:49 verbose #30986 > >     trace Debug (fun () => "3") id
00:32:49 verbose #30987 > >     inl available_port = get_available_port (None |> optionm'.box) host port |>
00:32:49 verbose #30988 > > async.let'
00:32:49 verbose #30989 > >     trace Debug (fun () => "4") id
00:32:49 verbose #30990 > >     inl retries = wait_for_port_access (None |> optionm'.box) false host port |>
00:32:49 verbose #30991 > > async.let'
00:32:49 verbose #30992 > >     trace Debug (fun () => "5") id
00:32:49 verbose #30993 > >     child |> async.do
00:32:49 verbose #30994 > >     trace Debug (fun () => "6") id
00:32:49 verbose #30995 > >     (available_port, retries) |> return
00:32:49 verbose #30996 > > |> async.new_async_unit
00:32:49 verbose #30997 > > |> async.run_with_timeout 15000
00:32:49 verbose #30998 > > |> function
00:32:49 verbose #30999 > >     | Some (available_port, retries) =>
00:32:49 verbose #31000 > >         available_port |> _assert_eq (port + 2)
00:32:49 verbose #31001 > >
00:32:49 verbose #31002 > >         retries
00:32:49 verbose #31003 > >         |> _assert_between
00:32:49 verbose #31004 > >             if platform.is_windows () then 50i64 else 50
00:32:49 verbose #31005 > >             if platform.is_windows () then 150 else 1200
00:32:49 verbose #31006 > >
00:32:49 verbose #31007 > >         true
00:32:49 verbose #31008 > >     | _ => false
00:32:49 verbose #31009 > > |> _assert_eq true
00:33:02 verbose #31010 > >
00:33:02 verbose #31011 > > ╭─[ 12.36s - stdout ]──────────────────────────────────────────────────────────╮
00:33:02 verbose #31012 > > │ 00:00:00   debug #1 1                                                   │
00:33:02 verbose #31013 > > │ 00:00:00   debug #2 _1                                                  │
00:33:02 verbose #31014 > > │ 00:00:00   debug #3 2                                                   │
00:33:02 verbose #31015 > > │ 00:00:00   debug #4 _2                                                  │
00:33:02 verbose #31016 > > │ 00:00:00   debug #5 _3                                                  │
00:33:02 verbose #31017 > > │ 00:00:00   debug #6 3                                                   │
00:33:02 verbose #31018 > > │ 00:00:02 verbose #7 networking.test_port_open / { port = 5557; ex =     │
00:33:02 verbose #31019 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:33:02 verbose #31020 > > │ be made because the target machine actively refused it.) }                   │
00:33:02 verbose #31021 > > │ 00:00:02   debug #8 4                                                   │
00:33:02 verbose #31022 > > │ 00:00:02 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:33:02 verbose #31023 > > │ retry = 0; timeout = None; status = false }                                  │
00:33:02 verbose #31024 > > │ 00:00:03 verbose #10 networking.wait_for_port_access / { port = 5555;   │
00:33:02 verbose #31025 > > │ retry = 100; timeout = None; status = false }                                │
00:33:02 verbose #31026 > > │ 00:00:04   debug #11 _4                                                 │
00:33:02 verbose #31027 > > │ 00:00:04   debug #12 _5                                                 │
00:33:02 verbose #31028 > > │ 00:00:06 verbose #13 networking.test_port_open / { port = 5555; ex =    │
00:33:02 verbose #31029 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:33:02 verbose #31030 > > │ be made because the target machine actively refused it.) }                   │
00:33:02 verbose #31031 > > │ 00:00:06   debug #14 5                                                  │
00:33:02 verbose #31032 > > │ 00:00:06   debug #15 6                                                  │
00:33:02 verbose #31033 > > │ __assert_eq / actual: 5557 / expected: 5557                                  │
00:33:02 verbose #31034 > > │ __assert_between / actual: 111L / expected: struct (50L, 150L)               │
00:33:02 verbose #31035 > > │ __assert_eq / actual: true / expected: true                                  │
00:33:02 verbose #31036 > > │                                                                              │
00:33:02 verbose #31037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:02 verbose #31038 > >
00:33:02 verbose #31039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:02 verbose #31040 > > //// test
00:33:02 verbose #31041 > >
00:33:02 verbose #31042 > > inl lock_ports host port = async.new_async_unit fun () =>
00:33:02 verbose #31043 > >     trace Debug (fun () => "_1") id
00:33:02 verbose #31044 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:33:02 verbose #31045 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:33:02 verbose #31046 > >     trace Debug (fun () => "_2") id
00:33:02 verbose #31047 > >     listener1 |> listener_start
00:33:02 verbose #31048 > >     listener2 |> listener_start
00:33:02 verbose #31049 > >     trace Debug (fun () => "_3") id
00:33:02 verbose #31050 > >     async.sleep 400 |> async.do
00:33:02 verbose #31051 > >     trace Debug (fun () => "_4") id
00:33:02 verbose #31052 > >     listener1 |> listener_stop
00:33:02 verbose #31053 > >     listener2 |> listener_stop
00:33:02 verbose #31054 > >     trace Debug (fun () => "_5") id
00:33:02 verbose #31055 > >
00:33:02 verbose #31056 > > inl host = "127.0.0.1"
00:33:02 verbose #31057 > > inl port = 5555
00:33:02 verbose #31058 > >
00:33:02 verbose #31059 > > fun () =>
00:33:02 verbose #31060 > >     trace Debug (fun () => "1") id
00:33:02 verbose #31061 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:33:02 verbose #31062 > >     trace Debug (fun () => "2") id
00:33:02 verbose #31063 > >     async.sleep 240 |> async.do
00:33:02 verbose #31064 > >     trace Debug (fun () => "3") id
00:33:02 verbose #31065 > >     inl available_port = get_available_port (Some 60 |> optionm'.box) host port
00:33:02 verbose #31066 > > |> async.let'
00:33:02 verbose #31067 > >     trace Debug (fun () => "4") id
00:33:02 verbose #31068 > >     inl retries = wait_for_port_access (Some 60 |> optionm'.box) false host port
00:33:02 verbose #31069 > > |> async.let'
00:33:02 verbose #31070 > >     trace Debug (fun () => "5") id
00:33:02 verbose #31071 > >     child |> async.do
00:33:02 verbose #31072 > >     trace Debug (fun () => "6") id
00:33:02 verbose #31073 > >     (available_port, retries) |> return
00:33:02 verbose #31074 > > |> async.new_async_unit
00:33:02 verbose #31075 > > |> async.run_with_timeout 1500
00:33:02 verbose #31076 > > |> function
00:33:02 verbose #31077 > >     | Some (available_port, retries) =>
00:33:02 verbose #31078 > >         available_port |> _assert_eq (port + 2)
00:33:02 verbose #31079 > >
00:33:02 verbose #31080 > >         retries
00:33:02 verbose #31081 > >         |> _assert_between
00:33:02 verbose #31082 > >             (if platform.is_windows () then 2i64 else 1)
00:33:02 verbose #31083 > >             (if platform.is_windows () then 10 else 120)
00:33:02 verbose #31084 > >
00:33:02 verbose #31085 > >         true
00:33:02 verbose #31086 > >     | _ => false
00:33:02 verbose #31087 > > |> _assert_eq true
00:33:09 verbose #31088 > >
00:33:09 verbose #31089 > > ╭─[ 7.25s - stdout ]───────────────────────────────────────────────────────────╮
00:33:09 verbose #31090 > > │ 00:00:00   debug #1 1                                                   │
00:33:09 verbose #31091 > > │ 00:00:00   debug #3 2                                                   │
00:33:09 verbose #31092 > > │ 00:00:00   debug #3 _1                                                  │
00:33:09 verbose #31093 > > │ 00:00:00   debug #4 _2                                                  │
00:33:09 verbose #31094 > > │ 00:00:00   debug #5 _3                                                  │
00:33:09 verbose #31095 > > │ 00:00:00   debug #6 3                                                   │
00:33:09 verbose #31096 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:33:09 verbose #31097 > > │ 00:00:00   debug #8 4                                                   │
00:33:09 verbose #31098 > > │ 00:00:00 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:33:09 verbose #31099 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:33:09 verbose #31100 > > │ 00:00:00   debug #10 _4                                                 │
00:33:09 verbose #31101 > > │ 00:00:00   debug #11 _5                                                 │
00:33:09 verbose #31102 > > │ 00:00:00 verbose #12 async.run_with_timeout_async / { timeout = 60 }    │
00:33:09 verbose #31103 > > │ 00:00:00   debug #13 5                                                  │
00:33:09 verbose #31104 > > │ 00:00:00   debug #14 6                                                  │
00:33:09 verbose #31105 > > │ __assert_eq / actual: 5557 / expected: 5557                                  │
00:33:09 verbose #31106 > > │ __assert_between / actual: 5L / expected: struct (2L, 10L)                   │
00:33:09 verbose #31107 > > │ __assert_eq / actual: true / expected: true                                  │
00:33:09 verbose #31108 > > │                                                                              │
00:33:09 verbose #31109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:09 verbose #31110 > >
00:33:09 verbose #31111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:33:09 verbose #31112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:33:09 verbose #31113 > > │ ## main                                                                      │
00:33:09 verbose #31114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:33:09 verbose #31115 > >
00:33:09 verbose #31116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:33:09 verbose #31117 > > inl main () =
00:33:09 verbose #31118 > >     init_trace_state None
00:33:09 verbose #31119 > >     $'let test_port_open x = !test_port_open x' : ()
00:33:09 verbose #31120 > >     $'let test_port_open_timeout x = !test_port_open_timeout x' : ()
00:33:09 verbose #31121 > >     $'let wait_for_port_access x = !wait_for_port_access x' : ()
00:33:09 verbose #31122 > >     $'let get_available_port x = !get_available_port x' : ()
00:33:13 verbose #31123 > 00:01:15 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34095 }
00:33:13 verbose #31124 > 00:01:15   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:33:13 verbose #31125 >     "nbconvert",
00:33:13 verbose #31126 >     "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb",
00:33:13 verbose #31127 >     "--to",
00:33:13 verbose #31128 >     "html",
00:33:13 verbose #31129 >     "--HTMLExporter.theme=dark",
00:33:13 verbose #31130 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:33:16 verbose #31131 > 00:01:18 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/networking.dib.ipynb to html
00:33:16 verbose #31132 > 00:01:18 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:33:16 verbose #31133 > 00:01:18 verbose #7 !   validate(nb)
00:33:18 verbose #31134 > 00:01:21 verbose #8 ! [NbConvertApp] Writing 369736 bytes to c:\home\git\polyglot\lib\spiral\networking.dib.html
00:33:19 verbose #31135 > 00:01:21 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:33:19 verbose #31136 > 00:01:21   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:33:19 verbose #31137 > 00:01:21   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:33:19 verbose #31138 >     "-c",
00:33:19 verbose #31139 >     "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:33:19 verbose #31140 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:33:19 verbose #31141 > 00:01:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:33:19 verbose #31142 > 00:01:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:33:19 verbose #31143 > 00:01:22   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 34805 }
00:33:19   debug #31144 runtime.execute_with_options_async / { exit_code = 0; output_length = 38901 }
00:33:19   debug #38 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3
00:00:00   debug #1 writeDibCode / output: Spi / path: trace.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: common.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: crypto.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: async.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: networking.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: threading.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: runtime.dib
00:00:00   debug #1 writeDibCode / output: Spi / path: testing.dib
00:00:00   debug #7 parseDibCode / output: Spi / file: crypto.dib
00:00:00   debug #5 parseDibCode / output: Spi / file: threading.dib
00:00:00   debug #5 parseDibCode / output: Spi / file: networking.dib
00:00:00   debug #9 parseDibCode / output: Spi / file: runtime.dib
00:00:00   debug #5 parseDibCode / output: Spi / file: trace.dib
00:00:00   debug #6 parseDibCode / output: Spi / file: common.dib
00:00:00   debug #5 parseDibCode / output: Spi / file: async.dib
00:00:00   debug #9 parseDibCode / output: Spi / file: testing.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: base.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: console.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: env.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: parsing.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: resultm.dib
00:00:00   debug #16 parseDibCode / output: Spi / file: base.dib
00:00:00   debug #17 parseDibCode / output: Spi / file: console.dib
00:00:00   debug #18 parseDibCode / output: Spi / file: env.dib
00:00:00   debug #20 parseDibCode / output: Spi / file: resultm.dib
00:00:00   debug #20 parseDibCode / output: Spi / file: parsing.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: iter.dib
00:00:00   debug #21 writeDibCode / output: Spi / path: date_time.dib
00:00:00   debug #22 parseDibCode / output: Spi / file: iter.dib
00:00:00   debug #23 parseDibCode / output: Spi / file: date_time.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: guid.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: file_system.dib
00:00:00   debug #26 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #28 writeDibCode / output: Spi / path: optionm'.dib
00:00:00   debug #27 writeDibCode / output: Spi / path: mapm.dib
00:00:00   debug #29 parseDibCode / output: Spi / file: guid.dib
00:00:00   debug #31 parseDibCode / output: Spi / file: math.dib
00:00:00   debug #30 parseDibCode / output: Spi / file: file_system.dib
00:00:00   debug #32 parseDibCode / output: Spi / file: optionm'.dib
00:00:00   debug #33 parseDibCode / output: Spi / file: mapm.dib
00:00:00   debug #34 writeDibCode / output: Spi / path: am'.dib
00:00:00   debug #35 writeDibCode / output: Spi / path: sm'.dib
00:00:00   debug #36 writeDibCode / output: Spir / path: sm'.dib
00:00:00   debug #37 parseDibCode / output: Spi / file: am'.dib
00:00:00   debug #38 parseDibCode / output: Spi / file: sm'.dib
00:00:00   debug #39 parseDibCode / output: Spir / file: sm'.dib
00:00:00   debug #40 writeDibCode / output: Spi / path: listm'.dib
00:00:00   debug #41 parseDibCode / output: Spi / file: listm'.dib
00:00:00   debug #42 writeDibCode / output: Spi / path: reflection.dib
00:00:00   debug #43 parseDibCode / output: Spi / file: reflection.dib
00:00:00   debug #44 writeDibCode / output: Spi / path: python.dib
00:00:00   debug #45 parseDibCode / output: Spi / file: python.dib
00:00:00   debug #47 writeDibCode / output: Spi / path: benchmark.dib
00:00:00   debug #48 parseDibCode / output: Spi / file: benchmark.dib
00:00:00   debug #49 writeDibCode / output: Spi / path: stream.dib
00:00:00   debug #50 parseDibCode / output: Spi / file: stream.dib
00:00:00   debug #46 writeDibCode / output: Spi / path: typescript.dib
00:00:00   debug #52 writeDibCode / output: Spi / path: seq.dib
00:00:00   debug #52 parseDibCode / output: Spi / file: typescript.dib
00:00:00   debug #53 parseDibCode / output: Spi / file: seq.dib
00:00:00   debug #54 writeDibCode / output: Spi / path: util.dib
00:00:00   debug #55 parseDibCode / output: Spi / file: util.dib
00:00:00   debug #56 writeDibCode / output: Spi / path: platform.dib
00:00:00   debug #57 parseDibCode / output: Spi / file: platform.dib
00:00:00   debug #58 writeDibCode / output: Spi / path: rust/rust.dib
00:00:00   debug #59 parseDibCode / output: Spi / file: rust/rust.dib
00:00:00   debug #60 writeDibCode / output: Spi / path: rust/testing.dib
00:00:00   debug #61 parseDibCode / output: Spi / file: rust/testing.dib
00:00:00   debug #62 writeDibCode / output: Spi / path: rust/near.dib
00:00:00   debug #63 parseDibCode / output: Spi / file: rust/near.dib
00:00:00   debug #64 writeDibCode / output: Spi / path: rust/near_workspaces.dib
00:00:00   debug #65 parseDibCode / output: Spi / file: rust/near_workspaces.dib
00:00:00   debug #66 writeDibCode / output: Spi / path: physics.dib
00:00:00   debug #67 parseDibCode / output: Spi / file: physics.dib
00:00:00   debug #68 writeDibCode / output: Spi / path: leptos/leptos.dib
00:00:00   debug #69 writeDibCode / output: Spi / path: wasm.dib
00:00:00   debug #70 parseDibCode / output: Spi / file: leptos/leptos.dib
00:00:00   debug #71 parseDibCode / output: Spi / file: wasm.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:01   debug #5 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:01   debug #5 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:01   debug #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:01   debug #5 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:01   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:01   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:01   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:01   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:01   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:01   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:02   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:02   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:02   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:02   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:02   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:02 verbose #23 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust.rust_operators\n\n/// ## rust\n\n/// ### reqwest...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #24 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## trace\n\n/// ### trace_level\nunion trace_level =\n   ...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #25 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### sl...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #22 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust\nopen rust_operators\nopen sm\u0027_operators\n\n//...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 verbose #26 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust\nopen rust_operators\n\n/// ## rust\n\n/// ### future...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:02 verbose #27 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:02 verbose #28 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:02 verbose #29 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:02 verbose #30 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:02 verbose #31 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:03   debug #33 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #35 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #36 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #37 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #38 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #40 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #33 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #42 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
type Disposable (f : unit -> unit) = interface System.IDisposable with member _.Dispose () = f ()
type [<Struct>] US0 =
    | US0_0 of f0_0 : System.T...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : System.Threading.CancellationToken) : Async<System.Threading.CancellationToken> =
    let v1 : unit = ()
    
#if FABLE_COMP...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v0 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #45 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #46 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #47 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #48 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #49 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #50 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #52 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:03   debug #52 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:04   debug #53 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure4()
let trace x = v16 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #54 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...e0()
let v2 : unit = (fun () -> v1 (); v0) ()
let v16 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure4()
let trace x = v16 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:04 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:04   debug #55 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:04   debug #56 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:04   debug #57 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:04   debug #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:04   debug #59 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:04   debug #60 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:04   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:04 verbose #62 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## common\n\n/// ### (:\u003E)\nprototype (~:\u003E) r :...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:04 verbose #63 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust\nopen rust_operators\n\n/// ## fsharp\n\n/// ### sha..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:04   debug #64 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #65 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #66 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #67 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04 verbose #9 async.run_with_timeout_async / { timeout = 180 }
00:00:04   debug #68 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:04   debug #69 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:04   debug #70 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:04 verbose #71 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:04 verbose #72 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:04   debug #73 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:04   debug #74 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:04   debug #75 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:04   debug #76 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:04 verbose #77 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust.rust_operators\nopen sm\u0027_operators\n\n/// ##... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:04   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:04   debug #79 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:04   debug #80 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #82 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #83 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05 verbose #84 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:05   debug #85 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #86 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #87 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #89 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #90 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #91 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05   debug #92 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05   debug #93 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #94 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #95 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:05   debug #96 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:05   debug #97 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:05   debug #98 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:05   debug #99 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05   debug #100 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:05   debug #101 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #102 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #103 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #104 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #105 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:05   debug #106 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("chrono::DateTime<$0>")>]
#endif
type chrono_DateTime<'T> = class end
#if FABLE_COMPILER
[<Fabl...g -> (System.DateTime -> string)) = closure11()
let format x = v6 x
let v7 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v7 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:06   debug #107 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #108 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #109 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #110 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #111 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 verbose #10 async.run_with_timeout_async / { timeout = 180 }
00:00:06   debug #112 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06   debug #113 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:06   debug #114 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06   debug #115 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure5()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure17()
let memoize x = v18 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #116 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...nit -> unit) -> unit option)) = closure5()
let retry_fn x = v17 x
let v18 : ((unit -> unit) -> (unit -> unit)) = closure17()
let memoize x = v18 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #117 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #118 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust.rust_operators\n\n/// ## fsharp\n\n/// ### os_plat...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06 verbose #119 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:06   debug #120 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #121 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #122 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #123 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06 verbose #11 async.run_with_timeout_async / { timeout = 180 }
00:00:06   debug #124 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #125 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #126 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:06   debug #127 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:06   debug #128 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06   debug #129 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:06   debug #130 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:06 verbose #131 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust\nopen rust_operators\n...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:06 verbose #132 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:07   debug #133 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #134 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07   debug #135 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #136 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #137 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #138 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #139 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07   debug #140 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07   debug #141 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:07   debug #142 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v25
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:07   debug #143 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core....1024us
    v873
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #144 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core....1024us
    v873
let v0 : (string -> string) = closure0()
let hash_text x = v0 x
let v1 : (string -> uint16) = closure1()
let hash_to_port x = v1 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #145 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #146 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #147 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07   debug #148 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:07 verbose #12 async.run_with_timeout_async / { timeout = 180 }
00:00:07   debug #149 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07   debug #150 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:07   debug #151 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:07   debug #152 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #153 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07 verbose #154 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # guid\n\n/// ## guid\n\n/// ### guid\nnominal guid_python =\n    \u0060...aw_guid x = !new_raw_guid x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07 verbose #13 async.run_with_timeout_async / { timeout = 180 }
00:00:07   debug #155 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #156 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #157 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:07   debug #158 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:07   debug #159 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:07 verbose #160 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:07 verbose #161 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # sm\u0027\nopen rust\nopen rust_operators\nopen sm\u0027_real\n\n/// ##...tring std_string = from_std_string\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:07   debug #162 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:07   debug #163 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08   debug #165 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08   debug #166 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #167 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:08   debug #168 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:08   debug #165 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:08   debug #169 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:08   debug #170 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08   debug #171 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 verbose #172 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08   debug #173 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v1 : System.Guid = v0 |> System.Guid 
    v1
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08   debug #174 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v1 : System.Guid = v0 |> System.Guid 
    v1
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #175 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08   debug #176 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08   debug #177 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fa... : (string -> ((string []) -> string)) = closure46()
let join' x = v21 x
let v22 : (string -> (char [])) = closure48()
let to_char_array x = v22 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08   debug #178 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08   debug #179 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08   debug #180 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:08   debug #181 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:08   debug #182 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:08   debug #183 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:08   debug #184 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08   debug #185 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure32()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure33()
let split_args x = v20 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:08   debug #186 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...ng option)) = closure32()
let execution_options x = v19 x
let v20 : (string -> Result<(string []), string>) = closure33()
let split_args x = v20 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:08   debug #187 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:09   debug #188 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure27()
let get_available_port x = v19 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:09   debug #189 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...
let wait_for_port_access x = v18 x
let v19 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure27()
let get_available_port x = v19 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:09   debug #190 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:09   debug #191 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #192 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #193 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #194 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10   debug #195 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10   debug #196 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10   debug #197 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10   debug #198 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:11   debug #199 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:11   debug #200 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:11   debug #201 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:11   debug #202 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:12   debug #203 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:12   debug #204 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:12   debug #205 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...(string -> (string -> unit)) = closure55()
let link_directory x = v34 x
let v35 : (string -> (string -> string)) = closure57()
let (</>) x = v35 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:12   debug #206 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.C...(string -> (string -> unit)) = closure55()
let link_directory x = v34 x
let v35 : (string -> (string -> string)) = closure57()
let (</>) x = v35 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:12   debug #207 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
In [ ]:
{ pwsh ../apps/scheduler/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Tasks.dib", "--retries", "3"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/scheduler/Tasks.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/scheduler/Tasks.dib" --output-path "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ ## Tasks (Polyglot)                                                          │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 verbose #16 > >
00:00:09 verbose #17 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 verbose #18 > > //// test
00:00:09 verbose #19 > >
00:00:09 verbose #20 > > open testing
00:00:11 verbose #21 > >
00:00:11 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #24 > > │ ## task_name                                                                 │
00:00:11 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #26 > >
00:00:11 verbose #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #28 > > nominal task_name = string
00:00:11 verbose #29 > >
00:00:11 verbose #30 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #31 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #32 > > │ ## manual_scheduling                                                         │
00:00:11 verbose #33 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #34 > >
00:00:11 verbose #35 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #36 > > union manual_scheduling =
00:00:11 verbose #37 > >     | WithSuggestion
00:00:11 verbose #38 > >     | WithoutSuggestion
00:00:12 verbose #39 > >
00:00:12 verbose #40 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #41 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #42 > > │ ## recurrency_offset                                                         │
00:00:12 verbose #43 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #44 > >
00:00:12 verbose #45 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #46 > > union recurrency_offset =
00:00:12 verbose #47 > >     | Days : i32
00:00:12 verbose #48 > >     | Weeks : i32
00:00:12 verbose #49 > >     | Months : i32
00:00:12 verbose #50 > >
00:00:12 verbose #51 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #52 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #53 > > │ ## day_of_week                                                               │
00:00:12 verbose #54 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #55 > >
00:00:12 verbose #56 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #57 > > union day_of_week =
00:00:12 verbose #58 > >     | Sunday
00:00:12 verbose #59 > >     | Monday
00:00:12 verbose #60 > >     | Tuesday
00:00:12 verbose #61 > >     | Wednesday
00:00:12 verbose #62 > >     | Thursday
00:00:12 verbose #63 > >     | Friday
00:00:12 verbose #64 > >     | Saturday
00:00:13 verbose #65 > >
00:00:13 verbose #66 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #67 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #68 > > │ ## month                                                                     │
00:00:13 verbose #69 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #70 > >
00:00:13 verbose #71 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #72 > > union month =
00:00:13 verbose #73 > >     | January
00:00:13 verbose #74 > >     | February
00:00:13 verbose #75 > >     | March
00:00:13 verbose #76 > >     | April
00:00:13 verbose #77 > >     | May
00:00:13 verbose #78 > >     | June
00:00:13 verbose #79 > >     | July
00:00:13 verbose #80 > >     | August
00:00:13 verbose #81 > >     | September
00:00:13 verbose #82 > >     | October
00:00:13 verbose #83 > >     | November
00:00:13 verbose #84 > >     | December
00:00:13 verbose #85 > >
00:00:13 verbose #86 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #87 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #88 > > │ ## day                                                                       │
00:00:13 verbose #89 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #90 > >
00:00:13 verbose #91 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #92 > > nominal day = i32
00:00:13 verbose #93 > >
00:00:13 verbose #94 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #95 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #96 > > │ ## year                                                                      │
00:00:13 verbose #97 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #98 > >
00:00:13 verbose #99 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #100 > > nominal year = i32
00:00:14 verbose #101 > >
00:00:14 verbose #102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #104 > > │ ## fixed_recurrency                                                          │
00:00:14 verbose #105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #106 > >
00:00:14 verbose #107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #108 > > union fixed_recurrency =
00:00:14 verbose #109 > >     | Weekly : day_of_week
00:00:14 verbose #110 > >     | Monthly : day
00:00:14 verbose #111 > >     | Yearly : day * month
00:00:14 verbose #112 > >
00:00:14 verbose #113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #115 > > │ ## recurrency                                                                │
00:00:14 verbose #116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #117 > >
00:00:14 verbose #118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #119 > > union recurrency =
00:00:14 verbose #120 > >     | Offset : recurrency_offset
00:00:14 verbose #121 > >     | Fixed : list fixed_recurrency
00:00:15 verbose #122 > >
00:00:15 verbose #123 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #124 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #125 > > │ ## scheduling                                                                │
00:00:15 verbose #126 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #127 > >
00:00:15 verbose #128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #129 > > union scheduling =
00:00:15 verbose #130 > >     | Manual : manual_scheduling
00:00:15 verbose #131 > >     | Recurrent : recurrency
00:00:15 verbose #132 > >
00:00:15 verbose #133 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #134 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #135 > > │ ## task                                                                      │
00:00:15 verbose #136 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #137 > >
00:00:15 verbose #138 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #139 > > type task =
00:00:15 verbose #140 > >     {
00:00:15 verbose #141 > >         name : task_name
00:00:15 verbose #142 > >         scheduling : scheduling
00:00:15 verbose #143 > >     }
00:00:15 verbose #144 > >
00:00:15 verbose #145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #147 > > │ ## date                                                                      │
00:00:15 verbose #148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #149 > >
00:00:15 verbose #150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #151 > > type date =
00:00:15 verbose #152 > >     {
00:00:15 verbose #153 > >         year : year
00:00:15 verbose #154 > >         month : month
00:00:15 verbose #155 > >         day : day
00:00:15 verbose #156 > >     }
00:00:16 verbose #157 > >
00:00:16 verbose #158 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #159 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #160 > > │ ## status                                                                    │
00:00:16 verbose #161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #162 > >
00:00:16 verbose #163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #164 > > union status =
00:00:16 verbose #165 > >     | Postponed : option ()
00:00:16 verbose #166 > >
00:00:16 verbose #167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #169 > > │ ## event                                                                     │
00:00:16 verbose #170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #171 > >
00:00:16 verbose #172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #173 > > type event =
00:00:16 verbose #174 > >     {
00:00:16 verbose #175 > >         date : date
00:00:16 verbose #176 > >         status : status
00:00:16 verbose #177 > >     }
00:00:17 verbose #178 > >
00:00:17 verbose #179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #181 > > │ ## task_template                                                             │
00:00:17 verbose #182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #183 > >
00:00:17 verbose #184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #185 > > type task_template =
00:00:17 verbose #186 > >     {
00:00:17 verbose #187 > >         task : task
00:00:17 verbose #188 > >         events : list event
00:00:17 verbose #189 > >     }
00:00:17 verbose #190 > >
00:00:17 verbose #191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #193 > > │ ## get_tasks (test)                                                          │
00:00:17 verbose #194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #195 > >
00:00:17 verbose #196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #197 > > //// test
00:00:17 verbose #198 > >
00:00:17 verbose #199 > > inl get_tasks () : list task_template =
00:00:17 verbose #200 > >     [[
00:00:17 verbose #201 > >         {
00:00:17 verbose #202 > >             task =
00:00:17 verbose #203 > >                 {
00:00:17 verbose #204 > >                     name = task_name "01"
00:00:17 verbose #205 > >                     scheduling = Manual WithSuggestion
00:00:17 verbose #206 > >                 }
00:00:17 verbose #207 > >             events = [[]]
00:00:17 verbose #208 > >         }
00:00:17 verbose #209 > >         {
00:00:17 verbose #210 > >             task =
00:00:17 verbose #211 > >                 {
00:00:17 verbose #212 > >                     name = task_name "02"
00:00:17 verbose #213 > >                     scheduling = Manual WithSuggestion
00:00:17 verbose #214 > >                 }
00:00:17 verbose #215 > >             events = [[]]
00:00:17 verbose #216 > >         }
00:00:17 verbose #217 > >         {
00:00:17 verbose #218 > >             task =
00:00:17 verbose #219 > >                 {
00:00:17 verbose #220 > >                     name = task_name "03"
00:00:17 verbose #221 > >                     scheduling = Manual WithSuggestion
00:00:17 verbose #222 > >                 }
00:00:17 verbose #223 > >             events = [[]]
00:00:17 verbose #224 > >         }
00:00:17 verbose #225 > >     ]]
00:00:18 verbose #226 > >
00:00:18 verbose #227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #228 > > //// test
00:00:18 verbose #229 > > ///! fsharp
00:00:18 verbose #230 > > ///! cuda
00:00:18 verbose #231 > > ///! rust
00:00:18 verbose #232 > > ///! typescript
00:00:18 verbose #233 > > ///! python
00:00:18 verbose #234 > >
00:00:18 verbose #235 > > get_tasks ()
00:00:18 verbose #236 > > |> sm'.format_debug
00:00:18 verbose #237 > > |> _assert_string_contains "01"
00:00:26 verbose #238 > >
00:00:26 verbose #239 > > ╭─[ 8.56s - return value ]─────────────────────────────────────────────────────╮
00:00:26 verbose #240 > > │ .py output (Cuda):                                                           │
00:00:26 verbose #241 > > │ __assert_string_contains / actual: 01 / expected: UH2_1(v0='01',             │
00:00:26 verbose #242 > > │ v1=US1_0(v0=US0_0()), v2=UH1_0(), v3=UH2_1(v0='02', v1=US1_0(v0=US0_0()),    │
00:00:26 verbose #243 > > │ v2=UH1_0(), v3=UH2_1(v0='03', v1=US1_0(v0=US0_0()), v2=UH1_0(),              │
00:00:26 verbose #244 > > │ v3=UH2_0())))                                                                │
00:00:26 verbose #245 > > │                                                                              │
00:00:26 verbose #246 > > │ .rs output:                                                                  │
00:00:26 verbose #247 > > │ __assert_string_contains / actual: "01" / expected: "UH2_1("01",             │
00:00:26 verbose #248 > > │ US1_0(US0_0), UH1_0, UH2_1("02", US1_0(US0_0), UH1_0, UH2_1("03",            │
00:00:26 verbose #249 > > │ US1_0(US0_0), UH1_0, UH2_0)))"                                               │
00:00:26 verbose #250 > > │                                                                              │
00:00:26 verbose #251 > > │ .ts output:                                                                  │
00:00:26 verbose #252 > > │ __assert_string_contains / actual: 01 / expected: UH2_1 (01, US1_0 US0_0,    │
00:00:26 verbose #253 > > │ UH1_0, UH2_1 (02, US1_0 US0_0, UH1_0, UH2_1 (03, US1_0 US0_0, UH1_0,         │
00:00:26 verbose #254 > > │ UH2_0)))                                                                     │
00:00:26 verbose #255 > > │                                                                              │
00:00:26 verbose #256 > > │ .py output:                                                                  │
00:00:26 verbose #257 > > │ __assert_string_contains / actual: 01 / expected: UH2_1 ("01", US1_0 US0_0,  │
00:00:26 verbose #258 > > │ UH1_0, UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,     │
00:00:26 verbose #259 > > │ UH2_0)))                                                                     │
00:00:26 verbose #260 > > │                                                                              │
00:00:26 verbose #261 > > │                                                                              │
00:00:26 verbose #262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #263 > >
00:00:26 verbose #264 > > ╭─[ 8.57s - stdout ]───────────────────────────────────────────────────────────╮
00:00:26 verbose #265 > > │ .fsx output:                                                                 │
00:00:26 verbose #266 > > │ __assert_string_contains / actual: "01" / expected: "UH2_1                   │
00:00:26 verbose #267 > > │   ("01", US1_0 US0_0, UH1_0,                                                 │
00:00:26 verbose #268 > > │    UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,         │
00:00:26 verbose #269 > > │ UH2_0)))"                                                                    │
00:00:26 verbose #270 > > │                                                                              │
00:00:26 verbose #271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #272 > >
00:00:26 verbose #273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #274 > > //// test
00:00:26 verbose #275 > > ///! fsharp
00:00:26 verbose #276 > > ///! cuda
00:00:26 verbose #277 > > ///! rust
00:00:26 verbose #278 > > ///! typescript
00:00:26 verbose #279 > > ///! python
00:00:26 verbose #280 > >
00:00:26 verbose #281 > > get_tasks ()
00:00:26 verbose #282 > > |> listm'.try_item 0i32
00:00:26 verbose #283 > > |> fun (Some task) => task.task.name
00:00:26 verbose #284 > > |> _assert_eq (task_name "01")
00:00:32 verbose #285 > >
00:00:32 verbose #286 > > ╭─[ 6.07s - return value ]─────────────────────────────────────────────────────╮
00:00:32 verbose #287 > > │ .py output (Cuda):                                                           │
00:00:32 verbose #288 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:32 verbose #289 > > │                                                                              │
00:00:32 verbose #290 > > │ .rs output:                                                                  │
00:00:32 verbose #291 > > │ __assert_eq / actual: "01" / expected: "01"                                  │
00:00:32 verbose #292 > > │                                                                              │
00:00:32 verbose #293 > > │ .ts output:                                                                  │
00:00:32 verbose #294 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:32 verbose #295 > > │                                                                              │
00:00:32 verbose #296 > > │ .py output:                                                                  │
00:00:32 verbose #297 > > │ __assert_eq / actual: 01 / expected: 01                                      │
00:00:32 verbose #298 > > │                                                                              │
00:00:32 verbose #299 > > │                                                                              │
00:00:32 verbose #300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #301 > >
00:00:32 verbose #302 > > ╭─[ 6.07s - stdout ]───────────────────────────────────────────────────────────╮
00:00:32 verbose #303 > > │ .fsx output:                                                                 │
00:00:32 verbose #304 > > │ __assert_eq / actual: "01" / expected: "01"                                  │
00:00:32 verbose #305 > > │                                                                              │
00:00:32 verbose #306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 verbose #307 > 00:00:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13425 }
00:00:32 verbose #308 > 00:00:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:00:32 verbose #309 >     "nbconvert",
00:00:32 verbose #310 >     "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb",
00:00:32 verbose #311 >     "--to",
00:00:32 verbose #312 >     "html",
00:00:32 verbose #313 >     "--HTMLExporter.theme=dark",
00:00:32 verbose #314 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:35 verbose #315 > 00:00:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb to html
00:00:35 verbose #316 > 00:00:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:35 verbose #317 > 00:00:34 verbose #7 !   validate(nb)
00:00:37 verbose #318 > 00:00:36 verbose #8 ! [NbConvertApp] Writing 300230 bytes to c:\home\git\polyglot\apps\scheduler\Tasks.dib.html
00:00:38 verbose #319 > 00:00:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:00:38 verbose #320 > 00:00:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:00:38 verbose #321 > 00:00:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:00:38 verbose #322 >     "-c",
00:00:38 verbose #323 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:00:38 verbose #324 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:38 verbose #325 > 00:00:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:38 verbose #326 > 00:00:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:38 verbose #327 > 00:00:37   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 14133 }
00:00:38   debug #328 runtime.execute_with_options_async / { exit_code = 0; output_length = 17426 }
00:00:38   debug #1 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3
00:00:00   debug #1 writeDibCode / output: Spi / path: Tasks.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ pwsh ../apps/chat/build.ps1 } | Invoke-Block
00:00:00   debug #1 writeDibCode / output: Spi / path: chat_contract.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: chat_contract.dib
00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:02   debug #2 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:02 verbose #4 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # chat_contract\nopen rust\nopen rust.rust_operators\n\n/// ## chat_cont...03E ignore\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/chat/contract/chat_contract.spi"}} / result:
00:00:02 verbose #5 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/chat/contract/chat_contract.spi"}} / result:
00:00:02   debug #6 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:03   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:03   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:03   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:04   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:04   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:04   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("*/ $0 /*")>]
#endif
type TypeEmit<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable... i': 15uy / n: 14uy"
    let v7487 : bool = Fable.Core.RustInterop.emitRustExpr () v7486 
    ()
let v0 : (unit -> unit) = closure0()
v0 |> ignore
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: chat_contract.spi
00:00:04   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("*/ $0 /*")>]
#endif
type TypeEmit<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable... i': 15uy / n: 14uy"
    let v7487 : bool = Fable.Core.RustInterop.emitRustExpr () v7486 
    ()
let v0 : (unit -> unit) = closure0()
v0 |> ignore
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: chat_contract.spi
00:00:04   debug #16 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: chat_contract / hash:  / code.Length: 230082
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\chat_contract\chat_contract.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\chat\contract\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\chat_contract" } }
00:00:01 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:02 verbose #3 >   Determining projects to restore...
00:00:03 verbose #4 >   Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
00:00:03 verbose #5 >   The last full restore is still up to date. Nothing left to do.
00:00:03 verbose #6 >   Total time taken: 0 milliseconds
00:00:04 verbose #7 >   Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
00:00:05 verbose #8 >   Restoring C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj
00:00:05 verbose #9 >   Starting restore process.
00:00:05 verbose #10 >   Total time taken: 0 milliseconds
00:00:07 verbose #11 >   Restored C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj (in 1.74 sec).
00:00:07 verbose #12 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:18 verbose #13 > C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fs(4981,15): warning FS0025: Incomplete pattern matches on this expression. For example, the value 'US4_0 (_)' may indicate a case not covered by the pattern(s). [C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj]
00:00:25 verbose #14 >   chat_contract -> C:\home\git\polyglot\target\Builder\chat_contract\bin\Release\net9.0\win-x64\chat_contract.dll
00:00:27 verbose #15 >   chat_contract -> C:\home\git\polyglot\apps\chat\contract\dist\
00:00:27   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 1408 }
targetDir: C:\home\git\polyglot\target\Builder\chat_contract
Fable 4.20.0: F# to Rust compiler (status: alpha)

Thanks to the contributor! @Choc13
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\chat_contract\chat_contract.fsproj...
target\Builder\chat_contract> cmd /C dotnet restore chat_contract.fable-temp.csproj -p:FABLE_COMPILER=true -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_RUST=true -p:CONTRACT=true -p:_WINDOWS=true
  Determining projects to restore...
  Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
  The last full restore is still up to date. Nothing left to do.
  Total time taken: 0 milliseconds
  Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
  Restoring C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fable-temp.csproj
  Starting restore process.
  Total time taken: 0 milliseconds
  Restored C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fable-temp.csproj (in 689 ms).
target\Builder\chat_contract> cmd /C dotnet restore C:/home/git/polyglot/target/Builder/chat_contract/chat_contract.fsproj
  Determining projects to restore...
  Restored C:\home\git\polyglot\target\Builder\chat_contract\chat_contract.fsproj (in 593 ms).
Project and references (14 source files) parsed in 10278ms

Started Fable compilation...

Fable compilation finished in 14237ms

.\target\Builder\chat_contract\chat_contract.fs(4981,15): (4981,20) warning FSHARP: Incomplete pattern matches on this expression. For example, the value 'US4_0 (_)' may indicate a case not covered by the pattern(s). (code 25)
.\lib\spiral\async_.fsx(76,0): (76,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(145,0): (145,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1012,0): (1012,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1391,0): (1391,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1300,0): (1300,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\sm.fsx(414,0): (414,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(104,0): (104,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(4639,0): (4639,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1333,0): (1333,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(6776,0): (6776,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11018,0): (11018,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\chat_contract\chat_contract.fs(5193,6): (5193,12) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling chat_contract v0.0.1 (C:\home\git\polyglot\apps\chat\contract)
    Finished `release` profile [optimized] target(s) in 22.72s
    Finished `release` profile [optimized] target(s) in 24.60s
     Running `/mnt/c/home/git/polyglot/workspace/target/release/chat_contract_tests`


new: ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 1625699777124,
    },
    transaction: ExecutionOutcome {
        transaction_hash: BDZe7LVCcsqi3BfWdpw9n275Acj8xtHAstHGmfwoaJLZ,
        block_hash: hcMSeoarGhzGVRyoCoMnAziJ5TdprRJ7xfNUANERu3s,
        logs: [],
        receipt_ids: [
            2Yb9bzCm6qbT6sP28SEbmr2RW2FEtr5Gb9GyopHNApRN,
        ],
        gas_burnt: NearGas {
            inner: 308066207802,
        },
        tokens_burnt: NearToken {
            inner: 30806620780200000000,
        },
        executor_id: AccountId(
            "dev-20240919201137-95739755246982",
        ),
        status: SuccessReceiptId(2Yb9bzCm6qbT6sP28SEbmr2RW2FEtr5Gb9GyopHNApRN),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 2Yb9bzCm6qbT6sP28SEbmr2RW2FEtr5Gb9GyopHNApRN,
            block_hash: hcMSeoarGhzGVRyoCoMnAziJ5TdprRJ7xfNUANERu3s,
            logs: [],
            receipt_ids: [
                E3fH1ZaAyoeJtdDhg1m58hbwcBWCiNMwtRYJusiCRCK9,
            ],
            gas_burnt: NearGas {
                inner: 1317633569322,
            },
            tokens_burnt: NearToken {
                inner: 131763356932200000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.001085967451118832
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205788226811736
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0008801792243070959
  outcome_tokens_burnt_usd: 0.0


claim_alias(contract, ''): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 2028558418381,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 5GEKuzs55Wg5KwpSMfNz5hiSGmGQEcmVso9i45vrWDBJ,
        block_hash: 6eTUNtkHAjWWFUhNqh8E2ohveZSN5fqiAsRaVsUUx6eW,
        logs: [],
        receipt_ids: [
            8aszMayP6W3onCaJckkP6Xdq7etrDhjjqBs4cyGPmyUp,
        ],
        gas_burnt: NearGas {
            inner: 308110926482,
        },
        tokens_burnt: NearToken {
            inner: 30811092648200000000,
        },
        executor_id: AccountId(
            "dev-20240919201137-95739755246982",
        ),
        status: SuccessReceiptId(8aszMayP6W3onCaJckkP6Xdq7etrDhjjqBs4cyGPmyUp),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 8aszMayP6W3onCaJckkP6Xdq7etrDhjjqBs4cyGPmyUp,
            block_hash: 6eTUNtkHAjWWFUhNqh8E2ohveZSN5fqiAsRaVsUUx6eW,
            logs: [],
            receipt_ids: [
                8fm9dwuyDnCqubirDQ88mXenATdxcuZKYEMgvy2PFfXa,
            ],
            gas_burnt: NearGas {
                inner: 1497264929399,
            },
            tokens_burnt: NearToken {
                inner: 149726492939900000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: chat_contract.claim_alias / invalid alias")) })),
        },
        ExecutionOutcome {
            transaction_hash: 8fm9dwuyDnCqubirDQ88mXenATdxcuZKYEMgvy2PFfXa,
            block_hash: HrDJ9GErwhcZ3f1SNrEZBubnGyv5h1qHDBh3KnKu6e9K,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
    ],
    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: chat_contract.claim_alias / invalid alias")) })),
}
total_gas_burnt_usd: 0.001355077023478508
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205818098889976
  outcome_tokens_burnt_usd: 0.0
outcome (success: false):
  outcome_gas_burnt_usd: 0.001000172972838532
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


dev_create_account(account1): Account {
    id: AccountId(
        "dev-20240919201139-47522328562880",
    ),
}


generate_cid_borsh(account1): ViewResultDetails { result: [59, 0, 0, 0, 98, 97, 102, 107, 114, 101, 105, 104, 100, 119, 100, 99, 101, 102, 103, 104, 52, 100, 113, 107, 106, 118, 54, 55, 117, 122, 99, 109, 119, 55, 111, 106, 101, 101, 54, 120, 101, 100, 122, 100, 101, 116, 111, 106, 117, 122, 106, 101, 118, 116, 101, 110, 120, 113, 117, 118, 121, 107, 117], logs: [] }


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 2827670030464,
    },
    transaction: ExecutionOutcome {
        transaction_hash: HTMCY5uKtvtZuhAcSsqS5YmfANqHaXBgA5dBiLGxn2MF,
        block_hash: DByGcwj5QHKYpgwC9SDvYghQ7ztLYy71wpbFKaybziky,
        logs: [],
        receipt_ids: [
            CztQpDigjz9Dc99KzH8gXNMPufpVsQxpy4YbTYiFpfsR,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201139-47522328562880",
        ),
        status: SuccessReceiptId(CztQpDigjz9Dc99KzH8gXNMPufpVsQxpy4YbTYiFpfsR),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: CztQpDigjz9Dc99KzH8gXNMPufpVsQxpy4YbTYiFpfsR,
            block_hash: C2RZn7CwvqHno8roaa9tQRtARQ6K6q1wxgB2uuLfsbVY,
            logs: [
                "20:11:40 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1726776700696407821; account_id = \"dev-20240919201139-47522328562880\" }\n20:11:40 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = None }",
            ],
            receipt_ids: [
                Grhtj2TS7oSTU6dBFqkXJbaFhZsk6pQvXhdipidXQJtR,
            ],
            gas_burnt: NearGas {
                inner: 2296363125878,
            },
            tokens_burnt: NearToken {
                inner: 229636312587800000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: Grhtj2TS7oSTU6dBFqkXJbaFhZsk6pQvXhdipidXQJtR,
            block_hash: 3tmypmXNKU2ovfPzqWYXHaG1vACpG83MBfvWzzia2fR2,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201139-47522328562880",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.001888883580349952
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001533970568086504
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 2995464050338,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 5YSf99PizSpKqmKj8hYLd2ShCUH25h1LVYHeYQPRLE8p,
        block_hash: 73raXKAN8RJcP3NQjs9HXLvQ4VXjp4QCQNFPRHgQ6UY3,
        logs: [],
        receipt_ids: [
            FX6VqhaGH394oycjKWWKQxQuFK3T6WbyLypQUT9AmF7q,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201139-47522328562880",
        ),
        status: SuccessReceiptId(FX6VqhaGH394oycjKWWKQxQuFK3T6WbyLypQUT9AmF7q),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: FX6VqhaGH394oycjKWWKQxQuFK3T6WbyLypQUT9AmF7q,
            block_hash: 6UdGubWVoBw2oruYGkvJeN4TTKc68SoijZ7QQrTAqcJ7,
            logs: [
                "20:11:41 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1726776701707981168; account_id = \"dev-20240919201139-47522328562880\" }\n20:11:41 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias1\") }",
            ],
            receipt_ids: [
                CUhjc1EnDvNgxj2nyHq1XvwcGX2K2omyi77L9hEPJ4L7,
            ],
            gas_burnt: NearGas {
                inner: 2464157145752,
            },
            tokens_burnt: NearToken {
                inner: 246415714575200000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: CUhjc1EnDvNgxj2nyHq1XvwcGX2K2omyi77L9hEPJ4L7,
            block_hash: 7L6sFNtX5Tmnm1pkCecRawPQrfVtNYGHvbtd6mC8D8ne,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201139-47522328562880",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0020009699856257837
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001646056973362336
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        1726776701707981168,
        0,
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240919201139-47522328562880",
        ): (
            1726776701707981168,
            0,
        ),
    },
)


dev_create_account(account2): Account {
    id: AccountId(
        "dev-20240919201142-95686849728553",
    ),
}


claim_alias(alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 2933401766020,
    },
    transaction: ExecutionOutcome {
        transaction_hash: HwUgVsEVtsPjsVBuN1xv6wBJjgALo9jGN3zJwGj3rZT7,
        block_hash: GExboZRX1iaJjNjfxdvADhW5UW54kPQ3TDM3farehFgK,
        logs: [],
        receipt_ids: [
            7ue5x54zcjkKwwuA1XMF333FQau4TEKHkCrzx14vnofZ,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201142-95686849728553",
        ),
        status: SuccessReceiptId(7ue5x54zcjkKwwuA1XMF333FQau4TEKHkCrzx14vnofZ),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 7ue5x54zcjkKwwuA1XMF333FQau4TEKHkCrzx14vnofZ,
            block_hash: 6Bi8gA7p8xzTVqnbD5K6xZJR41ryatnekXeta7BHHUa2,
            logs: [
                "20:11:43 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias2\"; block_timestamp = 1726776703730909977; account_id = \"dev-20240919201142-95686849728553\" }\n20:11:43 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = None }",
            ],
            receipt_ids: [
                4pJwpzyMj8ZPmYC5w865GEufCqEYVaggYv4g7me3BJcW,
            ],
            gas_burnt: NearGas {
                inner: 2402094861434,
            },
            tokens_burnt: NearToken {
                inner: 240209486143400000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 4pJwpzyMj8ZPmYC5w865GEufCqEYVaggYv4g7me3BJcW,
            block_hash: GLuBmpzvrupLxdNWMYysRowhuHs4nATuquLFeEnxAN3u,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201142-95686849728553",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.00195951237970136
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016045993674379119
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias2",
        1726776703730909977,
        0,
    ),
)


get_alias_map_borsh(alias2): Some(
    {
        AccountId(
            "dev-20240919201142-95686849728553",
        ): (
            1726776703730909977,
            0,
        ),
    },
)


claim_alias(account2, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3260197198849,
    },
    transaction: ExecutionOutcome {
        transaction_hash: EStChQmTuhsJFMS7fuZGKES4HGN9QcyxDqKFuavpWngs,
        block_hash: H4tKmANViHU54u1gV9ZP6T5gRmyRT9JrgJQLY3JtZtQw,
        logs: [],
        receipt_ids: [
            3xFvr2RN8XGTchh32oBqwnhMfcKWyWKSA1DwcdzYvpRa,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201142-95686849728553",
        ),
        status: SuccessReceiptId(3xFvr2RN8XGTchh32oBqwnhMfcKWyWKSA1DwcdzYvpRa),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 3xFvr2RN8XGTchh32oBqwnhMfcKWyWKSA1DwcdzYvpRa,
            block_hash: ALAXQptRPgaGWQMYQ8ugViXvZGyudw1K73eDM8Aqj8it,
            logs: [
                "20:11:44 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1726776704742046251; account_id = \"dev-20240919201142-95686849728553\" }\n20:11:44 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias2\") }",
            ],
            receipt_ids: [
                5Meb93hbjhr2SbDX8bNssbihBMa46JPAXAgZMrSxqWZ7,
            ],
            gas_burnt: NearGas {
                inner: 2728890294263,
            },
            tokens_burnt: NearToken {
                inner: 272889029426300000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 5Meb93hbjhr2SbDX8bNssbihBMa46JPAXAgZMrSxqWZ7,
            block_hash: 6UDsUiAiJdpCs2EcfzzZ3z6rsksbyCpQrVbZcif9qgEf,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201142-95686849728553",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0021778117288311317
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001822898716567684
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias1",
        1726776704742046251,
        1,
    ),
)


get_alias_map(account2, alias1): Some(
    {
        AccountId(
            "dev-20240919201139-47522328562880",
        ): (
            1726776701707981168,
            0,
        ),
        AccountId(
            "dev-20240919201142-95686849728553",
        ): (
            1726776704742046251,
            1,
        ),
    },
)


get_alias_map(account2, alias2): Some(
    {},
)


claim_alias(account1, alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3255347052229,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 6pVzEf7PttSe9Lw6rs34LWfrJHfbcMxBZDFVorQfq2Ki,
        block_hash: 2V36s8yiAt2ac1FHhNRnPc82TrNuFbAgxpswX9A6wnyx,
        logs: [],
        receipt_ids: [
            BNVgeLax4JdAyrcTZ9asoaLy3F9mGdhhrE36tfGmQFb2,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201139-47522328562880",
        ),
        status: SuccessReceiptId(BNVgeLax4JdAyrcTZ9asoaLy3F9mGdhhrE36tfGmQFb2),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: BNVgeLax4JdAyrcTZ9asoaLy3F9mGdhhrE36tfGmQFb2,
            block_hash: 3Myb1brP7LjST1rPmsm7Ua1pSvVCifCXEGtHyY4bdaJw,
            logs: [
                "20:11:45 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias2\"; block_timestamp = 1726776705753681237; account_id = \"dev-20240919201139-47522328562880\" }\n20:11:45 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias1\") }",
            ],
            receipt_ids: [
                326RYjJMngS1eZxZHCgRUAKyVrLwWL8zusQ28RTJZQqM,
            ],
            gas_burnt: NearGas {
                inner: 2724040147643,
            },
            tokens_burnt: NearToken {
                inner: 272404014764300000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 326RYjJMngS1eZxZHCgRUAKyVrLwWL8zusQ28RTJZQqM,
            block_hash: DLuX85aQVV1NfQvNApmv7Ukp5oBtH68ZxVAunsuZw11v,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240919201139-47522328562880",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002174571830888972
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0018196588186255237
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias2",
        1726776705753681237,
        0,
    ),
)


get_alias_map(account1, alias2): Some(
    {
        AccountId(
            "dev-20240919201139-47522328562880",
        ): (
            1726776705753681237,
            0,
        ),
    },
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240919201142-95686849728553",
        ): (
            1726776704742046251,
            1,
        ),
    },
)


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 3036998181229,
    },
    transaction: ExecutionOutcome {
        transaction_hash: G1H384eiixV9LCdGE8B6R5CnJyhcndHEAPcyafXpgh7e,
        block_hash: 6UnDTucLicgWU1KEgpQoW6pAKTbD4R5mjCWyfuX9KPmp,
        logs: [],
        receipt_ids: [
            45XCKPzqVd6D65ZuSi5KXQepXHJMwxHM2KnxbkchwvGv,
        ],
        gas_burnt: NearGas {
            inner: 308124342086,
        },
        tokens_burnt: NearToken {
            inner: 30812434208600000000,
        },
        executor_id: AccountId(
            "dev-20240919201139-47522328562880",
        ),
        status: SuccessReceiptId(45XCKPzqVd6D65ZuSi5KXQepXHJMwxHM2KnxbkchwvGv),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 45XCKPzqVd6D65ZuSi5KXQepXHJMwxHM2KnxbkchwvGv,
            block_hash: HnAix1uc3vHfoJ1P6bMz8zTFknV8YqBrbXidPY23ExPG,
            logs: [
                "20:11:46 \u{1b}[94m  debug\u{1b}[39m #1 chat_contract.claim_alias / { alias = \"alias1\"; block_timestamp = 1726776706765158438; account_id = \"dev-20240919201139-47522328562880\" }\n20:11:46 \u{1b}[94m  debug\u{1b}[39m #2 chat_contract.claim_alias / { account_alias = Some(\"alias2\") }",
            ],
            receipt_ids: [
                9KYXfZMZ67qYBCwZNfocdnZZ7f3sreX5BokKVWvSXpqi,
            ],
            gas_burnt: NearGas {
                inner: 2728873839143,
            },
            tokens_burnt: NearToken {
                inner: 272887383914300000000,
            },
            executor_id: AccountId(
                "dev-20240919201137-95739755246982",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.002028714785060972
outcome (success: true):
  outcome_gas_burnt_usd: 0.000205827060513448
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001822887724547524
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        1726776706765158438,
        1,
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240919201139-47522328562880",
        ): (
            1726776706765158438,
            1,
        ),
        AccountId(
            "dev-20240919201142-95686849728553",
        ): (
            1726776704742046251,
            0,
        ),
    },
)


get_alias_map(account1, alias2): Some(
    {},
)
In [ ]:
{ pwsh ../apps/spiral/temp/extension/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 11 installs across 13 packages (no changes) [46.00ms]
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
warning: enum `AlbumData` is never used
  --> C:\home\git\polyglot\apps\spiral\temp\extension\src\timer.rs:52:6
   |
52 | enum AlbumData {
   |      ^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `spiral_temp_extension` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.98s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional field missing from Cargo.toml: 'description'. This is not necessary, but recommended
[INFO]: origin crate has no LICENSE
[INFO]: ✨   Done in 2.89s
[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg.
▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]

    pkg/spiral_temp_extension.js:1507:66:
      1507 │ ...ath = new URL('spiral_temp_extension_bg.wasm', import.meta.url);
           ╵                                                   ~~~~~~~~~~~

  You need to set the output format to "esm" for "import.meta" to work correctly.

1 warning

  dist\spiral_temp_extension_bg-J2HZKOAZ.wasm   4.6mb ⚠️
  dist\devtools.js                             29.0kb
  dist\content_script.js                       28.0kb
  dist\service_worker.js                        2.2kb

⚡ Done in 127ms
$ playwright test
[WebServer]  Saved lockfile


Running 3 tests using 3 workers

[1/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost
[2/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen
[3/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension
  3 passed (24.9s)

To open last HTML report run:

  npx playwright show-report

In [ ]:
{ pwsh ../apps/spiral/temp/test/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "build.dib"])) }
00:00:01 verbose #3 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = [
00:00:01 verbose #4 >     "repl",
00:00:01 verbose #5 >     "--exit-after-run",
00:00:01 verbose #6 >     "--run",
00:00:01 verbose #7 >     "c:/home/git/polyglot/apps/spiral/temp/test/build.dib",
00:00:01 verbose #8 >     "--output-path",
00:00:01 verbose #9 >     "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb",
00:00:01 verbose #10 > ]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/temp/test/build.dib" --output-path "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #11 > >
00:00:04 verbose #12 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #13 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #14 > > │ # test                                                                       │
00:00:04 verbose #15 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 verbose #16 > >
00:00:04 verbose #17 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #18 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #19 > > │ ## include scripts                                                           │
00:00:04 verbose #20 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 verbose #21 > >
00:00:04 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #24 > > │ ### include notebook core                                                    │
00:00:04 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 verbose #26 > >
00:00:04 verbose #27 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:04 verbose #28 > > . ../../../../scripts/nbs_header.ps1
00:00:05 verbose #29 > >
00:00:05 verbose #30 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #31 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #32 > > │ ### Include core functions script                                            │
00:00:05 verbose #33 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 verbose #34 > >
00:00:05 verbose #35 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:05 verbose #36 > > . ../../../../scripts/core.ps1
00:00:05 verbose #37 > >
00:00:05 verbose #38 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #39 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #40 > > │ ### Include spiral library                                                   │
00:00:05 verbose #41 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 verbose #42 > >
00:00:05 verbose #43 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:05 verbose #44 > > . ../../../../lib/spiral/lib.ps1
00:00:05 verbose #45 > >
00:00:05 verbose #46 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #47 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #48 > > │ ## execute project commands                                                  │
00:00:05 verbose #49 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 verbose #50 > >
00:00:05 verbose #51 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #52 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #53 > > │ ### run notebook with retries using spiral supervisor                        │
00:00:05 verbose #54 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:05 verbose #55 > >
00:00:05 verbose #56 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:05 verbose #57 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --execute-command
00:00:05 verbose #58 > > "../../../../workspace/target/release/spiral_builder$(_exe) dib --path test.dib
00:00:05 verbose #59 > > --retries 3" } | Invoke-Block
00:00:30 verbose #60 > >
00:00:30 verbose #61 > > ╭─[ 25.33s - stdout ]──────────────────────────────────────────────────────────╮
00:00:30 verbose #62 > > │ 00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:00:30 verbose #63 > > │ 00:00:01   debug #1 runtime.execute_with_options_async / { options = {  │
00:00:30 verbose #64 > > │ command = ../../../../workspace/target/release/spiral_builder.exe dib --path │
00:00:30 verbose #65 > > │ test.dib --retries 3; cancellation_token = Some                              │
00:00:30 verbose #66 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:00:30 verbose #67 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:00:30 verbose #68 > > │ 00:00:01 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { │
00:00:30 verbose #69 > > │ args = Array(MutCell(["dib", "--path", "test.dib", "--retries", "3"])) }     │
00:00:30 verbose #70 > > │ 00:00:01 verbose #3 > 00:00:00   debug #2                         │
00:00:30 verbose #71 > > │ runtime.execute_with_options / { file_name = dotnet; arguments = [           │
00:00:30 verbose #72 > > │ 00:00:01 verbose #4 >     "repl",                                       │
00:00:30 verbose #73 > > │ 00:00:01 verbose #5 >     "--exit-after-run",                           │
00:00:30 verbose #74 > > │ 00:00:01 verbose #6 >     "--run",                                      │
00:00:30 verbose #75 > > │ 00:00:01 verbose #7 >                                                   │
00:00:30 verbose #76 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib",                       │
00:00:30 verbose #77 > > │ 00:00:01 verbose #8 >     "--output-path",                              │
00:00:30 verbose #78 > > │ 00:00:01 verbose #9 >                                                   │
00:00:30 verbose #79 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb",                 │
00:00:30 verbose #80 > > │ 00:00:01 verbose #10 > ]; options = { command = dotnet repl             │
00:00:30 verbose #81 > > │ --exit-after-run --run "c:/home/git/polyglot/apps/spiral/temp/test/test.dib" │
00:00:30 verbose #82 > > │ --output-path "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb";   │
00:00:30 verbose #83 > > │ cancellation_token = None; environment_variables = Array(MutCell([           │
00:00:30 verbose #84 > > │ ("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin │
00:00:30 verbose #85 > > │ = None; trace = false; working_directory = None } }                          │
00:00:30 verbose #86 > > │ 00:00:04 verbose #11 > >                                                │
00:00:30 verbose #87 > > │ 00:00:04 verbose #12 > > ── markdown                                    │
00:00:30 verbose #88 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:30 verbose #89 > > │ 00:00:04 verbose #13 > >                                                │
00:00:30 verbose #90 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:30 verbose #91 > > │ ───╮                                                                         │
00:00:30 verbose #92 > > │ 00:00:04 verbose #14 > > │ # test (Polyglot)                            │
00:00:30 verbose #93 > > │ │                                                                            │
00:00:30 verbose #94 > > │ 00:00:04 verbose #15 > >                                                │
00:00:30 verbose #95 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:30 verbose #96 > > │ ───╯                                                                         │
00:00:30 verbose #97 > > │ 00:00:09 verbose #16 > >                                                │
00:00:30 verbose #98 > > │ 00:00:09 verbose #17 > > ── spiral                                      │
00:00:30 verbose #99 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #100 > > │ 00:00:09 verbose #18 > > //// test                                      │
00:00:30 verbose #101 > > │ 00:00:09 verbose #19 > >                                                │
00:00:30 verbose #102 > > │ 00:00:09 verbose #20 > > open testing                                   │
00:00:30 verbose #103 > > │ 00:00:11 verbose #21 > >                                                │
00:00:30 verbose #104 > > │ 00:00:11 verbose #22 > > ── spiral                                      │
00:00:30 verbose #105 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #106 > > │ 00:00:11 verbose #23 > > nominal i = ()                                 │
00:00:30 verbose #107 > > │ 00:00:11 verbose #24 > > nominal e = ()                                 │
00:00:30 verbose #108 > > │ 00:00:11 verbose #25 > > nominal s = ()                                 │
00:00:30 verbose #109 > > │ 00:00:11 verbose #26 > > nominal n = ()                                 │
00:00:30 verbose #110 > > │ 00:00:11 verbose #27 > > nominal t = ()                                 │
00:00:30 verbose #111 > > │ 00:00:11 verbose #28 > > nominal f = ()                                 │
00:00:30 verbose #112 > > │ 00:00:11 verbose #29 > > nominal j = ()                                 │
00:00:30 verbose #113 > > │ 00:00:11 verbose #30 > > nominal p = ()                                 │
00:00:30 verbose #114 > > │ 00:00:11 verbose #31 > >                                                │
00:00:30 verbose #115 > > │ 00:00:11 verbose #32 > > union sensing =                                │
00:00:30 verbose #116 > > │ 00:00:11 verbose #33 > >     | Si : s * i                               │
00:00:30 verbose #117 > > │ 00:00:11 verbose #34 > >     | Se : s * e                               │
00:00:30 verbose #118 > > │ 00:00:11 verbose #35 > >                                                │
00:00:30 verbose #119 > > │ 00:00:11 verbose #36 > > union intuition =                              │
00:00:30 verbose #120 > > │ 00:00:11 verbose #37 > >     | Ni : n * i                               │
00:00:30 verbose #121 > > │ 00:00:11 verbose #38 > >     | Ne : n * e                               │
00:00:30 verbose #122 > > │ 00:00:11 verbose #39 > >                                                │
00:00:30 verbose #123 > > │ 00:00:11 verbose #40 > > union thinking =                               │
00:00:30 verbose #124 > > │ 00:00:11 verbose #41 > >     | Ti : t * i                               │
00:00:30 verbose #125 > > │ 00:00:11 verbose #42 > >     | Te : t * e                               │
00:00:30 verbose #126 > > │ 00:00:11 verbose #43 > >                                                │
00:00:30 verbose #127 > > │ 00:00:11 verbose #44 > > union feeling =                                │
00:00:30 verbose #128 > > │ 00:00:11 verbose #45 > >     | Fi : f * i                               │
00:00:30 verbose #129 > > │ 00:00:11 verbose #46 > >     | Fe : f * e                               │
00:00:30 verbose #130 > > │ 00:00:11 verbose #47 > >                                                │
00:00:30 verbose #131 > > │ 00:00:11 verbose #48 > > union function_stack =                         │
00:00:30 verbose #132 > > │ 00:00:11 verbose #49 > >     | FS : sensing * intuition * thinking *    │
00:00:30 verbose #133 > > │ feeling                                                                      │
00:00:30 verbose #134 > > │ 00:00:11 verbose #50 > >                                                │
00:00:30 verbose #135 > > │ 00:00:11 verbose #51 > > union personality_type =                       │
00:00:30 verbose #136 > > │ 00:00:11 verbose #52 > >     | ISTJ : i * s * t * j * function_stack    │
00:00:30 verbose #137 > > │ 00:00:11 verbose #53 > >     | ISFJ : i * s * f * j * function_stack    │
00:00:30 verbose #138 > > │ 00:00:11 verbose #54 > >     | INFJ : i * n * f * j * function_stack    │
00:00:30 verbose #139 > > │ 00:00:11 verbose #55 > >     | INTJ : i * n * t * j * function_stack    │
00:00:30 verbose #140 > > │ 00:00:11 verbose #56 > >     | ISTP : i * s * t * p * function_stack    │
00:00:30 verbose #141 > > │ 00:00:11 verbose #57 > >     | ISFP : i * s * f * p * function_stack    │
00:00:30 verbose #142 > > │ 00:00:11 verbose #58 > >     | INFP : i * n * f * p * function_stack    │
00:00:30 verbose #143 > > │ 00:00:11 verbose #59 > >     | INTP : i * n * t * p * function_stack    │
00:00:30 verbose #144 > > │ 00:00:11 verbose #60 > >     | ESTP : e * s * t * p * function_stack    │
00:00:30 verbose #145 > > │ 00:00:11 verbose #61 > >     | ESFP : e * s * f * p * function_stack    │
00:00:30 verbose #146 > > │ 00:00:11 verbose #62 > >     | ENFP : e * n * f * p * function_stack    │
00:00:30 verbose #147 > > │ 00:00:11 verbose #63 > >     | ENTP : e * n * t * p * function_stack    │
00:00:30 verbose #148 > > │ 00:00:11 verbose #64 > >     | ESTJ : e * s * t * j * function_stack    │
00:00:30 verbose #149 > > │ 00:00:11 verbose #65 > >     | ESFJ : e * s * f * j * function_stack    │
00:00:30 verbose #150 > > │ 00:00:11 verbose #66 > >     | ENFJ : e * n * f * j * function_stack    │
00:00:30 verbose #151 > > │ 00:00:11 verbose #67 > >     | ENTJ : e * n * t * j * function_stack    │
00:00:30 verbose #152 > > │ 00:00:11 verbose #68 > >                                                │
00:00:30 verbose #153 > > │ 00:00:11 verbose #69 > >                                                │
00:00:30 verbose #154 > > │ 00:00:11 verbose #70 > > inl main () =                                  │
00:00:30 verbose #155 > > │ 00:00:11 verbose #71 > >     inl istj_stack = FS ((Si (s, i)), Ne (n,   │
00:00:30 verbose #156 > > │ e), (Te (t, e)), (Fi (f, i)))                                                │
00:00:30 verbose #157 > > │ 00:00:11 verbose #72 > >     inl istj_personality = ISTJ (i, s, t, j,   │
00:00:30 verbose #158 > > │ istj_stack)                                                                  │
00:00:30 verbose #159 > > │ 00:00:11 verbose #73 > >     // inl isfj_stack = FS ((Si (s, i)), Ne    │
00:00:30 verbose #160 > > │ (n, e), (Fe (f, e)), (Ti (t, i)))                                            │
00:00:30 verbose #161 > > │ 00:00:11 verbose #74 > >     // inl isfj_personality = ISFJ (i, s, f,   │
00:00:30 verbose #162 > > │ j, isfj_stack)                                                               │
00:00:30 verbose #163 > > │ 00:00:11 verbose #75 > >                                                │
00:00:30 verbose #164 > > │ 00:00:11 verbose #76 > >     ;[[                                        │
00:00:30 verbose #165 > > │ 00:00:11 verbose #77 > >         istj_personality                       │
00:00:30 verbose #166 > > │ 00:00:11 verbose #78 > >     ]]                                         │
00:00:30 verbose #167 > > │ 00:00:11 verbose #79 > >     |> fun x => $'$"%A{!x}"' : string          │
00:00:30 verbose #168 > > │ 00:00:11 verbose #80 > >     |> console.write_line                      │
00:00:30 verbose #169 > > │ 00:00:11 verbose #81 > >                                                │
00:00:30 verbose #170 > > │ 00:00:11 verbose #82 > > inl main () =                                  │
00:00:30 verbose #171 > > │ 00:00:11 verbose #83 > >     $'!main ()' : ()                           │
00:00:30 verbose #172 > > │ 00:00:14 verbose #84 > >                                                │
00:00:30 verbose #173 > > │ 00:00:14 verbose #85 > > ╭─[ 2.54s - stdout                             │
00:00:30 verbose #174 > > │ ]───────────────────────────────────────────────────────────╮                │
00:00:30 verbose #175 > > │ 00:00:14 verbose #86 > > │ [|US5_0 (US4_0 (US0_0, US1_1, US2_1,         │
00:00:30 verbose #176 > > │ US3_0))|]                               │                                    │
00:00:30 verbose #177 > > │ 00:00:14 verbose #87 > > │                                              │
00:00:30 verbose #178 > > │                                                                              │
00:00:30 verbose #179 > > │ │                                                                            │
00:00:30 verbose #180 > > │ 00:00:14 verbose #88 > >                                                │
00:00:30 verbose #181 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:30 verbose #182 > > │ ───╯                                                                         │
00:00:30 verbose #183 > > │ 00:00:15 verbose #89 > >                                                │
00:00:30 verbose #184 > > │ 00:00:15 verbose #90 > > ── fsharp                                      │
00:00:30 verbose #185 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #186 > > │ 00:00:15 verbose #91 > > type PhonologicalFeature =                     │
00:00:30 verbose #187 > > │ 00:00:15 verbose #92 > >     | VowelFeature of                          │
00:00:30 verbose #188 > > │ 00:00:15 verbose #93 > >         height: Height                         │
00:00:30 verbose #189 > > │ 00:00:15 verbose #94 > >         * backness: Backness                   │
00:00:30 verbose #190 > > │ 00:00:15 verbose #95 > >         * roundedness: Roundedness             │
00:00:30 verbose #191 > > │ 00:00:15 verbose #96 > >         * tone: Option<Tone>                   │
00:00:30 verbose #192 > > │ 00:00:15 verbose #97 > >         * stress: Option<Stress>               │
00:00:30 verbose #193 > > │ 00:00:15 verbose #98 > >         * length: Option<Length>               │
00:00:30 verbose #194 > > │ 00:00:15 verbose #99 > >     | ConsonantFeature of                      │
00:00:30 verbose #195 > > │ 00:00:15 verbose #100 > >         place: PlaceOfArticulation            │
00:00:30 verbose #196 > > │ 00:00:15 verbose #101 > >         * manner: MannerOfArticulation        │
00:00:30 verbose #197 > > │ 00:00:15 verbose #102 > >         * voicing: Voicing                    │
00:00:30 verbose #198 > > │ 00:00:15 verbose #103 > >         * length: Option<Length>              │
00:00:30 verbose #199 > > │ 00:00:15 verbose #104 > >     | VowelHarmonyFeature                     │
00:00:30 verbose #200 > > │ 00:00:15 verbose #105 > >     | PitchAccentFeature                      │
00:00:30 verbose #201 > > │ 00:00:15 verbose #106 > >                                               │
00:00:30 verbose #202 > > │ 00:00:15 verbose #107 > > and Stress = Primary | Secondary              │
00:00:30 verbose #203 > > │ 00:00:15 verbose #108 > > and Length = Long | Short | HalfLong          │
00:00:30 verbose #204 > > │ 00:00:15 verbose #109 > >                                               │
00:00:30 verbose #205 > > │ 00:00:15 verbose #110 > > and Height =                                  │
00:00:30 verbose #206 > > │ 00:00:15 verbose #111 > >     | High | NearHigh | HighMid               │
00:00:30 verbose #207 > > │ 00:00:15 verbose #112 > >     | Mid | LowMid | NearLow                  │
00:00:30 verbose #208 > > │ 00:00:15 verbose #113 > >     | Low                                     │
00:00:30 verbose #209 > > │ 00:00:15 verbose #114 > >                                               │
00:00:30 verbose #210 > > │ 00:00:15 verbose #115 > > and Backness = Front | Central | Back         │
00:00:30 verbose #211 > > │ 00:00:15 verbose #116 > >                                               │
00:00:30 verbose #212 > > │ 00:00:15 verbose #117 > > and Roundedness = Rounded | Unrounded         │
00:00:30 verbose #213 > > │ 00:00:15 verbose #118 > >                                               │
00:00:30 verbose #214 > > │ 00:00:15 verbose #119 > > and PlaceOfArticulation =                     │
00:00:30 verbose #215 > > │ 00:00:15 verbose #120 > >     | Bilabial | Labiodental | Dental         │
00:00:30 verbose #216 > > │ 00:00:15 verbose #121 > >     | Alveolar | Postalveolar | Retroflex     │
00:00:30 verbose #217 > > │ 00:00:15 verbose #122 > >     | Palatal | Velar | Uvular                │
00:00:30 verbose #218 > > │ 00:00:15 verbose #123 > >     | Pharyngeal | Epiglottal | Glottal       │
00:00:30 verbose #219 > > │ 00:00:15 verbose #124 > >                                               │
00:00:30 verbose #220 > > │ 00:00:15 verbose #125 > > and MannerOfArticulation =                    │
00:00:30 verbose #221 > > │ 00:00:15 verbose #126 > >     | Plosive | Nasal | Trill                 │
00:00:30 verbose #222 > > │ 00:00:15 verbose #127 > >     | TapOrFlap | Fricative |                 │
00:00:30 verbose #223 > > │ LateralFricative                                                             │
00:00:30 verbose #224 > > │ 00:00:15 verbose #128 > >     | Approximant | LateralApproximant        │
00:00:30 verbose #225 > > │ 00:00:15 verbose #129 > >                                               │
00:00:30 verbose #226 > > │ 00:00:15 verbose #130 > > and Voicing = Voiced | Voiceless              │
00:00:30 verbose #227 > > │ 00:00:15 verbose #131 > >                                               │
00:00:30 verbose #228 > > │ 00:00:15 verbose #132 > > and SecondaryArticulation =                   │
00:00:30 verbose #229 > > │ 00:00:15 verbose #133 > >     | Labialization | Palatalization |        │
00:00:30 verbose #230 > > │ Velarization                                                                 │
00:00:30 verbose #231 > > │ 00:00:15 verbose #134 > >     | Pharyngealization | Aspiration          │
00:00:30 verbose #232 > > │ 00:00:15 verbose #135 > >                                               │
00:00:30 verbose #233 > > │ 00:00:15 verbose #136 > > and Tone =                                    │
00:00:30 verbose #234 > > │ 00:00:15 verbose #137 > >     | LevelTone of int                        │
00:00:30 verbose #235 > > │ 00:00:15 verbose #138 > >     | ContourTone of int list                 │
00:00:30 verbose #236 > > │ 00:00:15 verbose #139 > >                                               │
00:00:30 verbose #237 > > │ 00:00:15 verbose #140 > > and MorphologicalFeature =                    │
00:00:30 verbose #238 > > │ 00:00:15 verbose #141 > >     | RootFeature of string                   │
00:00:30 verbose #239 > > │ 00:00:15 verbose #142 > >     | AffixFeature of AffixType * string      │
00:00:30 verbose #240 > > │ 00:00:15 verbose #143 > >     | IncorporationFeature of string *        │
00:00:30 verbose #241 > > │ MorphologicalFeature                                                         │
00:00:30 verbose #242 > > │ 00:00:15 verbose #144 > >     | NonConcatenativePattern of string *     │
00:00:30 verbose #243 > > │ string                                                                       │
00:00:30 verbose #244 > > │ 00:00:15 verbose #145 > >     | AgglutinativeAffixFeature of            │
00:00:30 verbose #245 > > │ AgglutinativeAffixType * string                                              │
00:00:30 verbose #246 > > │ 00:00:15 verbose #146 > >     | HonorificFeature of HonorificType *     │
00:00:30 verbose #247 > > │ string                                                                       │
00:00:30 verbose #248 > > │ 00:00:15 verbose #147 > >                                               │
00:00:30 verbose #249 > > │ 00:00:15 verbose #148 > > and AgglutinativeAffixType = Suffix | Prefix  │
00:00:30 verbose #250 > > │ 00:00:15 verbose #149 > >                                               │
00:00:30 verbose #251 > > │ 00:00:15 verbose #150 > > and HonorificType = VerbHonorific |           │
00:00:30 verbose #252 > > │ NounHonorific                                                                │
00:00:30 verbose #253 > > │ 00:00:15 verbose #151 > >                                               │
00:00:30 verbose #254 > > │ 00:00:15 verbose #152 > > and AffixType =                               │
00:00:30 verbose #255 > > │ 00:00:15 verbose #153 > >     | Prefix | Suffix | Infix                 │
00:00:30 verbose #256 > > │ 00:00:15 verbose #154 > >     | Circumfix                               │
00:00:30 verbose #257 > > │ 00:00:15 verbose #155 > >                                               │
00:00:30 verbose #258 > > │ 00:00:15 verbose #156 > > type SyntacticFeature =                       │
00:00:30 verbose #259 > > │ 00:00:15 verbose #157 > >     | WordFeature of MorphologicalFeature     │
00:00:30 verbose #260 > > │ list * LexicalCategory                                                       │
00:00:30 verbose #261 > > │ 00:00:15 verbose #158 > >     | PhraseFeature of PhraseType *           │
00:00:30 verbose #262 > > │ SyntacticFeature list                                                        │
00:00:30 verbose #263 > > │ 00:00:15 verbose #159 > >     | GrammaticalRelation of                  │
00:00:30 verbose #264 > > │ GrammaticalRelationType * SyntacticFeature list                              │
00:00:30 verbose #265 > > │ 00:00:15 verbose #160 > >     | SOVOrderFeature                         │
00:00:30 verbose #266 > > │ 00:00:15 verbose #161 > >     | TopicCommentFeature                     │
00:00:30 verbose #267 > > │ 00:00:15 verbose #162 > >                                               │
00:00:30 verbose #268 > > │ 00:00:15 verbose #163 > > and GrammaticalRelationType =                 │
00:00:30 verbose #269 > > │ 00:00:15 verbose #164 > >     | Ergative | Absolutive | Nominative      │
00:00:30 verbose #270 > > │ 00:00:15 verbose #165 > >     | Accusative                              │
00:00:30 verbose #271 > > │ 00:00:15 verbose #166 > >                                               │
00:00:30 verbose #272 > > │ 00:00:15 verbose #167 > > and LexicalCategory =                         │
00:00:30 verbose #273 > > │ 00:00:15 verbose #168 > >     | Noun | Verb | Adjective                 │
00:00:30 verbose #274 > > │ 00:00:15 verbose #169 > >     | Adverb | Pronoun | Preposition          │
00:00:30 verbose #275 > > │ 00:00:15 verbose #170 > >     | Conjunction | Determiner | Interjection │
00:00:30 verbose #276 > > │ 00:00:15 verbose #171 > >                                               │
00:00:30 verbose #277 > > │ 00:00:15 verbose #172 > > and PhraseType =                              │
00:00:30 verbose #278 > > │ 00:00:15 verbose #173 > >     | NP | VP | AP                            │
00:00:30 verbose #279 > > │ 00:00:15 verbose #174 > >     | PP | CP                                 │
00:00:30 verbose #280 > > │ 00:00:15 verbose #175 > >                                               │
00:00:30 verbose #281 > > │ 00:00:15 verbose #176 > > and SemanticFeature =                         │
00:00:30 verbose #282 > > │ 00:00:15 verbose #177 > >     | Meaning of string                       │
00:00:30 verbose #283 > > │ 00:00:15 verbose #178 > >     | SemanticRole of SemanticRoleType *      │
00:00:30 verbose #284 > > │ SemanticFeature                                                              │
00:00:30 verbose #285 > > │ 00:00:15 verbose #179 > >                                               │
00:00:30 verbose #286 > > │ 00:00:15 verbose #180 > > and SemanticRoleType =                        │
00:00:30 verbose #287 > > │ 00:00:15 verbose #181 > >     | Agent | Patient | Instrument            │
00:00:30 verbose #288 > > │ 00:00:15 verbose #182 > >     | Location | Time | Cause                 │
00:00:30 verbose #289 > > │ 00:00:15 verbose #183 > >                                               │
00:00:30 verbose #290 > > │ 00:00:15 verbose #184 > > and PragmaticFeature =                        │
00:00:30 verbose #291 > > │ 00:00:15 verbose #185 > >     | UseContext of string                    │
00:00:30 verbose #292 > > │ 00:00:15 verbose #186 > >     | PolitenessLevel of Politeness           │
00:00:30 verbose #293 > > │ 00:00:15 verbose #187 > >     | SpeechAct of SpeechActType              │
00:00:30 verbose #294 > > │ 00:00:15 verbose #188 > >     | SpeechLevel of SpeechLevelType          │
00:00:30 verbose #295 > > │ 00:00:15 verbose #189 > >                                               │
00:00:30 verbose #296 > > │ 00:00:15 verbose #190 > > and Politeness = Formal | Informal | Neutral  │
00:00:30 verbose #297 > > │ 00:00:15 verbose #191 > >                                               │
00:00:30 verbose #298 > > │ 00:00:15 verbose #192 > > and SpeechActType =                           │
00:00:30 verbose #299 > > │ 00:00:15 verbose #193 > >     | Assertive | Directive | Commissive      │
00:00:30 verbose #300 > > │ 00:00:15 verbose #194 > >     | Expressive | Declarative                │
00:00:30 verbose #301 > > │ 00:00:15 verbose #195 > >                                               │
00:00:30 verbose #302 > > │ 00:00:15 verbose #196 > > and SpeechLevelType =                         │
00:00:30 verbose #303 > > │ 00:00:15 verbose #197 > >     | FormalHigh | FormalLow | InformalHigh   │
00:00:30 verbose #304 > > │ 00:00:15 verbose #198 > >     | InformalLow | Neutral                   │
00:00:30 verbose #305 > > │ 00:00:15 verbose #199 > >                                               │
00:00:30 verbose #306 > > │ 00:00:15 verbose #200 > > type LinguisticFeature =                      │
00:00:30 verbose #307 > > │ 00:00:15 verbose #201 > >     | Phonological of PhonologicalFeature     │
00:00:30 verbose #308 > > │ 00:00:15 verbose #202 > >     | Morphological of MorphologicalFeature   │
00:00:30 verbose #309 > > │ 00:00:15 verbose #203 > >     | Syntactic of SyntacticFeature           │
00:00:30 verbose #310 > > │ 00:00:15 verbose #204 > >     | Semantic of SemanticFeature             │
00:00:30 verbose #311 > > │ 00:00:15 verbose #205 > >     | Pragmatic of PragmaticFeature           │
00:00:30 verbose #312 > > │ 00:00:15 verbose #206 > >                                               │
00:00:30 verbose #313 > > │ 00:00:15 verbose #207 > > type LanguageConstruct =                      │
00:00:30 verbose #314 > > │ 00:00:15 verbose #208 > >     | LanguageElement of LinguisticFeature    │
00:00:30 verbose #315 > > │ 00:00:15 verbose #209 > >     | LanguageStructure of LanguageConstruct  │
00:00:30 verbose #316 > > │ list                                                                         │
00:00:30 verbose #317 > > │ 00:00:15 verbose #210 > >     | TranslationElement of                   │
00:00:30 verbose #318 > > │ TranslationFeature                                                           │
00:00:30 verbose #319 > > │ 00:00:15 verbose #211 > >                                               │
00:00:30 verbose #320 > > │ 00:00:15 verbose #212 > > and TranslationFeature =                      │
00:00:30 verbose #321 > > │ 00:00:15 verbose #213 > >     | LinkedPhonological of                   │
00:00:30 verbose #322 > > │ PhonologicalFeature * PhonologicalFeature                                    │
00:00:30 verbose #323 > > │ 00:00:15 verbose #214 > >     | LinkedMorphological of                  │
00:00:30 verbose #324 > > │ MorphologicalFeature * MorphologicalFeature                                  │
00:00:30 verbose #325 > > │ 00:00:15 verbose #215 > >     | LinkedSyntactic of SyntacticFeature *   │
00:00:30 verbose #326 > > │ SyntacticFeature                                                             │
00:00:30 verbose #327 > > │ 00:00:15 verbose #216 > >     | LinkedSemantic of SemanticFeature *     │
00:00:30 verbose #328 > > │ SemanticFeature                                                              │
00:00:30 verbose #329 > > │ 00:00:15 verbose #217 > >                                               │
00:00:30 verbose #330 > > │ 00:00:15 verbose #218 > > type Discourse = DiscourseUnit of             │
00:00:30 verbose #331 > > │ LanguageConstruct list                                                       │
00:00:30 verbose #332 > > │ 00:00:15 verbose #219 > >                                               │
00:00:30 verbose #333 > > │ 00:00:15 verbose #220 > > type LanguageModel =                          │
00:00:30 verbose #334 > > │ 00:00:15 verbose #221 > >     | Model of discourse: Discourse           │
00:00:30 verbose #335 > > │ 00:00:17 verbose #222 > >                                               │
00:00:30 verbose #336 > > │ 00:00:17 verbose #223 > > ── fsharp                                     │
00:00:30 verbose #337 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #338 > > │ 00:00:17 verbose #224 > > let testEnglish =                             │
00:00:30 verbose #339 > > │ 00:00:17 verbose #225 > >     Model(                                    │
00:00:30 verbose #340 > > │ 00:00:17 verbose #226 > >         DiscourseUnit [[                      │
00:00:30 verbose #341 > > │ 00:00:17 verbose #227 > >             LanguageElement (Phonological     │
00:00:30 verbose #342 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:30 verbose #343 > > │ 00:00:17 verbose #228 > > Voiced, Some(HalfLong))));                    │
00:00:30 verbose #344 > > │ 00:00:17 verbose #229 > >             LanguageElement (Phonological     │
00:00:30 verbose #345 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:30 verbose #346 > > │ 00:00:17 verbose #230 > > Some(LevelTone 1), Some(Primary),             │
00:00:30 verbose #347 > > │ Some(Short))));                                                              │
00:00:30 verbose #348 > > │ 00:00:17 verbose #231 > >             LanguageElement (Phonological     │
00:00:30 verbose #349 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:30 verbose #350 > > │ 00:00:17 verbose #232 > > Some(LevelTone 2), Some(Secondary),           │
00:00:30 verbose #351 > > │ Some(Long))));                                                               │
00:00:30 verbose #352 > > │ 00:00:17 verbose #233 > >             LanguageElement (Phonological     │
00:00:30 verbose #353 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:30 verbose #354 > > │ 00:00:17 verbose #234 > > Voiceless, Some(HalfLong))));                 │
00:00:30 verbose #355 > > │ 00:00:17 verbose #235 > >             LanguageElement (Morphological    │
00:00:30 verbose #356 > > │ (RootFeature "I"));                                                          │
00:00:30 verbose #357 > > │ 00:00:17 verbose #236 > >             LanguageElement (Morphological    │
00:00:30 verbose #358 > > │ (RootFeature "see"));                                                        │
00:00:30 verbose #359 > > │ 00:00:17 verbose #237 > >             LanguageElement (Morphological    │
00:00:30 verbose #360 > > │ (RootFeature "a"));                                                          │
00:00:30 verbose #361 > > │ 00:00:17 verbose #238 > >             LanguageElement (Morphological    │
00:00:30 verbose #362 > > │ (RootFeature "cat"));                                                        │
00:00:30 verbose #363 > > │ 00:00:17 verbose #239 > >             LanguageElement (Syntactic        │
00:00:30 verbose #364 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #365 > > │ 00:00:17 verbose #240 > > ([[RootFeature "I"]], Pronoun)]])));          │
00:00:30 verbose #366 > > │ 00:00:17 verbose #241 > >             LanguageElement (Syntactic        │
00:00:30 verbose #367 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:30 verbose #368 > > │ 00:00:17 verbose #242 > > ([[RootFeature "see"]], Verb)]])));           │
00:00:30 verbose #369 > > │ 00:00:17 verbose #243 > >             LanguageElement (Syntactic        │
00:00:30 verbose #370 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #371 > > │ 00:00:17 verbose #244 > > ([[RootFeature "a"; RootFeature "cat"]],      │
00:00:30 verbose #372 > > │ Noun)]])));                                                                  │
00:00:30 verbose #373 > > │ 00:00:17 verbose #245 > >             LanguageElement (Semantic         │
00:00:30 verbose #374 > > │ (Meaning "Perception act of a feline by                                      │
00:00:30 verbose #375 > > │ 00:00:17 verbose #246 > > the speaker"));                               │
00:00:30 verbose #376 > > │ 00:00:17 verbose #247 > >             LanguageElement (Pragmatic        │
00:00:30 verbose #377 > > │ (UseContext "Statement of an action being                                    │
00:00:30 verbose #378 > > │ 00:00:17 verbose #248 > > observed"))                                   │
00:00:30 verbose #379 > > │ 00:00:17 verbose #249 > >         ]]                                    │
00:00:30 verbose #380 > > │ 00:00:17 verbose #250 > >     )                                         │
00:00:30 verbose #381 > > │ 00:00:17 verbose #251 > >                                               │
00:00:30 verbose #382 > > │ 00:00:17 verbose #252 > > let testPortuguese =                          │
00:00:30 verbose #383 > > │ 00:00:17 verbose #253 > >     Model(                                    │
00:00:30 verbose #384 > > │ 00:00:17 verbose #254 > >         DiscourseUnit [[                      │
00:00:30 verbose #385 > > │ 00:00:17 verbose #255 > >             LanguageElement (Phonological     │
00:00:30 verbose #386 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:00:30 verbose #387 > > │ 00:00:17 verbose #256 > > Some(LevelTone 1), Some(Primary),             │
00:00:30 verbose #388 > > │ Some(Short))));                                                              │
00:00:30 verbose #389 > > │ 00:00:17 verbose #257 > >             LanguageElement (Phonological     │
00:00:30 verbose #390 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:00:30 verbose #391 > > │ 00:00:17 verbose #258 > > Some(LevelTone 2), Some(Secondary),           │
00:00:30 verbose #392 > > │ Some(Long))));                                                               │
00:00:30 verbose #393 > > │ 00:00:17 verbose #259 > >             LanguageElement (Phonological     │
00:00:30 verbose #394 > > │ (VowelFeature (Mid, Back, Rounded,                                           │
00:00:30 verbose #395 > > │ 00:00:17 verbose #260 > > Some(LevelTone 3), Some(Primary),             │
00:00:30 verbose #396 > > │ Some(Short))));                                                              │
00:00:30 verbose #397 > > │ 00:00:17 verbose #261 > >             LanguageElement (Phonological     │
00:00:30 verbose #398 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:00:30 verbose #399 > > │ 00:00:17 verbose #262 > > Voiceless, Some(HalfLong))));                 │
00:00:30 verbose #400 > > │ 00:00:17 verbose #263 > >             LanguageElement (Morphological    │
00:00:30 verbose #401 > > │ (RootFeature "Eu"));                                                         │
00:00:30 verbose #402 > > │ 00:00:17 verbose #264 > >             LanguageElement (Morphological    │
00:00:30 verbose #403 > > │ (RootFeature "ver" |> ignore;                                                │
00:00:30 verbose #404 > > │ 00:00:17 verbose #265 > > AffixFeature (Suffix, "o")));                 │
00:00:30 verbose #405 > > │ 00:00:17 verbose #266 > >             LanguageElement (Morphological    │
00:00:30 verbose #406 > > │ (RootFeature "um"));                                                         │
00:00:30 verbose #407 > > │ 00:00:17 verbose #267 > >             LanguageElement (Morphological    │
00:00:30 verbose #408 > > │ (RootFeature "gato"));                                                       │
00:00:30 verbose #409 > > │ 00:00:17 verbose #268 > >             LanguageElement (Syntactic        │
00:00:30 verbose #410 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #411 > > │ 00:00:17 verbose #269 > > ([[RootFeature "Eu"]], Pronoun)]])));         │
00:00:30 verbose #412 > > │ 00:00:17 verbose #270 > >             LanguageElement (Syntactic        │
00:00:30 verbose #413 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:30 verbose #414 > > │ 00:00:17 verbose #271 > > ([[RootFeature "vejo"]], Verb)]])));          │
00:00:30 verbose #415 > > │ 00:00:17 verbose #272 > >             LanguageElement (Syntactic        │
00:00:30 verbose #416 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #417 > > │ 00:00:17 verbose #273 > > ([[RootFeature "um"; RootFeature "gato"]],    │
00:00:30 verbose #418 > > │ Noun)]])));                                                                  │
00:00:30 verbose #419 > > │ 00:00:17 verbose #274 > >             LanguageElement (Semantic         │
00:00:30 verbose #420 > > │ (Meaning "Ação de percepção de um felino                                     │
00:00:30 verbose #421 > > │ 00:00:17 verbose #275 > > pelo falante"));                              │
00:00:30 verbose #422 > > │ 00:00:17 verbose #276 > >             LanguageElement (Pragmatic        │
00:00:30 verbose #423 > > │ (UseContext "Declaração de uma ação sendo                                    │
00:00:30 verbose #424 > > │ 00:00:17 verbose #277 > > observada"))                                  │
00:00:30 verbose #425 > > │ 00:00:17 verbose #278 > >         ]]                                    │
00:00:30 verbose #426 > > │ 00:00:17 verbose #279 > >     )                                         │
00:00:30 verbose #427 > > │ 00:00:17 verbose #280 > >                                               │
00:00:30 verbose #428 > > │ 00:00:17 verbose #281 > > let testKorean =                              │
00:00:30 verbose #429 > > │ 00:00:17 verbose #282 > >     Model(                                    │
00:00:30 verbose #430 > > │ 00:00:17 verbose #283 > >         DiscourseUnit [[                      │
00:00:30 verbose #431 > > │ 00:00:17 verbose #284 > >             LanguageElement (Phonological     │
00:00:30 verbose #432 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:00:30 verbose #433 > > │ 00:00:17 verbose #285 > > Voiced, Some(Short))));                       │
00:00:30 verbose #434 > > │ 00:00:17 verbose #286 > >             LanguageElement (Phonological     │
00:00:30 verbose #435 > > │ (VowelFeature (High, Back, Rounded,                                          │
00:00:30 verbose #436 > > │ 00:00:17 verbose #287 > > None, None, Some(Short))));                   │
00:00:30 verbose #437 > > │ 00:00:17 verbose #288 > >             LanguageElement (Phonological     │
00:00:30 verbose #438 > > │ (VowelFeature (Mid, Front, Unrounded,                                        │
00:00:30 verbose #439 > > │ 00:00:17 verbose #289 > > None, None, Some(Long))));                    │
00:00:30 verbose #440 > > │ 00:00:17 verbose #290 > >             LanguageElement (Phonological     │
00:00:30 verbose #441 > > │ (ConsonantFeature (Bilabial, Plosive,                                        │
00:00:30 verbose #442 > > │ 00:00:17 verbose #291 > > Voiceless, Some(Short))));                    │
00:00:30 verbose #443 > > │ 00:00:17 verbose #292 > >             LanguageElement (Morphological    │
00:00:30 verbose #444 > > │ (RootFeature "나"));                                                         │
00:00:30 verbose #445 > > │ 00:00:17 verbose #293 > >             LanguageElement (Morphological    │
00:00:30 verbose #446 > > │ (RootFeature "보다"));                                                       │
00:00:30 verbose #447 > > │ 00:00:17 verbose #294 > >             LanguageElement (Morphological    │
00:00:30 verbose #448 > > │ (AffixFeature (Suffix, "아")));                                              │
00:00:30 verbose #449 > > │ 00:00:17 verbose #295 > >             LanguageElement (Morphological    │
00:00:30 verbose #450 > > │ (RootFeature "고양이"));                                                     │
00:00:30 verbose #451 > > │ 00:00:17 verbose #296 > >             LanguageElement (Syntactic        │
00:00:30 verbose #452 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #453 > > │ 00:00:17 verbose #297 > > ([[RootFeature "나"]], Pronoun)]])));         │
00:00:30 verbose #454 > > │ 00:00:17 verbose #298 > >             LanguageElement (Syntactic        │
00:00:30 verbose #455 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:00:30 verbose #456 > > │ 00:00:17 verbose #299 > > ([[RootFeature "보다"; AffixFeature (Suffix,  │
00:00:30 verbose #457 > > │ "아")]], Verb)]])));                                                         │
00:00:30 verbose #458 > > │ 00:00:17 verbose #300 > >             LanguageElement (Syntactic        │
00:00:30 verbose #459 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:00:30 verbose #460 > > │ 00:00:17 verbose #301 > > ([[RootFeature "고양이"]], Noun)]])));        │
00:00:30 verbose #461 > > │ 00:00:17 verbose #302 > >             LanguageElement (Semantic         │
00:00:30 verbose #462 > > │ (Meaning "화자에 의한 고양이의 관찰                                          │
00:00:30 verbose #463 > > │ 00:00:17 verbose #303 > > 행위"));                                      │
00:00:30 verbose #464 > > │ 00:00:17 verbose #304 > >             LanguageElement (Pragmatic        │
00:00:30 verbose #465 > > │ (UseContext "관찰되고 있는 행동의 진술"))                                    │
00:00:30 verbose #466 > > │ 00:00:17 verbose #305 > >         ]]                                    │
00:00:30 verbose #467 > > │ 00:00:17 verbose #306 > >     )                                         │
00:00:30 verbose #468 > > │ 00:00:17 verbose #307 > >                                               │
00:00:30 verbose #469 > > │ 00:00:17 verbose #308 > > ── markdown                                   │
00:00:30 verbose #470 > > │ ────────────────────────────────────────────────────────────────────         │
00:00:30 verbose #471 > > │ 00:00:17 verbose #309 > >                                               │
00:00:30 verbose #472 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:00:30 verbose #473 > > │ ───╮                                                                         │
00:00:30 verbose #474 > > │ 00:00:17 verbose #310 > > │ ## main                                     │
00:00:30 verbose #475 > > │ │                                                                            │
00:00:30 verbose #476 > > │ 00:00:17 verbose #311 > >                                               │
00:00:30 verbose #477 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:00:30 verbose #478 > > │ ───╯                                                                         │
00:00:30 verbose #479 > > │ 00:00:17 verbose #312 > >                                               │
00:00:30 verbose #480 > > │ 00:00:17 verbose #313 > > ── spiral                                     │
00:00:30 verbose #481 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #482 > > │ 00:00:17 verbose #314 > > inl main (_args : array_base string) =        │
00:00:30 verbose #483 > > │ 00:00:17 verbose #315 > >     0i32                                      │
00:00:30 verbose #484 > > │ 00:00:17 verbose #316 > >                                               │
00:00:30 verbose #485 > > │ 00:00:17 verbose #317 > > inl main () =                                 │
00:00:30 verbose #486 > > │ 00:00:17 verbose #318 > >     $'let main args = !main args' : ()        │
00:00:30 verbose #487 > > │ 00:00:17 verbose #319 > >                                               │
00:00:30 verbose #488 > > │ 00:00:17 verbose #320 > > ── spiral                                     │
00:00:30 verbose #489 > > │ ──────────────────────────────────────────────────────────────────────       │
00:00:30 verbose #490 > > │ 00:00:17 verbose #321 > > inl app () =                                  │
00:00:30 verbose #491 > > │ 00:00:17 verbose #322 > >     "test" |> console.write_line              │
00:00:30 verbose #492 > > │ 00:00:17 verbose #323 > >     0i32                                      │
00:00:30 verbose #493 > > │ 00:00:17 verbose #324 > >                                               │
00:00:30 verbose #494 > > │ 00:00:17 verbose #325 > > inl main () =                                 │
00:00:30 verbose #495 > > │ 00:00:17 verbose #326 > >     print_static "<test>"                     │
00:00:30 verbose #496 > > │ 00:00:17 verbose #327 > >                                               │
00:00:30 verbose #497 > > │ 00:00:17 verbose #328 > >     app                                       │
00:00:30 verbose #498 > > │ 00:00:17 verbose #329 > >     |> dyn                                    │
00:00:30 verbose #499 > > │ 00:00:17 verbose #330 > >     |> ignore                                 │
00:00:30 verbose #500 > > │ 00:00:17 verbose #331 > >                                               │
00:00:30 verbose #501 > > │ 00:00:17 verbose #332 > >     print_static "</test>"                    │
00:00:30 verbose #502 > > │ 00:00:18 verbose #333 > 00:00:16 verbose #3                       │
00:00:30 verbose #503 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:30 verbose #504 > > │ 10945 }                                                                      │
00:00:30 verbose #505 > > │ 00:00:18 verbose #334 > 00:00:16   debug #4                       │
00:00:30 verbose #506 > > │ runtime.execute_with_options / { file_name = jupyter; arguments = [          │
00:00:30 verbose #507 > > │ 00:00:18 verbose #335 >     "nbconvert",                                │
00:00:30 verbose #508 > > │ 00:00:18 verbose #336 >                                                 │
00:00:30 verbose #509 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb",                 │
00:00:30 verbose #510 > > │ 00:00:18 verbose #337 >     "--to",                                     │
00:00:30 verbose #511 > > │ 00:00:18 verbose #338 >     "html",                                     │
00:00:30 verbose #512 > > │ 00:00:18 verbose #339 >     "--HTMLExporter.theme=dark",                │
00:00:30 verbose #513 > > │ 00:00:18 verbose #340 > ]; options = { command = jupyter nbconvert      │
00:00:30 verbose #514 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb" --to html        │
00:00:30 verbose #515 > > │ --HTMLExporter.theme=dark; cancellation_token = None; environment_variables  │
00:00:30 verbose #516 > > │ = Array(MutCell([])); on_line = None; stdin = None; trace = true;            │
00:00:30 verbose #517 > > │ working_directory = None } }                                                 │
00:00:30 verbose #518 > > │ 00:00:21 verbose #341 > 00:00:19 verbose #5 ! [NbConvertApp]      │
00:00:30 verbose #519 > > │ Converting notebook                                                          │
00:00:30 verbose #520 > > │ c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb to html            │
00:00:30 verbose #521 > > │ 00:00:21 verbose #342 > 00:00:19 verbose #6 !                     │
00:00:30 verbose #522 > > │ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │
00:00:30 verbose #523 > > │ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will   │
00:00:30 verbose #524 > > │ become a hard error in future nbformat versions. You may want to use         │
00:00:30 verbose #525 > > │ `normalize()` on your notebooks before validations (available since nbformat │
00:00:30 verbose #526 > > │ 5.1.4). Previous versions of nbformat are fixing this issue transparently,   │
00:00:30 verbose #527 > > │ and will stop doing so in the future.                                        │
00:00:30 verbose #528 > > │ 00:00:21 verbose #343 > 00:00:19 verbose #7 !   validate(nb)      │
00:00:30 verbose #529 > > │ 00:00:23 verbose #344 > 00:00:22 verbose #8 ! [NbConvertApp]      │
00:00:30 verbose #530 > > │ Writing 318992 bytes to                                                      │
00:00:30 verbose #531 > > │ c:\home\git\polyglot\apps\spiral\temp\test\test.dib.html                     │
00:00:30 verbose #532 > > │ 00:00:24 verbose #345 > 00:00:22 verbose #9                       │
00:00:30 verbose #533 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:30 verbose #534 > > │ 661 }                                                                        │
00:00:30 verbose #535 > > │ 00:00:24 verbose #346 > 00:00:22   debug #10 spiral_builder.run / │
00:00:30 verbose #536 > > │ dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 661 }     │
00:00:30 verbose #537 > > │ 00:00:24 verbose #347 > 00:00:22   debug #11                      │
00:00:30 verbose #538 > > │ runtime.execute_with_options / { file_name = pwsh; arguments = [             │
00:00:30 verbose #539 > > │ 00:00:24 verbose #348 >     "-c",                                       │
00:00:30 verbose #540 > > │ 00:00:24 verbose #349 >     "$counter = 1; $path =                      │
00:00:30 verbose #541 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:00:30 verbose #542 > > │ $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value │
00:00:30 verbose #543 > > │ + $counter++ } | Set-Content $path",                                         │
00:00:30 verbose #544 > > │ 00:00:24 verbose #350 > ]; options = { command = pwsh -c "$counter = 1; │
00:00:30 verbose #545 > > │ $path = 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html';          │
00:00:30 verbose #546 > > │ (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', {         │
00:00:30 verbose #547 > > │ $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = │
00:00:30 verbose #548 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:00:30 verbose #549 > > │ None; trace = true; working_directory = None } }                             │
00:00:30 verbose #550 > > │ 00:00:24 verbose #351 > 00:00:23 verbose #12                      │
00:00:30 verbose #551 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:00:30 verbose #552 > > │ 0 }                                                                          │
00:00:30 verbose #553 > > │ 00:00:24 verbose #352 > 00:00:23   debug #13 spiral_builder.run / │
00:00:30 verbose #554 > > │ dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 } │
00:00:30 verbose #555 > > │ 00:00:24 verbose #353 > 00:00:23   debug #14 spiral_builder.run / │
00:00:30 verbose #556 > > │ dib / { exit_code = 0; result_length = 11665 }                               │
00:00:30 verbose #557 > > │ 00:00:24   debug #354 runtime.execute_with_options_async / { exit_code  │
00:00:30 verbose #558 > > │ = 0; output_length = 15057 }                                                 │
00:00:30 verbose #559 > > │ 00:00:24   debug #1 main / executeCommand / exitCode: 0 / command:      │
00:00:30 verbose #560 > > │ ../../../../workspace/target/release/spiral_builder.exe dib --path test.dib  │
00:00:30 verbose #561 > > │ --retries 3                                                                  │
00:00:30 verbose #562 > > │                                                                              │
00:00:30 verbose #563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #564 > >
00:00:30 verbose #565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 verbose #566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 verbose #567 > > │ ### parse the .dib file into .spi format with dibparser                      │
00:00:30 verbose #568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 verbose #569 > >
00:00:30 verbose #570 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:30 verbose #571 > > { . ../../../../apps/parser/dist/DibParser$(_exe) test.dib spi } | Invoke-Block
00:00:31 verbose #572 > >
00:00:31 verbose #573 > > ╭─[ 912.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 verbose #574 > > │ 00:00:00   debug #1 writeDibCode / output: Spi / path: test.dib         │
00:00:31 verbose #575 > > │ 00:00:00   debug #2 parseDibCode / output: Spi / file: test.dib         │
00:00:31 verbose #576 > > │                                                                              │
00:00:31 verbose #577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #578 > >
00:00:31 verbose #579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #581 > > │ ### build .fsx file from .spi using supervisor                               │
00:00:31 verbose #582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #583 > >
00:00:31 verbose #584 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:31 verbose #585 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --build-file test.spi
00:00:31 verbose #586 > > test.fsx } | Invoke-Block
00:00:34 verbose #587 > >
00:00:34 verbose #588 > > ╭─[ 2.73s - stdout ]───────────────────────────────────────────────────────────╮
00:00:34 verbose #589 > > │ 00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:00:34 verbose #590 > > │ 00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 180 }    │
00:00:34 verbose #591 > > │ 00:00:01   debug #1 Supervisor.buildFile / takeWhileInclusive /         │
00:00:34 verbose #592 > > │ outputContent:                                                               │
00:00:34 verbose #593 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:34 verbose #594 > > │ 00:00:01   debug #2 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:34 verbose #595 > > │ outputContent:                                                               │
00:00:34 verbose #596 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:34 verbose #597 > > │ error:  / path: test.spi                                                     │
00:00:34 verbose #598 > > │ 00:00:01   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
00:00:34 verbose #599 > > │ outputContent:                                                               │
00:00:34 verbose #600 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:34 verbose #601 > > │ 00:00:02 verbose #4 Supervisor.sendJson / port: 13805 / json:           │
00:00:34 verbose #602 > > │ {"FileOpen":{"spiText":"/// # test (Polyglot)\nnominal i = ()\nnominal e =   │
00:00:34 verbose #603 > > │ ()\nnominal s =                                                              │
00:00:34 verbose #604 > > │ ()\nnomin...0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polygl │
00:00:34 verbose #605 > > │ ot/apps/spiral/temp/test/test.spi"}} / result:                               │
00:00:34 verbose #606 > > │ 00:00:02 verbose #5 Supervisor.sendJson / port: 13805 / json:           │
00:00:34 verbose #607 > > │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
00:00:34 verbose #608 > > │ iral/temp/test/test.spi"}} / result:                                         │
00:00:34 verbose #609 > > │ 00:00:02   debug #6 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:34 verbose #610 > > │ outputContent:                                                               │
00:00:34 verbose #611 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:34 verbose #612 > > │ error:  / path: test.spi                                                     │
00:00:34 verbose #613 > > │ 00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive /         │
00:00:34 verbose #614 > > │ outputContent:                                                               │
00:00:34 verbose #615 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:34 verbose #616 > > │ 00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan /              │
00:00:34 verbose #617 > > │ outputContent:                                                               │
00:00:34 verbose #618 > > │ let rec closure1 () () : unit =                                              │
00:00:34 verbose #619 > > │     let v0 : (string -> unit) = System.Console.WriteLine                     │
00:00:34 verbose #620 > > │     let v1 : string = "test"                                                 │
00:00:34 verbose #621 > > │     v0 v1                                                                    │
00:00:34 verbose #622 > > │ and closure0 () () : i...t v0 : unit = ()                                    │
00:00:34 verbose #623 > > │     let v1 : (unit -> unit) = closure1()                                     │
00:00:34 verbose #624 > > │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
00:00:34 verbose #625 > > │     0                                                                        │
00:00:34 verbose #626 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:34 verbose #627 > > │ ()                                                                           │
00:00:34 verbose #628 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:00:34 verbose #629 > > │ error:  / path: test.spi                                                     │
00:00:34 verbose #630 > > │ 00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive /         │
00:00:34 verbose #631 > > │ outputContent:                                                               │
00:00:34 verbose #632 > > │ let rec closure1 () () : unit =                                              │
00:00:34 verbose #633 > > │     let v0 : (string -> unit) = System.Console.WriteLine                     │
00:00:34 verbose #634 > > │     let v1 : string = "test"                                                 │
00:00:34 verbose #635 > > │     v0 v1                                                                    │
00:00:34 verbose #636 > > │ and closure0 () () : i...t v0 : unit = ()                                    │
00:00:34 verbose #637 > > │     let v1 : (unit -> unit) = closure1()                                     │
00:00:34 verbose #638 > > │     let v2 : unit = (fun () -> v1 (); v0) ()                                 │
00:00:34 verbose #639 > > │     0                                                                        │
00:00:34 verbose #640 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:00:34 verbose #641 > > │ ()                                                                           │
00:00:34 verbose #642 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:00:34 verbose #643 > > │ 00:00:02   debug #10 FileSystem.watchWithFilter / Disposing watch       │
00:00:34 verbose #644 > > │ stream / filter: FileName, LastWrite                                         │
00:00:34 verbose #645 > > │                                                                              │
00:00:34 verbose #646 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #647 > >
00:00:34 verbose #648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #650 > > │ ## compile and format the project                                            │
00:00:34 verbose #651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #652 > >
00:00:34 verbose #653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 verbose #654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 verbose #655 > > │ ### compile project with fable targeting optimized rust                      │
00:00:34 verbose #656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 verbose #657 > >
00:00:34 verbose #658 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:34 verbose #659 > > dotnet fable --optimize --lang rs --extension .rs
00:00:46 verbose #660 > >
00:00:46 verbose #661 > > ╭─[ 12.37s - stdout ]──────────────────────────────────────────────────────────╮
00:00:46 verbose #662 > > │ Fable 4.20.0: F# to Rust compiler (status: alpha)                            │
00:00:46 verbose #663 > > │                                                                              │
00:00:46 verbose #664 > > │ Thanks to the contributor! @johannesegger                                    │
00:00:46 verbose #665 > > │ Stand with Ukraine! https://standwithukraine.com.ua/                         │
00:00:46 verbose #666 > > │                                                                              │
00:00:46 verbose #667 > > │ Parsing test.fsproj...                                                       │
00:00:46 verbose #668 > > │ .> cmd /C dotnet restore test.fable-temp.csproj -p:FABLE_COMPILER=true       │
00:00:46 verbose #669 > > │ -p:FABLE_COMPILER_4=true -p:FABLE_COMPILER_RUST=true                         │
00:00:46 verbose #670 > > │   Determining projects to restore...                                         │
00:00:46 verbose #671 > > │   Restored C:\home\git\polyglot\apps\spiral\temp\test\test.fable-temp.csproj │
00:00:46 verbose #672 > > │ (in 584 ms).                                                                 │
00:00:46 verbose #673 > > │ .> cmd /C dotnet restore                                                     │
00:00:46 verbose #674 > > │ C:/home/git/polyglot/apps/spiral/temp/test/test.fsproj                       │
00:00:46 verbose #675 > > │   Determining projects to restore...                                         │
00:00:46 verbose #676 > > │   Restored C:\home\git\polyglot\apps\spiral\temp\test\test.fsproj (in 566    │
00:00:46 verbose #677 > > │ ms).                                                                         │
00:00:46 verbose #678 > > │ Project and references (1 source files) parsed in 7929ms                     │
00:00:46 verbose #679 > > │                                                                              │
00:00:46 verbose #680 > > │ Started Fable compilation...                                                 │
00:00:46 verbose #681 > > │                                                                              │
00:00:46 verbose #682 > > │ Fable compilation finished in 1945ms                                         │
00:00:46 verbose #683 > > │                                                                              │
00:00:46 verbose #684 > > │ .\test.fsx(11,0): (11,2) warning FABLE: For Rust, support for F# static and  │
00:00:46 verbose #685 > > │ module do bindings is disabled by default. It can be enabled with the        │
00:00:46 verbose #686 > > │ 'static_do_bindings' feature. Use at your own risk!                          │
00:00:46 verbose #687 > > │                                                                              │
00:00:46 verbose #688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #689 > >
00:00:46 verbose #690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #692 > > │ ### fix formatting issues in the .rs file using regex and set-content        │
00:00:46 verbose #693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #694 > >
00:00:46 verbose #695 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:46 verbose #696 > > (Get-Content test.rs) `
00:00:46 verbose #697 > >     -replace [[regex]]::Escape("),);"), "));" `
00:00:46 verbose #698 > >     | FixRust `
00:00:46 verbose #699 > > | Set-Content test.rs
00:00:46 verbose #700 > >
00:00:46 verbose #701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #703 > > │ ### format the rust code using cargo fmt                                     │
00:00:46 verbose #704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #705 > >
00:00:46 verbose #706 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:46 verbose #707 > > cargo fmt --
00:00:47 verbose #708 > >
00:00:47 verbose #709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #711 > > │ ## build and test the project                                                │
00:00:47 verbose #712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #713 > >
00:00:47 verbose #714 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #715 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #716 > > │ ### build the project in release mode using nightly rust compiler            │
00:00:47 verbose #717 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #718 > >
00:00:47 verbose #719 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:47 verbose #720 > > cargo build --release
00:01:00 verbose #721 > >
00:01:00 verbose #722 > > ╭─[ 12.96s - stdout ]──────────────────────────────────────────────────────────╮
00:01:00 verbose #723 > > │    Compiling fable_library_rust v0.1.0                                  │
00:01:00 verbose #724 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:01:00 verbose #725 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:01:00 verbose #726 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:01:00 verbose #727 > > │ warning: enum `Item` is never used                                    │
00:01:00 verbose #728 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:16:6       │
00:01:00 verbose #729 > > │    |                                                                  │
00:01:00 verbose #730 > > │ 16 | enum Item {                                                      │
00:01:00 verbose #731 > > │    |      ^^^^                                                        │
00:01:00 verbose #732 > > │    |                                                                  │
00:01:00 verbose #733 > > │    = note: `#[warn(dead_code)]` on by default                         │
00:01:00 verbose #734 > > │                                                                       │
00:01:00 verbose #735 > > │ warning: struct `Cart` is never constructed                           │
00:01:00 verbose #736 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:41:8       │
00:01:00 verbose #737 > > │    |                                                                  │
00:01:00 verbose #738 > > │ 41 | struct Cart {                                                    │
00:01:00 verbose #739 > > │    |        ^^^^                                                      │
00:01:00 verbose #740 > > │                                                                       │
00:01:00 verbose #741 > > │ warning: associated items `new`, `add_item`, and `remove_item` are      │
00:01:00 verbose #742 > > │ never used                                                                 │
00:01:00 verbose #743 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:46:8       │
00:01:00 verbose #744 > > │    |                                                                  │
00:01:00 verbose #745 > > │ 45 | impl Cart {                                                      │
00:01:00 verbose #746 > > │    | --------- associated items in this implementation                │
00:01:00 verbose #747 > > │ 46 |     fn new() -> Cart {                                           │
00:01:00 verbose #748 > > │    |        ^^^                                                       │
00:01:00 verbose #749 > > │ ...                                                                   │
00:01:00 verbose #750 > > │ 50 |     fn add_item(&mut self, item: Item) {                         │
00:01:00 verbose #751 > > │    |        ^^^^^^^^                                                  │
00:01:00 verbose #752 > > │ ...                                                                   │
00:01:00 verbose #753 > > │ 56 |     fn remove_item(&mut self, item: &Item) {                     │
00:01:00 verbose #754 > > │    |        ^^^^^^^^^^^                                               │
00:01:00 verbose #755 > > │                                                                       │
00:01:00 verbose #756 > > │ warning: function `parse_comment` is never used                       │
00:01:00 verbose #757 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:124:4     │
00:01:00 verbose #758 > > │     |                                                                 │
00:01:00 verbose #759 > > │ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │
00:01:00 verbose #760 > > │     |    ^^^^^^^^^^^^^                                                │
00:01:00 verbose #761 > > │                                                                       │
00:01:00 verbose #762 > > │ warning: function `parse_string` is never used                        │
00:01:00 verbose #763 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:130:4     │
00:01:00 verbose #764 > > │     |                                                                 │
00:01:00 verbose #765 > > │ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │
00:01:00 verbose #766 > > │     |    ^^^^^^^^^^^^                                                 │
00:01:00 verbose #767 > > │                                                                       │
00:01:00 verbose #768 > > │ warning: function `parse_identifier` is never used                    │
00:01:00 verbose #769 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:145:4     │
00:01:00 verbose #770 > > │     |                                                                 │
00:01:00 verbose #771 > > │ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │
00:01:00 verbose #772 > > │ 0m                                                                           │
00:01:00 verbose #773 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:01:00 verbose #774 > > │                                                                       │
00:01:00 verbose #775 > > │ warning: function `parse_integer` is never used                       │
00:01:00 verbose #776 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:157:4     │
00:01:00 verbose #777 > > │     |                                                                 │
00:01:00 verbose #778 > > │ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │
00:01:00 verbose #779 > > │     |    ^^^^^^^^^^^^^                                                │
00:01:00 verbose #780 > > │                                                                       │
00:01:00 verbose #781 > > │ warning: function `parse_operator` is never used                      │
00:01:00 verbose #782 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:165:4     │
00:01:00 verbose #783 > > │     |                                                                 │
00:01:00 verbose #784 > > │ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │
00:01:00 verbose #785 > > │     |    ^^^^^^^^^^^^^^                                               │
00:01:00 verbose #786 > > │                                                                       │
00:01:00 verbose #787 > > │ warning: function `parse_token` is never used                         │
00:01:00 verbose #788 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:170:4     │
00:01:00 verbose #789 > > │     |                                                                 │
00:01:00 verbose #790 > > │ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │
00:01:00 verbose #791 > > │     |    ^^^^^^^^^^^                                                  │
00:01:00 verbose #792 > > │                                                                       │
00:01:00 verbose #793 > > │ warning: function `format_token` is never used                        │
00:01:00 verbose #794 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:180:4     │
00:01:00 verbose #795 > > │     |                                                                 │
00:01:00 verbose #796 > > │ 180 | fn format_token(token: &SpiralToken) -> String {                │
00:01:00 verbose #797 > > │     |    ^^^^^^^^^^^^                                                 │
00:01:00 verbose #798 > > │                                                                       │
00:01:00 verbose #799 > > │ warning: function `parse_expression` is never used                    │
00:01:00 verbose #800 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:201:4     │
00:01:00 verbose #801 > > │     |                                                                 │
00:01:00 verbose #802 > > │ 201 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │
00:01:00 verbose #803 > > │ 0m                                                                           │
00:01:00 verbose #804 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:01:00 verbose #805 > > │                                                                       │
00:01:00 verbose #806 > > │ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 11       │
00:01:00 verbose #807 > > │ warnings                                                                   │
00:01:00 verbose #808 > > │     Finished `release` profile [optimized] target(s) in 12.66s        │
00:01:00 verbose #809 > > │                                                                              │
00:01:00 verbose #810 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #811 > >
00:01:00 verbose #812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #814 > > │ ### run release tests with output enabled                                    │
00:01:00 verbose #815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #816 > >
00:01:00 verbose #817 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:00 verbose #818 > > { cargo test --release -- --show-output } | Invoke-Block
00:01:36 verbose #819 > >
00:01:36 verbose #820 > > ╭─[ 36.50s - stdout ]──────────────────────────────────────────────────────────╮
00:01:36 verbose #821 > > │    Compiling fable_library_rust v0.1.0                                  │
00:01:36 verbose #822 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:01:36 verbose #823 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:01:36 verbose #824 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:01:36 verbose #825 > > │     Finished `release` profile [optimized] target(s) in 35.96s        │
00:01:36 verbose #826 > > │      Running unittests main.rs                                          │
00:01:36 verbose #827 > > │ (C:\home\git\polyglot\workspace\target\release\deps\spiral_temp_test-f503f78 │
00:01:36 verbose #828 > > │ 6ca55f13b.exe)                                                             │
00:01:36 verbose #829 > > │                                                                              │
00:01:36 verbose #830 > > │ running 3 tests                                                              │
00:01:36 verbose #831 > > │ test test_parse_number ... ok                                                │
00:01:36 verbose #832 > > │ test prop_parse_format_idempotent ... ok                                     │
00:01:36 verbose #833 > > │ test                                                                         │
00:01:36 verbose #834 > > │ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
00:01:36 verbose #835 > > │ ok                                                                           │
00:01:36 verbose #836 > > │                                                                              │
00:01:36 verbose #837 > > │ successes:                                                                   │
00:01:36 verbose #838 > > │                                                                              │
00:01:36 verbose #839 > > │ ---- prop_parse_format_idempotent stdout ----                                │
00:01:36 verbose #840 > > │ input=StringLiteral("$?*n>P?ZM$I`?&''^")                                     │
00:01:36 verbose #841 > > │ input=Comment("Ncd}Gve*{P&i=%%hgSu.!")                                       │
00:01:36 verbose #842 > > │ input=Comment("[:BJ4VL`f5\\")                                                │
00:01:36 verbose #843 > > │ input=Comment("^XK$M{]~aG&S2:f}<8")                                          │
00:01:36 verbose #844 > > │ input=Integer(4427554636650903013)                                           │
00:01:36 verbose #845 > > │ input=Comment("CKl/Mcq~$lL?/W$,l`'5'{lCK{")                                  │
00:01:36 verbose #846 > > │ input=StringLiteral("|*`xV&`Y==#u3P:W'NG99l0^UM")                            │
00:01:36 verbose #847 > > │ input=Operator("=")                                                          │
00:01:36 verbose #848 > > │ input=Operator("(")                                                          │
00:01:36 verbose #849 > > │ input=Comment("rtGC39!@M{>.Sa#}q DR`)O@D%J,]")                               │
00:01:36 verbose #850 > > │ input=StringLiteral("e*_=AMD/@&ND{{-cOOAm#/AcL!g")                           │
00:01:36 verbose #851 > > │ input=Operator("*")                                                          │
00:01:36 verbose #852 > > │ input=Comment("s,eWq&#h[~l=&")                                               │
00:01:36 verbose #853 > > │ input=Operator("-")                                                          │
00:01:36 verbose #854 > > │ input=Operator("-")                                                          │
00:01:36 verbose #855 > > │ input=StringLiteral("&'p)Gz0p")                                              │
00:01:36 verbose #856 > > │ input=Integer(-4046402544971987043)                                          │
00:01:36 verbose #857 > > │ input=Operator("(")                                                          │
00:01:36 verbose #858 > > │ input=Comment("Dhi\\Z+]`")                                                   │
00:01:36 verbose #859 > > │ input=Identifier("TbdB86scJUfdhGmK120P1ol5GyPf")                             │
00:01:36 verbose #860 > > │ input=Integer(-4558525559822944370)                                          │
00:01:36 verbose #861 > > │ input=Integer(-4716588346878877863)                                          │
00:01:36 verbose #862 > > │ input=Comment("$_jLj/l3<hWu*kS{?$v%/~b{%qgQ:\"lF")                           │
00:01:36 verbose #863 > > │ input=Operator("/")                                                          │
00:01:36 verbose #864 > > │ input=Operator("-")                                                          │
00:01:36 verbose #865 > > │ input=Identifier("C4dd0tsI5vUjrP368PnP5AA6q")                                │
00:01:36 verbose #866 > > │ input=Integer(-901144738898350629)                                           │
00:01:36 verbose #867 > > │ input=Operator("-")                                                          │
00:01:36 verbose #868 > > │ input=Integer(3068197374387215498)                                           │
00:01:36 verbose #869 > > │ input=Operator("(")                                                          │
00:01:36 verbose #870 > > │ input=Integer(-2027581402978035103)                                          │
00:01:36 verbose #871 > > │ input=Comment("")                                                            │
00:01:36 verbose #872 > > │ input=Identifier("xO8J4038M0LC87")                                           │
00:01:36 verbose #873 > > │ input=StringLiteral("I")                                                     │
00:01:36 verbose #874 > > │ input=Operator("/")                                                          │
00:01:36 verbose #875 > > │ input=Integer(-7554109856148641678)                                          │
00:01:36 verbose #876 > > │ input=StringLiteral("{_;^*)oO[B>X<{t<].B^$S.f<>#<On(")                       │
00:01:36 verbose #877 > > │ input=StringLiteral("0")                                                     │
00:01:36 verbose #878 > > │ input=StringLiteral("//C$av($'1&m2&$Xou]xowld'{")                            │
00:01:36 verbose #879 > > │ input=Comment("/:2G\"PYt]s\"\"b`}C^%3@nP")                                   │
00:01:36 verbose #880 > > │ input=Integer(-2346315325734392991)                                          │
00:01:36 verbose #881 > > │ input=StringLiteral("d)")                                                    │
00:01:36 verbose #882 > > │ input=Comment("$}`C%Sc;*n_ZzfD=jV2*T2`%`<]l:d[")                             │
00:01:36 verbose #883 > > │ input=Integer(5835371045977841099)                                           │
00:01:36 verbose #884 > > │ input=Integer(5045490904424930497)                                           │
00:01:36 verbose #885 > > │ input=Comment("$&<[}~_")                                                     │
00:01:36 verbose #886 > > │ input=Integer(5390599720447276949)                                           │
00:01:36 verbose #887 > > │ input=Identifier("veT2nw43CI0j791FqwLk")                                     │
00:01:36 verbose #888 > > │ input=Comment("E$Ldowj.")                                                    │
00:01:36 verbose #889 > > │ input=Identifier("DdC1F5yL6Xv4Vo5SBC4oNSUKN2")                               │
00:01:36 verbose #890 > > │ input=Comment("[\"*Ls.")                                                     │
00:01:36 verbose #891 > > │ input=Integer(-7228814253873024543)                                          │
00:01:36 verbose #892 > > │ input=Integer(1964349853845882257)                                           │
00:01:36 verbose #893 > > │ input=Operator("-")                                                          │
00:01:36 verbose #894 > > │ input=Identifier("SiX9or7k")                                                 │
00:01:36 verbose #895 > > │ input=Operator("*")                                                          │
00:01:36 verbose #896 > > │ input=StringLiteral("Oz{<}{yo1?<|")                                          │
00:01:36 verbose #897 > > │ input=Comment("*'Q5\\")                                                      │
00:01:36 verbose #898 > > │ input=Operator("*")                                                          │
00:01:36 verbose #899 > > │ input=Integer(-8812748276050777940)                                          │
00:01:36 verbose #900 > > │ input=Comment("j2'<4H(]ze:\\YU~}{o's:")                                      │
00:01:36 verbose #901 > > │ input=Identifier("gMh7bw5DdPuKBelP73tfrZ")                                   │
00:01:36 verbose #902 > > │ input=StringLiteral("K:J&y0+79D")                                            │
00:01:36 verbose #903 > > │ input=Identifier("vRh0wL1yt86v7nZX8YKDDj264cg1")                             │
00:01:36 verbose #904 > > │ input=StringLiteral("lzA{mYo6na%gq")                                         │
00:01:36 verbose #905 > > │ input=Operator("+")                                                          │
00:01:36 verbose #906 > > │ input=Identifier("n467aHZaJk5QqYbz0199kEV")                                  │
00:01:36 verbose #907 > > │ input=Identifier("gKy2")                                                     │
00:01:36 verbose #908 > > │ input=Comment("z{t=anAWmZU<O>>Nk=\"<&H='/?}A")                               │
00:01:36 verbose #909 > > │ input=Operator("/")                                                          │
00:01:36 verbose #910 > > │ input=Identifier("LlcAyhtiu6Atr0ZEgbfVzq2KxhuZ")                             │
00:01:36 verbose #911 > > │ input=Comment("#.M$*'")                                                      │
00:01:36 verbose #912 > > │ input=Identifier("ztt5bgB5b04Zd9yx")                                         │
00:01:36 verbose #913 > > │ input=Identifier("Vv393PZbqq3I7tT6I19gDYpakIq9")                             │
00:01:36 verbose #914 > > │ input=Identifier("E6lLsZ9naHmB0lPyqaMK9")                                    │
00:01:36 verbose #915 > > │ input=StringLiteral("g|.g.%.*h6'm8")                                         │
00:01:36 verbose #916 > > │ input=StringLiteral("b5=&` >?n'See|y>r.*[J?")                                │
00:01:36 verbose #917 > > │ input=StringLiteral("xX:o{`")                                                │
00:01:36 verbose #918 > > │ input=Comment("")                                                            │
00:01:36 verbose #919 > > │ input=StringLiteral("HsvsM>*Z{/`y=<*TT<{p`")                                 │
00:01:36 verbose #920 > > │ input=StringLiteral(".%&yl2|;&9R[/YaQ${<1<&okc-5")                           │
00:01:36 verbose #921 > > │ input=Comment("&E#I.fa#*^$&%&u?j63|#*&d/K{<fk*n")                            │
00:01:36 verbose #922 > > │ input=Operator("(")                                                          │
00:01:36 verbose #923 > > │ input=StringLiteral("&'uQJJG#`ZAlvp&o$/?")                                   │
00:01:36 verbose #924 > > │ input=Identifier("dyIpHkLQMZs")                                              │
00:01:36 verbose #925 > > │ input=Operator("*")                                                          │
00:01:36 verbose #926 > > │ input=Integer(5881752020565030559)                                           │
00:01:36 verbose #927 > > │ input=Comment(".u")                                                          │
00:01:36 verbose #928 > > │ input=Operator("-")                                                          │
00:01:36 verbose #929 > > │ input=StringLiteral("J!$E8'v")                                               │
00:01:36 verbose #930 > > │ input=StringLiteral("r:.k$%:<];o/F?mY'he")                                   │
00:01:36 verbose #931 > > │ input=Operator("/")                                                          │
00:01:36 verbose #932 > > │ input=Identifier("bHZx8yN2x")                                                │
00:01:36 verbose #933 > > │ input=StringLiteral("o/")                                                    │
00:01:36 verbose #934 > > │ input=Operator(")")                                                          │
00:01:36 verbose #935 > > │ input=StringLiteral("4W*qSd}j$nb3<6WDPOcH%;*H{*8l")                          │
00:01:36 verbose #936 > > │ input=Identifier("dbITWFM4K6zq49BtwB5Za302KWz")                              │
00:01:36 verbose #937 > > │ input=Integer(-5739592747373251760)                                          │
00:01:36 verbose #938 > > │ input=StringLiteral("M.M")                                                   │
00:01:36 verbose #939 > > │ input=Identifier("MF5T88o26OUuit06WnYIQCm1ZAw")                              │
00:01:36 verbose #940 > > │ input=Identifier("W9hE9")                                                    │
00:01:36 verbose #941 > > │ input=Comment("")                                                            │
00:01:36 verbose #942 > > │ input=Comment("'T{J{($'gM\\M$)pd/")                                          │
00:01:36 verbose #943 > > │ input=Identifier("SmNx4aH5dXL0BB")                                           │
00:01:36 verbose #944 > > │ input=StringLiteral("QP")                                                    │
00:01:36 verbose #945 > > │ input=Integer(-962998948103536070)                                           │
00:01:36 verbose #946 > > │ input=Operator("=")                                                          │
00:01:36 verbose #947 > > │ input=Integer(-4762717781545387784)                                          │
00:01:36 verbose #948 > > │ input=Integer(-1570321636306380232)                                          │
00:01:36 verbose #949 > > │ input=Identifier("Tn4Dp50Z7J3rp1h5F2X0x2")                                   │
00:01:36 verbose #950 > > │ input=StringLiteral("h%(!c1`*xo&Ud=*.[/>")                                   │
00:01:36 verbose #951 > > │ input=Comment("o$slZH'.k`vm?\"u{@:`%")                                       │
00:01:36 verbose #952 > > │ input=Operator("/")                                                          │
00:01:36 verbose #953 > > │ input=Identifier("J67mq12EGBZei17Enlk068Li35s1zIeF")                         │
00:01:36 verbose #954 > > │ input=Integer(-7482946045661282250)                                          │
00:01:36 verbose #955 > > │ input=Comment("be$6!_t0,ZP$C'&")                                             │
00:01:36 verbose #956 > > │ input=Integer(5659714030175993574)                                           │
00:01:36 verbose #957 > > │ input=Operator("*")                                                          │
00:01:36 verbose #958 > > │ input=Identifier("Ar6rcMz1z2V7sgpdK")                                        │
00:01:36 verbose #959 > > │ input=Comment("`T`|*=62K\\$S*")                                              │
00:01:36 verbose #960 > > │ input=StringLiteral("(.")                                                    │
00:01:36 verbose #961 > > │ input=Operator("-")                                                          │
00:01:36 verbose #962 > > │ input=Identifier("aQGADQwIra")                                               │
00:01:36 verbose #963 > > │ input=StringLiteral("7'D$-?m=!{$=")                                          │
00:01:36 verbose #964 > > │ input=Comment("x$:Qz&\"R:)*<x\\$OV<\"EEscC]Y.")                              │
00:01:36 verbose #965 > > │ input=Identifier("KsE")                                                      │
00:01:36 verbose #966 > > │ input=Identifier("moS1sccj9h9Md0PFCK3UKYWK3Y6SVI1")                          │
00:01:36 verbose #967 > > │ input=Integer(8514314536512341515)                                           │
00:01:36 verbose #968 > > │ input=Comment("+Z`h;/j_=*jlZ|v'E6&V:4'")                                     │
00:01:36 verbose #969 > > │ input=Identifier("Cck")                                                      │
00:01:36 verbose #970 > > │ input=Comment("'T4J'K+/<N'W\\>")                                             │
00:01:36 verbose #971 > > │ input=Operator("+")                                                          │
00:01:36 verbose #972 > > │ input=Integer(-5467954844669406020)                                          │
00:01:36 verbose #973 > > │ input=Operator("(")                                                          │
00:01:36 verbose #974 > > │ input=Comment("$'&P")                                                        │
00:01:36 verbose #975 > > │ input=Operator("+")                                                          │
00:01:36 verbose #976 > > │ input=Comment("f$yqK[$<*")                                                   │
00:01:36 verbose #977 > > │ input=Operator("*")                                                          │
00:01:36 verbose #978 > > │ input=Integer(3150811530778179745)                                           │
00:01:36 verbose #979 > > │ input=StringLiteral("`fhI)s3+{&%N{`J#(T%%%{En=")                             │
00:01:36 verbose #980 > > │ input=Operator("=")                                                          │
00:01:36 verbose #981 > > │ input=Identifier("Lw73Sj8ZRVSAczBBwhvjV6AGVRjP6Htw")                         │
00:01:36 verbose #982 > > │ input=Operator("-")                                                          │
00:01:36 verbose #983 > > │ input=Comment("g<0]IV")                                                      │
00:01:36 verbose #984 > > │ input=Integer(7139408756653503262)                                           │
00:01:36 verbose #985 > > │ input=Operator("(")                                                          │
00:01:36 verbose #986 > > │ input=Integer(5939216794403996199)                                           │
00:01:36 verbose #987 > > │ input=Integer(-84505279306328949)                                            │
00:01:36 verbose #988 > > │ input=Identifier("HuDWteQgnc")                                               │
00:01:36 verbose #989 > > │ input=Operator("*")                                                          │
00:01:36 verbose #990 > > │ input=Comment("abWu7R`&mG!&B")                                               │
00:01:36 verbose #991 > > │ input=Integer(-269680833595457008)                                           │
00:01:36 verbose #992 > > │ input=Comment(".=6{{jRmcR")                                                  │
00:01:36 verbose #993 > > │ input=Integer(5211212097947524702)                                           │
00:01:36 verbose #994 > > │ input=Identifier("GgYPi35lM26ygkh")                                          │
00:01:36 verbose #995 > > │ input=StringLiteral("zNpt=<OFF&l3[Zk2WH*`Th {J8C<")                          │
00:01:36 verbose #996 > > │ input=StringLiteral("}*%")                                                   │
00:01:36 verbose #997 > > │ input=Identifier("xMDT9Wf")                                                  │
00:01:36 verbose #998 > > │ input=Operator("-")                                                          │
00:01:36 verbose #999 > > │ input=Operator("-")                                                          │
00:01:36 verbose #1000 > > │ input=Identifier("dJ00YiwEBGTZGs2HKCS5ri34IiO8P3w5")                         │
00:01:36 verbose #1001 > > │ input=Integer(-4731001701143223823)                                          │
00:01:36 verbose #1002 > > │ input=Identifier("n3qpHNdaAlsj")                                             │
00:01:36 verbose #1003 > > │ input=StringLiteral("B<%-KTU3W)(k-/")                                        │
00:01:36 verbose #1004 > > │ input=Identifier("XOAM3NdjfZF68uf9")                                         │
00:01:36 verbose #1005 > > │ input=Operator(")")                                                          │
00:01:36 verbose #1006 > > │ input=Integer(-8822053758014875479)                                          │
00:01:36 verbose #1007 > > │ input=Identifier("JYJeUto2qx0D728oPPW6yI8phS")                               │
00:01:36 verbose #1008 > > │ input=Operator("/")                                                          │
00:01:36 verbose #1009 > > │ input=Operator("(")                                                          │
00:01:36 verbose #1010 > > │ input=Comment("\\&1")                                                        │
00:01:36 verbose #1011 > > │ input=Comment("Q3>\\i;!_3b C6<N.1$n>\\X(Z")                                  │
00:01:36 verbose #1012 > > │ input=Identifier("eaBKgL54TkBotFkwW8gYawSPPr")                               │
00:01:36 verbose #1013 > > │ input=Integer(-4925700184703454405)                                          │
00:01:36 verbose #1014 > > │ input=Integer(-3198308082104154462)                                          │
00:01:36 verbose #1015 > > │ input=Operator("/")                                                          │
00:01:36 verbose #1016 > > │ input=StringLiteral("A'S?")                                                  │
00:01:36 verbose #1017 > > │ input=Integer(-2753086407610338681)                                          │
00:01:36 verbose #1018 > > │ input=Operator("=")                                                          │
00:01:36 verbose #1019 > > │ input=StringLiteral("s''`ZC.EF^.r&i")                                        │
00:01:36 verbose #1020 > > │ input=Comment("m:a+'H.v%' nrx<E$ijkb")                                       │
00:01:36 verbose #1021 > > │ input=Identifier("X")                                                        │
00:01:36 verbose #1022 > > │ input=Comment("D")                                                           │
00:01:36 verbose #1023 > > │ input=Operator("+")                                                          │
00:01:36 verbose #1024 > > │ input=StringLiteral("Z(7Ukm}_{:_C?$+@`")                                     │
00:01:36 verbose #1025 > > │ input=Integer(525822765697802410)                                            │
00:01:36 verbose #1026 > > │ input=Integer(6820639930686184321)                                           │
00:01:36 verbose #1027 > > │ input=Comment("=9|Qm65R2R%v\"uwv=\\i")                                       │
00:01:36 verbose #1028 > > │ input=Comment("`l/`&XHBdoA/$t?.mlwt7kA")                                     │
00:01:36 verbose #1029 > > │ input=Identifier("aU6ptQaMP883Oj0Edajkm8bowyFZuf")                           │
00:01:36 verbose #1030 > > │ input=StringLiteral("tW%h$r%`<V*~L@=SP.X.md:6U<@{$")                         │
00:01:36 verbose #1031 > > │ input=Comment("H)-zc`-Z:s*E'`,T`[3E")                                        │
00:01:36 verbose #1032 > > │ input=StringLiteral("<[P1E$:f::Uqa9q7H9{-@ =")                               │
00:01:36 verbose #1033 > > │ input=Operator(")")                                                          │
00:01:36 verbose #1034 > > │ input=Identifier("HdfXpvu3q")                                                │
00:01:36 verbose #1035 > > │ input=Comment("8{Nf-*cuS*M`uZwhNO{8EVSpT")                                   │
00:01:36 verbose #1036 > > │ input=Comment("3T% .S`/DU!,_e: *G#,5{VL/*lb$x")                              │
00:01:36 verbose #1037 > > │ input=Comment("h:c{o$QD2=m4&]$Ac=6G3?")                                      │
00:01:36 verbose #1038 > > │ input=StringLiteral("t*X/.|Z*E+l`-w$b}Lm=*^=")                               │
00:01:36 verbose #1039 > > │ input=Identifier("rJYBjRea")                                                 │
00:01:36 verbose #1040 > > │ input=Identifier("exETNi3")                                                  │
00:01:36 verbose #1041 > > │ input=Integer(913377969664808906)                                            │
00:01:36 verbose #1042 > > │ input=Comment("\\\\t#b/+93")                                                 │
00:01:36 verbose #1043 > > │ input=Operator("+")                                                          │
00:01:36 verbose #1044 > > │ input=Identifier("d8rdlSu2ApoZs27")                                          │
00:01:36 verbose #1045 > > │ input=Identifier("H6a0IRjZggntu69F4a")                                       │
00:01:36 verbose #1046 > > │ input=Operator("=")                                                          │
00:01:36 verbose #1047 > > │ input=Integer(-9128184441335492172)                                          │
00:01:36 verbose #1048 > > │ input=Comment("==4.Mnl.7??x}^1>\\")                                          │
00:01:36 verbose #1049 > > │ input=Identifier("FJy2LV94rUIpRJxC4zYf6RRgl41")                              │
00:01:36 verbose #1050 > > │ input=Comment("_?>)5Lp)6Q^)\\P\"1<3\\./*5>='>")                              │
00:01:36 verbose #1051 > > │ input=Integer(3258344093763898460)                                           │
00:01:36 verbose #1052 > > │ input=StringLiteral("R]I=7zjZ}e'm?,?1y)S4GcQD*")                             │
00:01:36 verbose #1053 > > │ input=Comment("N]GYG\"%R<?7w:&*%k$Hf*:H73)+&s:1")                            │
00:01:36 verbose #1054 > > │ input=Identifier("c9XAhERgwyVHC8pnKyWM41nkPNV3eh")                           │
00:01:36 verbose #1055 > > │ input=Operator("-")                                                          │
00:01:36 verbose #1056 > > │ input=Comment("p&e^\\<jG.{hd*< %kF,\",")                                     │
00:01:36 verbose #1057 > > │ input=StringLiteral("?")                                                     │
00:01:36 verbose #1058 > > │ input=Integer(8318229696486103739)                                           │
00:01:36 verbose #1059 > > │ input=Integer(-3995136860670442180)                                          │
00:01:36 verbose #1060 > > │ input=Integer(2949558059725042594)                                           │
00:01:36 verbose #1061 > > │ input=Operator("(")                                                          │
00:01:36 verbose #1062 > > │ input=Comment("_B{WK4.g=(`")                                                 │
00:01:36 verbose #1063 > > │ input=Identifier("rB6rvMSPAR72")                                             │
00:01:36 verbose #1064 > > │ input=Integer(1445502940417363485)                                           │
00:01:36 verbose #1065 > > │ input=StringLiteral("'X59iU`r12")                                            │
00:01:36 verbose #1066 > > │ input=StringLiteral("&$N9*PsHGA{|*v.A4v{=#{e*Py")                            │
00:01:36 verbose #1067 > > │ input=Integer(-5930517985806140011)                                          │
00:01:36 verbose #1068 > > │ input=Comment("\\F'LRwH:")                                                   │
00:01:36 verbose #1069 > > │ input=Operator("-")                                                          │
00:01:36 verbose #1070 > > │ input=Integer(-2018403040916327587)                                          │
00:01:36 verbose #1071 > > │ input=StringLiteral("jB1{9{{&4BglI?='oHh?CYK[")                              │
00:01:36 verbose #1072 > > │ input=StringLiteral("+vG@U")                                                 │
00:01:36 verbose #1073 > > │ input=Identifier("IKjT4GQZEs68feWWE3j0nmLQ")                                 │
00:01:36 verbose #1074 > > │ input=Integer(-993054012551285880)                                           │
00:01:36 verbose #1075 > > │ input=Operator("+")                                                          │
00:01:36 verbose #1076 > > │ input=Integer(-81934789155408237)                                            │
00:01:36 verbose #1077 > > │ input=Identifier("t3Za2ur094t9JcUUv")                                        │
00:01:36 verbose #1078 > > │ input=StringLiteral("'*A*%N%hwp${/<8%v'l:.?6:z|")                            │
00:01:36 verbose #1079 > > │ input=Comment(".\\D/;-")                                                     │
00:01:36 verbose #1080 > > │ input=Operator(")")                                                          │
00:01:36 verbose #1081 > > │ input=StringLiteral("?&NR")                                                  │
00:01:36 verbose #1082 > > │ input=Comment("\".!g")                                                       │
00:01:36 verbose #1083 > > │ input=Identifier("MKOs6lIWVU")                                               │
00:01:36 verbose #1084 > > │ input=Operator("=")                                                          │
00:01:36 verbose #1085 > > │ input=Operator("/")                                                          │
00:01:36 verbose #1086 > > │ input=Comment("0*DLhv'/1H3\"[h$8v&Cm")                                       │
00:01:36 verbose #1087 > > │ input=Operator("+")                                                          │
00:01:36 verbose #1088 > > │ input=Identifier("eJz8xijN3v")                                               │
00:01:36 verbose #1089 > > │ input=StringLiteral("</kqRB/0GL$u5")                                         │
00:01:36 verbose #1090 > > │ input=StringLiteral("&`/7~Q:;/>jyxkv'/,.;}'::T*")                            │
00:01:36 verbose #1091 > > │ input=Operator("+")                                                          │
00:01:36 verbose #1092 > > │ input=Comment("%<Mx6{3PX1\\#7nS&euREegNjj/R'")                               │
00:01:36 verbose #1093 > > │ input=StringLiteral("^]SHOV3E=|68hh[$`my3")                                  │
00:01:36 verbose #1094 > > │ input=Integer(8921655865472240402)                                           │
00:01:36 verbose #1095 > > │ input=Identifier("h9y7U65gjIm")                                              │
00:01:36 verbose #1096 > > │                                                                              │
00:01:36 verbose #1097 > > │                                                                              │
00:01:36 verbose #1098 > > │ successes:                                                                   │
00:01:36 verbose #1099 > > │     adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged │
00:01:36 verbose #1100 > > │     prop_parse_format_idempotent                                             │
00:01:36 verbose #1101 > > │     test_parse_number                                                        │
00:01:36 verbose #1102 > > │                                                                              │
00:01:36 verbose #1103 > > │ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:01:36 verbose #1104 > > │ finished in 0.25s                                                            │
00:01:36 verbose #1105 > > │                                                                              │
00:01:36 verbose #1106 > > │                                                                              │
00:01:36 verbose #1107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #1108 > >
00:01:36 verbose #1109 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #1110 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #1111 > > │ ### execute the binary in release mode                                       │
00:01:36 verbose #1112 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #1113 > >
00:01:36 verbose #1114 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:36 verbose #1115 > > { . $ScriptDir/../../../../workspace/target/release/spiral_temp_test$(_exe) } |
00:01:36 verbose #1116 > > Invoke-Block
00:01:36 verbose #1117 > >
00:01:36 verbose #1118 > > ╭─[ 29.89ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:36 verbose #1119 > > │ app=test                                                                     │
00:01:36 verbose #1120 > > │                                                                              │
00:01:36 verbose #1121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #1122 > 00:01:35 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 88213 }
00:01:37 verbose #1123 > 00:01:35   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = [
00:01:37 verbose #1124 >     "nbconvert",
00:01:37 verbose #1125 >     "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb",
00:01:37 verbose #1126 >     "--to",
00:01:37 verbose #1127 >     "html",
00:01:37 verbose #1128 >     "--HTMLExporter.theme=dark",
00:01:37 verbose #1129 > ]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:39 verbose #1130 > 00:01:38 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb to html
00:01:39 verbose #1131 > 00:01:38 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:39 verbose #1132 > 00:01:38 verbose #7 !   validate(nb)
00:01:42 verbose #1133 > 00:01:40 verbose #8 ! [NbConvertApp] Writing 357131 bytes to c:\home\git\polyglot\apps\spiral\temp\test\build.dib.html
00:01:42 verbose #1134 > 00:01:41 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 663 }
00:01:42 verbose #1135 > 00:01:41   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 663 }
00:01:42 verbose #1136 > 00:01:41   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = [
00:01:42 verbose #1137 >     "-c",
00:01:42 verbose #1138 >     "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path",
00:01:42 verbose #1139 > ]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:43 verbose #1140 > 00:01:41 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:43 verbose #1141 > 00:01:41   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:43 verbose #1142 > 00:01:41   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 88935 }
00:01:43   debug #1143 runtime.execute_with_options_async / { exit_code = 0; output_length = 93896 }
00:01:43   debug #1 main / executeCommand / exitCode: 0 / command: ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib
In [ ]:
{ pwsh ../apps/spiral/vscode/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 203 installs across 191 packages (no changes) [157.00ms]
Symlink already exists: C:\home\git\polyglot\apps\spiral\vscode\LICENSE -> C:\home\git\polyglot\LICENSE

  out\src\extension.js                  2.4kb
  out\media\cellOutputScrollButtons.js  1.9kb

⚡ Done in 14ms
 DONE  Packaged: out\spiral-vscode-0.0.1.vsix (26 files, 98.15KB)
In [ ]:
{ pwsh ../apps/ipfs/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

 Done! Checked 220 packages (no changes) [156.00ms]
In [ ]:
{ pwsh ./outdated.ps1 } | Invoke-Block
Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
Resolving dependency graph...
Outdated packages found:
  Group: Main
    * Expecto 10.2.1 -> 11.0.0-alpha2
    * Expecto.FsCheck 10.2.1-fscheck3 -> 11.0.0-alpha2-fscheck2
    * FsCheck 3.0.0-rc3 -> 2.16.6
    * FSharp.Core 8.0.300-beta.24080.5 -> 9.0.100-beta.24422.2
    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-rc.1.24431.7
    * Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-rc.1.24431.7
    * Microsoft.Extensions.Features 7.0 -> 9.0.0-rc.1.24452.1
    * Microsoft.Extensions.Logging 8.0 -> 9.0.0-rc.1.24431.7
    * Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-rc.1.24431.7
    * Microsoft.Extensions.Options 8.0.2 -> 9.0.0-rc.1.24431.7
    * Microsoft.Extensions.Primitives 8.0 -> 9.0.0-rc.1.24431.7
    * System.CodeDom 8.0 -> 9.0.0-rc.1.24431.7
    * System.Management 7.0 -> 9.0.0-rc.1.24431.7
    * System.Threading.Channels 8.0 -> 9.0.0-rc.1.24431.7
Total time taken: 54 seconds

CheckToml / toml: C:\home\git\polyglot\workspace\Cargo.toml
chat_contract_tests
================
Name                Project  Compat   Latest   Kind    Platform
----                -------  ------   ------   ----    --------
ahash               0.8.11   0.7.8    0.7.8    Normal  ---
byteorder           1.5.0    Removed  Removed  Normal  ---
cfg-if              1.0.0    Removed  Removed  Normal  ---
equivalent          1.0.1    Removed  Removed  Normal  ---
hashbrown           0.14.5   0.12.3   0.12.3   Normal  ---
indexmap            2.4.0    1.9.3    1.9.3    Normal  ---
near-sandbox-utils  0.9.0    0.8.0    0.8.0    Normal  ---
proc-macro2         1.0.86   Removed  Removed  Normal  ---
quote               1.0.37   Removed  Removed  Normal  ---
serde               1.0.209  Removed  Removed  Normal  ---
serde_derive        1.0.209  Removed  Removed  Normal  ---
syn                 2.0.76   Removed  Removed  Normal  ---
unicode-ident       1.0.12   Removed  Removed  Normal  ---
zerocopy            0.7.35   Removed  Removed  Normal  ---
zerocopy-derive     0.7.35   Removed  Removed  Normal  ---

spiral_wasm
================
Name                Project  Compat   Latest   Kind    Platform
----                -------  ------   ------   ----    --------
ahash               0.8.11   0.7.8    0.7.8    Normal  ---
byteorder           1.5.0    Removed  Removed  Normal  ---
cfg-if              1.0.0    Removed  Removed  Normal  ---
equivalent          1.0.1    Removed  Removed  Normal  ---
hashbrown           0.14.5   0.12.3   0.12.3   Normal  ---
indexmap            2.4.0    1.9.3    1.9.3    Normal  ---
near-sandbox-utils  0.9.0    0.8.0    0.8.0    Normal  ---
proc-macro2         1.0.86   Removed  Removed  Normal  ---
quote               1.0.37   Removed  Removed  Normal  ---
serde               1.0.209  Removed  Removed  Normal  ---
serde_derive        1.0.209  Removed  Removed  Normal  ---
syn                 2.0.76   Removed  Removed  Normal  ---
unicode-ident       1.0.12   Removed  Removed  Normal  ---
zerocopy            0.7.35   Removed  Removed  Normal  ---
zerocopy-derive     0.7.35   Removed  Removed  Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
Name                             Project     Compat       Latest       Kind    Platform
----                             -------     ------       ------       ----    --------
borsh-derive->syn                2.0.76      2.0.77       2.0.77       Normal  ---
chrono->iana-time-zone           0.1.60      0.1.61       0.1.61       Normal  cfg(unix)
chrono->serde                    1.0.209     1.0.210      1.0.210      Normal  ---
crypto-common->hybrid-array      0.2.0-rc.9  0.2.0-rc.10  0.2.0-rc.10  Normal  ---
darling_core->syn                2.0.76      2.0.77       2.0.77       Normal  ---
darling_macro->syn               2.0.76      2.0.77       2.0.77       Normal  ---
futures-macro->syn               2.0.76      2.0.77       2.0.77       Normal  ---
hashbrown->serde                 1.0.209     1.0.210      1.0.210      Normal  ---
iana-time-zone-haiku->cc         1.1.15      1.1.21       1.1.21       Build   ---
indexmap->serde                  1.0.209     1.0.210      1.0.210      Normal  ---
near-account-id->serde           1.0.209     1.0.210      1.0.210      Normal  ---
near-gas->serde                  1.0.209     1.0.210      1.0.210      Normal  ---
near-sdk                         5.4.0       5.5.0        5.5.0        Normal  ---
near-sdk->near-sdk-macros        5.4.0       5.5.0        5.5.0        Normal  ---
near-sdk->serde                  1.0.209     1.0.210      1.0.210      Normal  ---
near-sdk->serde_json             1.0.127     1.0.128      1.0.128      Normal  ---
near-sdk-macros->serde           1.0.209     1.0.210      1.0.210      Normal  ---
near-sdk-macros->serde_json      1.0.127     1.0.128      1.0.128      Normal  ---
near-sdk-macros->syn             2.0.76      2.0.77       2.0.77       Normal  ---
near-token->serde                1.0.209     1.0.210      1.0.210      Normal  ---
proc-macro-crate->toml_edit      0.22.20     0.22.21      0.22.21      Normal  ---
proc-macro2->unicode-ident       1.0.12      1.0.13       1.0.13       Normal  ---
serde->serde_derive              1.0.209     1.0.210      1.0.210      Normal  ---
serde_derive->syn                2.0.76      2.0.77       2.0.77       Normal  ---
serde_json->serde                1.0.209     1.0.210      1.0.210      Normal  ---
serde_spanned->serde             1.0.209     1.0.210      1.0.210      Normal  ---
sha2->cpufeatures                0.2.13      0.2.14       0.2.14       Normal  cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))
strum_macros->syn                2.0.76      2.0.77       2.0.77       Normal  ---
syn->unicode-ident               1.0.12      1.0.13       1.0.13       Normal  ---
syn_derive->syn                  2.0.76      2.0.77       2.0.77       Normal  ---
toml_datetime->serde             1.0.209     1.0.210      1.0.210      Normal  ---
toml_edit->indexmap              2.4.0       2.5.0        2.5.0        Normal  ---
toml_edit->serde                 1.0.209     1.0.210      1.0.210      Normal  ---
wasm-bindgen-backend->syn        2.0.76      2.0.77       2.0.77       Normal  ---
wasm-bindgen-macro-support->syn  2.0.76      2.0.77       2.0.77       Normal  ---
zerocopy-derive->syn             2.0.76      2.0.77       2.0.77       Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name                                              Project                        Compat         Latest         Kind    Platform
----                                              -------                        ------         ------         ----    --------
actix->actix_derive                               0.6.1                          0.6.2          0.6.2          Normal  ---
actix->bytes                                      1.7.1                          1.7.2          1.7.2          Normal  ---
actix->tokio-util                                 0.7.11                         0.7.12         0.7.12         Normal  ---
actix-macros->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
actix_derive->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
aes->cpufeatures                                  0.2.13                         0.2.14         0.2.14         Normal  cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))
ahash->cfg-if                                     1.0.0                          ---            Removed        Normal  ---
ahash->getrandom                                  0.2.15                         Removed        ---            Normal  cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
ahash->zerocopy                                   0.7.35                         ---            Removed        Normal  ---
android_system_properties->libc                   0.2.158                        ---            Removed        Normal  ---
anyhow                                            1.0.86                         1.0.89         1.0.89         Normal  ---
async-io->parking                                 2.2.0                          2.2.1          2.2.1          Normal  ---
async-io->rustix                                  0.38.35                        0.38.37        0.38.37        Normal  ---
async-process->rustix                             0.38.35                        0.38.37        0.38.37        Normal  cfg(unix)
async-recursion->syn                              2.0.76                         2.0.77         2.0.77         Normal  ---
async-signal->rustix                              0.38.35                        0.38.37        0.38.37        Normal  cfg(unix)
async-stream-impl->syn                            2.0.76                         2.0.77         2.0.77         Normal  ---
async-trait->syn                                  2.0.76                         2.0.77         2.0.77         Normal  ---
axum->async-trait                                 0.1.81                         0.1.82         0.1.82         Normal  ---
axum->bytes                                       1.7.1                          1.7.2          1.7.2          Normal  ---
axum->serde                                       1.0.209                        1.0.210        1.0.210        Normal  ---
axum-core->async-trait                            0.1.81                         0.1.82         0.1.82         Normal  ---
axum-core->bytes                                  1.7.1                          1.7.2          1.7.2          Normal  ---
backtrace->cc                                     1.1.15                         1.1.21         1.1.21         Build   ---
binary-install->anyhow                            1.0.86                         1.0.89         1.0.89         Normal  ---
bip39->serde                                      1.0.209                        1.0.210        1.0.210        Normal  ---
borsh-derive->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
bytesize->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
bzip2-sys->cc                                     1.1.15                         1.1.21         1.1.21         Build   ---
camino->serde                                     1.0.209                        1.0.210        1.0.210        Normal  ---
cargo-near->clap                                  4.5.16                         4.5.17         4.5.17         Normal  ---
cargo-near->serde_json                            1.0.127                        1.0.128        1.0.128        Normal  ---
cargo-platform->serde                             1.0.209                        1.0.210        1.0.210        Normal  ---
cargo-util->anyhow                                1.0.86                         1.0.89         1.0.89         Normal  ---
cargo_metadata->serde                             1.0.209                        1.0.210        1.0.210        Normal  ---
cargo_metadata->serde_json                        1.0.127                        1.0.128        1.0.128        Normal  ---
cc->jobserver                                     0.1.32                         ---            Removed        Normal  ---
cc->libc                                          0.2.158                        ---            Removed        Normal  cfg(unix)
cc->shlex                                         1.3.0                          ---            Removed        Normal  ---
chrono->android-tzdata                            0.1.1                          ---            Removed        Normal  cfg(target_os = "android")
chrono->iana-time-zone                            0.1.60                         0.1.61         0.1.61         Normal  cfg(unix)
chrono->iana-time-zone                            0.1.60                         0.1.61         Removed        Normal  cfg(unix)
chrono->js-sys                                    0.3.70                         ---            Removed        Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
chrono->num-traits                                0.2.19                         ---            Removed        Normal  ---
chrono->serde                                     1.0.209                        1.0.210        1.0.210        Normal  ---
chrono->serde                                     1.0.209                        1.0.210        Removed        Normal  ---
chrono->wasm-bindgen                              0.2.93                         ---            Removed        Normal  cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))
chrono->windows-targets                           0.52.6                         ---            Removed        Normal  cfg(windows)
clap->clap_builder                                4.5.15                         4.5.17         4.5.17         Normal  ---
clap_derive->syn                                  2.0.76                         2.0.77         2.0.77         Normal  ---
console->unicode-width                            0.1.13                         0.1.14         0.1.14         Normal  ---
csv->serde                                        1.0.209                        1.0.210        1.0.210        Normal  ---
curve25519-dalek->cpufeatures                     0.2.13                         0.2.14         0.2.14         Normal  cfg(target_arch = "x86_64")
curve25519-dalek-derive->syn                      2.0.76                         2.0.77         2.0.77         Normal  ---
darling_core->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
darling_macro->syn                                2.0.76                         2.0.77         2.0.77         Normal  ---
deranged->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
derive_arbitrary->syn                             2.0.76                         2.0.77         2.0.77         Normal  ---
derive_more->syn                                  2.0.76                         2.0.77         2.0.77         Normal  ---
elementtree->xml-rs                               0.8.21                         0.8.22         0.8.22         Normal  ---
enum-map-derive->syn                              2.0.76                         2.0.77         2.0.77         Normal  ---
enumflags2->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
enumflags2_derive->syn                            2.0.76                         2.0.77         2.0.77         Normal  ---
event-listener->parking                           2.2.0                          2.2.1          2.2.1          Normal  cfg(not(target_family = "wasm"))
futures-lite->parking                             2.2.0                          2.2.1          2.2.1          Normal  ---
futures-macro->syn                                2.0.76                         2.0.77         2.0.77         Normal  ---
getrandom->cfg-if                                 1.0.0                          Removed        ---            Normal  ---
getrandom->js-sys                                 0.3.70                         Removed        ---            Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
getrandom->libc                                   0.2.158                        Removed        ---            Normal  cfg(unix)
getrandom->wasi                                   0.11.0+wasi-snapshot-preview1  Removed        ---            Normal  cfg(target_os = "wasi")
getrandom->wasm-bindgen                           0.2.93                         Removed        ---            Normal  cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
h2->bytes                                         1.7.1                          1.7.2          1.7.2          Normal  ---
h2->indexmap                                      2.4.0                          2.5.0          2.5.0          Normal  ---
h2->tokio-util                                    0.7.11                         0.7.12         0.7.12         Normal  ---
hashbrown->ahash                                  0.7.8                          0.8.11         ---            Normal  ---
hashbrown->ahash                                  0.8.11                         ---            0.7.8          Normal  ---
hashbrown->serde                                  1.0.209                        1.0.210        1.0.210        Normal  ---
hashbrown->serde                                  1.0.209                        1.0.210        Removed        Normal  ---
hex->serde                                        1.0.209                        1.0.210        1.0.210        Normal  ---
http->bytes                                       1.7.1                          1.7.2          1.7.2          Normal  ---
http-body->bytes                                  1.7.1                          1.7.2          1.7.2          Normal  ---
http-body-util->bytes                             1.7.1                          1.7.2          1.7.2          Normal  ---
hyper->bytes                                      1.7.1                          1.7.2          1.7.2          Normal  ---
hyper-rustls->hyper-util                          0.1.7                          0.1.8          0.1.8          Normal  ---
hyper-rustls->rustls                              0.23.12                        0.23.13        0.23.13        Normal  ---
hyper-tls->bytes                                  1.7.1                          1.7.2          1.7.2          Normal  ---
hyper-tls->hyper-util                             0.1.7                          0.1.8          0.1.8          Normal  ---
hyper-util->bytes                                 1.7.1                          1.7.2          1.7.2          Normal  ---
iana-time-zone->android_system_properties         0.1.5                          ---            Removed        Normal  cfg(target_os = "android")
iana-time-zone->core-foundation-sys               0.8.7                          ---            Removed        Normal  cfg(any(target_os = "macos", target_os = "ios"))
iana-time-zone->iana-time-zone-haiku              0.1.2                          ---            Removed        Normal  cfg(target_os = "haiku")
iana-time-zone->js-sys                            0.3.70                         ---            Removed        Normal  cfg(target_arch = "wasm32")
iana-time-zone->wasm-bindgen                      0.2.93                         ---            Removed        Normal  cfg(target_arch = "wasm32")
iana-time-zone->windows-core                      0.52.0                         ---            Removed        Normal  cfg(target_os = "windows")
iana-time-zone-haiku->cc                          1.1.15                         1.1.21         1.1.21         Build   ---
iana-time-zone-haiku->cc                          1.1.15                         1.1.21         Removed        Build   ---
indexmap->autocfg                                 1.3.0                          Removed        ---            Build   ---
indexmap->equivalent                              1.0.1                          ---            Removed        Normal  ---
indexmap->hashbrown                               0.12.3                         0.14.5         ---            Normal  ---
indexmap->hashbrown                               0.14.5                         ---            0.12.3         Normal  ---
indexmap->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
indicatif->unicode-width                          0.1.13                         0.1.14         0.1.14         Normal  ---
inquire->unicode-segmentation                     1.11.0                         1.12.0         1.12.0         Normal  ---
inquire->unicode-width                            0.1.13                         0.1.14         0.1.14         Normal  ---
jobserver->libc                                   0.2.158                        ---            Removed        Normal  cfg(unix)
js-sys->wasm-bindgen                              0.2.93                         ---            Removed        Normal  ---
js-sys->wasm-bindgen                              0.2.93                         Removed        ---            Normal  ---
json-patch->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
json-patch->serde_json                            1.0.127                        1.0.128        1.0.128        Normal  ---
jsonptr->serde                                    1.0.209                        1.0.210        1.0.210        Normal  ---
jsonptr->serde_json                               1.0.127                        1.0.128        1.0.128        Normal  ---
keccak->cpufeatures                               0.2.13                         0.2.14         0.2.14         Normal  cfg(target_arch = "aarch64")
libredox->redox_syscall                           0.5.3                          0.5.4          0.5.4          Normal  ---
linked-hash-map->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
native-tls->schannel                              0.1.23                         0.1.24         0.1.24         Normal  cfg(target_os = "windows")
near-abi->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
near-abi-client->anyhow                           1.0.86                         1.0.89         1.0.89         Normal  ---
near-abi-client-impl->anyhow                      1.0.86                         1.0.89         1.0.89         Normal  ---
near-abi-client-impl->serde_json                  1.0.127                        1.0.128        1.0.128        Normal  ---
near-account-id->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
near-async->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
near-async->serde_json                            1.0.127                        1.0.128        1.0.128        Normal  ---
near-async-derive->syn                            2.0.76                         2.0.77         2.0.77         Normal  ---
near-chain-configs->anyhow                        1.0.86                         1.0.89         1.0.89         Normal  ---
near-chain-configs->serde                         1.0.209                        1.0.210        1.0.210        Normal  ---
near-chain-configs->serde_json                    1.0.127                        1.0.128        1.0.128        Normal  ---
near-cli-rs->clap                                 4.5.16                         4.5.17         4.5.17         Normal  ---
near-cli-rs->serde                                1.0.209                        1.0.210        1.0.210        Normal  ---
near-cli-rs->serde_json                           1.0.127                        1.0.128        1.0.128        Normal  ---
near-config-utils->anyhow                         1.0.86                         1.0.89         1.0.89         Normal  ---
near-crypto->serde                                1.0.209                        1.0.210        1.0.210        Normal  ---
near-crypto->serde_json                           1.0.127                        1.0.128        1.0.128        Normal  ---
near-gas->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
near-jsonrpc-client->serde                        1.0.209                        1.0.210        1.0.210        Normal  ---
near-jsonrpc-client->serde_json                   1.0.127                        1.0.128        1.0.128        Normal  ---
near-jsonrpc-primitives->serde                    1.0.209                        1.0.210        1.0.210        Normal  ---
near-jsonrpc-primitives->serde_json               1.0.127                        1.0.128        1.0.128        Normal  ---
near-o11y->clap                                   4.5.16                         4.5.17         4.5.17         Normal  ---
near-o11y->serde                                  1.0.209                        1.0.210        1.0.210        Normal  ---
near-o11y->serde_json                             1.0.127                        1.0.128        1.0.128        Normal  ---
near-parameters->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
near-performance-metrics->bytes                   1.7.1                          1.7.2          1.7.2          Normal  ---
near-performance-metrics->tokio-util              0.7.11                         0.7.12         0.7.12         Normal  ---
near-primitives->bytes                            1.7.1                          1.7.2          1.7.2          Normal  ---
near-primitives->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
near-primitives->serde_json                       1.0.127                        1.0.128        1.0.128        Normal  ---
near-primitives-core->serde                       1.0.209                        1.0.210        1.0.210        Normal  ---
near-rpc-error-core->serde                        1.0.209                        1.0.210        1.0.210        Normal  ---
near-rpc-error-core->syn                          2.0.76                         2.0.77         2.0.77         Normal  ---
near-rpc-error-macro->serde                       1.0.209                        1.0.210        1.0.210        Normal  ---
near-rpc-error-macro->syn                         2.0.76                         2.0.77         2.0.77         Normal  ---
near-sandbox-utils                                0.10.1                         0.11.0         0.11.0         Normal  ---
near-sandbox-utils->anyhow                        1.0.86                         1.0.89         1.0.89         Normal  ---
near-sandbox-utils->chrono                        0.4.38                         ---            Removed        Normal  ---
near-sdk                                          5.4.0                          5.5.0          5.5.0          Normal  ---
near-sdk->near-sdk-macros                         5.4.0                          5.5.0          5.5.0          Normal  ---
near-sdk->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
near-sdk->serde_json                              1.0.127                        1.0.128        1.0.128        Normal  ---
near-sdk-macros->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
near-sdk-macros->serde_json                       1.0.127                        1.0.128        1.0.128        Normal  ---
near-sdk-macros->syn                              2.0.76                         2.0.77         2.0.77         Normal  ---
near-socialdb-client->serde                       1.0.209                        1.0.210        1.0.210        Normal  ---
near-socialdb-client->serde_json                  1.0.127                        1.0.128        1.0.128        Normal  ---
near-time->serde                                  1.0.209                        1.0.210        1.0.210        Normal  ---
near-token->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
near-workspaces->async-trait                      0.1.81                         0.1.82         0.1.82         Normal  ---
near-workspaces->near-sandbox-utils               0.8.0                          ---            0.9.0          Build   ---
near-workspaces->near-sandbox-utils               0.9.0                          0.8.0          ---            Normal  ---
near-workspaces->serde                            1.0.209                        1.0.210        1.0.210        Normal  ---
near-workspaces->serde_json                       1.0.127                        1.0.128        1.0.128        Normal  ---
near_schemafy_core->serde                         1.0.209                        1.0.210        1.0.210        Normal  ---
near_schemafy_core->serde_json                    1.0.127                        1.0.128        1.0.128        Normal  ---
near_schemafy_lib->serde                          1.0.209                        1.0.210        1.0.210        Normal  ---
near_schemafy_lib->serde_derive                   1.0.209                        1.0.210        1.0.210        Normal  ---
near_schemafy_lib->serde_json                     1.0.127                        1.0.128        1.0.128        Normal  ---
newline-converter->unicode-segmentation           1.11.0                         1.12.0         1.12.0         Normal  ---
num-rational->serde                               1.0.209                        1.0.210        1.0.210        Normal  ---
num-traits->autocfg                               1.3.0                          ---            Removed        Build   ---
num-traits->libm                                  0.2.8                          ---            Removed        Normal  ---
openssl-macros->syn                               2.0.76                         2.0.77         2.0.77         Normal  ---
openssl-src->cc                                   1.1.15                         1.1.21         1.1.21         Normal  ---
openssl-sys->cc                                   1.1.15                         1.1.21         1.1.21         Build   ---
openssl-sys->openssl-src                          300.3.1+3.3.1                  300.3.2+3.3.2  300.3.2+3.3.2  Build   ---
opentelemetry-otlp->async-trait                   0.1.81                         0.1.82         0.1.82         Normal  ---
opentelemetry_sdk->async-trait                    0.1.81                         0.1.82         0.1.82         Normal  ---
opentelemetry_sdk->tokio-stream                   0.1.15                         0.1.16         0.1.16         Normal  ---
parking_lot_core->redox_syscall                   0.5.3                          0.5.4          0.5.4          Normal  cfg(target_os = "redox")
pin-project-internal->syn                         2.0.76                         2.0.77         2.0.77         Normal  ---
polling->rustix                                   0.38.35                        0.38.37        0.38.37        Normal  cfg(any(unix, target_os = "fuchsia", target_os = "vxworks"))
prettytable->unicode-width                        0.1.13                         0.1.14         0.1.14         Normal  ---
proc-macro-crate->toml_edit                       0.22.20                        0.22.21        0.22.21        Normal  ---
proc-macro2->unicode-ident                        1.0.12                         1.0.13         1.0.13         Normal  ---
proc-macro2->unicode-ident                        1.0.12                         1.0.13         Removed        Normal  ---
proc-macro2->unicode-ident                        1.0.12                         Removed        1.0.13         Normal  ---
prost->bytes                                      1.7.1                          1.7.2          1.7.2          Normal  ---
prost-derive->anyhow                              1.0.86                         1.0.89         1.0.89         Normal  ---
prost-derive->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
quote->proc-macro2                                1.0.86                         ---            Removed        Normal  ---
quote->proc-macro2                                1.0.86                         Removed        ---            Normal  ---
reqwest->bytes                                    1.7.1                          1.7.2          1.7.2          Normal  ---
reqwest->hyper-rustls                             0.27.2                         0.27.3         0.27.3         Normal  cfg(not(target_arch = "wasm32"))
reqwest->hyper-util                               0.1.7                          0.1.8          0.1.8          Normal  cfg(not(target_arch = "wasm32"))
reqwest->ipnet                                    2.9.0                          2.10.0         2.10.0         Normal  cfg(not(target_arch = "wasm32"))
reqwest->serde                                    1.0.209                        1.0.210        1.0.210        Normal  ---
reqwest->serde_json                               1.0.127                        1.0.128        1.0.128        Normal  ---
ring->cc                                          1.1.15                         1.1.21         1.1.21         Build   ---
rkyv->bytes                                       1.7.1                          1.7.2          1.7.2          Normal  ---
rust_decimal->bytes                               1.7.1                          1.7.2          1.7.2          Normal  ---
rust_decimal->serde                               1.0.209                        1.0.210        1.0.210        Normal  ---
rust_decimal->serde_json                          1.0.127                        1.0.128        1.0.128        Normal  ---
rustls->rustls-webpki                             0.102.7                        0.102.8        0.102.8        Normal  ---
schannel->windows-sys                             0.52.0                         0.59.0         0.59.0         Normal  ---
schemars->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---
schemars->serde_json                              1.0.127                        1.0.128        1.0.128        Normal  ---
schemars_derive->syn                              2.0.76                         2.0.77         2.0.77         Normal  ---
scroll_derive->syn                                2.0.76                         2.0.77         2.0.77         Normal  ---
secp256k1-sys->cc                                 1.1.15                         1.1.21         1.1.21         Build   ---
secret-service->serde                             1.0.209                        1.0.210        1.0.210        Normal  ---
semver->serde                                     1.0.209                        1.0.210        1.0.210        Normal  ---
serde->serde_derive                               1.0.209                        1.0.210        1.0.210        Normal  ---
serde->serde_derive                               1.0.209                        1.0.210        Removed        Normal  ---
serde_derive->proc-macro2                         1.0.86                         ---            Removed        Normal  ---
serde_derive->quote                               1.0.37                         ---            Removed        Normal  ---
serde_derive->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
serde_derive->syn                                 2.0.76                         2.0.77         Removed        Normal  ---
serde_derive_internals->syn                       2.0.76                         2.0.77         2.0.77         Normal  ---
serde_json                                        1.0.127                        1.0.128        1.0.128        Normal  ---
serde_json->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
serde_repr->syn                                   2.0.76                         2.0.77         2.0.77         Normal  ---
serde_spanned->serde                              1.0.209                        1.0.210        1.0.210        Normal  ---
serde_urlencoded->serde                           1.0.209                        1.0.210        1.0.210        Normal  ---
serde_with->indexmap                              1.9.3                          2.5.0          ---            Normal  ---
serde_with->indexmap                              2.4.0                          2.5.0          1.9.3          Normal  ---
serde_with->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
serde_with->serde_derive                          1.0.209                        1.0.210        1.0.210        Normal  ---
serde_with->serde_json                            1.0.127                        1.0.128        1.0.128        Normal  ---
serde_with_macros->syn                            2.0.76                         2.0.77         2.0.77         Normal  ---
serde_yaml->indexmap                              2.4.0                          2.5.0          2.5.0          Normal  ---
serde_yaml->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
sha1->cpufeatures                                 0.2.13                         0.2.14         0.2.14         Normal  cfg(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"))
sha2->cpufeatures                                 0.2.13                         0.2.14         0.2.14         Normal  cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))
smart-default->syn                                2.0.76                         2.0.77         2.0.77         Normal  ---
string_cache->serde                               1.0.209                        1.0.210        1.0.210        Normal  ---
strum_macros->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
symbolic-debuginfo->serde                         1.0.209                        1.0.210        1.0.210        Normal  ---
symbolic-debuginfo->serde_json                    1.0.127                        1.0.128        1.0.128        Normal  ---
syn->proc-macro2                                  1.0.86                         ---            Removed        Normal  ---
syn->proc-macro2                                  1.0.86                         Removed        ---            Normal  ---
syn->quote                                        1.0.37                         ---            Removed        Normal  ---
syn->quote                                        1.0.37                         Removed        ---            Normal  ---
syn->unicode-ident                                1.0.12                         1.0.13         1.0.13         Normal  ---
syn->unicode-ident                                1.0.12                         1.0.13         Removed        Normal  ---
syn->unicode-ident                                1.0.12                         Removed        1.0.13         Normal  ---
syn_derive->syn                                   2.0.76                         2.0.77         2.0.77         Normal  ---
tempfile->rustix                                  0.38.35                        0.38.37        0.38.37        Normal  cfg(any(unix, target_os = "wasi"))
textwrap->unicode-width                           0.1.13                         0.1.14         0.1.14         Normal  ---
thiserror-impl->syn                               2.0.76                         2.0.77         2.0.77         Normal  ---
time->serde                                       1.0.209                        1.0.210        1.0.210        Normal  ---
tokio->bytes                                      1.7.1                          1.7.2          1.7.2          Normal  ---
tokio-macros->syn                                 2.0.76                         2.0.77         2.0.77         Normal  ---
tokio-rustls->rustls                              0.23.12                        0.23.13        0.23.13        Normal  ---
tokio-util->bytes                                 1.7.1                          1.7.2          1.7.2          Normal  ---
toml->serde                                       1.0.209                        1.0.210        1.0.210        Normal  ---
toml->toml_edit                                   0.22.20                        0.22.21        0.22.21        Normal  ---
toml_datetime->serde                              1.0.209                        1.0.210        1.0.210        Normal  ---
toml_edit->indexmap                               2.4.0                          2.5.0          2.5.0          Normal  ---
toml_edit->serde                                  1.0.209                        1.0.210        1.0.210        Normal  ---
tonic->async-trait                                0.1.81                         0.1.82         0.1.82         Normal  ---
tonic->bytes                                      1.7.1                          1.7.2          1.7.2          Normal  ---
tonic->tokio-stream                               0.1.15                         0.1.16         0.1.16         Normal  ---
tower->tokio-util                                 0.7.11                         0.7.12         0.7.12         Normal  ---
tracing-attributes->syn                           2.0.76                         2.0.77         2.0.77         Normal  ---
ureq->rustls                                      0.23.12                        0.23.13        0.23.13        Normal  ---
ureq->webpki-roots                                0.26.3                         0.26.6         0.26.6         Normal  ---
url->serde                                        1.0.209                        1.0.210        1.0.210        Normal  ---
vt100->unicode-width                              0.1.13                         0.1.14         0.1.14         Normal  ---
wasm-bindgen->cfg-if                              1.0.0                          ---            Removed        Normal  ---
wasm-bindgen->cfg-if                              1.0.0                          Removed        ---            Normal  ---
wasm-bindgen->once_cell                           1.19.0                         ---            Removed        Normal  ---
wasm-bindgen->once_cell                           1.19.0                         Removed        ---            Normal  ---
wasm-bindgen->wasm-bindgen-macro                  0.2.93                         ---            Removed        Normal  ---
wasm-bindgen->wasm-bindgen-macro                  0.2.93                         Removed        ---            Normal  ---
wasm-bindgen-backend->bumpalo                     3.16.0                         ---            Removed        Normal  ---
wasm-bindgen-backend->bumpalo                     3.16.0                         Removed        ---            Normal  ---
wasm-bindgen-backend->log                         0.4.22                         ---            Removed        Normal  ---
wasm-bindgen-backend->log                         0.4.22                         Removed        ---            Normal  ---
wasm-bindgen-backend->once_cell                   1.19.0                         ---            Removed        Normal  ---
wasm-bindgen-backend->once_cell                   1.19.0                         Removed        ---            Normal  ---
wasm-bindgen-backend->proc-macro2                 1.0.86                         ---            Removed        Normal  ---
wasm-bindgen-backend->proc-macro2                 1.0.86                         Removed        ---            Normal  ---
wasm-bindgen-backend->quote                       1.0.37                         ---            Removed        Normal  ---
wasm-bindgen-backend->quote                       1.0.37                         Removed        ---            Normal  ---
wasm-bindgen-backend->syn                         2.0.76                         2.0.77         2.0.77         Normal  ---
wasm-bindgen-backend->syn                         2.0.76                         2.0.77         Removed        Normal  ---
wasm-bindgen-backend->syn                         2.0.76                         Removed        2.0.77         Normal  ---
wasm-bindgen-backend->wasm-bindgen-shared         0.2.93                         ---            Removed        Normal  ---
wasm-bindgen-backend->wasm-bindgen-shared         0.2.93                         Removed        ---            Normal  ---
wasm-bindgen-macro->quote                         1.0.37                         ---            Removed        Normal  ---
wasm-bindgen-macro->quote                         1.0.37                         Removed        ---            Normal  ---
wasm-bindgen-macro->wasm-bindgen-macro-support    0.2.93                         ---            Removed        Normal  ---
wasm-bindgen-macro->wasm-bindgen-macro-support    0.2.93                         Removed        ---            Normal  ---
wasm-bindgen-macro-support->proc-macro2           1.0.86                         ---            Removed        Normal  ---
wasm-bindgen-macro-support->proc-macro2           1.0.86                         Removed        ---            Normal  ---
wasm-bindgen-macro-support->quote                 1.0.37                         ---            Removed        Normal  ---
wasm-bindgen-macro-support->quote                 1.0.37                         Removed        ---            Normal  ---
wasm-bindgen-macro-support->syn                   2.0.76                         2.0.77         2.0.77         Normal  ---
wasm-bindgen-macro-support->syn                   2.0.76                         2.0.77         Removed        Normal  ---
wasm-bindgen-macro-support->syn                   2.0.76                         Removed        2.0.77         Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-backend  0.2.93                         ---            Removed        Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-backend  0.2.93                         Removed        ---            Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-shared   0.2.93                         ---            Removed        Normal  ---
wasm-bindgen-macro-support->wasm-bindgen-shared   0.2.93                         Removed        ---            Normal  ---
wasmparser->indexmap                              2.4.0                          2.5.0          2.5.0          Normal  ---
wasmparser->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
windows-core->windows-targets                     0.52.6                         ---            Removed        Normal  ---
windows-targets->windows_aarch64_gnullvm          0.52.6                         ---            Removed        Normal  aarch64-pc-windows-gnullvm
windows-targets->windows_aarch64_msvc             0.52.6                         ---            Removed        Normal  cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib)))
windows-targets->windows_i686_gnu                 0.52.6                         ---            Removed        Normal  cfg(all(target_arch = "x86", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows-targets->windows_i686_gnullvm             0.52.6                         ---            Removed        Normal  i686-pc-windows-gnullvm
windows-targets->windows_i686_msvc                0.52.6                         ---            Removed        Normal  cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib)))
windows-targets->windows_x86_64_gnu               0.52.6                         ---            Removed        Normal  cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib)))
windows-targets->windows_x86_64_gnullvm           0.52.6                         ---            Removed        Normal  x86_64-pc-windows-gnullvm
windows-targets->windows_x86_64_msvc              0.52.6                         ---            Removed        Normal  cfg(all(any(target_arch = "x86_64", target_arch = "arm64ec"), target_env = "msvc", not(windows_raw_dylib)))
xattr->rustix                                     0.38.35                        0.38.37        0.38.37        Normal  ---
zbus->async-executor                              1.13.0                         1.13.1         1.13.1         Normal  ---
zbus->async-trait                                 0.1.81                         0.1.82         0.1.82         Normal  ---
zbus->serde                                       1.0.209                        1.0.210        1.0.210        Normal  ---
zbus_names->serde                                 1.0.209                        1.0.210        1.0.210        Normal  ---
zerocopy->byteorder                               1.5.0                          ---            Removed        Normal  ---
zerocopy->zerocopy-derive                         0.7.35                         ---            Removed        Normal  ---
zerocopy-derive->proc-macro2                      1.0.86                         ---            Removed        Normal  ---
zerocopy-derive->quote                            1.0.37                         ---            Removed        Normal  ---
zerocopy-derive->syn                              2.0.76                         2.0.77         2.0.77         Normal  ---
zerocopy-derive->syn                              2.0.76                         2.0.77         Removed        Normal  ---
zstd-sys->cc                                      1.1.15                         1.1.21         1.1.21         Build   ---
zvariant->serde                                   1.0.209                        1.0.210        1.0.210        Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
Name                             Project     Compat       Latest       Kind    Platform
----                             -------     ------       ------       ----    --------
chrono->iana-time-zone           0.1.60      0.1.61       0.1.61       Normal  cfg(unix)
chrono->serde                    1.0.209     1.0.210      1.0.210      Normal  ---
crypto-common->hybrid-array      0.2.0-rc.9  0.2.0-rc.10  0.2.0-rc.10  Normal  ---
futures-macro->syn               2.0.76      2.0.77       2.0.77       Normal  ---
iana-time-zone-haiku->cc         1.1.15      1.1.21       1.1.21       Build   ---
plotters                         0.3.6       0.3.7        0.3.7        Normal  ---
plotters->plotters-backend       0.3.6       0.3.7        0.3.7        Normal  ---
plotters->plotters-svg           0.3.6       0.3.7        0.3.7        Normal  ---
plotters-svg->plotters-backend   0.3.6       0.3.7        0.3.7        Normal  ---
proc-macro2->unicode-ident       1.0.12      1.0.13       1.0.13       Normal  ---
serde->serde_derive              1.0.209     1.0.210      1.0.210      Normal  ---
serde_derive->syn                2.0.76      2.0.77       2.0.77       Normal  ---
serde_json                       1.0.127     1.0.128      1.0.128      Normal  ---
serde_json->serde                1.0.209     1.0.210      1.0.210      Normal  ---
sha2->cpufeatures                0.2.13      0.2.14       0.2.14       Normal  cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))
syn->unicode-ident               1.0.12      1.0.13       1.0.13       Normal  ---
wasm-bindgen-backend->syn        2.0.76      2.0.77       2.0.77       Normal  ---
wasm-bindgen-macro-support->syn  2.0.76      2.0.77       2.0.77       Normal  ---

CheckJson / json: C:/home/git/polyglot
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\package.json

CheckJson / json: C:/home/git/polyglot/apps/ipfs
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\ipfs\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/temp/extension
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/vscode
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\vscode\package.json

CheckJson / json: C:/home/git/polyglot/deps/The-Spiral-Language/VS Code Plugin
$ npm-check-updates --target greatest
Checking C:\home\git\polyglot\deps\The-Spiral-Language\VS Code Plugin\package.json